/* Gemeinsame Grundlage für alle Wege: Reset, Barrierefreiheit, Raster, Geräte-Rahmen, Bausteine */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-body, 1.0625rem); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
strong, b { font-weight: 650; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Barrierefreiheit */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1.1rem;
  background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; border-radius: 4px;
}
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout */
.wrap { width: min(100% - 2rem, var(--maxw, 72rem)); margin-inline: auto; }
.section { padding-block: var(--space-section, clamp(4rem, 9vw, 7.5rem)); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: var(--fs-h2, clamp(1.75rem, 3.6vw, 2.75rem)); }
.kicker { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.kicker .num { color: var(--accent); margin-right: .5em; }
.section-lead { margin-top: 1rem; color: var(--muted); font-size: 1.125rem; max-width: 40rem; }
.text-link { font-weight: 600; color: var(--accent); }
.more { margin-top: 2.5rem; }


/* Kopfzeile */
.site-header { position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand-mark { width: 2.4rem; height: 2.4rem; flex: none; }
.nav-list { display: none; }
.nav-list a { text-decoration: none; }
.nav-menu { position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; padding: .55rem 1rem; border: 1px solid currentColor; border-radius: var(--radius-btn, 999px);
  font-weight: 600; font-size: .9375rem; user-select: none;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .55em; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-.2em) rotate(45deg); }
.nav-menu[open] summary::after { transform: translateY(.05em) rotate(-135deg); }
.nav-menu ul {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 14rem; padding: .5rem; z-index: 30;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius, 8px);
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
}
.nav-menu li a { display: block; padding: .7rem .9rem; text-decoration: none; border-radius: 4px; }
.nav-menu li a:hover { background: var(--bg-alt); }
@media (min-width: 62rem) {
  .nav-list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); font-size: .9375rem; font-weight: 550; }
  .nav-menu { display: none; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.25rem; padding: .8rem 1.5rem;
  font-weight: 650; font-size: 1.0625rem; text-decoration: none; border-radius: var(--radius-btn, 999px);
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
@media (max-width: 30rem) { .actions .btn { flex: 1 1 100%; } }

/* Zielgruppen-Kacheln */
.tiles { display: grid; gap: var(--tile-gap, 1.25rem); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; display: flex; flex-direction: column; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile-body { display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.tile h3 { font-size: 1.1875rem; }
.tile h3 a { text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile h3 a:focus-visible { outline: none; }
.tile:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.tile-who { font-size: .875rem; color: var(--muted); }
.tile-body p:last-child { font-size: .9688rem; }
.tile-link { font-weight: 650; position: relative; z-index: 2; }

/* Ablauf */
.steps { display: grid; gap: 1.75rem; counter-reset: step; }
.step-num { font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.1875rem; margin-bottom: .35rem; }

/* Leistungen */
.services { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .services { grid-template-columns: 1.25fr 1fr; gap: 4rem; } }
.service-block h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.checklist { display: grid; gap: 1rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: .15rem; top: .45em; width: .95rem; height: .55rem;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
.checklist-plus li::before { width: .9rem; height: .9rem; top: .35em; border: 0; transform: none;
  background: linear-gradient(var(--accent), var(--accent)) center / 100% 2.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2.5px 100% no-repeat; }
.checklist strong { display: block; }
.checklist span { color: var(--muted); font-size: .9688rem; }

/* Beispiele: Geräte-Rahmen (mit HTML/CSS gezeichnet) */
.notice { margin-top: 1.25rem; padding: .85rem 1rem; font-size: .9375rem; border-left: 3px solid var(--accent); background: var(--bg-alt); color: var(--text); }
.examples { display: grid; gap: 3rem; }
@media (min-width: 56rem) { .examples { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.example h3 { font-size: 1.1875rem; margin-top: 1.5rem; }
.example p { color: var(--muted); font-size: .9688rem; margin-top: .35rem; }
.devices { position: relative; padding-bottom: 7%; padding-right: 4%; }
.laptop { width: 88%; }
.laptop > .screen { aspect-ratio: 16 / 10; border: 7px solid #202427; border-bottom-width: 9px; border-radius: 10px 10px 0 0; }
.laptop::after { content: ""; display: block; height: .7rem; margin: 0 -7%; border-radius: 0 0 10px 10px; background: linear-gradient(#d9dcde, #a8adb1); box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.phone { position: absolute; right: 0; bottom: 0; width: 27%; border: 5px solid #202427; border-radius: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.18); overflow: hidden; }
.phone > .screen { aspect-ratio: 9 / 18; border-radius: 10px; }
.screen { container-type: inline-size; overflow: hidden; background: var(--d-bg); color: var(--d-text); font-family: system-ui, sans-serif; display: flex; flex-direction: column; }
.d-bar { flex: none; display: flex; align-items: center; gap: 3cqi; padding: 2.4cqi 4cqi; background: var(--d-bar); color: var(--d-bar-text); font-size: 3.6cqi; }
.d-bar b { margin-right: auto; font-weight: 700; white-space: nowrap; }
.d-bar i { width: 7cqi; height: 1cqi; border-radius: 1cqi; background: currentColor; opacity: .5; }
.d-hero { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2cqi; padding: 4cqi 5cqi; color: #fff; overflow: hidden; }
.d-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.05) 75%); }
.d-h, .d-hero .d-btn { position: relative; z-index: 2; }
.d-h { font-family: Georgia, serif; font-size: 5cqi; line-height: 1.08; font-weight: 700; }
.d-btn { display: inline-block; padding: 1.3cqi 2.6cqi; border-radius: 1cqi; background: var(--d-accent); color: var(--d-accent-text); font-size: 2.5cqi; font-weight: 700; }
.d-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5cqi; padding: 3cqi 4cqi; flex: none; }
.d-card { display: grid; gap: 1.2cqi; padding: 2.2cqi 2.6cqi; border-radius: 1.2cqi; background: var(--d-card); font-size: 2.5cqi; }
.d-card i { height: 1.1cqi; border-radius: 1cqi; background: currentColor; opacity: .22; }
.d-card i:last-child { width: 65%; }
.laptop .d-card i + i { display: none; }
.phone .d-bar { font-size: 8cqi; padding: 5cqi 7cqi; }
.phone .d-hero { flex-basis: 48%; padding: 8cqi; }
.phone .d-h { font-size: 13cqi; }
.phone .d-btn-block { margin: 8cqi 8cqi 5cqi; text-align: center; font-size: 7cqi; padding: 4cqi; border-radius: 3cqi; }
.phone .d-card { margin: 0 8cqi; font-size: 7cqi; padding: 6cqi; gap: 4cqi; border-radius: 3cqi; }
.phone .d-card i { height: 3cqi; }
.demo-gast { --d-bg: #f6f1e7; --d-text: #2c2620; --d-bar: #2f3a2c; --d-bar-text: #f6f1e7; --d-accent: #c8893b; --d-accent-text: #1d1a15; --d-card: #ebe3d3; }
.demo-fewo { --d-bg: #f3f6f7; --d-text: #1f2c33; --d-bar: #ffffff; --d-bar-text: #1f2c33; --d-accent: #2f6f8f; --d-accent-text: #fff; --d-card: #e3ebee; }
.demo-kos  { --d-bg: #f7f4ef; --d-text: #2d332c; --d-bar: #e9efe6; --d-bar-text: #2d332c; --d-accent: #5f7d5a; --d-accent-text: #fff; --d-card: #ece8e0; }

/* Über mich */
.about { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .about { grid-template-columns: minmax(16rem, 5fr) 7fr; gap: clamp(3rem, 6vw, 5.5rem); } }
.about-text h2 { font-size: var(--fs-h2, clamp(1.75rem, 3.6vw, 2.75rem)); margin-bottom: 1.25rem; }
.about-text p + p { margin-top: 1rem; }
.portrait { position: relative; }


/* Häufige Fragen */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 1.25rem 3rem 1.25rem 0; font-weight: 650; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .5rem; top: 50%; width: .65rem; height: .65rem; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 0 1.5rem; max-width: 46rem; color: var(--muted); }

/* Kontakt */
.contact-list { display: grid; gap: 1rem; }
@media (min-width: 56rem) { .contact-list { grid-template-columns: repeat(3, 1fr); } }
.contact-link { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; min-height: 5.5rem; padding: 1.25rem 1.4rem; text-decoration: none; }
.contact-link svg { grid-row: span 2; width: 1.75rem; height: 1.75rem; }
.cl-label { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.cl-value { font-size: 1.1875rem; font-weight: 650; overflow-wrap: anywhere; }
.area { margin-top: 2rem; max-width: 46rem; color: var(--muted); }

/* Fußzeile */
.site-footer { padding-block: 3.5rem 2rem; font-size: .9375rem; }
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand p { margin-top: 1rem; max-width: 22rem; opacity: .85; }
.footer-h { font-family: var(--font-body); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; opacity: .8; }
.footer-col li + li { margin-top: .4rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 25%, transparent); opacity: .85; }

/* Kacheln auf schmalen Handys kompakt: Bild links, Text rechts */
@media (max-width: 39.99rem) {
  .tiles .tile:not(.tile-cta) { display: grid; grid-template-columns: 7rem 1fr; align-items: start; }
  .tiles .tile:not(.tile-cta) img { width: 100%; height: 100%; min-height: 7rem; aspect-ratio: auto; }
  .tile h3 { font-size: 1.0625rem; }
}

/* Logo und Menü-Knopf nicht umbrechen */
.brand-text, .nav-menu summary { white-space: nowrap; }
@media (max-width: 26rem) {
  .header-inner { gap: .75rem; }
  .brand { gap: .5rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  .nav-menu summary { padding: .5rem .8rem; }
}

/* Porträt */
.portrait { max-width: 24rem; overflow: hidden; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Bausteine der fertigen Seite ---------- */
/* Geräte-Rahmen mit echten Screenshots */
.screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.example-links { margin-top: .5rem; }
.examples-zwei { gap: 3.5rem 3rem; }
@media (min-width: 56rem) { .examples-zwei { grid-template-columns: repeat(2, 1fr); } }

/* Mini-Vorschauen für Branchen ohne eigene Demo-Seite */
.demo-tisch  { --d-bg: #f4f1ec; --d-text: #2a2420; --d-bar: #3b2f25; --d-bar-text: #f4f1ec; --d-accent: #8f5a24; --d-accent-text: #fff; --d-card: #e8e1d6; }
.demo-verein { --d-bg: #f2f4f7; --d-text: #1c2433; --d-bar: #7a1e2c; --d-bar-text: #fff; --d-accent: #7a1e2c; --d-accent-text: #fff; --d-card: #e3e7ee; }
.demo-privat { --d-bg: #ffffff; --d-text: #1d1d1f; --d-bar: #ffffff; --d-bar-text: #1d1d1f; --d-accent: #2b5d8a; --d-accent-text: #fff; --d-card: #eef1f4; }

/* Beispiel-Block auf Unterseiten */
.beispiel { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .beispiel { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; } }
.beispiel-text h2 { font-size: var(--fs-h2, clamp(1.75rem, 3.6vw, 2.75rem)); margin-bottom: 1rem; }
.beispiel-text h3 { font-size: 1.3125rem; margin-bottom: .5rem; }
.beispiel-text p + p { margin-top: .9rem; }
.beispiel-hinweis { font-size: .875rem; color: var(--muted); }
.btn-klein { min-height: 2.75rem; padding: .55rem 1.1rem; font-size: .9688rem; }
.btn-klein svg { width: 1em; height: 1em; }

/* Fließtext (Impressum, Datenschutz) */
.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.prose a { color: var(--accent); overflow-wrap: anywhere; }
.prose dl { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: .6rem 1.5rem; }
.prose dt { font-weight: 650; }
.prose dd { margin: 0; }
@media (max-width: 36rem) { .prose dl { grid-template-columns: 1fr; gap: .1rem; } .prose dd { margin-bottom: .7rem; } }
.stand { font-size: .875rem; color: var(--muted); }
mark.offen { background: #fff3c4; color: #3b3000; padding: .05em .3em; border-radius: 3px; }

/* Weitere Branchen */
.section-branchen { padding-block: 2.5rem 3.5rem; }
.section-branchen h2 { font-size: 1.125rem; margin-bottom: 1rem; }
.branchen { display: flex; flex-wrap: wrap; gap: .5rem; }
.branchen a { display: inline-block; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9375rem; }
.branchen a:hover { border-color: var(--accent); color: var(--accent); }
.eyebrow a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }

/* schlanke Leiste unten am Handy (nur CSS) – der Abstand am body hält Inhalte frei */
.handy-leiste { display: none; }
@media (max-width: 47.99rem) {
  body { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)); }
  .handy-leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--leiste-bg, #16302A); border-top: 1px solid rgba(255,255,255,.18); --focus: #F4C37E; }
  .handy-leiste a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.5rem; color: #fff; font-weight: 700; text-decoration: none; }
  .handy-leiste a + a { border-left: 1px solid rgba(255,255,255,.18); }
  .handy-leiste svg { width: 1.2rem; height: 1.2rem; color: var(--leiste-akzent, #74D3CC); }
  .handy-leiste a:focus-visible { outline-offset: -4px; }
}
