/* Haus 29 – CI „Neon-Violett“ · site-v1.css
   Farben, Schriften und Komponenten für alle Seiten und Sprachen.
   Schriften: Cardo (Display), DM Sans (Text), Montserrat 600 (nur Logo/Schild) – alle SIL Open Font License. */

@font-face { font-family: "Cardo"; src: url("/assets/fonts/cardo-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("/assets/fonts/cardo-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dmsans-400-700.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Farben */
  --nacht: #120914;        /* Grundfläche */
  --aubergine: #2A0733;    /* Flächen, Karten */
  --pflaume: #3D0F4A;      /* erhabene Flächen, Ränder */
  --magenta: #C2167A;      /* Knöpfe (Weiß darauf 5,7:1) */
  --neon: #FF3EA5;         /* Leuchtlinien, Links, Akzente (auf Nacht 6:1) */
  --rose: #F7B6D9;         /* Zweittext, Hinweise */
  --puder: #F6EAF2;        /* Fließtext auf dunkel */
  --nebel: #B9A3B8;        /* leiser Text (auf Nacht 8,4:1) */
  --linie: rgba(247, 182, 217, .16);
  --glow: 0 0 .5rem rgba(255, 62, 165, .55), 0 0 1.6rem rgba(255, 62, 165, .28);

  /* Schrift */
  --f-display: "Cardo", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --f-text: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --f-schild: "Montserrat", "DM Sans", system-ui, sans-serif;

  /* Schriftgrade (Quarte 1,333) */
  --t-xs: .8125rem; --t-s: .9375rem; --t-m: 1.0625rem; --t-l: 1.375rem;
  --t-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --t-2xl: clamp(2.4rem, 1.5rem + 3.6vw, 4rem);
  --t-3xl: clamp(3rem, 1.6rem + 5.6vw, 6.25rem);

  /* Raum */
  --r-1: .5rem; --r-2: 1rem; --r-3: 1.5rem; --r-4: 2.5rem; --r-5: 4rem; --r-6: clamp(4.5rem, 3rem + 6vw, 8rem);
  --breite: 72rem;
  --bogen: 999px 999px 1.25rem 1.25rem; /* Bogenfenster-Form für Fotos */
  --leiste-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--nacht); color: var(--puder);
  font: 400 var(--t-m)/1.6 var(--f-text);
  padding-bottom: var(--leiste-h);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--neon); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--rose); }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rahmen { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; margin: 0 0 var(--r-2); letter-spacing: -.01em; color: #fff; }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-l); font-family: var(--f-text); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 var(--r-2); max-width: 62ch; }
.leise { color: var(--nebel); }

/* ---------- Statuszeile ---------- */
.status { background: var(--aubergine); border-bottom: 1px solid var(--linie); font-size: var(--t-s); }
.status .rahmen { display: flex; gap: var(--r-2); align-items: center; justify-content: space-between; padding-block: .55rem; }
.status__offen { display: flex; align-items: center; gap: .6rem; color: var(--rose); }
.status__punkt { width: .55rem; height: .55rem; border-radius: 50%; background: var(--neon); box-shadow: var(--glow); flex: none; }
.status__punkt[data-zu] { background: var(--nebel); box-shadow: none; }
.status a { color: var(--puder); text-decoration: none; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(18, 9, 20, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); }
.kopf .rahmen { display: flex; align-items: center; gap: var(--r-3); min-height: 4.5rem; }
.kopf__logo img { height: 2.75rem; width: auto; }
.nav { margin-left: auto; display: flex; gap: var(--r-3); align-items: center; }
.nav a { color: var(--puder); text-decoration: none; font-size: var(--t-s); padding-block: .4rem; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--neon); color: #fff; }
.sprache { position: relative; }
.sprache summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .35rem; font-size: var(--t-s); color: var(--rose); padding: .4rem .2rem; }
.sprache summary::-webkit-details-marker { display: none; }
.sprache summary svg { width: 1.1rem; height: 1.1rem; }
.sprache ul { position: absolute; right: 0; top: 2.4rem; margin: 0; padding: .5rem; list-style: none; background: var(--aubergine); border: 1px solid var(--pflaume); border-radius: .75rem; min-width: 11rem; box-shadow: 0 1rem 2.5rem rgba(0,0,0,.5); }
.sprache li a { display: block; padding: .45rem .75rem; border-radius: .5rem; color: var(--puder); text-decoration: none; font-size: var(--t-s); }
.sprache li a:hover { background: var(--pflaume); }
.menue-knopf { display: none; margin-left: auto; background: none; border: 1px solid var(--pflaume); color: var(--puder); border-radius: .6rem; padding: .5rem .8rem; font: inherit; font-size: var(--t-s); }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.35rem; border-radius: 999px; font: 600 var(--t-m)/1 var(--f-text); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, box-shadow .2s, color .2s; }
.knopf svg { width: 1.2rem; height: 1.2rem; flex: none; }
.knopf--voll { background: var(--magenta); color: #fff; }
.knopf--voll:hover { background: #D41A87; color: #fff; box-shadow: var(--glow); }
.knopf--linie { border-color: var(--neon); color: var(--puder); }
.knopf--linie:hover { color: #fff; box-shadow: var(--glow); }
.knopf--klein { padding: .6rem 1rem; font-size: var(--t-s); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: var(--r-5) var(--r-6); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; background: radial-gradient(closest-side, rgba(194, 22, 122, .28), transparent 70%); pointer-events: none; }
.hero .rahmen { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--r-5); align-items: center; }
.hero h1 { margin-bottom: var(--r-3); }
.hero__text { font-size: var(--t-l); line-height: 1.5; color: var(--puder); max-width: 34ch; }
.hero__aktionen { display: flex; flex-wrap: wrap; gap: var(--r-2); margin-block: var(--r-4) var(--r-2); }
.hero__hinweis { color: var(--nebel); font-size: var(--t-s); }
.hero__bild { position: relative; justify-self: end; width: min(100%, 26rem); }
.bogen { border-radius: var(--bogen); overflow: hidden; border: 1px solid var(--pflaume); aspect-ratio: 3 / 4; }
.bogen img { width: 100%; height: 100%; object-fit: cover; }
.hero__bild .bogen { box-shadow: 0 0 0 .5rem var(--nacht), 0 0 0 calc(.5rem + 2px) var(--neon), var(--glow); }
.hero__bild .hero__klein { position: absolute; left: -22%; bottom: -8%; width: 44%; box-shadow: 0 0 0 .3rem var(--nacht), 0 0 0 calc(.3rem + 1px) var(--rose); }
.hero__bild .hero__klein img { object-position: 50% 100%; }

/* Leuchtlinie „schaltet ein“ – einmal beim Laden */
.leucht path { stroke-dasharray: 1400; stroke-dashoffset: 0; }
.js .leucht.an path { animation: zeichnen 2.4s cubic-bezier(.6,.1,.3,1) both; }
.js .leucht.an { animation: flackern 2.8s steps(1) both; }
@keyframes zeichnen { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes flackern { 0% { opacity: .15 } 62% { opacity: 1 } 66% { opacity: .35 } 70% { opacity: 1 } 74% { opacity: .55 } 78%, 100% { opacity: 1 } }

/* ---------- Hausschild (Fakten im Stil der Fassade) ---------- */
.schild { background: linear-gradient(90deg, #5A1470, #7A1C86 45%, #5A1470); border-block: 3px solid #E9E2EC; box-shadow: inset 0 0 2.5rem rgba(0,0,0,.35); }
.schild ul { list-style: none; margin: 0 auto; padding: 1.1rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--r-2); }
.schild li { font: 600 var(--t-s)/1.3 var(--f-schild); letter-spacing: .14em; text-transform: uppercase; color: #fff; text-align: center; }
.schild li strong { display: block; font: 400 2.25rem/1 var(--f-display); letter-spacing: 0; text-transform: none; color: #FFD0E8; text-shadow: var(--glow); margin-bottom: .35rem; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: var(--r-6); }
.abschnitt--flaeche { background: var(--aubergine); }
.kopfzeile { display: grid; grid-template-columns: 1fr 1fr; gap: var(--r-4); align-items: end; margin-bottom: var(--r-5); }
.kopfzeile p { color: var(--nebel); margin: 0; }

/* Ablauf: echte Reihenfolge, deshalb nummeriert */
.ablauf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--r-4); counter-reset: schritt; }
.ablauf li { counter-increment: schritt; display: flex; flex-direction: column; }
.ablauf li::before { content: counter(schritt); order: 1; margin: var(--r-3) 0 var(--r-1); font: italic 400 3rem/1 var(--f-display); color: var(--neon); text-shadow: var(--glow); }
.ablauf h3 { order: 2; } .ablauf p { order: 3; }
.ablauf__bild { aspect-ratio: 1 / 1; background: var(--aubergine); border-color: var(--linie); display: grid; place-items: center; }
.ablauf__bild img { width: 52%; height: auto; object-fit: contain; }
.ablauf__bild--unten { place-items: end center; }
.ablauf__bild--unten img { width: auto; height: 88%; }
.abschnitt--eng { padding-top: 0; }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--r-4) var(--r-3); }
.galerie figure { margin: 0; }
.galerie .bogen { border-color: var(--linie); }
.galerie figcaption { margin-top: var(--r-2); font-size: .95rem; color: var(--nebel); }
.ablauf p { color: var(--nebel); }

.trenner { width: min(100%, 26rem); margin: calc(-1 * var(--r-4)) 0 0 auto; opacity: .95; }

/* Zimmer */
.zimmer { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--r-5); align-items: center; }
.zimmer .bogen { aspect-ratio: 4 / 5; }
.zimmer .bogen img { object-position: 50% 70%; }
.ausstattung { list-style: none; margin: var(--r-3) 0 var(--r-4); padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.ausstattung li { display: flex; gap: .8rem; align-items: center; }
.ausstattung svg { width: 1.6rem; height: 1.6rem; color: var(--neon); flex: none; }

/* Lage + Zeiten */
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: var(--r-4); }
.karte { background: var(--nacht); border: 1px solid var(--pflaume); border-radius: 1.5rem; padding: var(--r-4); position: relative; overflow: hidden; }
.karte h2 { font-size: var(--t-xl); }
.punkte { list-style: none; padding: 0; margin: 0 0 var(--r-3); display: grid; gap: .8rem; }
.punkte li { display: flex; gap: .8rem; align-items: flex-start; }
.punkte svg { width: 1.4rem; height: 1.4rem; color: var(--neon); flex: none; margin-top: .15rem; }
.zeiten { width: 100%; border-collapse: collapse; margin-bottom: var(--r-3); font-variant-numeric: tabular-nums; }
.zeiten th, .zeiten td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--linie); font-weight: 400; }
.zeiten td { text-align: right; color: #fff; white-space: nowrap; padding-left: 1rem; }
.zeiten tr[data-heute] th, .zeiten tr[data-heute] td { color: var(--neon); }
.karte__lippen { position: absolute; right: -1.5rem; bottom: -1.5rem; width: 9rem; opacity: .9; transform: rotate(-12deg); }

/* Mieterinnen-Band */
.band { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 85% 30%, #7A1C86, var(--aubergine) 55%, var(--nacht)); border-block: 1px solid var(--pflaume); }
.band .rahmen { display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--r-4); align-items: center; padding-block: var(--r-6); }
.band__figur { height: clamp(20rem, 40vw, 30rem); justify-self: center; }
.band__figur img { height: 100%; width: auto; }
.band p { color: var(--puder); font-size: var(--t-l); line-height: 1.5; }
.band__liste { list-style: none; padding: 0; margin: 0 0 var(--r-4); display: flex; flex-wrap: wrap; gap: .6rem; }
.band__liste li { border: 1px solid rgba(247,182,217,.35); border-radius: 999px; padding: .4rem .9rem; font-size: var(--t-s); color: var(--rose); }

/* FAQ */
.fragen { max-width: 52rem; }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--r-2); padding: 1.25rem 0; font: 400 var(--t-l)/1.35 var(--f-display); color: #fff; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; font: 400 1.6rem/1 var(--f-text); color: var(--neon); transition: transform .2s; }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen details p { color: var(--nebel); padding-bottom: 1.25rem; margin: 0; }

