/* ===========================================================================
   DALIMO Aparthotel Magdeburg - Coming-Soon-Landingpage
   ---------------------------------------------------------------------------
   Farbwelt aus der Bestandsmarke (dalimoapartments.de) abgeleitet:
     Gold  #D7AF00  - direkt aus der Logodatei ausgelesen
     Grau  #63767C  - Farbe der Wortmarken-Unterzeile im Logo
     Fond  #383E42  - RAL 7016 Anthrazitgrau, wie im Briefing festgelegt
   Schrift: Jost (geometrisch, passt zur Wortmarke) für Überschriften,
            Inter für Fließtext. Beide selbst gehostet, siehe assets/fonts.
=========================================================================== */

@import url('../assets/fonts/fonts.css');

/* --- Design-Tokens ------------------------------------------------------ */
:root {
  --gold:        #D7AF00;
  --gold-hell:   #F0C93A;
  --grau-marke:  #63767C;

  --fond:        #383E42;   /* RAL 7016 */
  --fond-tief:   #2E3438;
  --fond-hoch:   #434A4F;
  --linie:       rgba(255, 255, 255, .12);

  --text:        #EDEFF0;
  --text-leise:  #B3BCC0;

  --font-display: 'Jost', 'Century Gothic', 'Segoe UI', system-ui, sans-serif;
  --font-text:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --breite:      1180px;
  --radius:      4px;
  --schatten:    0 18px 48px rgba(0, 0, 0, .38);
  --anim:        .28s cubic-bezier(.4, 0, .2, 1);
}

/* --- Grundlagen --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; transition: color var(--anim); }
a:hover { color: var(--gold-hell); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: #26292C; padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

.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;
}

section { padding: clamp(56px, 8vw, 96px) 0; }

.kicker {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .9em;
}

/* --- Kopfbereich -------------------------------------------------------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(46, 52, 56, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 14px;
}

/* Markenzeichen: Wortmarke aus dem Bestandslogo + Objektzeile darunter,
   im selben Aufbau wie das Original (Wortmarke / Haarlinie / Unterzeile). */
.marke { display: block; }
.marke__wortmarke { width: clamp(132px, 20vw, 172px); height: auto; }
.marke__objekt {
  display: block;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid var(--grau-marke);
  font-family: var(--font-display);
  font-size: clamp(.6rem, 1.5vw, .72rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-leise);
  white-space: nowrap;
}

.kopf__tel {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 500; font-size: 1rem; letter-spacing: .02em;
  color: var(--text);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 9px 16px;
  transition: border-color var(--anim), background var(--anim), color var(--anim);
}
.kopf__tel:hover { border-color: var(--gold); background: rgba(215, 175, 0, .1); color: var(--gold); }
.kopf__tel svg { width: 16px; height: 16px; fill: var(--gold); flex: none; }
.kopf__tel-text { display: none; }
@media (min-width: 560px) { .kopf__tel-text { display: inline; } }

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; padding: 0; overflow: hidden; }

.hero__bild {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__schleier {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(46, 52, 56, .82) 0%, rgba(46, 52, 56, .68) 45%, var(--fond) 100%),
    linear-gradient(90deg, rgba(46, 52, 56, .74) 0%, rgba(46, 52, 56, .3) 100%);
}
.hero__inhalt {
  position: relative;
  padding-block: clamp(72px, 13vw, 132px);
  max-width: 720px;
}
.hero h1 { margin-bottom: .35em; }
.hero h1 .zeile2 { display: block; color: var(--gold); }

.hero__text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-leise);
  max-width: 52ch;
  margin-bottom: 2rem;
}

/* Verfügbarkeitshinweis - bewusst als größtes Element neben der H1 */
.status {
  display: inline-flex; flex-direction: column; gap: 2px;
  background: var(--gold);
  color: #26292C;
  border-radius: var(--radius);
  padding: 14px 26px;
  box-shadow: var(--schatten);
  margin-bottom: 2rem;
}
.status__label {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; opacity: .72;
}
.status__wert {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  font-weight: 600; letter-spacing: .01em; line-height: 1.2;
}
.status__rest { font-size: .8rem; font-weight: 500; opacity: .72; }

