/* The stylesheet of every published page and preview. It paints with the tokens of theme.css only (--bg, --surface,
   --surface-2, --text, --muted, --field, --band, --band-text, --accent, --accent-ink, --focus, --error, --shade) and sets
   no colour of its own. Headings are the one idea: set as a poster, large, capitals, tight. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; font-variant-numeric: lining-nums; }
img, svg { display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
p { margin: 0 0 16px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero-photo :focus-visible, .site-footer :focus-visible, .sec-ticker :focus-visible, .on-band :focus-visible { outline-color: var(--band-text); }
.sec-cta :focus-visible { outline-color: var(--accent-ink); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 16px; background: var(--surface); color: var(--text); border-radius: 6px; }
.skip:focus { left: 16px; }

/* Headings as a poster */
.h1, .h2 { font-family: var(--font-head); font-weight: var(--head-weight); text-transform: var(--head-case); line-height: var(--head-leading); letter-spacing: var(--head-tracking); font-variant-numeric: var(--head-nums); margin: 0; overflow-wrap: anywhere; }
.h1 { font-size: var(--display-1); }
.h2 { font-size: var(--display-2); margin-bottom: 32px; }
.sub-title { font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.15; margin: 32px 0 12px; overflow-wrap: anywhere; }
.lead { font-size: 20px; line-height: 1.55; max-width: 34ch; overflow-wrap: anywhere; }