/* Kontakt */
.kontakt { text-align: center; }
.kontakt h2 { max-width: 18ch; margin-inline: auto; }
.kontakt p { margin-inline: auto; color: var(--nebel); }
.kontakt .hero__aktionen { justify-content: center; }
.kontakt__lippen { width: 7.5rem; margin: 0 auto var(--r-3); }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); padding-block: var(--r-5) var(--r-4); font-size: var(--t-s); color: var(--nebel); }
.fuss .rahmen { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--r-4); }
.fuss h2 { font: 600 var(--t-s)/1.4 var(--f-text); color: var(--puder); margin-bottom: .8rem; letter-spacing: 0; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.fuss a { color: var(--nebel); text-decoration: none; }
.fuss a:hover { color: var(--neon); }
.fuss__logo { width: 11rem; margin-bottom: var(--r-2); }
.fuss__recht { grid-column: 1 / -1; border-top: 1px solid var(--linie); padding-top: var(--r-3); display: flex; flex-wrap: wrap; gap: var(--r-3); justify-content: space-between; }

/* Mobile Kontaktleiste */
.leiste { display: none; }

/* Altersabfrage */
.alter { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(80% 70% at 50% 30%, #3D0F4A, var(--nacht) 70%); }
.alter[hidden] { display: none; }
.alter__box { width: min(100%, 30rem); text-align: center; }
.alter__box img.logo { width: 13rem; margin: 0 auto var(--r-3); }
.alter__lippen { width: 8rem; margin: 0 auto var(--r-3); }
.alter__titel { font: 400 var(--t-xl)/1.2 var(--f-display); color: #fff; margin: 0 0 var(--r-2); }
.alter p { margin-inline: auto; color: var(--nebel); }
.alter__knoepfe { display: grid; gap: .8rem; margin-top: var(--r-3); }
.alter__knoepfe .knopf { justify-content: center; }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .menue-knopf { display: inline-flex; }
  .kopf.offen .nav { display: grid; position: absolute; top: 100%; left: 0; right: 0; background: var(--nacht); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--linie); gap: .25rem; }
  .kopf.offen .nav a { font-size: var(--t-l); padding: .6rem 0; }
  .hero .rahmen, .zimmer, .zwei, .band .rahmen, .kopfzeile { grid-template-columns: 1fr; }
  .hero__bild { justify-self: center; width: min(78%, 22rem); order: -1; }
  .hero__bild .hero__klein { left: -14%; width: 40%; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .ablauf li { display: grid; grid-template-columns: 7.5rem 1fr; column-gap: var(--r-3); align-items: start; }
  .ablauf__bild { grid-row: 1 / span 3; width: 100%; aspect-ratio: 4 / 5; }
  .ablauf li::before { margin: 0 0 var(--r-1); font-size: 2.25rem; }
  .ablauf li > * { min-width: 0; }
  .karte__lippen { display: none; }
  .trenner { margin: var(--r-4) auto 0; width: min(100%, 20rem); }
  .schild ul { grid-template-columns: 1fr 1fr; row-gap: 1.25rem; }
  .ablauf { grid-template-columns: 1fr; gap: var(--r-3); }
  .band__figur { order: -1; height: 16rem; }
  .fuss .rahmen { grid-template-columns: 1fr 1fr; }
  :root { --leiste-h: 4.25rem; }
  .leiste { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--leiste-h); background: rgba(18,9,20,.96); border-top: 1px solid var(--pflaume); padding-bottom: env(safe-area-inset-bottom); }
  .leiste a { display: grid; place-items: center; align-content: center; gap: .25rem; color: var(--puder); text-decoration: none; font-size: var(--t-xs); font-weight: 600; }
  .leiste a:first-child { background: var(--magenta); color: #fff; }
  .leiste svg { width: 1.35rem; height: 1.35rem; }
}
@media (max-width: 560px) {
  .ausstattung { grid-template-columns: 1fr; }
  .fuss .rahmen { grid-template-columns: 1fr; }
  .status .rahmen { justify-content: center; }
  .status__tel { display: none; }
  .hero__aktionen .knopf { flex: 1 1 100%; justify-content: center; }
  .galerie { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--r-1); }
  .galerie figure { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
[dir="rtl"] .hero__bild .hero__klein { left: auto; right: -22%; }