.aktionen { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 500; letter-spacing: .04em;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--anim);
}
.btn--gold { background: var(--gold); color: #26292C; }
.btn--gold:hover { background: var(--gold-hell); color: #26292C; transform: translateY(-1px); }
.btn--linie { border-color: rgba(255, 255, 255, .28); color: var(--text); }
.btn--linie:hover { border-color: var(--gold); color: var(--gold); background: rgba(215, 175, 0, .08); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* --- Eckdaten ----------------------------------------------------------- */
.fakten { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); background: var(--fond-tief); }
.fakten__gitter {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.fakt__zahl {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 600; color: var(--gold); line-height: 1;
  margin-bottom: 6px;
}
.fakt__text { color: var(--text-leise); font-size: .95rem; margin: 0; }

/* --- Galerie ------------------------------------------------------------ */
.galerie__kopf { max-width: 640px; margin-bottom: 40px; }
.galerie__kopf p { color: var(--text-leise); margin-bottom: 0; }

.galerie__gitter {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.kachel {
  position: relative; display: block; padding: 0;
  border: 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--fond-hoch);
  cursor: zoom-in;
}
.kachel:nth-child(1) { grid-column: span 2; aspect-ratio: 8 / 5; }
@media (max-width: 620px) { .kachel:nth-child(1) { grid-column: span 1; aspect-ratio: 4 / 3; } }

.kachel img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2, 0, .2, 1), opacity var(--anim);
}
.kachel:hover img, .kachel:focus-visible img { transform: scale(1.05); }

.kachel__titel {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(30, 34, 37, .88));
  font-family: var(--font-display);
  font-size: .88rem; letter-spacing: .06em; text-align: left;
  color: #fff;
}

/* Platzhalter, solange eine Bilddatei fehlt - siehe js/main.js */
.kachel--leer { display: grid; place-items: center; cursor: default; }
.kachel--leer img { display: none; }
.kachel--leer::after {
  content: attr(data-platzhalter);
  font-family: var(--font-display);
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-leise);
}

/* --- Lightbox ----------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  background: rgba(24, 27, 29, .95);
  padding: 20px;
}
.lightbox[open] { display: grid; }
.lightbox img {
  max-width: min(1200px, 94vw); max-height: 84vh;
  width: auto; border-radius: var(--radius); box-shadow: var(--schatten);
}
.lightbox__titel {
  text-align: center; color: var(--text-leise);
  font-family: var(--font-display); font-size: .9rem; letter-spacing: .08em;
  margin-top: 14px;
}
.lightbox__knopf {
  position: absolute; background: rgba(56, 62, 66, .9);
  border: 1px solid var(--linie); color: var(--text);
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: all var(--anim);
}
.lightbox__knopf:hover { background: var(--gold); color: #26292C; border-color: var(--gold); }
.lightbox__zu  { top: 18px; right: 18px; }
.lightbox__vor { top: 50%; right: 18px; transform: translateY(-50%); }
.lightbox__zur { top: 50%; left: 18px;  transform: translateY(-50%); }

/* --- Buchungsbereich ---------------------------------------------------- */
.buchung { background: var(--fond-tief); border-top: 1px solid var(--linie); }
.buchung__karte {
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--fond);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  max-width: 760px; margin-inline: auto;
}
.buchung__karte p { color: var(--text-leise); max-width: 48ch; margin-inline: auto; }

/* Aufnahmerahmen für das spätere DIRS21-iFrame. Bleibt leer und unsichtbar,
   bis in js/main.js bzw. direkt hier ein <iframe> eingesetzt wird. */
#dirs21-slot:empty { display: none; }
#dirs21-slot iframe { width: 100%; min-height: 720px; border: 0; border-radius: var(--radius); }

/* --- Kontakt ------------------------------------------------------------ */
.kontakt__gitter {
  display: grid; gap: clamp(32px, 5vw, 56px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .kontakt__gitter { grid-template-columns: 0.85fr 1.15fr; } }

.kontakt__block + .kontakt__block { margin-top: 28px; }
.kontakt__label {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-leise); margin: 0 0 6px;
}
.kontakt__wert { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.kontakt__wert a { color: var(--text); }
.kontakt__wert a:hover { color: var(--gold); }
.kontakt__hinweis { font-size: .9rem; color: var(--text-leise); }

/* --- Formular ----------------------------------------------------------- */
.formular {
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--fond-tief);
  padding: clamp(24px, 4vw, 36px);
}
.feldreihe { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feldreihe--zwei { grid-template-columns: 1fr 1fr; } }

