/* ============================================================================
 * Nur Ortsseiten (body.ort): Bild-Bereich mit Scroll-Effekt und weisser Inhaltsbereich.
 * Hero, Ablauf, Kontakt und Footer kommen aus theme.css, home.css und anwaelte.css.
 * ========================================================================== */

/* ---------- Bild-Bereich: waechst beim Scrollen auf volle Breite, Hintergrund Schwarz -> Weiss ----------
 * Alles haengt an EINER Zahl --p (0 = Anfang, 1 = Bild voll breit, Hintergrund weiss).
 *  - Browser mit Scroll-gesteuerten Animationen: --p wird per CSS aus der Scroll-Position berechnet (kein JavaScript noetig).
 *  - Andere Browser: ort.js setzt --p beim Scrollen (passive Listener, requestAnimationFrame).
 * Animiert werden nur clip-path und Hintergrundfarbe, kein Layout (Breite/Hoehe bleiben konstant, kein Springen). */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }

body.ort .scroll-track {
    --p: 0;
    --side0: 32px;      /* seitlicher Abstand am Anfang */
    --radius0: 24px;    /* Eckenradius am Anfang */
    position: relative;
    height: 150svh;     /* Scroll-Strecke: das Bild bleibt nur ca. einen halben Bildschirm lang stehen (sticky); vorher 250svh */
    background: var(--ink-blue);
}
body.ort .scroll-stage {
    --h: min(calc(100svh - 7rem), 56.25vw);                  /* Bildhoehe, Desktop ca. 16:9 */
    --top: max(5rem, calc((100svh - var(--h)) / 2));         /* Bild beginnt unter dem Menue, sonst mittig */
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    background: color-mix(in srgb, #fff calc(var(--p) * 100%), var(--ink-blue));
}
body.ort .scroll-media {
    position: absolute;
    left: 0;
    right: 0;
    height: var(--h);
    top: var(--top);
    clip-path: inset(0 calc((1 - var(--p)) * var(--side0)) 0 calc((1 - var(--p)) * var(--side0)) round calc((1 - var(--p)) * var(--radius0)));
}
body.ort .scroll-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
}
/* leichte Abdunklung oben, damit die weisse Menueschrift auch ueber hellen Fotos lesbar bleibt */
body.ort .scroll-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(var(--ink-blue-rgb), 0.4), rgba(var(--ink-blue-rgb), 0) 28%);
}
/* Bildnachweis: klein unten rechts im Bild (rechts mit Abstand, damit er auch bei seitlichem Rand nicht abgeschnitten wird) */
body.ort .scroll-credit {
    position: absolute;
    right: calc(var(--side0) + 1rem);
    bottom: 0.75rem;
    z-index: 1;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(var(--ink-blue-rgb), 0.7);
    pointer-events: none;
}
/* unsichtbarer Streifen unter dem Menue: ort.js stellt die Menuefarbe passend zum Hintergrund ein */
body.ort .scroll-hint { position: absolute; left: 0; right: 0; top: 0; height: 5rem; pointer-events: none; }
/* weisser Bereich unter dem Bild: wenn er beim Weiterscrollen unter dem Menue durchlaeuft, wird das Menue schwarz */
body.ort .scroll-hint-end { position: absolute; left: 0; right: 0; top: calc(var(--top) + var(--h)); bottom: 0; pointer-events: none; }

@media (max-width: 767px) {
    body.ort .scroll-track { --side0: 16px; --radius0: 20px; }
    body.ort .scroll-stage { --h: min(calc(100svh - 7rem), 125vw); } /* mobil hoeher, ca. 4:5 */
}

/* Browser mit Scroll-gesteuerten Animationen: --p aus der Scroll-Position.
 * Start, wenn der Bereich oben am Fenster ankommt (cover 100svh), Ende, wenn sein unteres Ende unten im Fenster ankommt. */
