/* Selbst gehostete Schriften (keine Verbindung zu Google) */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F2F5F9;
  --surface: #FFFFFF;
  --ink: #13203A;
  --ink-2: #3A4964;
  --muted: #6A7890;
  --line: #DDE3EC;
  --line-strong: #C4CEDC;
  --accent: #2440F0;
  --accent-ink: #1A30C2;
  --accent-soft: #E6EAFE;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Bricolage Grotesque", var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.page {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-rows: auto 1fr auto auto; min-height: 100vh; min-height: 100svh;
}

/* Kopfzeile */
.top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; letter-spacing: -0.02em; }
.brand__mark { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); display: grid; grid-template-rows: 6px 1fr; gap: 2px; padding: 3px; }
.brand__mark::before, .brand__mark::after { content: ""; background: rgba(255,255,255,.9); border-radius: 2px; }
.brand__mark::after { background: rgba(255,255,255,.55); }
.top__nav { display: flex; gap: 6px; }
.top__nav a, .top__nav button {
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-2); background: none; border: 0; cursor: pointer;
  padding: 9px 14px; border-radius: 9px; text-decoration: none;
}
.top__nav a:hover, .top__nav button:hover { background: var(--surface); color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; padding: 8px 0 24px; }
.hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(36px, min(5.2vw, 7vh), 70px); margin: 0 0 22px; max-width: 13ch;
}
.lead { font-size: 18px; color: var(--ink-2); max-width: 46ch; margin: 0 0 30px; }
.hero__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: 17px;
  background: var(--accent); color: #fff; text-decoration: none; padding: 16px 28px; border-radius: 12px;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; margin-top: 22px; }
.link { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.link:hover { color: var(--accent); }

/* DSGVO-Hinweis mit EU-Symbol */
.gdpr { display: flex; align-items: center; gap: 10px; margin: -12px 0 18px; font-size: 14px; color: var(--ink-2); }
.gdpr strong { color: var(--ink); font-weight: 600; }
.eu { width: 22px; height: 22px; flex: none; border-radius: 5px; }

/* Branchen-Texte: Standardtext nicht kurz aufblitzen lassen */
.js-branch #hero-title, .js-branch #hero-lead { visibility: hidden; }

.facts { list-style: none; padding: 0; margin: 32px 0 0; display: flex; gap: 0; border-top: 1px solid var(--line-strong); }
.facts li { flex: 1; padding: 16px 16px 0 0; font-size: 14px; color: var(--muted); line-height: 1.35; }
.facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--display); font-size: 24px; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 2px; }

/* Baukasten */
.builder { background: var(--ink); border-radius: 24px; padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; }
.browser { background: var(--surface); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; height: clamp(320px, 50vh, 430px); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex: none; }
.browser__bar > span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser__url { margin-left: 10px; flex: 1; background: var(--paper); border-radius: 6px; font-size: 11.5px; color: var(--muted); padding: 4px 10px; }
.browser__page { flex: 1; overflow: hidden; padding: 0; position: relative; }
.browser__page::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, #fff); pointer-events: none; }