.feld { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.feld label { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-leise); }
.feld .optional { text-transform: none; letter-spacing: 0; opacity: .7; }

.feld input, .feld textarea {
  font-family: var(--font-text); font-size: 1rem;
  color: var(--text);
  background: rgba(0, 0, 0, .22);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color var(--anim), background var(--anim);
  width: 100%;
}
.feld input:hover, .feld textarea:hover { border-color: rgba(255, 255, 255, .24); }
.feld input:focus, .feld textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(0, 0, 0, .32);
}
.feld textarea { resize: vertical; min-height: 132px; }
.feld input[aria-invalid="true"], .feld textarea[aria-invalid="true"] { border-color: #E08A7A; }

.feldfehler { font-size: .82rem; color: #E8A99B; min-height: 0; }
.feldfehler:empty { display: none; }

/* Honigtopf gegen Bots: für Menschen unsichtbar, aber nicht display:none,
   damit einfache Bots das Feld trotzdem finden und ausfüllen. */
.honigtopf {
  position: absolute !important;
  left: -5000px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.zustimmung { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
.zustimmung input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.zustimmung label { font-size: .9rem; color: var(--text-leise); line-height: 1.5; }

.formular__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.formular__pflicht { font-size: .82rem; color: var(--text-leise); margin: 0; }

.meldung {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: .95rem;
  border: 1px solid;
}
.meldung--ok   { border-color: rgba(120, 190, 140, .5); background: rgba(120, 190, 140, .1); color: #BFE3CB; }
.meldung--fehl { border-color: rgba(224, 138, 122, .5); background: rgba(224, 138, 122, .1); color: #F0C0B5; }

/* --- Hilfsklassen -------------------------------------------------------
   Ersetzen die früheren style="..."-Attribute. Das ist nicht nur sauberer,
   sondern nötig: die Content-Security-Policy in .htaccess erlaubt nur
   Stylesheets und Skripte aus dem eigenen Verzeichnis, kein 'unsafe-inline'.
------------------------------------------------------------------------ */
.aktionen--mitte { justify-content: center; }

.feldfehler--zustimmung { display: block; margin: -14px 0 18px; }

.kontakt__wert--adresse { font-size: 1.05rem; line-height: 1.6; }

.meldung--seite { max-width: 52ch; }

.quelle { margin-top: 2.5em; font-size: .85rem; }

/* --- Fußbereich -------------------------------------------------------- */
.fuss {
  border-top: 1px solid var(--linie);
  background: var(--fond-tief);
  padding: 44px 0 36px;
  font-size: .9rem;
}
.fuss__gitter {
  display: flex; flex-wrap: wrap; gap: 20px 40px;
  align-items: center; justify-content: space-between;
}
.fuss__firma { color: var(--text-leise); margin: 0; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fuss nav a { color: var(--text-leise); }
.fuss nav a:hover { color: var(--gold); }

/* --- Rechtstexte (impressum.html / datenschutz.html) -------------------- */
.rechtstext { max-width: 800px; }
.rechtstext h2 { margin-top: 2.2em; padding-top: .3em; border-top: 1px solid var(--linie); }
.rechtstext h2:first-of-type { margin-top: 1.4em; }
.rechtstext h3 { margin-top: 1.9em; color: var(--gold); font-size: 1.05rem; letter-spacing: .04em; }
.rechtstext p, .rechtstext li { color: var(--text-leise); font-size: .97rem; }
.rechtstext address { font-style: normal; color: var(--text); margin-bottom: 1.3em; line-height: 1.75; }
.rechtstext ul { padding-left: 1.2em; }
.rechtstext li { margin-bottom: .4em; }
.rechtstext .hervor {
  background: rgba(0, 0, 0, .2);
  border-left: 3px solid var(--grau-marke);
  padding: 14px 18px; margin: 1.4em 0;
  font-size: .88rem; letter-spacing: .01em;
}
.zurueck { display: inline-block; margin-top: 3rem; }

/* --- Bewegungsreduktion respektieren ------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .kachel:hover img { transform: none; }
}

/* --- Druck -------------------------------------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  .kopf, .fuss nav, .lightbox, .formular { display: none; }
  a { color: #000; }
}