@keyframes ort-grow { from { --p: 0; } to { --p: 1; } }
@supports (animation-timeline: view()) {
    body.ort .scroll-track {
        animation-name: ort-grow;
        animation-duration: 1ms;
        animation-timing-function: linear;
        animation-fill-mode: both;
        animation-timeline: view(block);
        animation-range: cover 100svh cover calc(100% - 100svh);
    }
}

/* Reduzierte Bewegung: kein Scroll-Effekt. Bild steht voll breit, der Hintergrundwechsel ist ein harter Schnitt. */
@media (prefers-reduced-motion: reduce) {
    body.ort .scroll-track { --p: 1; height: auto; animation: none; }
    body.ort .scroll-stage { --h: min(70svh, 56.25vw); --top: 0px; position: relative; height: auto; background: #fff; }
    body.ort .scroll-media { position: relative; }
    body.ort .scroll-hint, body.ort .scroll-hint-end { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
    body.ort .scroll-stage { --h: min(70svh, 125vw); }
}

/* ---------- Weisser Inhaltsbereich ohne Trennlinien ---------- */
body.ort .ort-section { padding: clamp(3rem, 7vw, 6.5rem) 0; }
body.ort #einleitung { padding-top: clamp(4rem, 9vw, 8rem); } /* nach dem Bild etwas mehr Luft */
body.ort .ort-lead {
    max-width: 40rem;
    margin-top: 1.25rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--muted-on-light);
}
body.ort .ort-points {
    list-style: none;
    margin: clamp(2rem, 4vw, 3.5rem) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.75rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem);
}
@media (max-width: 767px) { body.ort .ort-points { grid-template-columns: minmax(0, 1fr); } }
body.ort .ort-point h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 600; color: var(--ink); }
body.ort .ort-point p { margin-top: 0.55rem; font-size: 1.0625rem; line-height: 1.7; color: var(--muted-on-light); }
body.ort .ort-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Leistungen als Zeilenliste: Label und Ueberschrift links, Leistungen mit Pfeil-Kreis rechts ---------- */
body.ort .svc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
body.ort .svc-head { position: sticky; top: 7rem; }
body.ort .svc-label {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem;
    font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
}
body.ort .svc-line { display: inline-block; width: 2.25rem; height: 1px; background: currentColor; }
body.ort .svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(var(--ink-blue-rgb), 0.16); }
body.ort .svc-item { padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid rgba(var(--ink-blue-rgb), 0.16); }
body.ort .svc-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
body.ort .svc-row h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 600; line-height: 1.2; color: var(--ink); overflow-wrap: break-word; min-width: 0; }
body.ort .svc-arrow {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem; border-radius: 9999px; border: 1px solid rgba(var(--ink-blue-rgb), 0.35); color: var(--ink);
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
body.ort .svc-item:hover .svc-arrow { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
body.ort .svc-item p { margin-top: 0.85rem; max-width: 36rem; font-size: 1.0625rem; line-height: 1.7; color: var(--muted-on-light); }
@media (max-width: 899px) {
    body.ort .svc-grid { grid-template-columns: minmax(0, 1fr); }
    body.ort .svc-head { position: static; }
    body.ort .svc-arrow { width: 2.5rem; height: 2.5rem; }
}

/* ---------- Leistungen als Tabelle (Frankfurt): cremefarbener Grund, grosse Ueberschrift, Zeilen mit Icon, Hover fuellt die Zeile ---------- */
body.ort.bw .sv-section { background: var(--cream, #f4f0e8); }
body.ort .sv-head { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
body.ort .sv-h2 { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); column-gap: clamp(1rem, 3vw, 2.5rem); align-items: start; margin: 0; }
body.ort .sv-eyebrow { padding-top: 0.55rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5; color: var(--ink); }
body.ort .sv-title { font-size: clamp(2.25rem, 0.6rem + 7vw, 5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; text-transform: uppercase; color: var(--ink); min-width: 0; }
body.ort .sv-intro { max-width: 36rem; font-size: 1.0625rem; line-height: 1.7; color: var(--muted-on-light); }
@media (min-width: 1200px) {
    body.ort .sv-head { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
    body.ort .sv-intro { padding-top: 0.6rem; }
}
body.ort .sv-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
body.ort .sv-item { border-bottom: 1px solid var(--ink); }
body.ort .sv-row {
    position: relative; isolation: isolate; display: grid; align-items: center; color: var(--ink); text-decoration: none;
    grid-template-columns: 3.5rem minmax(0, 1.15fr) minmax(6.5rem, 9.5rem) minmax(0, 1fr) 2.75rem;
    column-gap: clamp(1rem, 2.5vw, 2.5rem); padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}
/* Fuellung: ragt seitlich ueber den Inhalt hinaus, damit Text und Linien beim Hover nicht springen */
body.ort .sv-row::before {
    content: ""; position: absolute; z-index: -1; top: -1px; bottom: -1px; left: -1.5rem; right: -1.5rem;
    background: var(--accent-light); opacity: 0; transition: opacity .3s ease;
}
body.ort .sv-num { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; transition: transform .3s ease; }
body.ort .sv-name { margin: 0; font-size: clamp(1.45rem, 1.1rem + 2.2vw, 3.1rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; color: var(--ink); overflow-wrap: break-word; hyphens: manual; min-width: 0; transition: transform .3s ease; }
body.ort .sv-ico { display: block; width: 100%; height: auto; max-width: 8.5rem; color: var(--ink); justify-self: center; }
body.ort .sv-ico .f { fill: var(--accent-light); transition: fill .3s ease; }
body.ort .sv-ico .f2 { fill: #fff; transition: fill .3s ease; }
body.ort .sv-text { margin: 0; max-width: 28rem; font-size: 1rem; line-height: 1.7; color: var(--muted-on-light); transition: color .3s ease; }
body.ort .sv-arrow { display: inline-flex; align-items: center; justify-content: center; justify-self: end; width: 2.75rem; height: 2.75rem; color: var(--ink); }
body.ort .sv-arrow svg { width: 1.5rem; height: 1.5rem; transition: transform .3s ease; }
body.ort .sv-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
body.ort .sv-row:focus-visible::before { opacity: 1; }
body.ort .sv-row:focus-visible .sv-text { color: var(--ink); }
body.ort .sv-row:focus-visible .sv-ico .f { fill: #fff; }
body.ort .sv-row:focus-visible .sv-arrow svg { transform: translate(4px, -4px); }
@media (hover: hover) {
    body.ort .sv-row:hover::before { opacity: 1; }
    body.ort .sv-row:hover .sv-text { color: var(--ink); }
    body.ort .sv-row:hover .sv-ico .f { fill: #fff; }
    body.ort .sv-row:hover .sv-arrow svg { transform: translate(5px, -5px); }
    body.ort .sv-row:hover .sv-name { transform: translateX(0.5rem); }
    body.ort .sv-row:hover .sv-num { transform: translateX(0.5rem); }
}
@media (max-width: 1023px) {
    body.ort .sv-row { grid-template-columns: 2.75rem minmax(0, 1fr) minmax(5.5rem, 7.5rem) 2.5rem; grid-template-areas: "num name ico arrow" ". text text text"; row-gap: 0.9rem; }
    body.ort .sv-num { grid-area: num; }
    body.ort .sv-name { grid-area: name; }
    body.ort .sv-ico { grid-area: ico; max-width: 6.5rem; }
    body.ort .sv-arrow { grid-area: arrow; }
    body.ort .sv-text { grid-area: text; max-width: 40rem; }
}
@media (max-width: 599px) {
    body.ort .sv-h2 { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; }
    body.ort .sv-eyebrow { padding-top: 0; }
    body.ort .sv-row { grid-template-columns: minmax(0, 1fr) 4.5rem 2rem; grid-template-areas: "num num num" "name ico arrow" "text text text"; column-gap: 0.75rem; row-gap: 0.6rem; }
    body.ort .sv-ico { max-width: 4.5rem; }
    body.ort .sv-row::before { left: -1rem; right: -1rem; }
}
@media (prefers-reduced-motion: reduce) {
    body.ort .sv-row::before, body.ort .sv-ico .f, body.ort .sv-ico .f2, body.ort .sv-arrow svg, body.ort .sv-name, body.ort .sv-num, body.ort .sv-text { transition: none; }
}

/* ---------- Dunkle Spalten (Vergleich): zentrierte Ueberschrift, 4 Spalten, duenne Trennlinien ---------- */
body.ort .ort-lead-center { max-width: 64rem; margin-left: auto; margin-right: auto; text-align: center; text-wrap: balance; }
body.ort .theme-dark .ort-lead { color: var(--muted-on-dark); }
body.ort .cols-list {
    list-style: none; margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.ort .cols-item { padding: 0.5rem clamp(1.25rem, 2.5vw, 2.5rem); text-align: center; border-left: 1px solid rgba(255, 255, 255, 0.18); }
body.ort .cols-item:first-child { border-left: 0; }
body.ort .cols-item h3 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); }
@media (min-width: 1024px) { body.ort .cols-item h3 { min-height: 2.8em; line-height: 1.4; } } /* gleiche Hoehe, damit die Texte buendig starten */
body.ort .svc-head h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); }
body.ort .cols-item p { margin-top: 1.1rem; font-size: 1rem; line-height: 1.7; color: var(--muted-on-dark); }
@media (max-width: 1023px) {
    body.ort .cols-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
    body.ort .cols-item:nth-child(odd) { border-left: 0; }
}
@media (max-width: 599px) {
    body.ort .cols-list { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    body.ort .cols-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); padding: 1.75rem 0.5rem; }
    body.ort .cols-item:first-child { border-top: 0; }
}
/* Einzugsgebiet auf schwarzem Grund (Hofheim) */
body.ort .theme-dark .webdesign-text p { color: var(--muted-on-dark); }
body.ort .theme-dark .ort-links a { color: var(--white); }
body.ort .ort-links a:hover { text-decoration-thickness: 2px; color: var(--accent-text); }
body.ort #referenzen .todo-inline { display: block; max-width: 40rem; margin-top: 1.5rem; }

/* Weitere Angebote: Karten sind Links */
body.ort a.service-card { color: inherit; text-decoration: none; }
body.ort a.service-card:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

/* ---------- Haeufige Fragen ---------- */
body.ort .faq-list { max-width: 52rem; margin: clamp(2rem, 4vw, 3.5rem) auto 0; display: grid; gap: 0.75rem; }
body.ort .faq-item { background: #f3f3f3; border-radius: 16px; padding: 0 1.5rem; }
body.ort .faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    cursor: pointer;
    list-style: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
}
body.ort .faq-item summary::-webkit-details-marker { display: none; }
body.ort .faq-item summary::after { content: "+"; flex-shrink: 0; font-size: 1.5rem; line-height: 1; }
body.ort .faq-item[open] summary::after { content: "\2013"; }
body.ort .faq-item summary:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; border-radius: 8px; }
body.ort .faq-item p { padding-bottom: 1.25rem; font-size: 1.0625rem; line-height: 1.7; color: var(--muted-on-light); }

/* ---------- Zitat statt Preisabschnitt: gross, zentriert ---------- */
body.ort #preise.price-quote { padding: clamp(5rem, 11vw, 10rem) 0; }
body.ort .price-quote blockquote { max-width: 62rem; margin: 0 auto; text-align: center; }
body.ort .price-quote blockquote p {
    font-size: clamp(2rem, 1rem + 4.2vw, 4.75rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em;
    color: var(--white); text-wrap: balance; overflow-wrap: break-word; hyphens: auto;
}

/* ---------- FAQ dunkel: Titel links, Karten mit rundem Plus-Knopf rechts ---------- */
body.ort #faq.faq-dark { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: clamp(4rem, 8vw, 7rem) 0; }
body.ort .faqd-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
body.ort .faqd-head { position: sticky; top: 7rem; }
body.ort .faqd-pill { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
body.ort .faqd-tag {
    padding: 0.4rem 1rem; border-radius: 9999px; font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28); background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
}
body.ort .faqd-line { position: relative; display: inline-block; width: 4.5rem; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)); }
body.ort .faqd-line::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 9999px; background: #fff; }
body.ort #faq.faq-dark h2 { color: var(--white); }
body.ort #faq.faq-dark .faq-list { max-width: none; margin: 0; gap: 1rem; }
body.ort #faq.faq-dark .faq-item {
    padding: 0 1.25rem 0 1.75rem; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}
body.ort #faq.faq-dark .faq-item summary { padding: 1.1rem 0; font-weight: 500; color: var(--white); }
body.ort #faq.faq-dark .faq-item summary::after,
body.ort #faq.faq-dark .faq-item[open] summary::after {
    content: "+"; display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 2.75rem; height: 2.75rem; border-radius: 9999px; font-size: 1.5rem; font-weight: 400; color: var(--ink-blue);
    background: radial-gradient(circle at 35% 30%, #E6D09A, #C9A55C 60%, #8A6A22);
    box-shadow: 0 0 18px rgba(201, 165, 92, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
body.ort #faq.faq-dark .faq-item[open] summary::after { content: "\2013"; }
body.ort #faq.faq-dark .faq-item p { color: var(--muted-on-dark); font-size: 1rem; padding-right: 3.5rem; }
body.ort #faq.faq-dark .faq-item summary:focus-visible { outline-color: #fff; }
@media (max-width: 899px) {
    body.ort .faqd-grid { grid-template-columns: minmax(0, 1fr); }
    body.ort .faqd-head { position: static; }
    body.ort #faq.faq-dark .faq-item { padding-left: 1.25rem; }
    body.ort #faq.faq-dark .faq-item p { padding-right: 0; }
}

/* ---------- Kontakt: schwarzer Abschnitt direkt nach dem weissen Inhalt ---------- */
body.ort #kontakt.contact { padding-top: clamp(1.5rem, 4vw, 4rem); }
body.ort .ort-last { padding-bottom: clamp(4rem, 8vw, 7rem); }

/* ---------- Projekte: Buehne, Pfeile, Titel und Punkte kommen aus home.css (.proj-*, wie Startseite und Coaching-Seite).
 * Hier nur: jedes Projekt zeigt mehrere Bilder, die sich uebereinanderlegen und automatisch wechseln (ort.js). ---------- */
body.ort .proj-slide { position: relative; display: block; }
body.ort .ref-shot { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
body.ort .ref-shot.is-active { opacity: 1; }
body.ort .ref-shot img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
body.ort .proj-caption a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
body.ort .proj-caption a:hover { text-decoration-thickness: 2px; }
@media (prefers-reduced-motion: reduce) { body.ort .ref-shot { transition: none; } }

/* ---------- Bento-Grid "Was meine Websites auszeichnet" (Frankfurt): dunkle Karten auf weissem Grund ----------
 * Desktop 3 Spalten mit unterschiedlich grossen Karten, Tablet 2 Spalten, Mobil 1 Spalte. Nur Weiss- und Grautoene.
 * Ohne JavaScript (oder bei reduzierter Bewegung) steht alles sofort im Endzustand, die Animationen sind nur Zierde. */
body.ort .bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 640px) {
    body.ort .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.ort .bento-code, body.ort .bento-speed { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
    body.ort .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
    body.ort .bento-code { grid-column: 1 / 3; grid-row: 1 / 3; }
    body.ort .bento-lang { grid-column: 3; grid-row: 1 / 3; }
    body.ort .bento-speed { grid-column: 1 / 3; grid-row: 3; }
    body.ort .bento-privacy { grid-column: 3; grid-row: 3; }
    body.ort .bento-a11y { grid-column: 1; grid-row: 4; }
    body.ort .bento-ext { grid-column: 2 / 4; grid-row: 4; }
}
body.ort .bento-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    background: var(--ink-blue);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.6s ease;
}
body.ort .bento-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.3); }
body.ort .bento-icon { margin-bottom: 1.25rem; color: rgba(255, 255, 255, 0.85); }
body.ort .bento-card h3 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem); font-weight: 600; line-height: 1.25; color: #fff; }
body.ort .bento-card p { margin-top: 0.6rem; font-size: 1.0625rem; line-height: 1.65; color: #c4c4c4; }
body.ort .bento-card .bento-note { margin-top: 1rem; font-size: 0.8125rem; color: #a8a8a8; }

/* Einblenden beim Einscrollen (nur mit JavaScript, siehe ort.js) */
body.ort .bento.js-ready .bento-card { opacity: 0; transform: translateY(24px); }
body.ort .bento.js-ready .bento-card.is-in { opacity: 1; transform: none; }
body.ort .bento.js-ready .bento-card.is-in:hover { transform: translateY(-4px); }

/* Mini-Demo: Messwert-Ringe */
body.ort .rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 1rem; margin-top: 1.5rem; }
@media (max-width: 639px) { body.ort .rings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.ort .ring { display: grid; justify-items: center; gap: 0.6rem; }
body.ort .ring-dial { position: relative; width: 100%; max-width: 6.5rem; aspect-ratio: 1; }
body.ort .ring-dial svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
body.ort .ring-bg, body.ort .ring-fg { fill: none; stroke-width: 3; }
body.ort .ring-bg { stroke: rgba(255, 255, 255, 0.14); }
body.ort .ring-fg { stroke: #fff; stroke-linecap: round; }
body.ort .ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 600; color: #fff; }
body.ort .ring-label { font-size: 0.8125rem; line-height: 1.3; text-align: center; color: #c4c4c4; }

/* Mini-Demo: Sprachschalter */
body.ort .lang-switch { display: inline-flex; align-self: flex-start; margin-top: 1rem; padding: 0.2rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; }
body.ort .lang-switch[hidden] { display: none; }
body.ort .lang-switch button { min-width: 3rem; min-height: 2.75rem; padding: 0.4rem 0.9rem; border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
body.ort .lang-switch button[aria-pressed="true"] { background: #fff; color: var(--ink-blue); }
body.ort .lang-switch button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Mini-Demo: Code-Fenster */
body.ort .code-window { margin-top: 1.5rem; overflow: hidden; background: var(--ink-blue); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; }
body.ort .bento-code .code-window { flex: 1; }
body.ort .code-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.85rem; background: #1c1c1c; }
body.ort .code-bar span { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #5a5a5a; }
body.ort .code-bar em { margin-left: auto; font-style: normal; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: #a8a8a8; }
body.ort .code-body { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; white-space: pre; font: 0.85rem/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #ececec; }
body.ort .bento-code .code-body { font-size: clamp(0.85rem, 0.7rem + 0.5vw, 1rem); padding: 1.25rem 1.4rem; }
body.ort .code-window-sm .code-body { font-size: 0.75rem; }
body.ort .code-line { display: block; }
body.ort .bento.js-ready .code-body:not(.static) .code-line { opacity: 0; transform: translateX(-8px); transition: opacity 0.25s ease, transform 0.25s ease; }
body.ort .bento.js-ready .code-body:not(.static) .code-line.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    body.ort .bento-card, body.ort .lang-switch button, body.ort .code-line { transition: none !important; }
    body.ort .bento-card:hover { transform: none; }
}

/* ---------- "Funktionen fuer lokale Betriebe" (Hofheim): schwarze Sektion, links Liste 01-06, rechts Smartphone mit Mini-Demo ----------
 * Desktop: zwei Spalten, das Smartphone ist sticky. Mobil (< 768px): Akkordeon, das Smartphone wandert in den geoeffneten Punkt (ort.js).
 * Ohne JavaScript stehen alle Texte offen und das erste Beispiel ist sichtbar. Alle Demo-Daten sind Beispiele und so gekennzeichnet. */
body.ort .lab-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 768px) {
    body.ort .lab-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 6rem); }
    body.ort .lab-phone { position: sticky; top: 6.5rem; }
}
body.ort .lab-lead { max-width: 34rem; margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.7; color: var(--muted-on-dark); }
body.ort .lab-list { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; }
body.ort .lab-head { margin: 0; }
body.ort .lab-btn {
    display: flex; align-items: baseline; gap: 1.25rem; width: 100%;
    padding: 1rem 0 1rem 1.25rem;
    background: none; border: 0; border-left: 2px solid transparent;
    color: #8a8a8a; text-align: left; cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease;
}
body.ort .lab-btn:hover { color: var(--accent-light); }
body.ort .lab-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
body.ort .lab-num { flex: 0 0 3.2rem; font-family: 'Poppins', sans-serif; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
body.ort .lab-title { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); font-weight: 600; line-height: 1.25; }
body.ort .lab-item.is-active .lab-btn { color: #fff; border-left-color: #fff; }
body.ort .lab-panel { padding: 0 0 1.25rem calc(1.25rem + 3.2rem + 1.25rem + 2px); }
body.ort .lab-panel p { max-width: 32rem; font-size: 1.0625rem; line-height: 1.7; color: #d4d4d4; }
body.ort .lab.js-ready .lab-item:not(.is-active) .lab-panel { display: none; }
body.ort .lab-slot { padding-top: 0; }

/* Smartphone-Rahmen mit fester Hoehe (kein Layout-Shift beim Wechsel der Demos) */
body.ort .lab-phone {
    position: relative; display: flex; margin: 0 auto;
    width: min(100%, 21rem); height: 41rem; padding: 0.9rem;
    background: var(--ink-blue); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 3rem;
    box-shadow: 0 30px 80px rgba(var(--ink-blue-rgb), 0.6);
}
@media (min-width: 768px) { body.ort .lab-phone { margin-right: 0; } }
body.ort .lab-notch { position: absolute; top: 0.9rem; left: 50%; z-index: 2; width: 34%; height: 1.2rem; transform: translateX(-50%); background: var(--ink-blue); border-radius: 0 0 14px 14px; }
body.ort .lab-screen { position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--ink-blue); border-radius: 2.2rem; }
body.ort .lab-demo {
    position: absolute; inset: 0; display: flex; flex-direction: column; gap: 0.75rem; overflow: hidden;
    padding: 2.6rem 1.1rem 1.1rem;
    opacity: 0; visibility: hidden;
    color: #e6e6e6;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
body.ort .lab-demo.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
body.ort .lab-tag { align-self: flex-start; padding: 0.15rem 0.6rem; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #d4d4d4; }
@media (max-width: 767px) {
    body.ort .lab-phone { height: 36rem; margin-top: 0.75rem; }
    body.ort .lab-panel { padding-left: 1.25rem; }
}

/* Demo 1: Karte */
body.ort .map-ph { flex: 1; min-height: 0; overflow: hidden; border-radius: 16px; }
body.ort .map-ph svg { display: block; width: 100%; height: 100%; }
body.ort .map-addr { font-size: 0.9rem; color: #d4d4d4; }
body.ort .map-btn { padding: 0.8rem 1rem; border: 0; border-radius: 999px; background: #fff; color: var(--ink-blue); font-size: 0.95rem; font-weight: 600; cursor: pointer; }
body.ort .map-btn:hover { background: var(--accent); color: var(--on-accent); }
body.ort .map-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
body.ort .map-note { font-size: 0.85rem; line-height: 1.5; color: #e6e6e6; }
body.ort .map-note span { color: #b0b0b0; }

/* Demo 2: Oeffnungszeiten */
body.ort .hours-status { font-family: 'Poppins', sans-serif; font-size: 1.3rem; font-weight: 600; color: #fff; }
body.ort .hours-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
body.ort .hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.75rem; border-radius: 10px; font-size: 0.9rem; color: #d4d4d4; }
body.ort .hours-list li.is-today { background: #fff; color: var(--ink-blue); font-weight: 600; }
body.ort .hours-note { margin-top: auto; padding: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; font-size: 0.8rem; line-height: 1.5; color: #d4d4d4; }
body.ort .hours-note strong { color: #fff; }

/* Demo 3: Direkt anrufen */
body.ort .call-name { font-family: 'Poppins', sans-serif; font-size: 1.2rem; font-weight: 600; color: #fff; }
body.ort .call-btns { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
body.ort .call-btn { display: flex; align-items: center; gap: 0.9rem; padding: 1.15rem 1.2rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 18px; background: #1c1c1c; font-size: 1.1rem; font-weight: 600; color: #fff; }
body.ort .call-btn:first-child { background: #fff; border-color: #fff; color: var(--ink-blue); }

/* Demo 4: strukturierte Daten */
body.ort .facts-head { margin-top: 0.25rem; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: #b0b0b0; }
body.ort .facts-head-2 { margin-top: auto; }
body.ort .lab-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
body.ort .lab-facts li { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.85rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; background: var(--ink-blue); color: #fff; font-size: 0.9rem; line-height: 1.35; }
body.ort .lab-facts svg { flex: 0 0 auto; color: #d4d4d4; }
body.ort .lab-facts em { display: block; font-style: normal; font-size: 0.72rem; letter-spacing: 0.04em; color: #b0b0b0; }
body.ort .lab.js-ready .lab-demo[data-demo="3"] .fact { opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.3s ease; }
body.ort .lab.js-ready .lab-demo[data-demo="3"] .fact.on { opacity: 1; transform: none; }
body.ort .serp { padding: 0.85rem 0.95rem; border-radius: 14px; background: #fff; color: #202124; }
body.ort .serp-url { font-size: 0.75rem; color: #4d5156; }
body.ort .serp-title { margin-top: 0.15rem; font-size: 1.05rem; font-weight: 600; text-decoration: underline; color: var(--ink-blue); }
body.ort .serp-desc { margin-top: 0.25rem; font-size: 0.8rem; line-height: 1.45; color: #3c4043; }

/* Demo 5: Seitenbaum */
body.ort .tree { display: block; width: 100%; height: auto; margin-top: 1.5rem; }

/* Demo 6: Nachricht */
body.ort .chat { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.75rem; }
body.ort .bubble { max-width: 86%; padding: 0.8rem 1rem; font-size: 0.95rem; line-height: 1.45; }
body.ort .bubble.in { align-self: flex-start; background: #1f1f1f; color: #f0f0f0; border-radius: 18px 18px 18px 4px; }
body.ort .bubble.out { align-self: flex-end; background: #fff; color: var(--ink-blue); border-radius: 18px 18px 4px 18px; }

@media (prefers-reduced-motion: reduce) {
    body.ort .lab-demo, body.ort .lab-btn, body.ort .lab .code-line { transition: none !important; }
}

/* Hero-Headline mit laenger erster Zeile (z. B. "Webdesigner für Bad Homburg"): etwas kleiner, damit sie auf dem Desktop in zwei Zeilen bleibt */
body.ort .anw-title.anw-title-sm { font-size: clamp(1.75rem, 4vw, 3.6rem); }

/* Links in Kartentexten (z. B. Branchenkarten) */
body.ort .service-card p a, body.ort .ort-point p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
body.ort .service-card p a:hover, body.ort .ort-point p a:hover { text-decoration-thickness: 2px; }
