/* =====================================================
   Tolksdorf & Adler eGbR – Hauptstylesheet
   ===================================================== */

/* ---- Custom Properties ---- */
: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);
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.25;
  color: var(--navy);
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 68px;
  background: rgba(26,46,74,.97);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 5vw;
}

.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--navy);
  flex-shrink: 0;
}

.nav-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.8);
  padding: 6px 14px;
  border-radius: 6px;
  transition: color .2s, background .2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(255,255,255,.06);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .25s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: rgba(26,46,74,.98);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 5vw 20px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 16px; font-size: 0.95rem; }
  .nav-hamburger { display: flex; }
}

/* ---- Section Layout ---- */
.section { padding: 90px 5vw; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-bg { background: var(--bg); }
.section-navy { background: var(--navy); }

.section-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-navy .section-tag { color: var(--gold2); }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-navy .section-title { color: #fff; }

.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 48px;
}

.section-navy .section-lead { color: rgba(255,255,255,.7); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .25s;
  text-decoration: 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);
  text-decoration: none;
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.35);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,.7);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  /* Reiner Farbverlauf – kein Hintergrundbild (Lizenzgründe) */
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy2) 60%, #1e3a5f 100%);
  display: flex;
  align-items: center;
  padding: 120px 5vw 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,.18);
  color: var(--gold2);
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #fff;
  margin-bottom: 20px;
  max-width: 720px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.hero-pill {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 0.88rem;
}

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

/* ---- Apartments / Objekt ---- */
.apt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.apt-text p {
  margin-bottom: 16px;
  color: var(--text);
}

.apt-features {
  list-style: none;
  border-top: 1px solid var(--border);
}

.apt-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.apt-features .feat-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.apt-features .feat-title {
  font-weight: 600;
  color: var(--navy);
  display: block;
  margin-bottom: 2px;
}

.apt-features .feat-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

.apt-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.apt-info-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.apt-info-card .card-icon { font-size: 1.5rem; margin-bottom: 10px; }
.apt-info-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.apt-info-card p { font-size: 0.88rem; color: var(--muted); }

@media (max-width: 768px) {
  .apt-grid { grid-template-columns: 1fr; }
  .apt-info-cards { grid-template-columns: 1fr; }
}

/* ---- Ausstattung ---- */
.ausstattung-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ausstattung-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}

.ausstattung-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.ausstattung-item .item-icon { font-size: 1.8rem; margin-bottom: 8px; }
.ausstattung-item .item-label { font-size: 0.88rem; font-weight: 600; color: var(--text); }

@media (max-width: 768px) {
  .ausstattung-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .ausstattung-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Konditionen ---- */
.konditionen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.preis-box {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 36px;
  color: #fff;
  text-align: center;
}

.preis-label { font-size: 0.82rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }

.preis-value {
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 6px;
}

.preis-unit { font-size: 0.9rem; color: rgba(255,255,255,.6); margin-bottom: 28px; }

.preis-includes {
  list-style: none;
  text-align: left;
}

.preis-includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 0.9rem;
  color: rgba(255,255,255,.85);
}

.preis-includes li:last-child { border-bottom: none; }

.preis-includes .check { color: var(--gold); font-size: 1rem; }

.konditionen-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

.kond-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.kond-item .kond-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.kond-item .kond-value { font-size: 0.95rem; font-weight: 600; color: var(--navy); }

.optional-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 32px;
  margin-bottom: 16px;
}

.optional-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.optional-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--text);
}

@media (max-width: 768px) {
  .konditionen-grid { grid-template-columns: 1fr; }
  .optional-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .konditionen-details { grid-template-columns: 1fr; }
  .optional-grid { grid-template-columns: 1fr; }
}

/* ---- Downloads ---- */
.downloads-group-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
  margin-top: 32px;
}

.downloads-group-title:first-child { margin-top: 0; }

.downloads-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }

.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: box-shadow .25s, transform .25s;
  text-decoration: none;
  color: var(--text);
}

.download-card:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
  text-decoration: none;
  color: var(--text);
}

.download-card.na {
  cursor: default;
  opacity: .7;
}

.download-card.na:hover { transform: none; box-shadow: none; }

.dl-icon { font-size: 1.5rem; flex-shrink: 0; }

.dl-info { flex: 1; }
.dl-name { font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 2px; }
.dl-desc { font-size: 0.82rem; color: var(--muted); }

.dl-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

.dl-badge-pdf { background: rgba(201,168,76,.15); color: var(--gold); }
.dl-badge-na { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }

/* ---- Lage / Karte ---- */
.lage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

.map-consent {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 32px 24px;
  background: var(--bg);
}

.map-consent__title { font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.map-consent__text { font-size: 0.88rem; color: var(--muted); max-width: 26rem; }
.map-consent__text a { color: var(--navy); text-decoration: underline; }
.map-consent__alt { font-size: 0.82rem; color: var(--muted); }
.map-consent__alt a { color: var(--navy); text-decoration: underline; }

.lage-adresse .lage-adresse__note { margin-top: 8px; font-size: 0.85rem; }

.map-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
}

.lage-adresse {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.lage-adresse h4 { color: var(--gold); margin-bottom: 8px; font-size: 1rem; }
.lage-adresse p { font-size: 0.92rem; color: rgba(255,255,255,.8); }

.lage-distanzen h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
  margin-top: 20px;
}

.lage-distanzen h4:first-child { margin-top: 0; }

.lage-distanzen ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lage-distanzen li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 8px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.lage-distanzen .dist-val { font-weight: 600; color: var(--navy); }

@media (max-width: 768px) {
  .lage-grid { grid-template-columns: 1fr; }
}

/* ---- Kontakt ---- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.kontakt-info h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #fff;
}

.kontakt-info p {
  font-size: 0.92rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 24px;
}

.kontakt-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kontakt-details li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(255,255,255,.85);
}

.kontakt-details .kd-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--gold);
}

.kontakt-details a {
  color: var(--gold2);
  text-decoration: none;
}

.kontakt-details a:hover { text-decoration: underline; }

/* Kontaktformular */
.kontakt-form {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  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: 100px; }

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
}

.form-optional { font-weight: 400; color: var(--muted); }

.form-submit { width: 100%; justify-content: center; }

.form-note a { color: var(--navy); text-decoration: underline; }

.form-message {
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.form-message--error {
  background: #fdecea;
  border: 1px solid #f1b5ae;
  color: #8a1f14;
}

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .kontakt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---- Footer ---- */
.footer {
  background: #121e30;
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 32px 5vw;
  font-size: 0.85rem;
}

.footer-brand {
  font-weight: 600;
  color: rgba(255,255,255,.8);
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 10px;
}

.footer-links a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color .2s;
}

.footer-links a:hover { color: var(--gold); }

/* ---- Rechtliche Seiten & Danke-Seite ---- */
.legal { padding: 120px 5vw 80px; background: var(--bg); }

.legal__inner {
  max-width: 47.5rem;
  margin: 0 auto;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.legal h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 20px; }
.legal h2 { font-size: 1.15rem; margin-top: 32px; margin-bottom: 10px; }
.legal h3 { font-size: 1rem; margin-top: 20px; margin-bottom: 8px; }

.legal p,
.legal address,
.legal li { font-size: 0.95rem; color: var(--text); line-height: 1.7; font-style: normal; }

.legal p,
.legal address { margin-bottom: 12px; }

.legal ul { padding-left: 1.25rem; margin-bottom: 12px; }
.legal a { overflow-wrap: anywhere; }
.legal__meta { font-size: 0.85rem; color: var(--muted); margin-top: 32px; }
.legal__back { margin-top: 28px; }

@media (min-width: 768px) {
  .legal__inner { padding: 40px; }
}

/* ---- Utility ---- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
