/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }

/* ===== VARIABLEN ===== */
:root {
  --bg:           #FAFAF7;
  --surface:      #F1EFE8;
  --border:       #D3D1C7;
  --dark:         #2C2C2A;
  --text:         #444441;
  --muted:        #5F5E5A;
  --faint:        #888780;
  --accent:       #EF9F27;
  --accent-lt:    #FAC775;
  --accent-dk:    #BA7517;
  --link:         #185FA5;
  --nav-h:        64px;
  --max-w:        1140px;
}

/* ===== BASIS ===== */
html { font-size: 16px; scrollbar-gutter: stable; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.75;
}

/* ===== SEITENRAHMEN ===== */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--dark);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-title {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: normal;
  color: #F1EFE8;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-title em { color: var(--accent-lt); font-style: italic; }

/* ===== NAVIGATION ===== */
.site-nav { display: flex; }

.site-nav a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #B4B2A9;
  text-decoration: none;
  padding: 0 12px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover { color: #F1EFE8; }
.site-nav a.active { color: var(--accent-lt); border-bottom-color: var(--accent-lt); }

/* ===== HERO ===== */
.hero {
  background: var(--dark);
  padding: 120px 48px 36px;
  border-bottom: 3px solid var(--accent);
}

.hero-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-lt);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: normal;
  color: #F1EFE8;
  line-height: 1.3;
  margin-bottom: 10px;
}

.hero-desc {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--faint);
  line-height: 1.65;
  max-width: 520px;
}

/* ===== SEITEN-HEADER (ohne Hero) ===== */
.page-header {
  background: var(--dark);
  padding: 32px 48px;
  border-bottom: 3px solid var(--accent);
}

.page-header h1 {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: normal;
  color: #F1EFE8;
}

/* ===== ZWEISPALTIG ===== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  flex: 1;
}

.main-col {
  padding: 40px 48px;
  border-right: 0.5px solid var(--border);
}

.side-col { padding: 32px 24px; }

/* ===== EINSPALTIG ===== */
.main-full {
  padding: 40px 48px;
  flex: 1;
}

/* ===== TYPOGRAFIE ===== */
.section-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dk);
  margin-bottom: 14px;
  font-weight: bold;
}

h2 {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: normal;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

h3 {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: normal;
  color: var(--dark);
  margin-bottom: 12px;
  margin-top: 28px;
}

p { margin-bottom: 14px; font-size: 15px; }
p:last-child { margin-bottom: 0; }

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

/* ===== HERVORGEHOBENER BLOCK ===== */
.highlight-block {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
}

.highlight-block .block-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dk);
  margin-bottom: 8px;
  font-weight: bold;
}

.highlight-block p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ===== SIDEBAR-KARTE ===== */
.side-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.side-card-head {
  background: var(--dark);
  padding: 10px 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-lt);
  font-weight: bold;
}

.side-card-body { padding: 16px; }

.side-card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ===== FOTO-PLATZHALTER ===== */
.photo-dummy {
  width: 100%;
  height: 130px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 12px;
}

/* ===== LINKLISTE ===== */
.link-list a {
  display: block;
  font-size: 13px;
  color: var(--link);
  text-decoration: none;
  padding: 7px 0;
  border-bottom: 0.5px solid var(--border);
}

.link-list a:last-child { border-bottom: none; }
.link-list a:hover { text-decoration: underline; }

/* ===== LITERATURNACHWEISE ===== */
.lit-list { list-style: none; margin-top: 8px; }

.lit-list li {
  font-size: 14px;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border);
  line-height: 1.65;
}

.lit-list li:last-child { border-bottom: none; }
.lit-list cite { font-style: italic; }

/* ===== FOTOGALERIE ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photo-item {
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--faint);
  overflow: hidden;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== STAMMBAUM-EINBETTUNG ===== */
.stammbaum-embed {
  width: 100%;
  min-height: 700px;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}

/* ===== GENEALOGIE-BILD ===== */
.geo-image-wrap {
  width: 100%;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.geo-image-wrap img { width: 100%; height: auto; }

.geo-placeholder {
  width: 100%;
  height: 400px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 24px;
}

/* ===== KONTAKTFORMULAR ===== */
.contact-form { max-width: 500px; }

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

label {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: Georgia, serif;
  font-size: 15px;
  color: var(--dark);
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus { border-color: var(--accent); }

textarea { resize: vertical; min-height: 140px; }

.honeypot { display: none; }

.btn-submit {
  background: var(--dark);
  color: var(--accent-lt);
  border: none;
  padding: 12px 28px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
  font-weight: bold;
}

.btn-submit:hover { background: #444441; }

.form-note {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.6;
}

.alert {
  padding: 14px 18px;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.alert-ok  { background: #EAF3DE; color: #3B6D11; border-left: 3px solid #639922; }
.alert-err { background: #FCEBEB; color: #A32D2D; border-left: 3px solid #E24B4A; }

/* ===== IMPRESSUM / DATENSCHUTZ ===== */
.legal-section { margin-bottom: 32px; }
.legal-section h2 { font-size: 17px; margin-bottom: 10px; }
.legal-section p, .legal-section li { font-size: 15px; color: var(--text); }
.legal-section ul { list-style: disc; padding-left: 20px; }
.legal-section ul li { margin-bottom: 4px; }
address { font-style: normal; line-height: 1.9; font-size: 15px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: var(--faint);
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: var(--faint);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .site-header {
    padding: 0 16px;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-title { padding: 14px 0; }

  .site-nav {
    flex-wrap: wrap;
    border-top: 0.5px solid #444441;
    width: 100%;
  }

  .site-nav a {
    padding: 10px 8px;
    height: auto;
    font-size: 10px;
  }

  .hero, .page-header { padding: 28px 20px; }
  .hero h1 { font-size: 22px; }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .main-col {
    padding: 28px 20px;
    border-right: none;
    border-bottom: 0.5px solid var(--border);
  }

  .side-col { padding: 24px 20px; }
  .main-full { padding: 28px 20px; }

  .photo-grid { grid-template-columns: repeat(2, 1fr); }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    text-align: center;
  }

  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}
