/* ==========================================================================
   RUN Zimmervermietung – Design-System
   Farben aus dem RUN-Logo (Anthrazit #343333, Rot #d30535) kombiniert mit
   dem ruhigen, flächigen Aufbau des Referenzlayouts.
   Schriften: bewusst Systemschriften – keine Google-Fonts-Einbindung,
   damit keine IP-Adressen an Dritte gehen (DSGVO).
   ========================================================================== */

:root {
    --ink:        #242222;
    --ink-soft:   #343333;
    --red:        #d30535;
    --red-dark:   #c10b25;
    --greige:     #c6bdb0;
    --sand:       #f6f3ef;
    --line:       #e6e6e6;
    --muted:      #6b6564;
    --white:      #ffffff;

    --breite:     1240px;
    --radius:     4px;
    --schrift:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;

    --abstand-sektion: clamp(4rem, 9vw, 8rem);
}

/* --- Grundlagen ---------------------------------------------------------- */

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

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

body {
    margin: 0;
    font-family: var(--schrift);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
    margin: 0 0 .6em;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
h4 { font-size: 1.125rem; letter-spacing: 0; line-height: 1.35; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.container {
    width: 100%;
    max-width: var(--breite);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.sektion { padding-block: var(--abstand-sektion); }
.sektion--schmal { padding-block: clamp(3rem, 6vw, 5rem); }
.sektion--sand { background: var(--sand); }
.sektion--dunkel { background: var(--ink); color: var(--white); }

.mittig { text-align: center; }
.eyebrow {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1rem;
}
.sektion--dunkel .eyebrow { color: var(--greige); }

.lead {
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    line-height: 1.55;
    color: var(--muted);
    max-width: 62ch;
}
.sektion--dunkel .lead { color: var(--greige); }

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

/* --- Buttons ------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .95rem 1.75rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--red);
    color: var(--white);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover  { background: var(--red-dark); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.btn--dunkel { background: var(--ink); }
.btn--dunkel:hover { background: #000; }

.btn--rand {
    background: transparent;
    border-color: currentColor;
    color: var(--ink);
}
.btn--rand:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.sektion--dunkel .btn--rand { color: var(--white); }
.sektion--dunkel .btn--rand:hover { background: var(--white); color: var(--ink); }

.btn--gross { padding: 1.1rem 2.25rem; font-size: 1.0625rem; }
.btn--voll  { width: 100%; }

/* --- Kopfzeile ----------------------------------------------------------- */

.topbar {
    background: var(--ink);
    color: var(--greige);
    font-size: .875rem;
}
.topbar__innen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    padding-block: .6rem;
}
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--greige); }
.topbar__hinweis { display: flex; align-items: center; gap: .5rem; }

/* Rechter Block der Topbar: Sprachwahl + Telefon */
.topbar__rechts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.25rem;
}
.topbar__sprachen {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.topbar__sprachen a {
    font-size: .8125rem;
    letter-spacing: .06em;
    padding: .15rem .45rem;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 3px;
    line-height: 1.4;
}
.topbar__sprachen a:hover {
    background: rgba(255,255,255,.12);
    color: var(--white);
}

.kopf {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.kopf__innen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1rem;
}
.kopf__logo { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.kopf__logo img { width: 92px; }
.kopf__logo span {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    border-left: 1px solid var(--line);
    padding-left: .85rem;
    line-height: 1.25;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding-block: .25rem;
    border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--red); }
.nav a.aktiv { border-bottom-color: var(--red); font-weight: 600; }

.nav-schalter {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    padding: 0;
}
.nav-schalter span,
.nav-schalter span::before,
.nav-schalter span::after {
    display: block;
    width: 20px; height: 2px;
    background: var(--ink);
    margin-inline: auto;
    content: "";
    position: relative;
    transition: transform .2s ease;
}
.nav-schalter span::before { position: absolute; top: -6px; }
.nav-schalter span::after  { position: absolute; top: 6px; }

/* --- Hero ---------------------------------------------------------------- */

.hero { border-bottom: 1px solid var(--line); }
.hero__raster {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    padding-block: clamp(3rem, 7vw, 6rem);
}
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__text { max-width: 34ch; }

.hero__fakten {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem 2.5rem;
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.hero__fakt strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.02em;
}
.hero__fakt span { font-size: .9375rem; color: var(--muted); }

/* --- Verfügbarkeits-/Preisbox ------------------------------------------- */

.suchbox {
    background: var(--ink);
    color: var(--white);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius);
}
.suchbox h2, .suchbox h3 { color: var(--white); font-size: 1.375rem; margin-bottom: .35em; }
.suchbox__hinweis { color: var(--greige); font-size: .9375rem; margin-bottom: 1.5rem; }

