/* ── Google Fonts ──────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

/* ── CSS Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --navy:           #1c2b4a;
  --cream:          #f8f6f1;
  --cream-dark:     #ede9e0;
  --gold:           #b8960c;
  --gold-light:     #d4ad22;
  --text-primary:   #1a1916;
  --text-secondary: #5a5550;
  --text-muted:     #9a9590;
  --border:         #ddd9d0;
  --white:          #ffffff;

  --font-display: 'PT Serif', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  --container-max: 1100px;
  --container-pad: 1.5rem;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  --shadow-sm:  0 1px 3px rgba(28, 43, 74, 0.08);
  --shadow-md:  0 4px 12px rgba(28, 43, 74, 0.10);
  --shadow-lg:  0 8px 24px rgba(28, 43, 74, 0.12);

  --transition: 150ms ease;
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

main {
  flex: 1;
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Section title with gold underline */
.section-title {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--gold);
  margin-top: 0.5rem;
  border-radius: 2px;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header p {
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.site-header {
  background-color: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-nav {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
  position: relative;
}

/* Logo */
.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.site-logo:hover {
  opacity: 0.85;
}

.logo-dot {
  color: var(--gold);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background-color: rgba(255,255,255,0.08);
}

.nav-links a.active {
  color: var(--gold-light);
}

/* Hamburger (CSS-only checkbox hack) */
.nav-toggle-input {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  position: relative;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after  { top:  7px; }

/* Hamburger open state */
.nav-toggle-input:checked ~ .nav-toggle-label span {
  background: transparent;
}
.nav-toggle-input:checked ~ .nav-toggle-label span::before {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle-input:checked ~ .nav-toggle-label span::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
@media (max-width: 700px) {
  .site-nav {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem var(--container-pad);
    gap: 0;
  }

  .site-logo {
    flex: 1;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.75rem 0 0.25rem;
    gap: 0;
    margin-left: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 0.5rem;
  }

  .nav-toggle-input:checked ~ .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 0.625rem 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #243560;
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background-color: var(--navy);
  color: var(--white);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background-color: #9e7e0a;
}

/* ── Hero Section ────────────────────────────────────────────────────────────── */
.hero {
  background-color: var(--cream);
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.15;
  max-width: 700px;
  margin-bottom: 0;
}

.hero-gold-line {
  width: 4rem;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 2px;
  margin: 1.25rem 0;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Page hero (smaller, navy bg) */
.page-hero {
  background-color: var(--navy);
  padding: 3rem 0 2.5rem;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* ── Sections ────────────────────────────────────────────────────────────────── */
.section {
  padding: 4rem 0;
}

.section--white {
  background-color: var(--white);
}

.section--cream {
  background-color: var(--cream);
}

.section--cream-dark {
  background-color: var(--cream-dark);
}

/* ── Announcement Cards ──────────────────────────────────────────────────────── */
.announcement-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.announcement-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.announcement-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.announcement-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* GV Card */
.gv-card {
  background: linear-gradient(135deg, var(--navy) 0%, #243560 100%);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
}

.gv-card-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.gv-card-content h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.gv-card-content p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
}

.gv-card-content .gv-date {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 1.05rem;
}

/* ── Property Cards ──────────────────────────────────────────────────────────── */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.property-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.property-card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--cream-dark);
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.property-card:hover .property-card-image img {
  transform: scale(1.04);
}

.property-card-body {
  padding: 1.25rem 1.5rem;
  border-top: 3px solid var(--navy);
}

.property-card h3 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.property-card-address {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.625rem;
}

.property-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.property-card-meta::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Apartment List (Freie Wohnungen) ────────────────────────────────────────── */
.apartment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.apartment-table thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.apartment-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition);
}

.apartment-table tbody tr:nth-child(even) {
  background-color: var(--cream);
}

.apartment-table tbody tr:hover {
  background-color: var(--cream-dark);
}

.apartment-table td {
  padding: 0.875rem 1rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

.apartment-table td:first-child {
  font-weight: 600;
  color: var(--navy);
}

.apartment-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background-color: #e8f5e9;
  color: #2e7d32;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state h3 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 380px;
  margin: 0 auto;
}

/* ── Board Members ───────────────────────────────────────────────────────────── */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.board-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.board-card-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, #3a5080 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.board-card h3 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.board-card-role {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Documents ───────────────────────────────────────────────────────────────── */
.document-list {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.document-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition);
  gap: 1rem;
}

.document-item:last-child {
  border-bottom: none;
}

.document-item:hover {
  background-color: var(--cream);
}

.document-icon {
  font-size: 1.375rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.document-info {
  flex: 1;
  min-width: 0;
}

.document-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.125rem;
}

.document-description {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.document-download {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
  flex-shrink: 0;
}

.document-download:hover {
  color: var(--gold);
  border-color: var(--gold);
  background-color: rgba(184,150,12,0.05);
}

/* ── Leitbild ────────────────────────────────────────────────────────────────── */
.leitbild-text {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 720px;
}

.leitbild-text p + p {
  margin-top: 1.25em;
}

/* ── Impressum / Static Pages ────────────────────────────────────────────────── */
.static-content {
  max-width: 720px;
}

.static-content h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.static-content h2:first-child {
  margin-top: 0;
}

.static-content p {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.static-content address {
  font-style: normal;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.static-content dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.static-content dt {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.static-content dd {
  color: var(--text-secondary);
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 1.75rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

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

/* ── Utilities ───────────────────────────────────────────────────────────────── */
.text-muted  { color: var(--text-muted); }
.text-navy   { color: var(--navy); }
.text-gold   { color: var(--gold); }
.font-serif  { font-family: var(--font-display); }

.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem;  }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem;    }
.mt-6  { margin-top: 1.5rem;  }
.mt-8  { margin-top: 2rem;    }
.mt-12 { margin-top: 3rem;    }

.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem;  }
.mb-4  { margin-bottom: 1rem;    }
.mb-6  { margin-bottom: 1.5rem;  }
.mb-8  { margin-bottom: 2rem;    }

/* ── Responsive tweaks ───────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .section {
    padding: 2.5rem 0;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

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

  .board-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .gv-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .apartment-table {
    font-size: 0.875rem;
  }

  .apartment-table thead th,
  .apartment-table td {
    padding: 0.625rem 0.625rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
