/* Stadthaus Waren – Statische Website (WA-2)
   Branding: Petrol #003434 / Akzent #f0debd · EB Garamond + DM Sans */

:root {
  --petrol:        #003434;
  --petrol-dark:   #002626;
  --petrol-light:  #0a4a4a;
  --accent:        #f0debd;
  --accent-hover:  #e8d5a3;
  --text:          #22302f;
  --text-muted:    #5b6a68;
  --bg:            #faf8f4;
  --surface:       #ffffff;
  --border:        #dfe3e1;
  --font-display: Georgia, 'Times New Roman', 'Nimbus Roman', serif;
  --font-ui:      system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --container:    1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-ui); color: var(--text); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--petrol); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .75rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 1.8rem 0 .7rem; }
h3 { font-size: 1.15rem; margin: 1.2rem 0 .4rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--petrol-light); }
a:hover { color: var(--petrol-dark); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: var(--petrol-dark); padding: 10px 16px; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ── Header / Navigation ─────────────────────────────────────── */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { height: 48px; width: auto; }
.brand-text { font-family: var(--font-display); font-size: 1.35rem; color: var(--petrol); letter-spacing: .02em; }

.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
.main-nav a { text-decoration: none; color: var(--petrol); font-weight: 500; padding: 10px 12px; display: inline-block; border-radius: 4px; }
.main-nav a:hover, .main-nav a:focus-visible { background: var(--bg); }
.has-sub { position: relative; }
.main-nav ul.sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 190px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); padding: 6px !important; flex-direction: column;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: flex; }
.sub-menu a { display: block; white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 9px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--petrol); margin: 4px 0; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 5px; min-height: 44px;
  font-family: var(--font-ui); font-weight: 700; text-decoration: none; transition: background .15s ease;
}
.btn-cta { background: var(--accent); color: var(--petrol-dark) !important; }
.btn-cta:hover { background: var(--accent-hover); color: var(--petrol-dark) !important; }
.btn-outline {
  background: transparent; color: var(--petrol) !important;
  border: 2px solid var(--petrol); padding: 11px 24px;
}
.btn-outline:hover { background: var(--petrol); color: #fff !important; }

/* ── Hero / Sections / Karten ────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, rgba(0,38,38,.78), rgba(0,52,52,.55)),
              url('/img/seeblick/Seeblick-7995-1024x678.jpg') center/cover no-repeat;
  color: #fff; text-align: center; padding: clamp(70px, 14vw, 150px) 20px;
}
.hero h1 { color: #fff; }
.hero p { max-width: 640px; margin: 0 auto 28px; font-size: 1.15rem; }

.section { padding: clamp(40px, 7vw, 80px) 0; }
.section-alt { background: var(--surface); }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 720px; }

.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 32px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none;
}
.card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 22px; }
.card h3 { margin: 0 0 6px; }
.card p { color: var(--text-muted); font-size: .95rem; margin-bottom: 10px; }
.card .more { font-weight: 700; color: var(--petrol-light); }

.feature-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 24px; }
.feature { background: var(--surface); border-left: 4px solid var(--accent); padding: 16px 18px; border-radius: 0 6px 6px 0; }
.feature strong { color: var(--petrol); }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 28px 0; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 6px; }

.info-sections { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 24px; }
.info-box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px 22px; }
.info-box h3 { margin-top: 0; }

.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 26px 30px; margin: 20px 0; }
.contact-card strong { color: var(--petrol); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--petrol); color: #dfe9e8; margin-top: 60px; }
.site-footer h4 { color: var(--accent); margin-bottom: 12px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; padding: 46px 20px; }
.footer-links, .check-list { list-style: none; margin: 12px 0 18px; }
.footer-links li, .check-list li { padding: 3px 0; }
.check-list li::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.gast-hint { margin-top: 14px; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 14px 0; font-size: .9rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom nav a { margin-left: 18px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; order: 3; }
  .main-nav {
    display: none; order: 4; flex-basis: 100%; flex-direction: column;
    align-items: stretch; padding-bottom: 14px;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav ul.sub-menu { position: static; box-shadow: none; border: none; display: none; }
  .has-sub.open > .sub-menu { display: block; }
  .nav-cta { text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════════════
   AP-6E · Fusion-Bausteine
   Ergänzung, keine Ersetzung. Farben und Bestandsklassen bleiben unberührt.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Fluide Typo-Skala */
  --text-h1:      clamp(2rem, 5vw, 3rem);
  --text-h2:      clamp(1.4rem, 3vw, 2rem);
  --text-h3:      1.15rem;
  --text-lead:    clamp(1.05rem, 2vw, 1.2rem);
  --text-small:   .92rem;
  /* Abschnittsrhythmus */
  --section-hero: clamp(2.5rem, 6vw, 4.5rem);
  --section-lg:   clamp(3rem, 7vw, 5rem);
  --section-md:   clamp(2.5rem, 5vw, 3.75rem);
  --section-sm:   clamp(1.75rem, 3vw, 2.5rem);
  /* Radien und Schatten */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,38,38,.07);
  --shadow-md: 0 6px 20px rgba(0,38,38,.09);
}

