/* HNO Hietzing, Dr. Lejla Kogler
   Richtung: "The printed annual" (tasteskill, seed 272671967). Farben aus der Ordination selbst:
   Ultramarin der Wände, Eiche der Paneele, Dunkelblau der Kasacks. */

@font-face { font-family: 'Gambarino'; src: url('assets/fonts/gambarino-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('assets/fonts/general-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('assets/fonts/general-sans-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --bg: #f1f1ee;          /* Papier: weißer Marmor, Wände */
  --surface: #e4e4df;     /* eine Tonstufe tiefer */
  --ink: #111433;         /* Dunkelblau-Schwarz */
  --muted: #474a63;
  --accent: #2631a6;      /* Ultramarin der Wartezimmerwand */
  --accent-ink: #ffffff;
  --accent-deep: #1c2689;
  --field-blue: #2631a6;
  --field-blue-2: #2c38b4;
  --navy-1: #10143a;      /* Kasack-Dunkelblau, zwei Töne */
  --navy-2: #171c4b;
  --oak: #cdb089;         /* helle Eiche der Paneele */

  --font-display: 'Gambarino', 'Times New Roman', serif;
  --font-text: 'General Sans', system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.5rem, 0.5rem + 10vw, 9.4rem);

  --margin: clamp(1.25rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 12vw, 13rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
picture { display: contents; }
img { height: auto; background: var(--surface); }
a { color: inherit; }
button { font: inherit; border: 0; cursor: pointer; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.hours :focus-visible, .treat :focus-visible { outline-color: #fff; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; hyphens: none; }
.display { font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.02em; }
.head { font-size: var(--step-head); line-height: 0.98; }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.small { font-size: var(--step-small); line-height: 1.45; }
p { max-width: 62ch; text-wrap: pretty; }
strong { font-weight: 500; }
/* "Zum Inhalt springen": unsichtbar, bis man mit der Tabulator-Taste hinkommt */
.skip { position: absolute; left: var(--margin); top: -10rem; z-index: 30; padding: 0.75rem 1.1rem; background: var(--ink); color: #fff; font-weight: 500; text-decoration: none; }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nobr { white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); text-decoration: none; white-space: nowrap; font-weight: 500; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-thickness var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-deep); }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { text-decoration-thickness: 0.14em; }
}

/* ---------- wordmark ---------- */
.wordmark, .foot-mark { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; text-decoration: none; letter-spacing: 0.01em; }
.wordmark-mark { width: 1.9em; height: 1.9em; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }

/* ---------- hero ---------- */
.hero { padding-top: 1.5rem; grid-template-rows: 3rem auto; row-gap: 1.5rem; align-items: start; }
.wordmark { grid-column: 1 / 6; grid-row: 1; align-self: center; }
.nav { grid-column: 6 / -1; grid-row: 1; align-self: center; }
.nav-menu summary { display: none; }
.nav-links { display: flex; gap: clamp(1.25rem, 2.6vw, 2.5rem); font-size: var(--step-small); }
.nav-links a { text-decoration-color: transparent; }
/* links Titel und Text, rechts das Foto über die volle Bildschirmhöhe */
.hero-main { grid-column: 1 / 6; grid-row: 2; min-height: min(calc(100svh - 6rem), 64rem); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; padding-right: var(--gutter); }
.hero-title { margin-top: clamp(1rem, 4svh, 3rem); }
.hero-sentence { font-size: var(--step-lead); line-height: 1.35; max-width: 24ch; }
.hero-actions { margin-top: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.hero-photo { grid-column: 6 / -1; grid-row: 2; position: relative; height: calc(100svh - 6rem); min-height: 32rem; max-height: 64rem; }
.hero-photo-frame { overflow: hidden; height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.status { position: absolute; left: 0; top: 0; width: max-content; min-width: 18rem; max-width: calc(100% - 2rem); padding: 1.25rem 1.5rem 1.4rem; background: var(--accent); color: var(--accent-ink); }
.status-figure { font-family: var(--font-display); font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.status-line { margin-top: 0.5rem; font-size: var(--step-small); line-height: 1.4; max-width: 30ch; } /* lange Urlaubszeile bricht um, statt den Kasten breit zu ziehen */

/* masked headline */
/* Maske je Zeile: unten genug Platz für Unterlängen (g, p, y) von Gambarino bei enger Zeilenhöhe */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.lines [data-line] { display: block; }

/* ---------- Leistungen: Einleitung links, kompakte Liste rechts ---------- */
.treat { margin-top: var(--section); padding-block: clamp(4.5rem, 9vw, 9rem); background: var(--navy-1); color: #fff; }
.treat-inner { align-items: start; row-gap: 3rem; }
.treat-intro { grid-column: 1 / 6; position: sticky; top: 2.5rem; padding-right: var(--gutter); }
.treat-intro h2 { margin-bottom: 1.75rem; }
.treat-intro p { max-width: 34ch; }
.treat-intro .button { margin-top: 2rem; }
.treat-rows { grid-column: 6 / -1; }
.treat-row { display: grid; grid-template-columns: 5fr 7fr; gap: 0.6rem 2rem; align-items: start; padding: 1.75rem; }
.treat-row:nth-child(odd) { background: var(--navy-2); }
.treat-row h3 { grid-row: span 2; font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.01em; }
.treat-row p { font-size: var(--step-body); line-height: 1.45; }
.treat-terms { color: #c9cce4; hyphens: auto; }
.button-light { background: #fff; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .button-light:hover { background: var(--surface); } }

/* ---------- Ordination: ein großes Bild, vier kleine ---------- */
.rooms { padding-top: var(--section); }
.rooms-head { align-items: start; margin-bottom: 4rem; }
.rooms-title { grid-column: 1 / 6; }
.rooms-sentence { grid-column: 6 / -1; max-width: 40ch; }
.mosaic { display: grid; grid-template-columns: 7fr 5fr; gap: 4px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-big img { aspect-ratio: 3 / 2; }
.mosaic-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; min-height: 0; }
.mosaic-side figure { min-height: 0; overflow: hidden; }

/* ---------- Team: Portrait als Initiale ---------- */
.about { padding-block: var(--section); }
/* Ohne Teamfoto: alles mittig, die drei Eckpunkte aus dem Lebenslauf nebeneinander, darunter Link und Sprachen */
.about { text-align: center; }
.about-title { margin-bottom: 2rem; }
.about-p { margin-inline: auto; font-size: var(--step-lead); line-height: 1.3; max-width: 46ch; }
.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; max-width: 64rem; margin: 3.5rem auto 0; }
.about-facts li::before { content: ''; display: block; width: 0.45rem; height: 0.45rem; margin: 0 auto 0.9rem; background: var(--accent); }
.about-mehr { margin: 2.5rem auto 0; font-weight: 500; }
.about-langs { margin-top: 2.5rem; }
.about-langs h3 { font-family: var(--font-text); font-size: var(--step-body); font-weight: 500; letter-spacing: 0; margin-bottom: 0.5rem; }
.about-langs p { margin-inline: auto; font-size: var(--step-lead); line-height: 1.3; max-width: 40ch; }

/* ---------- Ordinationszeiten: Einleitung links, Tabelle rechts ---------- */
.hours { background: var(--field-blue); color: #fff; padding-top: var(--section); }
.hours-inner { align-items: start; row-gap: 2.5rem; }
.hours-intro { grid-column: 1 / 6; padding-right: var(--gutter); }
.hours-intro h2 { margin-bottom: 1.25rem; }
.hours-intro p { max-width: 30ch; }
.hours-intro .button { margin-top: 2rem; }
.hours-body { grid-column: 6 / -1; }
.hours-table { width: 100%; border-collapse: collapse; font-size: var(--step-lead); font-variant-numeric: tabular-nums; }
.hours-table th, .hours-table td { text-align: left; padding: 1rem 1.25rem; font-weight: 400; }
.hours-table thead th { font-size: var(--step-body); color: #c9cce4; padding-top: 0; }
.hours-table tbody tr:nth-child(odd) { background: var(--field-blue-2); }
.hours-table tbody th { font-weight: 500; }
.hours-table .zu { color: #c9cce4; }
.hours-table tbody tr.is-today { background: var(--bg); color: var(--accent); }
.hours-table tr.is-today .zu { color: var(--muted); }

/* ---------- Anfahrt: Text links, Karte rechts ---------- */
.way { padding-block: clamp(5rem, 10vw, 9rem) clamp(4rem, 8vw, 7rem); align-items: start; row-gap: 2.5rem; }
.way-text { grid-column: 1 / 6; padding-right: var(--gutter); }
.way-text h2 { margin-bottom: 1.5rem; }
.way-text p + p { margin-top: 1rem; }
.way-text .button { margin-top: 2rem; }
.way-map { grid-column: 6 / -1; }
.way-map-frame { position: relative; overflow: hidden; background: #e9e8e3; }
.way-map-bild { position: relative; } /* Bezug für den Marker: nur das Kartenbild, nicht die Leiste darunter */
.way-map img { width: 100%; aspect-ratio: 950 / 560; object-fit: cover; background: #e9e8e3; }
/* Lage der Ordination in der Karte (aus den Koordinaten berechnet, Karte oben und unten gleich beschnitten) */
.way-pin { position: absolute; left: 48.4%; top: 48.1%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.way-pin b { background: var(--accent); color: #fff; padding: 0.45rem 0.8rem; font-size: var(--step-small); font-weight: 500; white-space: nowrap; }
.way-pin i { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 10px solid var(--accent); }
.way-map figcaption { margin-top: 0.6rem; color: #dfe1f3; }
.way-map-frame iframe { display: block; width: 100%; aspect-ratio: 950 / 560; border: 0; background: var(--surface); }
/* Leiste unten auf der Karte, solange Google Maps nicht erlaubt ist; die eigene Karte bleibt sichtbar */
.map-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding: 0.9rem 1rem; background: var(--bg); color: var(--ink); }
.map-bar[hidden] { display: none; }
.map-bar p { flex: 1 1 16rem; margin: 0; font-size: var(--step-small); line-height: 1.4; }
.map-bar :focus-visible { outline-color: var(--accent); } /* helle Leiste im blauen Abschnitt: hier kein weißer Fokus-Rahmen */

/* ---------- Zustimmung Google Maps ---------- */
.consent { position: fixed; right: var(--margin); bottom: var(--margin); z-index: 20; width: min(34rem, calc(100% - 2 * var(--margin))); max-height: calc(100svh - 2 * var(--margin)); overflow-y: auto; padding: 1.5rem; background: var(--bg); color: var(--ink); box-shadow: 0 12px 40px rgba(17, 20, 51, 0.28); /* schwebendes Fenster. taste-skill-ignore */ }
.consent[hidden] { display: none; }
.consent-titel { font-weight: 500; margin-bottom: 0.5rem; }
.consent p { font-size: var(--step-body); line-height: 1.45; }
.consent .consent-stand { margin-top: 0.75rem; font-size: var(--step-small); color: var(--muted); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.25rem; }
.consent-actions .button { padding: 0 1rem; }
.consent-kurz { display: none; }
.link-button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }

/* ---------- Footer: drei geordnete Spalten ---------- */
.foot { background: var(--oak); color: var(--ink); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.foot a { text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }
.foot .wordmark-mark { stroke: var(--ink); }
.foot-brand { grid-column: 1 / 6; }
.foot-brand p { margin-top: 1rem; max-width: 28ch; }
.foot-col { grid-column: span 3; }
.foot-col h2 { font-family: var(--font-text); font-size: var(--step-body); font-weight: 500; letter-spacing: 0; margin-bottom: 0.75rem; }
.foot-col li + li { margin-top: 0.4rem; }
.foot-phone { display: inline-block; margin-bottom: 0.75rem; font-family: var(--font-display); font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .foot-phone:hover { color: var(--accent); } }
.foot-notfall { margin-top: 1rem; font-weight: 500; }
.foot-note { margin-top: 0.9rem; font-size: var(--step-small); max-width: 26ch; }
.foot-meta { grid-column: 1 / -1; margin-top: clamp(3rem, 6vw, 5rem); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: var(--step-small); }

/* ---------- Impressum, Datenschutz ---------- */
.legal { padding-block: 3rem 6rem; max-width: 52rem; }
.legal-back { margin-bottom: 4rem; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-family: var(--font-text); font-weight: 500; letter-spacing: 0; margin: 3rem 0 0.75rem; }
.legal p + p { margin-top: 1rem; }
.legal-consent { margin-top: 1.25rem; padding: 1.25rem; background: var(--surface); max-width: 34rem; }
.legal-consent [data-consent-status] { font-weight: 500; }
.legal-consent .consent-actions { margin-top: 1rem; }
html:not(.js) .legal-consent .consent-actions { display: none; } /* ohne JavaScript würden die Knöpfe nichts tun */

/* ---------- Lebenslauf: Überschrift links, Zeitleiste rechts, wie auf der Startseite ---------- */
/* Name groß wie "HNO Hietzing" auf der Startseite; Abschnitte abwechselnd auf Papier und einer Tonstufe tiefer, keine Linien */
.cv { padding-bottom: var(--section); }
.cv-intro { align-items: end; row-gap: 2rem; padding-block: clamp(3rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem); }
.cv-name { grid-column: 1 / 7; }
.cv-intro-text { grid-column: 7 / -1; }
.cv-block { align-items: start; row-gap: 2rem; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.cv-block:nth-of-type(even) { background: var(--surface); }
.cv-block h2 { grid-column: 1 / 6; padding-right: var(--gutter); }
.cv-list { grid-column: 6 / -1; }
.cv-list li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.25rem 1.5rem; }
.cv-list li + li { margin-top: 1.6rem; }
.cv-list p { max-width: none; }
.cv-list-einfach li { grid-template-columns: minmax(0, 1fr); }
.cv-list-einfach li + li { margin-top: 0.9rem; }
.cv-zeit { color: var(--muted); font-variant-numeric: tabular-nums; }
.cv-list .cv-wo { margin-top: 0.2rem; max-width: 72ch; font-size: var(--step-small); color: var(--muted); }
.cv-weiter { margin-top: clamp(1rem, 3vw, 2rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* ---------- Bewegung (Inhalt bleibt ohne JavaScript sichtbar) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
  .js .lines [data-line] { transform: translateY(130%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* langsamer Zoom, nur einmal (Bewegung ohne Ende bräuchte einen Pause-Knopf, WCAG 2.2.2) */
  .hero-photo img { animation: drift 22s var(--ease-soft) forwards; transform-origin: 70% 30%; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: none; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07); } }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .hero-main { grid-column: 1 / -1; min-height: 0; gap: 2rem; padding-right: 0; }
  .hero-photo { grid-column: 1 / -1; grid-row: 3; height: auto; min-height: 0; margin-top: 2rem; }
  .hero-photo img { height: auto; aspect-ratio: 3 / 2; }
  .treat-intro { grid-column: 1 / -1; position: static; padding-right: 0; }
  .treat-rows { grid-column: 1 / -1; }
  .rooms-title { grid-column: 1 / 7; }
  .rooms-sentence { grid-column: 7 / -1; }
  .hours-intro, .hours-body, .way-text, .way-map { grid-column: 1 / -1; padding-right: 0; }
  .cv-name, .cv-intro-text, .cv-block h2, .cv-list { grid-column: 1 / -1; }
}

/* ---------- Telefon ---------- */
@media (max-width: 767px) {
  .hero { display: flex; flex-direction: column; padding-top: 1rem; padding-inline: var(--margin); }
  .hero > .wordmark { order: 0; align-self: flex-start; min-height: 2.5rem; }
  .nav { order: 0; position: absolute; top: 1rem; right: var(--margin); }
  .nav-menu summary { display: block; list-style: none; cursor: pointer; font-weight: 500; padding: 0.35rem 0; }
  .nav-menu summary::-webkit-details-marker { display: none; }
  .nav-menu:not([open]) .nav-links { display: none; }
  .nav-menu[open] .nav-links { position: absolute; right: 0; top: 2.5rem; z-index: 5; display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.25rem; background: var(--ink); color: #fff; font-size: var(--step-body); min-width: 12rem; box-shadow: 0 10px 30px rgba(17, 20, 51, 0.25); /* echtes Overlay-Menü. taste-skill-ignore */ }
  .nav-menu[open] .nav-links a { display: block; padding: 0.4rem 0; }
  .hero-main { order: 1; gap: 0; }
  .hero-title { margin-top: 3.5rem; line-height: 0.88; }
  .hero-talk { padding-top: 1.75rem; }
  .hero-sentence { max-width: 30ch; }
  .hero-actions { margin-top: 1.5rem; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-photo { order: 3; margin: 5rem calc(var(--margin) * -1) 0; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 70% 25%; }
  .status { min-width: 0; max-width: calc(100% - 2 * var(--margin)); padding: 1rem 1.1rem 1.1rem; left: var(--margin); top: 0; bottom: auto; translate: 0 -50%; }

  .treat-row { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 1.25rem; }
  .treat-row h3 { grid-row: auto; }

  .mosaic { grid-template-columns: 1fr; }
  .mosaic-side img { aspect-ratio: 4 / 3; }

  .rooms-title, .rooms-sentence { grid-column: 1 / -1; }
  .rooms-sentence { margin-top: 1.25rem; }
  .rooms-head { margin-bottom: 2.5rem; }

  .about-facts { grid-template-columns: 1fr; gap: 1.5rem; }

  .hours-table th, .hours-table td { padding: 0.8rem 0.6rem; font-size: var(--step-body); }

  .foot-brand, .foot-col { grid-column: 1 / -1; }
  .consent { padding: 1rem 1.1rem; }
  .consent-actions { margin-top: 0.9rem; }
  .legal-consent .consent-actions { grid-template-columns: 1fr; }
  .map-bar { position: static; }
  .legal { overflow-wrap: break-word; hyphens: auto; }
  .consent-lang { display: none; }
  .consent-kurz { display: inline; }
  .foot-col { margin-top: 2rem; }
}

/* ---------- Sehr schmale Handys (320 px), nach der Handy-Regel, damit sie gewinnt ---------- */
@media (max-width: 400px) {
  .hours-table th, .hours-table td { padding: 0.75rem 0.35rem; font-size: var(--step-small); }
  .cv-list li { grid-template-columns: minmax(0, 1fr); } /* Zeit über dem Eintrag statt daneben */
}
