/*
 * Ergaenzungen zum unveraenderten Entwurfs-CSS (moveliner.css).
 * Nur, was der Entwurf mit React-Komponenten geloest hat.
 */

/* Native Auswahl im Look des Base-UI-Triggers: eigener Pfeil statt Browserpfeil */
.auswahl { position: relative; }
.select-field .auswahl select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.auswahl > svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Huelle um Felder im Editor — fuer das Layout unsichtbar */
.feld-huelle { display: contents; }

/* Kurze Seiten (Hinweis waehrend der Baustelle, 404): Der Inhalt fuellt die
   Hoehe, die Fusszeile sitzt unten statt mitten im Fenster. */
.seite-kurz { min-height: 100vh; display: flex; flex-direction: column; }
.seite-kurz > main { flex: 1 0 auto; display: flex; flex-direction: column; }
.seite-kurz > main > .section { flex: 1 0 auto; }

/* Impressum und Datenschutz (Paket A3.1): ruhige Textseite im Stil der Website,
   helle Flaeche, gut lesbare Zeilenlaenge. */
.rechtsseite { background: var(--background); color: var(--foreground); }
.rechtsseite-innen { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; }
.rechtsseite h1 { margin: 12px 0 32px; font-size: clamp(40px, 7vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -0.04em;
  hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }  /* lange Woerter trennen nur an weichen Trennzeichen (datenschutz.php) */
.rechtsseite h2 { margin: 36px 0 10px; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.rechtsseite p, .rechtsseite li { font-size: 16px; line-height: 1.65; color: #3b4351; }
.rechtsseite p { margin: 0 0 12px; }
.rechtsseite ul { margin: 0 0 12px; padding-left: 20px; list-style: disc; }
.rechtsseite a { color: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.rechtsseite .section-label { color: #586373; }
.rechtsseite-einleitung { font-size: 18px !important; color: #111318 !important; }
.rechtsseite-stand { margin-top: 40px !important; font-size: 14px !important; color: #586373 !important; }
/* Nur fuer Angemeldete */
.rechtsseite-hinweis { margin: 0 0 32px; padding: 14px 16px; border-radius: 8px; background: #fdf1d8; color: #5c3d00; font-size: 15px; line-height: 1.55; }
.rechtsseite-hinweis a { font-weight: 700; }
.rechtsseite-fehlt { padding: 1px 6px; border-radius: 4px; background: #fdf1d8; color: #8a5a00; font-size: 14px; font-weight: 700; }
.rechtsseite-vorbehalt { padding: 6px 10px; border-left: 3px solid #e7b645; background: #fdf8ec; color: #5c3d00 !important; font-size: 14px !important; }
@media (max-width: 767px) {
  .rechtsseite-innen { padding: 36px 16px 64px; }
  .rechtsseite h1 { margin-bottom: 24px; }
}

/* WhatsApp und soziale Netzwerke (Paket A3.2) */
footer > div { flex-wrap: wrap; }
.whatsapp-schwebend { display: none; }
@media (max-width: 767px) {
  .whatsapp-schwebend {
    position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50;
    display: flex; align-items: center; justify-content: center; width: 56px; height: 56px;
    border-radius: 50%; background: #111318; color: #fff; border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 6px 20px rgba(17, 19, 24, 0.3);
  }
  .whatsapp-schwebend:focus-visible { outline: 3px solid #3972bd; outline-offset: 3px; }
  /* Am Seitenende soll der Knopf keine Fusszeilen-Links verdecken */
  body:has(.whatsapp-schwebend) > footer { padding-bottom: 96px; }
}

/* Anfrageformular mit Versand (Paket A3.3b). Farben aus marke.css: --ml-rot-fehler,
   --ml-rot-fehler-hell. */
.anfrage-falle { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.anfrage-meldung { margin: 0 0 16px; padding: 12px 14px; border-left: 3px solid #a12a2a; background: #fbe6e6;
  color: #a12a2a; font-size: 14px; line-height: 1.5; }
.request input[aria-invalid="true"], .request textarea[aria-invalid="true"] { border-color: #a12a2a; box-shadow: 0 0 0 1px #a12a2a; }
.request button[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.request .small .text-link { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px;
  color: #111318; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.anfrage-gesendet p[role="status"] { margin: 8px 0 16px; font-size: 15px; line-height: 1.6; }
.anfrage-feldfehler { display: block; margin-top: 6px; color: #a12a2a; font-size: 13px; font-weight: 600; line-height: 1.4; }

/* Wartungsmodus (Paket A3.5): Hinweis fuer Angemeldete, ueber der Editorleiste. Oben wuerde er die
   Hauptnavigation verdecken. Gelb wie --ml-gelb-warnung-hell. */
.wartung-hinweis { position: fixed; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 58px); left: 12px; right: 12px; z-index: 9998;
  width: fit-content; margin: 0 auto; padding: 8px 14px; border-radius: 999px; background: #fdf1d8; color: #5c3d00;
  border: 1px solid #e7b645; font: 600 13px/1.3 Arial, Helvetica, sans-serif; text-align: center;
  box-shadow: 0 2px 10px rgba(17, 19, 24, .15); }

/* Bildnachweis (Paket M): klein oben rechts auf dem Bild. Nur wenn ein Nachweis eingetragen ist. */
.highlight-grid figure, .vehicle-hero figure { position: relative; }
.bildnachweis { position: absolute; top: 8px; right: 8px; z-index: 1; max-width: 70%; padding: 2px 7px; border-radius: 4px;
  background: rgba(17, 19, 24, 0.62); color: #fff; font-size: 11px; line-height: 1.4; pointer-events: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Beitraege (Paket C): Uebersicht /berichte/ und Beitragsseiten aus den Bausteinen des Entwurfs */
.berichte-alle { margin: 28px 0 0; }
.berichte-uebersicht h1 { margin: 0; font-size: clamp(36px, 4vw, 60px); font-weight: 700; line-height: 1.05; letter-spacing: -0.055em; }
.berichte-leer { color: #586373; font-size: 17px; }
/* Auf der Uebersicht sind die Kartentitel h2 (unter der h1), sie sehen aus wie die h3 der Startseite */
.case-grid h2 { margin: 0 0 12px; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.5px; }
.beitrag-karte-foto { margin: -30px -30px 24px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px 8px 0 0; background: #e9edf3; }
.beitrag-karte-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.beitrag-entwurf { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #fdf1d8; color: #8a5a00; font-size: 12px; font-weight: 700; }
.beitrag-hinweis { margin: 0; padding: 12px 5%; background: #fdf1d8; color: #5c3d00; font-size: 15px; line-height: 1.5; }
.beitrag-hinweis a { font-weight: 700; text-decoration: underline; }
.beitrag-hero .section-label { text-transform: uppercase; }
.beitrag-hero h1 { font-size: clamp(44px, 5vw, 76px); line-height: 1.02; overflow-wrap: break-word; hyphens: auto; }
.beitrag-hero-ohne-bild { grid-template-columns: minmax(0, 1fr); }
.beitrag-hero-ohne-bild .vehicle-hero-copy { max-width: 900px; }
.beitrag-hero figure { position: relative; }
.beitrag-hero figure img { aspect-ratio: 3 / 2; object-fit: cover; }
.beitrag-text { padding-bottom: 40px; }
.beitrag-text-innen { max-width: 760px; }
.beitrag-text-innen p, .beitrag-text-innen li { margin: 0 0 18px; color: #3b4351; font-size: 18px; line-height: 1.7; }
.beitrag-text-innen h3 { margin: 32px 0 12px; font-size: 24px; letter-spacing: -0.02em; }
.beitrag-text-innen a { text-decoration: underline; text-underline-offset: 3px; }
html.ml-ed-an .beitrag-text-innen:empty { min-height: 3.4em; }
html.ml-ed-an .beitrag-text-innen:empty::before { content: "Hier den Text zum Einsatz schreiben …"; color: #8a94a6; font-size: 18px; }
.beitrag-bilder { padding-top: 40px; }
.beitrag-instagram { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.beitrag-mehr .other-model-grid + .beitrag-instagram { margin-top: 56px; }
.beitrag-instagram h2 { margin-bottom: 12px; }
.beitrag-weitere .split-heading h2 { font-size: 34px; }
.beitrag-bilder .section-label { text-transform: uppercase; }
.beitrag-mehr { padding-top: 40px; }
/* Kopfzeile der Unterseiten: Auf dem Handy scrollt die Navigation waagerecht, statt umzubrechen */
@media (max-width: 700px) {
  .vehicle-header nav { gap: 18px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .vehicle-header nav::-webkit-scrollbar { display: none; }
  .vehicle-header nav a { white-space: nowrap; }
}
/* Die Karten des Entwurfs haben ab 1100 px Breite abwaerts 22 statt 30 px Innenabstand */
@media (max-width: 1100px) {
  .beitrag-karte-foto { margin: -22px -22px 20px; }
}
@media (max-width: 700px) {
  .beitrag-text-innen p, .beitrag-text-innen li { font-size: 17px; }
}

/* Freie Textseiten (Paket D): Layout wie Impressum, Text wie in Beitraegen */
.textseite .rechtsseite-einleitung { margin-bottom: 28px; }
html.ml-ed-an .textseite-text:empty::before { content: "Hier den Text der Seite schreiben …"; }
