/* Messe-Landeseite. Baut auf style.css auf und ergänzt nur, was dort fehlt. */

.messe .hero h1 { font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: .98; letter-spacing: -.04em; }
.pill { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--on-night); border: 1px solid var(--line-night); border-radius: 999px; padding: .45rem .9rem; margin-bottom: 1.6rem; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--red); }
.after { margin: 2.6rem 0 0; }

/* Laufband unter dem Hero */
.ticker { background: var(--red); color: #fff; overflow: hidden; padding: .9rem 0; }
.ticker div { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker span { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; padding-right: 2.4rem; }
.ticker span::after { content: "+"; margin-left: 2.4rem; opacity: .6; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Leistungen: Hinweis auf Förderfähigkeit */
.ftag { display: inline-flex; align-items: center; gap: .45rem; margin-top: .9rem; font-size: .82rem; font-weight: 600; color: var(--red); text-decoration: none; border: 1px solid currentColor; border-radius: 999px; padding: .28rem .7rem; transition: background .2s, color .2s; }
.ftag:hover { background: var(--red); color: #fff; }

/* ---------- Software ---------- */
.sw-top { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.sw-top > * { min-width: 0; }
.sw-facts { list-style: none; margin: 2.2rem 0 0; padding: 0; border-top: 1px solid var(--line-night); }
.sw-facts li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-night); }
.sw-facts strong { color: #fff; }
.sw-facts span { color: var(--on-night-2); }
.sw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.sw-card { background: var(--night-2); border: 1px solid var(--line-night); border-radius: var(--r); padding: 1.8rem; display: flex; flex-direction: column; transition: border-color .25s, transform .35s var(--ease); }
.sw-card:hover { border-color: var(--red); transform: translateY(-4px); }
.sw-card .num { color: var(--red); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.4rem; }
.sw-card h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.sw-card p { font-size: .98rem; }
.sw-card ul { list-style: none; margin: auto 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line-night); display: grid; gap: .4rem; }
.sw-card li { position: relative; padding-left: 1.1rem; font-size: .93rem; color: var(--on-night); }
.sw-card li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 1px; background: var(--red); }

/* Stilisierte Pipeline */
.mock .browser { border-color: var(--line-night); box-shadow: 0 50px 90px -40px #000; transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); transform-origin: left center; }
.mk-body { display: grid; grid-template-columns: 46px 1fr; background: #F6F6F6; color: var(--ink); }
.mk-side { background: var(--ink); padding: 14px 0; display: grid; gap: 12px; align-content: start; justify-items: center; }
.mk-side span { width: 18px; height: 18px; border-radius: 5px; background: rgba(255,255,255,.16); }
.mk-side .on { background: var(--red); }
.mk-main { padding: 16px; min-width: 0; }
.mk-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.mk-head strong { font-size: 1.05rem; letter-spacing: -.02em; }
.mk-head span { font-family: var(--mono); font-size: .68rem; color: var(--ink-3); }
.mk-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mk-col { background: #EBEBEB; border-radius: 8px; padding: 8px; display: grid; gap: 6px; align-content: start; min-height: 190px; min-width: 0; }
.mk-col b { display: flex; justify-content: space-between; font-size: .68rem; font-weight: 600; color: var(--ink-2); }
.mk-col b i { font-style: normal; font-family: var(--mono); color: var(--ink-3); }
.mk-card { background: #fff; border-radius: 6px; padding: 8px; display: grid; gap: 5px; box-shadow: 0 1px 2px rgba(14,17,20,.08); }
.mk-card em { font-style: normal; font-size: .66rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-card u { display: block; height: 4px; border-radius: 2px; background: #E2E2E2; }
.mk-card u:last-child { width: 55%; }
.mk-col:last-child .mk-card em { color: var(--red); }

/* ---------- Förderung ---------- */
.foerder { background: var(--paper-2); }
.foerder .head .kicker { color: var(--ink-2); }
.f-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.f-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem 2rem 2rem; }
.f-tile strong { display: block; font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; margin-bottom: .8rem; white-space: nowrap; }
.f-tile span { color: var(--ink-2); display: block; max-width: 16em; }
.f-tile.hl { background: var(--red); border-color: var(--red); color: #fff; }
.f-tile.hl span { color: rgba(255,255,255,.9); }

.f-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem clamp(2rem, 5vw, 5rem); margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.f-cols > * { min-width: 0; }
.f-h { font-family: var(--mono); font-size: .8rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 1.2rem; }
.f-h-gap { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.f-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.f-chips li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem 1rem 2.7rem; font-weight: 600; letter-spacing: -.01em; position: relative; line-height: 1.25; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.f-chips li::before { content: "✓"; position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--red); font-weight: 700; line-height: 1; }
.f-chips .neu { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); color: #fff; }
.f-chips .neu span { font-family: var(--mono); font-size: .68rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; background: var(--red); border-radius: 6px; padding: .25rem .5rem; flex: none; }
.f-note { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .97rem; }

.f-table { width: 100%; border-collapse: collapse; }
.f-table thead th { font-family: var(--mono); font-size: .74rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 0 0 .8rem; border-bottom: 1px solid var(--ink); }
.f-table thead th + th { text-align: right; padding-left: 1.2rem; }
.f-table tbody th { text-align: left; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; padding: 1.3rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.f-table tbody th small { display: block; font-size: .88rem; font-weight: 400; letter-spacing: 0; color: var(--ink-3); margin-top: .3rem; max-width: 22em; line-height: 1.45; }
.f-table td { text-align: right; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.04em; white-space: nowrap; padding: 1.3rem 0 1.3rem 1.2rem; border-bottom: 1px solid var(--line); }

/* Rechner */
.rechner { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--night); color: var(--on-night); border-radius: 22px; overflow: hidden; }
.rechner > * { min-width: 0; }
.r-in { padding: clamp(1.6rem, 4vw, 3rem); }
.r-in .num { color: var(--red); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.r-in h3 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -.03em; margin-bottom: 2rem; }
.rechner fieldset { border: 0; margin: 0 0 1.8rem; padding: 0; min-width: 0; }
.rechner legend, .r-range { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 0; font-size: .92rem; font-weight: 500; color: var(--on-night-2); margin-bottom: .7rem; }
.r-range output { font-size: 1.25rem; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--night-2); border: 1px solid var(--line-night); border-radius: 999px; padding: 4px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: .75rem .6rem; border-radius: 999px; font-weight: 600; font-size: .95rem; line-height: 1.2; transition: background .2s, color .2s; }
.seg input:checked + span { background: #fff; color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.rechner input[type=range] { width: 100%; height: 28px; margin: 0; background: transparent; accent-color: var(--red); cursor: pointer; }
.presets { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.presets button { font: inherit; font-size: .88rem; font-weight: 500; color: var(--on-night); background: transparent; border: 1px solid var(--line-night); border-radius: 999px; padding: .5rem .9rem; cursor: pointer; transition: border-color .2s, background .2s; }
.presets button:hover { border-color: #fff; }
.presets button[aria-pressed="true"] { background: var(--night-2); border-color: var(--red); }
.r-out { background: var(--red); color: #fff; padding: clamp(1.6rem, 4vw, 3rem); display: flex; flex-direction: column; }
.r-label { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.r-big { font-size: clamp(3.4rem, 7vw, 6rem); font-weight: 600; letter-spacing: -.055em; line-height: 1; margin: .5rem 0 1.4rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.r-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.28); overflow: hidden; }
.r-bar span { display: block; height: 100%; background: #fff; border-radius: 999px; transform-origin: left; transition: transform .5s var(--ease); }
.r-out dl { margin: 1.4rem 0 2rem; display: grid; gap: .5rem; }
.r-out dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: .5rem; }
.r-out dt { opacity: .9; }
.r-out dd { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.r-out .btn { margin-top: auto; align-self: flex-start; background: #fff; color: var(--ink); }
.r-out .btn:hover { background: var(--ink); color: #fff; }
.r-fine { font-size: .82rem; opacity: .85; margin: 1rem 0 0; }

/* Ablauf der Förderung */
.f-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.f-steps li { padding: 1.6rem 1.6rem 0 0; display: flex; flex-direction: column; }
.f-steps li + li { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.f-steps .n { font-size: 2.6rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--red); margin-bottom: 1rem; }
.f-steps h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.f-steps p { color: var(--ink-2); font-size: .98rem; margin-bottom: 1rem; }
.f-steps .time { margin-top: auto; font-family: var(--mono); font-size: .76rem; color: var(--ink-3); }

/* Fragen */
.f-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem 4rem; margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.f-faq > * { min-width: 0; }
.f-faq h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; margin-bottom: 1rem; }
.f-faq details { border-top: 1px solid var(--line); }
.f-faq details:last-child { border-bottom: 1px solid var(--line); }
.f-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.2rem 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.f-faq summary::-webkit-details-marker { display: none; }
.f-faq summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--red); transition: transform .25s var(--ease); }
.f-faq details[open] summary::after { transform: rotate(45deg); }
.f-faq details p { color: var(--ink-2); max-width: 40em; margin: 0 0 1.4rem; }

.messe .mehr-wrap .btn { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .ticker div { animation: none; }
  .r-bar span { transition: none; }
}

@media (max-width: 1080px) {
  .sw-top, .f-cols, .rechner, .f-faq { grid-template-columns: 1fr; }
  .sw-grid { grid-template-columns: 1fr 1fr; }
  .mock .browser { transform: none; }
  .f-steps { grid-template-columns: 1fr 1fr; }
  .f-steps li { padding: 1.6rem 1.2rem 1.6rem 0; border-bottom: 1px solid var(--line); }
  .f-steps li + li { padding-left: 0; border-left: 0; }
  .f-steps li:nth-child(even) { padding-left: 1.2rem; border-left: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .f-tiles, .sw-grid, .f-chips, .f-steps { grid-template-columns: 1fr; }
  .f-tile { padding: 1.4rem 1.5rem 1.5rem; }
  .f-steps li:nth-child(even) { padding-left: 0; border-left: 0; }
  .sw-facts li { grid-template-columns: 1fr; gap: .2rem; }
  .mk-cols { grid-template-columns: 1fr 1fr; }
  .mk-col { min-height: 0; }
  .mk-col:nth-child(n+3) { display: none; }
  .f-table tbody th { font-size: 1.05rem; }
  .f-table td { padding-left: .8rem; }
  .seg span { font-size: .85rem; padding: .7rem .3rem; }
  .ticker span { font-size: .95rem; }
}
