/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1a2e4a;
  --navy2:  #233755;
  --gold:   #c9a84c;
  --gold2:  #e2c26e;
  --bg:     #f7f6f2;
  --bg2:    #ffffff;
  --text:   #2c3a4a;
  --muted:  #6b7a8d;
  --border: #e4e1d8;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(26,46,74,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: 'Georgia', 'Times New Roman', serif; line-height: 1.25; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Nav ────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 68px;
  background: rgba(26,46,74,.97);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.25); }

.nav-brand {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif;
  font-size: 18px; font-weight: 700; color: var(--navy);
}
.nav-title { color: #fff; font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; }

.nav-links {
  display: flex; gap: 4px; list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.80);
  font-size: .88rem; font-weight: 500;
  padding: 6px 14px; border-radius: 6px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255,255,255,.10); color: #fff; }
.nav-links a.active { color: var(--gold); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-mobile {
  display: none; flex-direction: column;
  background: var(--navy2); list-style: none;
  padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08);
}
.nav-mobile a {
  display: block; padding: 10px 5vw;
  color: rgba(255,255,255,.85); font-size: .95rem;
  transition: background .2s;
}
.nav-mobile a:hover { background: rgba(255,255,255,.07); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  #navbar { flex-wrap: wrap; height: auto; padding: 14px 5vw; }
  .nav-mobile.open { display: flex; width: 100%; }
}

/* ── Hero ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, var(--navy) 0%, #2d4a6e 50%, #1a2e4a 100%);
  padding: 100px 5vw 60px;
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(201,168,76,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(255,255,255,.04) 0%, transparent 60%);
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,.18);
  color: var(--gold2);
  border: 1px solid rgba(201,168,76,.35);
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 18px; border-radius: 50px; margin-bottom: 28px;
}
#hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #fff; margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
#hero h1 em { color: var(--gold2); font-style: normal; }
.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,.75);
  max-width: 580px; margin: 0 auto 40px;
}
.hero-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 44px;
}
.hero-pill {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  font-size: .83rem; padding: 7px 16px; border-radius: 50px;
}
.btn {
  display: inline-block;
  padding: 14px 36px; border-radius: 8px;
  font-weight: 600; font-size: 1rem;
  transition: all .25s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--gold); color: var(--navy);
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,.4); }
.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.35);
  margin-left: 12px;
}
.btn-outline:hover { border-color: rgba(255,255,255,.7); transform: translateY(-2px); }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.4); font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
}

/* ── Section base ───────────────────────────────────────── */
section { padding: 90px 5vw; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  color: var(--gold); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--navy); margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 620px; margin-bottom: 48px; }

/* ── Apartments / Objektbeschreibung ────────────────────── */
#apartments { background: var(--bg2); }

.apt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 768px) { .apt-grid { grid-template-columns: 1fr; } }

.apt-text p { margin-bottom: 16px; color: var(--muted); }
.apt-text h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 14px; }

.feature-list { list-style: none; margin-top: 24px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 6px; background: rgba(201,168,76,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 14px; margin-top: 2px;
}

.apt-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.apt-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 22px;
  border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
}
.apt-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.apt-card:first-child { grid-column: span 2; }
.apt-card-icon {
  font-size: 2rem; margin-bottom: 12px;
}
.apt-card h4 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.apt-card p { font-size: .87rem; color: var(--muted); }

/* ── Ausstattung ────────────────────────────────────────── */
#ausstattung { background: var(--bg); }

.ausstattung-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.ausstattung-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}
.ausstattung-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.ausstattung-item .icon { font-size: 2rem; margin-bottom: 10px; }
.ausstattung-item span { font-size: .88rem; font-weight: 500; color: var(--text); }

/* ── Konditionen ────────────────────────────────────────── */
#konditionen { background: var(--navy); }
#konditionen .section-title { color: #fff; }
#konditionen .section-tag { color: var(--gold2); }
#konditionen .section-lead { color: rgba(255,255,255,.6); }

.konditionen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) { .konditionen-grid { grid-template-columns: 1fr; } }