/* Wireframe-Blöcke */
.b { padding: 12px 14px; border-bottom: 1px solid #EEF1F6; animation: pop .35s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.b i { display: block; }
.t { height: 9px; border-radius: 3px; background: var(--ink); margin-bottom: 7px; }
.t--thin { height: 6px; background: var(--line-strong); }
.t--w20 { width: 20%; } .t--w30 { width: 30%; } .t--w40 { width: 40%; } .t--w50 { width: 50%; } .t--w60 { width: 60%; }
.t--c { margin-left: auto; margin-right: auto; }
.t--light { background: #fff; }
.l { height: 5px; border-radius: 3px; background: #E2E7EF; margin-bottom: 5px; }
.l--s { width: 60%; }
.l--box { height: 46px; background: var(--paper); border-radius: 6px; }
.pill { width: 64px; height: 18px; border-radius: 6px; background: var(--accent); margin-top: 10px; }
.pill--light { background: #fff; margin-left: auto; }
.b--hero { background: linear-gradient(135deg, #E6EAFE, #F6F7FE); padding: 26px 18px; }
.b--split { display: grid; grid-template-columns: 38% 1fr; gap: 12px; align-items: center; }
.b--rev { grid-template-columns: 1fr 38%; }
.img { background: #D3DBF5; border-radius: 6px; height: 54px; }
.img--sq { height: 40px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cols--4 { grid-template-columns: repeat(4, 1fr); }
.b .cols + * { margin-top: 0; }
.card { height: 40px; background: var(--paper); border-radius: 6px; }
.card--tall { height: 52px; }
.card--hi { background: var(--accent-soft); outline: 1.5px solid var(--accent); }
.av { width: 26px; height: 26px; border-radius: 50%; background: #D3DBF5; margin: 0 auto; }
.quote { height: 34px; border-left: 3px solid var(--accent); background: var(--paper); border-radius: 0 6px 6px 0; }
.row { height: 14px; border-radius: 4px; background: var(--paper); margin-top: 6px; }
.map { height: 52px; border-radius: 6px; background: repeating-linear-gradient(45deg, #E9EDF4 0 6px, #F3F5F9 6px 12px); }
.b--dark { background: var(--ink); }
.field { height: 16px; border-radius: 4px; background: rgba(255,255,255,.14); }

.builder__panel { display: flex; flex-direction: column; color: #fff; min-width: 0; }
.builder__hint { font-size: 13.5px; color: rgba(255,255,255,.7); margin: 2px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start; }
.chip {
  font: inherit; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.82); cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; padding: 6px 12px;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--ink); }
.builder__price { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); }
.builder__price div { font-size: 14px; color: rgba(255,255,255,.75); }
.builder__price strong { font-family: var(--display); font-size: 40px; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.builder__price span { display: block; font-size: 13px; color: rgba(255,255,255,.6); margin-top: 6px; }

/* Ablauf */
.steps ol { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; border-top: 1px solid var(--line-strong); }
.steps li { counter-increment: s; font-size: 14px; color: var(--muted); line-height: 1.45; position: relative; padding-left: 38px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); font-weight: 700; font-size: 13px;
  display: grid; place-items: center;
}
.steps strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 14px 0 22px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* FAQ */
dialog { border: 0; padding: 0; border-radius: 20px; width: min(600px, calc(100% - 32px)); max-height: calc(100vh - 48px); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(19,32,58,.5); }
dialog::backdrop { background: rgba(19, 32, 58, .5); }
.faq { padding: 28px 30px 30px; }
.faq__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.faq h2 { font-family: var(--display); font-size: 26px; margin: 0; letter-spacing: -0.02em; }
.faq__close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); font-size: 22px; cursor: pointer; color: var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: -4px 0 16px; color: var(--ink-2); font-size: 15px; }

/* Desktop mit wenig Höhe: kompakter, damit alles ohne Scrollen passt */
@media (min-width: 1024px) and (max-height: 880px) {
  .top { height: 64px; }
  .hero h1 { font-size: clamp(36px, min(4.4vw, 6.6vh), 58px); margin-bottom: 16px; }
  .lead { font-size: 17px; margin-bottom: 22px; }
  .facts { margin-top: 18px; }
  .gdpr { margin: -8px 0 14px; }
  .facts li { padding-top: 12px; }
  .steps ol { padding: 16px 0; }
}

@media (min-width: 1024px) and (max-height: 790px) {
  .top { height: 56px; }
  .hero { padding: 0 0 14px; gap: 48px; }
  .hero h1 { font-size: clamp(32px, min(3.7vw, 6.2vh), 48px); max-width: 15ch; margin-bottom: 12px; }
  .lead { font-size: 16px; margin-bottom: 18px; }
  .btn { padding: 13px 24px; font-size: 16px; }
  .facts { margin-top: 12px; }
  .facts strong { font-size: 20px; }
  .gdpr { margin: -6px 0 12px; font-size: 13px; }
  .eu { width: 19px; height: 19px; }
  .browser { height: 290px; }
  .builder { padding: 18px; }
  .steps ol { padding: 12px 0; }
  .steps li { font-size: 13px; }
  .foot { padding: 10px 0 14px; }
}

/* Tablet und Handy: normal scrollen */
@media (max-width: 1023px) {
  .page { display: block; padding: 0 20px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 16px 0 40px; }
  .hero h1 { max-width: 16ch; }
  .steps ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .top { height: 64px; }
  .top__nav a, .top__nav button { padding: 8px 10px; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 17px; }
  .facts { flex-wrap: wrap; }
  .facts li { flex: 1 1 50%; padding: 14px 10px 0 0; }
  .facts li + li { border-left: 0; padding-left: 0; }
  .builder { grid-template-columns: 1fr; padding: 16px; border-radius: 20px; }
  .browser { height: 300px; }
  .steps ol { grid-template-columns: 1fr; gap: 18px; }
  .foot { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .b { animation: none; }
  * { transition: none !important; }
}

/* Rechtsseiten */
.legal-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.legal { max-width: 72ch; padding: 32px 0 56px; }
.legal h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(34px, 4.5vw, 52px); margin: 0 0 12px; }
.legal h2 { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.015em; margin: 36px 0 10px; }
.legal h3 { font-size: 16px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 4px; }
.legal__meta { color: var(--muted) !important; font-size: 14px !important; }
.legal-wrap .foot { margin-top: 8px; }
@media (max-width: 640px) { .legal-wrap { padding: 0 20px; } .legal { padding-top: 16px; } }

/* Cookie-Einwilligung */
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.linkbtn:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.consent {
  position: fixed; left: 24px; bottom: 24px; z-index: 50; width: min(420px, calc(100% - 32px));
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; box-shadow: 0 24px 60px -20px rgba(19, 32, 58, .4);
}
.consent__title { font-weight: 600; margin: 0 0 6px; }
.consent__text { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 0 0 16px; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent__btn {
  font: inherit; font-weight: 600; font-size: 15px; padding: 11px 14px; border-radius: 10px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink);
}
.consent__btn:hover { background: var(--ink); color: #fff; }
@media (max-width: 640px) { .consent { left: 16px; bottom: 16px; } }

/* Branchen-Übersicht (/branche) */
.branches { padding: 32px 0 64px; }
.branches h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(34px, 4.6vw, 56px); margin: 0 0 14px; max-width: 16ch; }
.branches .lead { margin-bottom: 18px; }
.branches .gdpr { margin: 0 0 36px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  display: flex; flex-direction: column; gap: 4px; min-height: 168px; padding: 22px 22px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.tile__name { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.tile__ex { font-size: 14.5px; color: var(--muted); }
.tile__url {
  margin-top: auto; align-self: flex-start; font-size: 12.5px; color: var(--muted);
  background: var(--paper); border-radius: 7px; padding: 4px 10px 4px 22px; position: relative;
}
.tile__url::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--line-strong); }
.tile:hover .tile__url::before { background: var(--accent); }
.tile--other { background: transparent; border-style: dashed; border-color: var(--line-strong); }
@media (max-width: 640px) { .branches { padding-top: 12px; } .tile { min-height: 0; } .tile__url { margin-top: 12px; } }