/* ── Eyebrow und Abschnittskopf ──────────────────────────────────────── */
.eyebrow {
  display: block; font-family: var(--font-ui); font-weight: 700;
  font-size: .8rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: .5rem;
}
.section__header { max-width: 760px; margin-bottom: 1.75rem; }
.section__header h2 { margin-top: 0; }
.section__header .lead { margin-bottom: 0; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero .btn-group {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero .btn-outline { color: #fff !important; border-color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--petrol-dark) !important; }

/* ── Faktenband ──────────────────────────────────────────────────────── */
.trust-strip { background: var(--petrol); color: #e6efee; padding: 14px 0; }
.trust-strip p {
  margin: 0; text-align: center; font-size: var(--text-small);
  letter-spacing: .02em;
}
.trust-strip strong { color: var(--accent); font-weight: 700; }

/* ── Fakten-Chips ────────────────────────────────────────────────────── */
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; }
.feature-tag {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border);
  font-size: .82rem; font-weight: 500; color: var(--text-muted); white-space: nowrap;
}
.card .tag-list { margin-bottom: 10px; }

/* ── Karten-Metazeile ────────────────────────────────────────────────── */
.card__meta {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
}

/* ── Faktenlisten (Lage, Ausstattung, Umgebung) ──────────────────────── */
.fact-grid {
  display: grid; gap: 18px; margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.fact {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 18px;
}
.fact h3 { margin: 0 0 4px; font-size: 1.02rem; }
.fact p  { margin: 0; font-size: .95rem; color: var(--text-muted); }
.fact-note { margin-top: 18px; font-size: var(--text-small); color: var(--text-muted); }

/* ── Quellenangabe ───────────────────────────────────────────────────── */
.source-note { margin-top: 22px; font-size: var(--text-small); color: var(--text-muted); }
.source-note cite { font-style: normal; }

/* ── CTA-Band ────────────────────────────────────────────────────────── */
.cta-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--section-sm) 0; text-align: center; }
.cta-band p { margin: 0; }
.section--cta { background: var(--petrol); color: #e6efee; text-align: center; }
.section--cta h2 { color: #fff; }
.section--cta p  { max-width: 560px; margin: 0 auto 22px; }

/* ── Orientierungshilfe ──────────────────────────────────────────────── */
.choose-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 24px; }
.choose { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 22px; }
.choose h3 { margin-top: 0; }
.choose p  { margin-bottom: 0; font-size: .95rem; color: var(--text-muted); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list { margin-top: 24px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.faq-item p  { margin: 0; color: var(--text-muted); }

/* ── Wohnungsseiten ──────────────────────────────────────────────────── */
.apt-head { max-width: 780px; }
.apt-head h1 { margin-bottom: .6rem; }
.apt-head .tag-list { margin-bottom: 16px; }
.apt-section { margin-top: 26px; }
.apt-section h2 { font-size: 1.25rem; margin-bottom: .4rem; }
.siblings { margin-top: 48px; }

/* ═══════════════════════════════════════════════════════════════════════
   AP-6F · Mobile-First nach dem Muster der Landingpage
   Übernommen aus Landingpage-Stadthaus-Waren/assets/css/style.css:
   - Hero als 16:9-Kachel statt großer vw-Polster
   - Verlauf von unten nach oben statt flächig
   - Nebeninformation im Hero auf Mobil ausgeblendet (dort .hero-subtitle)
   - Faktenkacheln kompakt: schmales Polster, 3px Akzentkante, kleine Schrift
   - Breakpoints als min-width (Mobile First) statt max-width
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero h1 { font-size: clamp(1.75rem, 6vw, 3rem); margin-bottom: .5rem; }
.hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  width: 100%;
  /* Mindesthoehe statt aspect-ratio: eine feste Seitenverhaeltnis-Hoehe
     wuerde den Inhalt aus dem Kasten schieben, sobald die Ueberschrift
     mehrzeilig wird. So bleibt der Hero kompakt und waechst bei Bedarf. */
  min-height: 340px;
  padding: 2rem 20px;
  background: url('/img/hero-waren-760.webp') center/cover no-repeat;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top,
              rgba(0,20,20,.78) 0%, rgba(0,20,20,.42) 55%, rgba(0,20,20,.18) 100%);
}
.hero > * { position: relative; z-index: 2; }
.hero p { margin-bottom: 18px; font-size: 1.05rem; }
.hero .btn-group { margin-bottom: 0; }

/* ── Faktenkacheln kompakt (Muster .icon-feature-item) ───────────────── */
.fact-grid { gap: 10px; margin-top: 18px; }
.fact {
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
}
.fact h3 { font-size: .95rem; margin: 0 0 2px; }
.fact p  { font-size: .87rem; line-height: 1.45; }

/* ── Abschnittsrhythmus auf Mobil enger (Muster .section 24px) ───────── */
.section { padding: clamp(28px, 6vw, 80px) 0; }

/* ── Touch-Ziel (44px) ───────────────────────────────────────────────── */
.nav-toggle { padding: 10px; }

/* ── Ab Tablet ───────────────────────────────────────────────────────── */
@media (min-width: 600px) {
  .fact-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (min-width: 768px) {
  .hero { background-image: url('/img/hero-waren-1280.webp'); }
}
@media (min-width: 900px) {
  .hero { min-height: 520px; padding: 3rem 20px; }
  .fact-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .fact { padding: 16px 18px; }
  .fact h3 { font-size: 1.02rem; }
  .fact p  { font-size: .95rem; }
}
@media (min-width: 1280px) {
  .hero { background-image: url('/img/hero-waren.webp'); }
}

/* ── Kopfbereich auf Mobil ───────────────────────────────────────────── */
/* Das Logo ist 260px breit, der Schriftzug daneben nochmal 171px. Zusammen
   sprengten sie schmale Displays und erzwangen horizontales Scrollen der
   gesamten Seite. Auf Mobil traegt das Logo den Namen bereits – der
   zusaetzliche Schriftzug entfaellt dort. */
.logo { height: 40px; width: auto; max-width: 58vw; }
.brand-text { display: none; }
.header-inner { min-height: 64px; }

@media (min-width: 600px) {
  .logo { height: 48px; max-width: none; }
  .header-inner { min-height: 72px; }
}

/* Der Schriftzug neben dem Logo wiederholt nur, was das Logo bereits sagt.
   Zusammen (260 + 171 px) sprengte das Paar die Containerbreite, sodass die
   Navigation auf Desktop in eine zweite Zeile umbrach - Kopfhoehe 111 statt
   72 px auf jeder Seite. Der Name bleibt im Alternativtext des Logos. */
.brand-text { display: none; }

/* ── Kartenraster nach LP-Muster: 1 → 2 → 3 Spalten ──────────────────── */
/* Sechs Wohnungen ergeben in drei Spalten zwei volle Reihen. Ohne Grenze
   entstuenden bei breiten Fenstern vier Spalten und eine Restreihe. */
.card-grid { grid-template-columns: 1fr; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Feste Buchungsleiste (Mobil/Tablet) ─────────────────────────────── */
/* Muster Landingpage: --bottom-bar-height 64px, body-Polster unten,
   ab 1200px ausgeblendet. Dort war der Platz reserviert, die Leiste
   selbst fehlte. */
:root { --bottom-bar-height: 64px; }
body { padding-bottom: calc(var(--bottom-bar-height) + 12px); }

.booking-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: var(--bottom-bar-height);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,38,38,.10);
}
.booking-bar__tel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: 60px; min-height: 44px;
  color: var(--petrol); text-decoration: none;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.booking-bar__tel:hover { color: var(--petrol-dark); }
.booking-bar__cta {
  flex: 1; text-align: center; padding: 13px 18px; margin: 0;
  min-height: 44px; white-space: nowrap;
}

@media (min-width: 1200px) {
  body { padding-bottom: 0; }
  .booking-bar { display: none; }
}

/* ── Hero nach Variante A (Muster Landingpage) ───────────────────────── */
/* Im Bild stehen nur Ortszeile und Ueberschrift, damit das Hafenfoto
   sichtbar bleibt. Lead, Buttons und Faktenzeile stehen im hellen Band
   direkt darunter. Der Buchungsknopf ist ausserdem dauerhaft in der
   festen Leiste am unteren Rand erreichbar. */
.hero { min-height: 0; aspect-ratio: 16 / 9; padding: 1.5rem 20px; }
.hero h1 { margin-bottom: 0; }

@media (min-width: 900px) {
  .hero { min-height: 0; max-height: 560px; padding: 2rem 20px; }
}

/* ── Startseite: Kopfbereich transparent ueber dem Hero ──────────────── */
/* Muster Landingpage: die Seite beginnt unmittelbar mit dem Bild, kein
   weisser Balken darueber. Logo und Menue liegen ueber dem Foto; ein
   Verlauf am oberen Rand sichert die Lesbarkeit. Unterseiten behalten
   den normalen Kopfbereich. */
.hero-page .site-header {
  position: absolute; top: 0; left: 0; right: 0;
  background: transparent; border-bottom: 0; box-shadow: none;
}
.hero-page .site-header::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,20,20,.72) 0%, rgba(0,20,20,.30) 55%, rgba(0,20,20,0) 100%);
}
.hero-page .header-inner { position: relative; z-index: 1; }
/* Auf der Startseite kein Logo ueber dem Foto - Muster Landingpage, dort
   beginnt die Seite ohne jeden Kopfinhalt. Der rote Schriftzug hatte auf
   dem Bild ohnehin zu wenig Kontrast. Unterseiten behalten das Logo. */