/* Buttons: square-shouldered, calm */
.btn { min-width: 0; max-width: 100%; overflow-wrap: anywhere; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 6px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; text-align: center; }
.btn.line { background: transparent; color: var(--accent); }
.btn.band { background: var(--band-text); border-color: var(--band-text); color: var(--band); }
.btn.band-line { background: transparent; border-color: var(--band-text); color: var(--band-text); }
.btn.cta-line { background: transparent; border-color: var(--accent-ink); color: var(--accent-ink); }
.btn.small, .btn.klein { min-height: 42px; padding: 0 18px; font-size: 16px; }
.more { max-width: 100%; overflow-wrap: anywhere; color: var(--accent); font-weight: 600; text-underline-offset: 4px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.actions:empty { display: none; }

/* Pictures and their flat placeholders */
.img { position: relative; overflow: hidden; }
.img img { width: 100%; height: 100%; object-fit: cover; }
.img.ph { background: var(--surface-2); color: var(--accent); }
.img.ph.tint-band { background: var(--band); color: var(--band-text); }
.img.ph.tint-accent { background: var(--accent); color: var(--accent-ink); }
.img.ph span { position: absolute; left: 22px; bottom: 18px; right: 22px; font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.r45 { aspect-ratio: 4 / 5; } .r43 { aspect-ratio: 4 / 3; } .r32 { aspect-ratio: 3 / 2; } .r169 { aspect-ratio: 16 / 9; } .r219 { aspect-ratio: 21 / 9; }

/* Header */
.site-header { border-bottom: 1px solid var(--surface-2); background: var(--bg); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 40px; min-height: 84px; }
.brand { text-decoration: none; display: inline-flex; align-items: center; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.05; letter-spacing: -.01em; overflow-wrap: anywhere; }
.brand-logo { height: 48px; width: auto; max-width: 100%; object-fit: contain; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.menu { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 16px; font-weight: 600; }
.menu a, .menu .entry { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; background: none; border: 0; cursor: pointer; font-weight: 600; }
.menu a[aria-current="page"], .menu .entry[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.has-sub { position: relative; }
.entry .chev { transition: transform .15s; }
.entry[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sub { display: none; list-style: none; margin: 0; padding: 8px 20px; min-width: 200px; background: var(--surface); border: 1px solid var(--surface-2); border-radius: 8px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--text) 16%, transparent); position: absolute; left: -20px; top: 100%; z-index: 30; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .entry[aria-expanded="true"] + .sub { display: block; }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; margin-left: auto; border: 2px solid var(--text); border-radius: 6px; background: none; font-weight: 600; font-size: 16px; cursor: pointer; }

/* The page's own head when it has no Kopfbereich */
.page-head { padding: 72px 0 16px; }
.page-head .h1 { font-size: var(--display-page); }
.wrap.notfound { padding-bottom: 96px; }
.notfound .actions { margin-top: 24px; }

/* Sections */
.sec { padding: 96px 0; position: relative; }

/* Kopfbereich */
.hero { padding: 72px 0 88px; }
.hero .actions { margin-top: 32px; }
.hero-copy .h1 { margin-bottom: 28px; }
.hero-copy .lead { margin: 0; }
.hero-split .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: end; }
.hero-split .h1 { font-size: var(--display-1-split); }
.hero-center .hero-copy { text-align: center; max-width: 960px; margin: 0 auto 56px; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .actions { justify-content: center; }
.hero-plain .h1 { max-width: 14ch; }
.hero-photo { background: var(--band); color: var(--band-text); padding: 128px 0 136px; min-height: min(80vh, 720px); display: flex; align-items: flex-end; }
.hero-photo > .wrap { position: relative; z-index: 1; width: 100%; }
.hero-photo .hero-copy .h1 { max-width: 13ch; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg .img { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.hero-bg .img img { position: absolute; inset: 0; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--shade); }
.hero-bg .img.ph span { display: none; }

/* Text und Bild */
.sec-textImage { padding: 80px 0; }
.sec-textImage .wrap { display: grid; gap: 72px; align-items: center; }
.ti-left .wrap { grid-template-columns: 5fr 6fr; }
.ti-right .wrap { grid-template-columns: 6fr 5fr; }
.ti-right .ti-media { order: 2; }
.ti-top .wrap, .ti-bottom .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
.ti-bottom .ti-media { order: 2; }
.ti-body .h2 { margin-bottom: 28px; }
.ti-body .more { display: inline-block; margin-top: 8px; }
/* without a picture the text is the whole row: it keeps to a readable measure like the stacked variants */
.ti-solo .ti-body { max-width: 62ch; }
.rich p, .rich ul { max-width: 52ch; overflow-wrap: anywhere; }
.rich ul { padding-left: 22px; margin: 0 0 16px; }
.rich li { margin-bottom: 6px; }
.rich > :last-child { margin-bottom: 0; }
.ti-top .rich p, .ti-bottom .rich p { max-width: 62ch; }

/* Text */
.sec-text .text-body { max-width: 680px; }
.sec-text.text-wide .text-body { max-width: 960px; }
.sec-text .rich p, .sec-text .rich ul { max-width: none; }

/* Footer */
/* The hairline on the top edge keeps the footer apart from a call band above it in every palette (nacht-sand, kalk-moos, leinen-ziegel: accent and band colour are close there). */
.site-footer { background: var(--band); color: var(--band-text); padding: 64px 0 40px; font-size: 16px; border-top: 1px solid color-mix(in srgb, var(--band-text) 28%, transparent); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer .brand { margin-bottom: 16px; }
.site-footer address { font-style: normal; line-height: 1.8; overflow-wrap: anywhere; }
.site-footer .note { margin: 16px 0 0; max-width: 46ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.f-title { font-weight: 600; margin: 0 0 10px; }
.site-footer .legal { margin: 48px 0 0; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--band-text) 28%, transparent); font-size: 14px; }

/* Phones and narrow windows */
@media (max-width: 899px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0 16px; min-height: 68px; padding-top: 12px; padding-bottom: 12px; }
  .brand-name { font-size: 22px; }
  .brand-logo { height: 40px; }
  .site-nav { margin: 0; width: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 12px 0 8px; }
  .menu { flex-direction: column; gap: 0; }
  .menu a, .menu .entry { padding: 12px 0; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--surface-2); }
  .sub { display: block; position: static; box-shadow: none; border: 0; background: none; padding: 0 0 0 16px; min-width: 0; }
  .has-sub:hover > .sub { display: block; }
  .nav-button { width: 100%; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .menu-toggle[aria-expanded="true"] + .site-nav { display: flex; }
  .js .sub { display: none; }
  .js .entry[aria-expanded="true"] + .sub { display: block; }
}
@media (max-width: 759px) {
  .wrap { padding: 0 24px; }
  body { font-size: 16px; }
  .sec { padding: 64px 0; }
  .sec-textImage { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-photo { padding: 80px 0 72px; min-height: 0; }
  .hero-split .wrap, .ti-left .wrap, .ti-right .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ti-right .ti-media { order: 0; }
  .hero-split .img { aspect-ratio: 4 / 3; }
  .hero-center .hero-copy { margin-bottom: 36px; }
  .lead { font-size: 18px; }
  .actions .btn { flex: 1 1 100%; }
  .h2 { margin-bottom: 24px; }
  .page-head { padding: 48px 0 8px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .f-about { grid-column: 1 / -1; }
}

/* ---- Task 4: Vorteile, Angebote, Preise, Aufruf, Laufleiste ---- */
.btn.light { background: var(--surface); border-color: var(--surface); color: var(--text); }
.h3 { font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.1; margin: 0 0 8px; overflow-wrap: anywhere; }
.sec.tint { background: var(--surface-2); }
.sec-benefits > .wrap > .lead, .sec-offers > .wrap > .lead, .sec-prices > .wrap > .lead { margin: -8px 0 40px; }
.ck { flex: none; color: var(--accent); }

/* Vorteile */
.haken, .nummern, .b-cards { margin: 0; padding: 0; list-style: none; }
.haken { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 64px; max-width: 1000px; }
.haken li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
.haken .ck { margin-top: 2px; }
.haken .h3, .nummern .h3 { font-size: 21px; font-family: var(--font-body); font-weight: 600; margin-bottom: 4px; }
.b-text p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.nummern { counter-reset: n; max-width: 900px; border-top: 1px solid var(--text); }
.nummern li { counter-increment: n; display: grid; grid-template-columns: minmax(64px, 120px) minmax(0, 1fr); gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--text); }
.nummern li::before { content: counter(n); font-family: var(--font-head); font-weight: var(--head-weight); font-size: var(--display-2); line-height: 1; color: var(--accent); font-variant-numeric: var(--head-nums); }
.b-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.b-cards li { background: var(--surface); border-top: 6px solid var(--accent); padding: 28px 28px 32px; border-radius: 0 0 8px 8px; }

/* Angebote */
.o-grid { display: grid; gap: 40px 32px; }
.offers-three .o-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.offers-two .o-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.o-card .img { margin-bottom: 22px; }
.o-card p { color: var(--muted); max-width: 38ch; overflow-wrap: anywhere; }
.o-card .more { display: inline-block; }

/* Preise */
.tarife { display: grid; gap: 32px; align-items: start; }
.prices-two .tarife { grid-template-columns: repeat(2, minmax(0, 440px)); }
.prices-three .tarife { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tarif { background: var(--surface); border: 1px solid var(--field); border-radius: 8px; padding: 36px 36px 40px; position: relative; min-width: 0; }
.tarif.beliebt { border: 2px solid var(--accent); padding: 35px 35px 39px; }
.tarif .h3 { margin: 0; }
.tarif .btn { margin-top: 30px; }
.tarif ul + .btn { margin-top: 0; }
.marke { position: absolute; top: -15px; left: 33px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 4px; line-height: 1.4; }
.preis { font-family: var(--font-head); font-weight: 700; font-size: clamp(44px, 5.4vw, 68px); line-height: 1; margin: 18px 0 6px; overflow-wrap: anywhere; font-variant-numeric: lining-nums; }
.prices-three .preis { font-size: clamp(36px, 3.8vw, 52px); }
.preis small { font-family: var(--font-body); font-size: 17px; font-weight: 500; margin-left: 8px; }
.tarif .fein { color: var(--muted); font-size: 15px; margin: 0 0 22px; overflow-wrap: anywhere; }
.tarif .fein + .btn { margin-top: 8px; }
.tarif ul { margin: 22px 0 30px; padding: 22px 0 0; border-top: 1px solid currentColor; list-style: none; display: grid; gap: 10px; }
.tarif li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; overflow-wrap: anywhere; }
.tarif li .ck { margin-top: 3px; }
.hinweis { margin: 24px 0 0; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }

/* Aufruf */
.sec-cta { background: var(--accent); color: var(--accent-ink); padding: 96px 0 104px; }
.cta-title { font-size: var(--display-cta); margin-bottom: 36px; }
.cta-row { display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.cta-row .actions { margin: 0; }
.cta-text { font-size: 20px; margin: 0; max-width: 40ch; overflow-wrap: anywhere; }

/* Laufleiste */
.sec-ticker { background: var(--band); color: var(--band-text); padding: 22px 0; overflow: hidden; overflow: clip; }
.sec-ticker.lauf-logos { background: var(--surface); color: var(--text); }
.sec-ticker.lauf-logos :focus-visible { outline-color: var(--focus); }
.lauf-title { font-family: var(--font-body); font-size: 17px; font-weight: 600; margin: 0 0 14px; overflow-wrap: anywhere; }
.lauf-track { display: flex; width: max-content; min-width: 200%; animation: lauf 40s linear infinite; }
.lauf-track:hover, .lauf-track:focus-within { animation-play-state: paused; }
.lauf-list { display: flex; flex: 1 0 auto; justify-content: space-around; align-items: center; margin: 0; padding: 0; list-style: none; white-space: nowrap; font-family: var(--font-head); font-size: 26px; font-weight: var(--head-weight); text-transform: var(--head-case); line-height: 1; }
.lauf-list li { display: flex; align-items: center; }
.lauf-list li::after { content: ""; width: 6px; height: 6px; margin: 0 40px; border-radius: 50%; background: currentColor; }
.lauf-logos .lauf-list li::after { display: none; }
.lauf-logos .lauf-list li { margin-right: 64px; }
.lauf-item { display: inline-flex; align-items: center; text-decoration: none; }
.lauf-logo { height: 40px; width: auto; }
.lauf-item { min-width: 0; max-width: 100%; overflow-wrap: break-word; }
/* a name of text only is a block: its box is as wide as its band allows and a word that cannot fit breaks there, while a name that fits keeps its words whole (a flex box would size to its longest word and overflow) */
.lauf-item:not(:has(img)):not(:has(.img)) { display: block; }
.lauf-list li { min-width: 0; max-width: 100%; }
.lauf-still .img { width: 72px; margin-right: 12px; }
/* The still form: a wrapped row without the copy. It is the editor's, the reduced-motion form, and the form a keyboard-
   focused link makes the band take (the focused link is then on screen; moving on resumes the loop from its start). */
.lauf-still .lauf-track { animation: none; width: auto; min-width: 0; }
.lauf:has(a.lauf-item:focus-visible) .lauf-track { animation: none; width: auto; min-width: 0; }
.lauf-still .lauf-list { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; justify-content: center; row-gap: 14px; padding: 0 48px; white-space: normal; }
.lauf:has(a.lauf-item:focus-visible) .lauf-list { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; justify-content: center; row-gap: 14px; padding: 0 48px; white-space: normal; }
.lauf:has(a.lauf-item:focus-visible) .lauf-list[aria-hidden="true"] { display: none; }
@keyframes lauf { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .lauf-track { animation: none; width: auto; min-width: 0; }
  .lauf-list { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; justify-content: center; row-gap: 14px; padding: 0 48px; white-space: normal; }
  .lauf-list[aria-hidden="true"] { display: none; }
}

@media (max-width: 899px) {
  .b-cards, .offers-three .o-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prices-three .tarife { grid-template-columns: minmax(0, 560px); }
}
@media (max-width: 759px) {
  .haken, .b-cards, .offers-three .o-grid, .offers-two .o-grid, .prices-two .tarife, .prices-three .tarife { grid-template-columns: minmax(0, 1fr); }
  .haken { gap: 20px; }
  .tarif { padding: 30px 22px 28px; }
  .tarif .btn { width: 100%; }
  .nummern li { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 20px 0; }
  .sec-cta { padding: 64px 0 72px; }
  .cta-title { margin-bottom: 28px; }
  .cta-row .actions { width: 100%; }
  .lauf-list { font-size: 21px; }
  .lauf-list li::after { margin: 0 28px; }
  .lauf-still .lauf-list { padding: 0 24px; }
  .lauf:has(a.lauf-item:focus-visible) .lauf-list { padding: 0 24px; }
}

/* ---- Task 5: Aktuelles, Fragen, Team, Kontakt ---- */
.sec-team > .wrap > .lead { margin: -8px 0 40px; }
.sec-contact > .wrap > .lead { margin: -8px 0 40px; }

/* Aktuelles: the first tile leads, the others are a column of small rows beside it (n-rest-<k>: how many rows the lead spans) */
.n-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 56px; align-items: stretch; }
.n-tile { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px 0; border-top: 1px solid var(--text); color: inherit; text-decoration: none; min-width: 0; }
.n-tile .img { margin: 0; }
.n-tile:not(.n-lead) .img.ph span { left: 10px; right: 10px; bottom: 8px; font-size: 14px; }
.n-text { min-width: 0; }
.n-datum { margin: 0 0 4px; font-size: 15px; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.n-title { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
a.n-tile:hover .n-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.n-lead { grid-column: 1; grid-row: 1 / span 1; display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding: 0; border-top: 0; }
.n-lead .img { flex: 1 1 auto; aspect-ratio: auto; min-height: 280px; }
.n-lead .img img { position: absolute; inset: 0; }
.n-lead .n-title { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.05; }
.n-rest-2 .n-lead { grid-row: 1 / span 2; } .n-rest-3 .n-lead { grid-row: 1 / span 3; } .n-rest-4 .n-lead { grid-row: 1 / span 4; }
.n-rest-5 .n-lead { grid-row: 1 / span 5; } .n-rest-6 .n-lead { grid-row: 1 / span 6; } .n-rest-7 .n-lead { grid-row: 1 / span 7; }
.n-rest-0 .n-grid { grid-template-columns: minmax(0, 1fr); }
.n-rest-0 .n-lead .img { flex: none; aspect-ratio: 21 / 9; min-height: 0; }
.sec-news .actions { margin-top: 40px; }

/* Fragen */
.fragen { max-width: 820px; border-top: 1px solid var(--text); }
.fragen details { border-bottom: 1px solid var(--text); }
.fragen summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 20px; font-weight: 600; }
.fragen summary::-webkit-details-marker { display: none; }
.f-frage { min-width: 0; overflow-wrap: anywhere; }
.fragen summary i { flex: none; width: 18px; height: 18px; position: relative; }
.fragen summary i::before, .fragen summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--accent); }
.fragen summary i::after { transform: rotate(90deg); }
.fragen details[open] summary i::after { display: none; }
.f-antwort { margin: -6px 0 24px; max-width: 62ch; color: var(--muted); overflow-wrap: anywhere; }
.f-antwort p { margin: 0 0 12px; max-width: none; }

/* Team: every second card stands a little lower */
.t-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; }
.t-card { min-width: 0; }
.t-card .img { margin-bottom: 18px; }
.t-card .h3 { margin: 0 0 2px; }
.t-role { margin: 0 0 8px; color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
.t-text { margin: 0; color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }
@media (min-width: 900px) { .t-card:nth-child(even) { margin-top: 56px; } }

/* Kontakt */
.k-raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.k-raster.k-solo { grid-template-columns: minmax(0, 640px); }
.contact-hours .k-raster.k-solo { grid-template-columns: minmax(0, 1fr); }
.contact-hours .k-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.k-main, .k-aside, .k-zeiten { min-width: 0; }
.k-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.feld { display: grid; gap: 6px; margin-bottom: 18px; min-width: 0; }
.feld label { font-weight: 600; font-size: 15px; }
.feld input, .feld textarea { width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--field); border-radius: 6px; padding: 12px 14px; }
.feld textarea { min-height: 132px; resize: vertical; }
.feld.hat-fehler input, .feld.hat-fehler textarea { border: 2px solid var(--error); padding: 11px 13px; }
.k-fehler { margin: 0; color: var(--error); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.k-fehler.k-allgemein { margin: 0 0 16px; }
.k-recht { margin: 18px 0 0; max-width: 46ch; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.k-recht a { color: inherit; }
.k-form fieldset:disabled .btn { opacity: .55; cursor: not-allowed; }
.k-danke { margin: 0; padding: 28px 32px; background: var(--surface); border-left: 6px solid var(--accent); border-radius: 0 8px 8px 0; font-size: 22px; line-height: 1.4; overflow-wrap: anywhere; }
.k-danke.k-edit { margin-top: 20px; }
.k-zeiten .h3 { margin: 0 0 12px; }
.zeiten { margin: 0 0 28px; display: grid; grid-template-columns: fit-content(50%) minmax(0, 1fr); gap: 6px 28px; }
.zeiten dt { font-weight: 600; overflow-wrap: anywhere; }
.zeiten dd { margin: 0; overflow-wrap: anywhere; } /* an address breaks at the <wbr> after @ and dots first */
.k-karte { background: var(--surface); border: 1px solid var(--field); border-radius: 8px; aspect-ratio: 16 / 10; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; min-width: 0; }
.k-karte-js { display: grid; justify-items: center; gap: 12px; min-width: 0; }
.k-karte-satz { font-size: 15px; color: var(--muted); max-width: 30ch; overflow-wrap: anywhere; }
.k-karte-link { color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
/* The button shows only once the script that can load the map has set data-map-ready on the root element (form.js); until
   then, and without a script, the page offers the link. */
.k-karte-js { display: none; }
html[data-map-ready] .k-karte-js { display: grid; }
html[data-map-ready] .k-karte-link { display: none; }

@media (max-width: 899px) {
  .n-grid { grid-template-columns: minmax(0, 1fr); }
  .n-lead, .n-rest-2 .n-lead, .n-rest-3 .n-lead, .n-rest-4 .n-lead, .n-rest-5 .n-lead, .n-rest-6 .n-lead, .n-rest-7 .n-lead { grid-row: auto; margin-bottom: 20px; }
  .n-lead .img { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .t-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .k-raster, .k-raster.k-solo { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 759px) {
  .n-tile { grid-template-columns: minmax(0, 96px) minmax(0, 1fr); gap: 16px; }
  .n-tile:not(.n-lead) .img.ph span { display: none; }
  .t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .t-text { font-size: 15px; }
  .fragen summary { font-size: 18px; }
  .contact-hours .k-aside { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .k-danke { padding: 22px 20px; font-size: 20px; }
}

/* ---- fix round 1 ---- */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* A section whose picture is not drawn closes up */
.hero-split.hero-solo .wrap { grid-template-columns: minmax(0, 1fr); }
.sec-textImage.ti-solo .wrap { grid-template-columns: minmax(0, 1fr); }
.n-tile.n-bare { grid-template-columns: minmax(0, 1fr); }
/* The map once the visitor has asked for it: the frame fills the placeholder. */
.k-karte.k-karte-offen { display: block; padding: 0; overflow: hidden; }
.k-karte-offen iframe { display: block; width: 100%; height: 100%; border: 0; }