.feldgruppe { display: grid; gap: 1rem; }
.feld { display: flex; flex-direction: column; gap: .4rem; }
.feld label { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.feld input, .feld select, .feld textarea {
    font: inherit;
    padding: .8rem .9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    width: 100%;
}
.feld textarea { min-height: 140px; resize: vertical; }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 1px;
}
.feld--zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.ergebnis {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.18);
}
.ergebnis__betrag {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.ergebnis__zeile {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: .9375rem;
    color: var(--greige);
    padding-block: .25rem;
}
.ergebnis__hinweis { color: var(--greige); font-size: .9375rem; }

.verfuegbar {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--greige);
    margin-bottom: 1.25rem;
}
.verfuegbar::before {
    content: "";
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--greige);
    box-shadow: 0 0 0 4px rgba(198,189,176,.25);
}
.verfuegbar--frei::before { background: #4caf7d; box-shadow: 0 0 0 4px rgba(76,175,125,.25); }
.verfuegbar--voll::before { background: var(--red); box-shadow: 0 0 0 4px rgba(211,5,53,.25); }

/* --- Bildplatzhalter ----------------------------------------------------- */

.bild {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sand);
}
.bild img { width: 100%; height: auto; display: block; }

/* Hero: 4:3, füllt die Spalte */
.bild--hero img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Kartenkopf: 16:9, damit alle Karten gleich hoch beginnen */
.bild--karte { border-radius: 0; }
.bild--karte img { aspect-ratio: 16 / 9; object-fit: cover; }