.hero-page .brand { display: none; }
.hero-page .header-inner { justify-content: flex-end; }

.hero-page .nav-toggle {
  border-color: rgba(255,255,255,.75);
  background: rgba(0,20,20,.28);
}
.hero-page .nav-toggle span { background: #fff; }
.hero-page .main-nav > ul > li > a { color: #fff; }
.hero-page .main-nav > ul > li > a:hover,
.hero-page .main-nav > ul > li > a:focus-visible { background: rgba(255,255,255,.16); }
.hero-page .sub-menu a { color: var(--petrol); }

/* Aufgeklapptes Mobilmenue braucht wieder festen Grund */
.hero-page .main-nav.open {
  background: var(--surface);
  border-radius: 0 0 8px 8px;
  padding: 8px 12px 14px;
}
.hero-page .main-nav.open > ul > li > a { color: var(--petrol); }

/* Hero beginnt am oberen Rand und macht Platz fuer den Kopfbereich.
   Kein aspect-ratio hier: eine feste Verhaeltnishoehe wuerde den Titel
   aus dem Kasten schieben, sobald er mehrzeilig wird. */
.hero-page .hero {
  aspect-ratio: auto;
  min-height: 300px;
  padding-top: calc(65px + 1.25rem);
  padding-bottom: 1.5rem;
}

@media (min-width: 600px) { .hero-page .hero { padding-top: calc(72px + 1.5rem); } }
@media (min-width: 900px) {
  .hero-page .hero { min-height: 560px; max-height: 620px; padding-top: calc(73px + 2rem); }
}