.preis-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 36px 32px;
  color: #fff;
}
.preis-card.highlight {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.preis-label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-bottom: 12px; }
.preis-value { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.preis-unit { font-size: .9rem; opacity: .7; margin-bottom: 24px; }
.preis-list { list-style: none; }
.preis-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: .93rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.preis-card.highlight .preis-list li { border-bottom-color: rgba(26,46,74,.12); }
.preis-list li:last-child { border-bottom: none; }
.preis-list .check { color: var(--gold2); font-size: 1rem; }
.preis-card.highlight .preis-list .check { color: var(--navy); }

.konditionen-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 32px;
}
@media (max-width: 600px) { .konditionen-details { grid-template-columns: 1fr; } }
.kond-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: rgba(255,255,255,.85);
}
.kond-box h4 { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold2); margin-bottom: 6px; }
.kond-box p { font-size: .93rem; }

.zusatz-list {
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.zusatz-list h3 { font-size: 1.3rem; color: rgba(255,255,255,.9); margin-bottom: 16px; }
.zusatz-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.zusatz-chip {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  padding: 8px 18px; border-radius: 50px;
  font-size: .87rem;
}

/* ── Downloads ──────────────────────────────────────────── */
#downloads { background: var(--bg); }

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.download-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex; align-items: center; gap: 18px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.download-card:hover {
  box-shadow: var(--shadow); transform: translateY(-2px);
  border-color: var(--gold);
}
.download-card.no-link {
  opacity: .6; cursor: default;
}
.download-card.no-link:hover {
  transform: none; box-shadow: none; border-color: var(--border);
}

.download-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(201,168,76,.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

.download-info { flex: 1; min-width: 0; }
.download-info .category {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 3px;
}
.download-info .name {
  font-size: .97rem; font-weight: 600; color: var(--navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.download-info .meta {
  font-size: .8rem; color: var(--muted); margin-top: 2px;
}

.download-arrow {
  font-size: 1.1rem; color: var(--gold); flex-shrink: 0;
  transition: transform .2s;
}
.download-card:hover .download-arrow { transform: translateY(2px); }

.download-groups { display: flex; flex-direction: column; gap: 40px; }
.download-group-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: .8rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── Lage ───────────────────────────────────────────────── */
#lage { background: var(--bg2); }

.lage-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: start;
}
@media (max-width: 768px) { .lage-grid { grid-template-columns: 1fr; } }

.lage-map {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}
.lage-map iframe { width: 100%; height: 100%; border: none; }

.distance-group { margin-bottom: 28px; }
.distance-group h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.distance-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: .93rem;
}
.distance-item:last-child { border-bottom: none; }
.distance-item .label { color: var(--text); }
.distance-item .dist { font-weight: 600; color: var(--navy); white-space: nowrap; margin-left: 16px; }

.lage-highlight {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius); padding: 16px 18px;
  margin-top: 24px; font-size: .92rem; color: var(--text);
}
.lage-highlight .icon { font-size: 1.3rem; flex-shrink: 0; }

/* ── Kontakt ────────────────────────────────────────────── */
#kontakt { background: var(--bg); }

.kontakt-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
  align-items: start;
}
@media (max-width: 768px) { .kontakt-grid { grid-template-columns: 1fr; } }

.kontakt-info h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: 6px; }
.kontakt-info .sub { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }

.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 20px;
}
.contact-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--navy); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--gold);
}
.contact-item .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.contact-item .value { font-size: .97rem; color: var(--text); font-weight: 500; }
.contact-item a.value:hover { color: var(--gold); }

.kontakt-form { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.kontakt-form h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px; border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 14px; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 40px 5vw;
  font-size: .87rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-brand { color: rgba(255,255,255,.9); font-weight: 600; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-links a:hover { color: var(--gold2); }

/* ── Modal (Impressum / Datenschutz) ────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,20,35,.65); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--bg2); border-radius: var(--radius);
  max-width: 700px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  padding: 40px 44px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--muted); transition: color .2s;
}
.modal-close:hover { color: var(--text); }
.modal-box h2 { font-size: 1.8rem; color: var(--navy); margin-bottom: 24px; }
.modal-box h3 { font-size: 1.1rem; color: var(--navy); margin: 20px 0 8px; }
.modal-box p { color: var(--muted); font-size: .93rem; margin-bottom: 12px; }
.modal-box address { font-style: normal; color: var(--muted); font-size: .93rem; line-height: 1.9; }

/* ── Scroll-to-top ──────────────────────────────────────── */
#totop {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  border: none; cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(201,168,76,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
#totop.show { opacity: 1; pointer-events: all; }
#totop:hover { transform: translateY(-3px); }

/* ── Utility ────────────────────────────────────────────── */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.text-center { text-align: center; }
