/* Gemeinsames Aussehen der Branchen-Seiten (anfrage-system-*.html).
   Farben und Abstaende wie auf der Startseite. */
:root {
  --blau: #1d4ed8;
  --blau-dunkel: #1e40af;
  --navy: #0f1f3d;
  --text: #0f172a;
  --grau: #475569;
  --grau-hell: #64748b;
  --rand: #e2e8f0;
  --tint: #f8fafc;
  --gruen: #16a34a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text); line-height: 1.65; background: #fff; -webkit-font-smoothing: antialiased; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
a { color: inherit; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: #fff; color: var(--navy); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 16px; }

/* Kopf */
header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rand); }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 66px; }
.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; color: var(--navy); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.logo .profi { color: var(--blau); }
.logo-hell { color: #fff; }
.logo-hell .profi { color: #93c5fd; }
.kopf nav { display: flex; align-items: center; gap: 4px; }
.kopf nav a { padding: 8px 12px; border-radius: 8px; color: var(--grau); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.kopf nav a:hover { color: var(--navy); background: var(--tint); }
.kopf nav a.kopf-cta { background: var(--blau); color: #fff; font-weight: 600; margin-left: 6px; }
.kopf nav a.kopf-cta:hover { background: var(--blau-dunkel); }

/* Buehne */
.buehne { background: linear-gradient(165deg, #0f1f3d 0%, #14305f 100%); color: #fff; padding: 72px 0 78px; }
.badge { display: inline-block; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: #cbd5e1; font-size: 0.82rem; font-weight: 500; padding: 6px 14px; border-radius: 6px; margin-bottom: 22px; }
.buehne h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.18; letter-spacing: -0.02em; max-width: 760px; margin-bottom: 20px; }
.buehne .sub { color: #b8c4d6; font-size: clamp(1.02rem, 1.5vw, 1.15rem); max-width: 640px; margin-bottom: 30px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 14px 26px; border-radius: 9px; font-weight: 600; font-size: 1.02rem; transition: background 0.15s, transform 0.1s; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-hell { background: #fff; color: var(--navy); }
.btn-hell:hover { background: #eef2f8; transform: translateY(-1px); }
.btn-rand { color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-rand:hover { background: rgba(255,255,255,0.08); }
/* Dunkleres Gruen als das WhatsApp-Gruen #25d366: weisse Schrift darauf ist schwer lesbar (Kontrast 2:1). */
.btn-wa { background: #15803d; color: #fff; }
.btn-wa:hover { background: #166534; transform: translateY(-1px); }
.direkt { margin-top: 16px; color: #b8c4d6; font-size: 0.98rem; }
.direkt a { color: #fff; font-weight: 600; text-underline-offset: 2px; white-space: nowrap; }
.buehne-raster { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }

/* Beispiel-Anfragenliste in der Buehne. Status und Farben wie im echten Sheet. */
.liste-karte { background: #fff; color: var(--text); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.28); overflow: hidden; }
.liste-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: #263043; color: #fff; font-weight: 600; font-size: 0.95rem; }
.liste-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #cbd5e1; border: 1px solid rgba(255,255,255,0.25); border-radius: 5px; padding: 2px 8px; }
.liste-karte ul { list-style: none; }
.liste-karte li { padding: 13px 18px; border-top: 1px solid var(--rand); }
.liste-karte li:first-child { border-top: 0; }
.li-oben { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; }
.li-unten { color: var(--grau-hell); font-size: 0.85rem; margin-top: 2px; }
.status { flex-shrink: 0; font-size: 0.76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: #1f2937; white-space: nowrap; }
.status.neu { background: #fff2cc; }
.status.gesendet { background: #cfe2f3; }
.status.bestaetigt { background: #d9ead3; }
.status.abgesagt { background: #f4cccc; }
.liste-karte figcaption { padding: 10px 18px; background: var(--tint); color: var(--grau-hell); font-size: 0.8rem; border-top: 1px solid var(--rand); }

/* Abschnitte */
section.block { padding: 80px 0; }
section.tint { background: var(--tint); }
.eyebrow { text-align: center; color: var(--blau); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.05rem); letter-spacing: -0.02em; text-align: center; margin-bottom: 14px; line-height: 1.25; }
.lead { text-align: center; color: var(--grau); font-size: 1.07rem; max-width: 640px; margin: 0 auto 46px; }

/* Typische Lage: Problem und Loesung je Karte */
.lagen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lage { background: #fff; border: 1px solid var(--rand); border-radius: 14px; padding: 26px 24px; display: flex; flex-direction: column; }
.lage h3 { font-size: 1.1rem; margin-bottom: 8px; }
.lage .problem { color: var(--grau); font-size: 0.97rem; margin-bottom: 16px; }
.lage .loesung { margin-top: auto; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 12px 14px; color: #14532d; font-size: 0.95rem; }
.lage .loesung strong { display: block; color: #15803d; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }

/* Formular-Vorschau */
.formular-raster { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.formular-text h2, .formular-text .eyebrow { text-align: left; }
.formular-text p { color: var(--grau); margin-bottom: 14px; }
.formular-text .eyebrow { color: var(--blau); margin-bottom: 12px; }
.haken-liste { list-style: none; margin: 18px 0; }
.haken-liste li { position: relative; padding: 6px 0 6px 30px; color: var(--grau); }
.haken-liste li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.hinweis-klein, .formular-text .hinweis-klein { font-size: 0.88rem; color: var(--grau-hell); }
.hinweis-klein a { color: var(--blau); font-weight: 600; }
.formular-kasten { background: #fff; border: 1px solid var(--rand); border-radius: 14px; padding: 12px; box-shadow: 0 14px 40px rgba(15,31,61,0.08); }
.formular-kasten .band { font-size: 0.84rem; color: var(--grau-hell); padding: 2px 6px 8px; }
.formular-rahmen { border: 0; width: 100%; height: 1060px; display: block; }

/* Ablauf */
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.schritt { text-align: center; padding: 0 8px; }
.schritt .nr { counter-increment: s; width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 10px; background: var(--blau); color: #fff; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.schritt .nr::before { content: counter(s); }
.schritt h3 { font-size: 1.08rem; margin-bottom: 6px; }
.schritt p { color: var(--grau); font-size: 0.97rem; }
.extra { text-align: center; color: var(--grau-hell); font-size: 0.95rem; max-width: 700px; margin: 40px auto 0; }
.extra a { color: var(--blau); font-weight: 600; }

/* Fragen */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--rand); border-radius: 10px; padding: 0 22px; margin-bottom: 12px; background: #fff; }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 1.02rem; padding: 17px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blau); font-size: 1.5rem; font-weight: 400; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--grau); font-size: 0.98rem; padding: 0 0 18px; }
.faq details p a { color: var(--blau); font-weight: 600; }

/* Kontakt */
.kontakt { background: linear-gradient(165deg, #0f1f3d 0%, #14305f 100%); color: #fff; text-align: center; padding: 80px 0; }
.kontakt h2 { color: #fff; }
.kontakt p { color: #b8c4d6; font-size: 1.07rem; max-width: 580px; margin: 0 auto 28px; }
.kontakt .knopfreihe { justify-content: center; }
.kontakt .klein { font-size: 0.95rem; margin: 22px auto 0; }
.kontakt .klein a { color: #fff; white-space: nowrap; }

/* Fuss */
footer { background: var(--navy); color: #8295ad; font-size: 0.88rem; padding: 34px 0 28px; border-top: 1px solid rgba(255,255,255,0.08); }
.fuss-raster { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
.fuss-raster nav { display: flex; flex-wrap: wrap; gap: 16px; }
.fuss-marke { color: #fff; font-weight: 700; }
.fuss-zeile { margin-top: 10px; }
footer a { color: #b8c4d6; text-decoration: none; }
footer a:hover { color: #fff; }
.fuss-unten { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }
.fuss-unten a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 900px) {
  .buehne-raster { grid-template-columns: 1fr; gap: 36px; }
  .liste-karte { max-width: 520px; }
  .lagen { grid-template-columns: 1fr; gap: 16px; max-width: 620px; margin: 0 auto; }
  .formular-raster { grid-template-columns: 1fr; gap: 28px; }
  .schritte { grid-template-columns: 1fr; gap: 22px; max-width: 520px; margin: 0 auto; }
  .kopf nav a:not(.kopf-cta) { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .buehne { padding: 44px 0 52px; }
  section.block, .kontakt { padding: 52px 0; }
  .lead { margin-bottom: 32px; }
  h2 { font-size: 1.45rem; }
  .knopfreihe .btn { width: 100%; }
  .kopf nav a.kopf-cta { padding: 8px 12px; font-size: 0.9rem; }
  .logo { font-size: 1rem; }
  .formular-kasten { padding: 6px; }
  .schritt { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; text-align: left; padding: 0; }
  .schritt .nr { grid-row: span 2; width: 42px; height: 42px; margin: 0; font-size: 1.05rem; }
}
@media (max-width: 360px) {
  .kopf { gap: 10px; }
  .logo { font-size: 0.95rem; white-space: nowrap; }
  .kopf nav a.kopf-cta { font-size: 0.82rem; padding: 8px 10px; margin-left: 0; white-space: nowrap; }
}