.platzhalter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    text-align: center;
    aspect-ratio: 4 / 3;
    background:
        repeating-linear-gradient(
            135deg,
            var(--sand) 0 14px,
            #efe9e2 14px 28px
        );
    border: 1px solid var(--greige);
    border-radius: var(--radius);
    color: var(--muted);
    padding: 2rem;
}
.platzhalter strong {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.platzhalter span { font-size: .875rem; max-width: 30ch; }
.platzhalter--hoch { aspect-ratio: 3 / 4; }
.platzhalter--breit { aspect-ratio: 16 / 9; }

/* --- Kachelraster -------------------------------------------------------- */

.raster { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.raster--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.usp { padding-top: 1.75rem; border-top: 2px solid var(--ink); }
.sektion--dunkel .usp { border-top-color: var(--greige); }
.usp h4 { margin-bottom: .5rem; }
.usp p { font-size: .9375rem; color: var(--muted); }
.sektion--dunkel .usp p { color: var(--greige); }

.karte {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.karte__inhalt { padding: clamp(1.25rem, 2vw, 1.75rem); flex: 1; display: flex; flex-direction: column; }
.karte__kopf {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}
.karte h3 { margin: 0; font-size: 1.375rem; }
.karte__anzahl {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
.karte p { font-size: .9375rem; color: var(--muted); }
.karte__preis {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-weight: 700;
    font-size: 1.125rem;
}
.karte__preis small { display: block; font-weight: 400; font-size: .8125rem; color: var(--muted); }

/* --- Listen und Tabellen ------------------------------------------------- */

.liste { list-style: none; margin: 0; padding: 0; }
.liste li {
    position: relative;
    padding-left: 1.6rem;
    padding-block: .3rem;
    font-size: .9375rem;
}
.liste li::before {
    content: "";
    position: absolute;
    left: 0; top: .95em;
    width: 8px; height: 2px;
    background: var(--red);
}

.tabelle { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tabelle th, .tabelle td {
    text-align: left;
    padding: .95rem 1rem;
    border-bottom: 1px solid var(--line);
}
.tabelle th {
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.tabelle td:not(:first-child) { text-align: right; white-space: nowrap; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle--dunkel th, .tabelle--dunkel td { border-bottom-color: rgba(255,255,255,.15); }
.tabelle--dunkel th { color: var(--greige); }

.tabellen-huelle { overflow-x: auto; }

/* --- Preistafel ---------------------------------------------------------- */

.preistafel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--white);
}
.preiszeile {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--line);
}
.preiszeile:last-of-type { border-bottom: 0; }
.preiszeile__wert { font-size: 1.5rem; font-weight: 700; white-space: nowrap; }
.preiszeile__wert small { font-size: .875rem; font-weight: 400; color: var(--muted); }

/* --- Bewertungen --------------------------------------------------------- */

.bewertung {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 2.5vw, 2rem);
}
.bewertung__sterne { color: var(--red); letter-spacing: .15em; margin-bottom: .75rem; }
.bewertung__text { font-size: 1.0625rem; }
.bewertung__quelle { font-size: .875rem; color: var(--muted); margin-top: 1rem; }

.hinweisbox {
    border: 1px dashed var(--greige);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--sand);
    color: var(--muted);
    font-size: .9375rem;
}
.hinweisbox strong { color: var(--ink); }

/* --- Aufruf-Band --------------------------------------------------------- */

.band {
    background: var(--ink);
    color: var(--white);
}
.band__innen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: clamp(2.5rem, 5vw, 4rem);
}
.band h2 { margin: 0; max-width: 22ch; }
.band p { color: var(--greige); margin: .75rem 0 0; max-width: 46ch; }
.band__aktionen { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --- Fußzeile ------------------------------------------------------------ */

.fuss {
    background: var(--ink-soft);
    color: var(--greige);
    font-size: .9375rem;
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.fuss__raster {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,.14);
}
.fuss img { width: 110px; margin-bottom: 1.25rem; }
.fuss h4 {
    color: var(--white);
    font-size: .8125rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { padding-block: .3rem; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--white); text-decoration: underline; }
.fuss__unten {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.75rem;
    font-size: .875rem;
}
.fuss__unten nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* --- Meldungen ----------------------------------------------------------- */

.meldung {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--red);
    background: var(--sand);
    margin-bottom: 2rem;
}
.meldung--ok { border-left-color: #4caf7d; }
.meldung strong { display: block; margin-bottom: .25rem; }

/* --- Reaktion auf kleinere Bildschirme ----------------------------------- */

@media (max-width: 960px) {
    .hero__raster { grid-template-columns: 1fr; }
    .hero__text { max-width: none; }
    .raster--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .raster--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fuss__raster { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .nav-schalter { display: block; }
    .nav {
        display: none;
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        padding: .5rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    }
    .nav.offen { display: flex; }
    .nav a { padding-block: .9rem; border-bottom: 1px solid var(--line); }
    .nav a:hover, .nav a.aktiv { border-bottom-color: var(--line); color: var(--red); }
    .kopf__innen { position: relative; }
    .kopf__logo span { display: none; }

    .raster--3, .raster--4, .raster--2 { grid-template-columns: 1fr; }
    .feld--zwei { grid-template-columns: 1fr; }
    .fuss__raster { grid-template-columns: 1fr; gap: 2rem; }
    .band__innen { flex-direction: column; align-items: flex-start; }
}

@media print {
    .topbar, .kopf, .band, .suchbox, .nav-schalter { display: none; }
    body { color: #000; }
}
