/* ============================================================
   halkenhaeusser.de — Design System
   Stil: Warm & Professionell · Inter · Terrakotta + Blaugrau
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Farben */
  --bg:       #FAF8F5;       /* warmes Off-White */
  --bg-alt:   #F2EEE9;       /* etwas dunkler für Kontrast */
  --primary:  #3D5A73;       /* gedämpftes Blaugrau */
  --primary-dark: #2D4459;   /* Header-Hintergrund */
  --accent:   #C4896F;       /* warme Terrakotta */
  --accent-light: #F0D9CE;   /* helles Terrakotta für Badges */
  --card:     #FFFFFF;
  --text:     #2D2D2D;
  --text-light: #FFFFFF;
  --muted:    #6E7E8A;
  --border:   #E5DED6;
  --border-light: #EDE8E2;

  /* Abstände & Radien */
  --radius:   12px;
  --radius-sm: 6px;
  --radius-lg: 20px;

  /* Schatten */
  --shadow:    0 2px 12px rgba(61, 90, 115, 0.08);
  --shadow-md: 0 4px 24px rgba(61, 90, 115, 0.12);
  --shadow-sm: 0 1px 4px rgba(61, 90, 115, 0.06);

  /* Schrift */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
header {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 2rem 2.5rem 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #FFFFFF;
}

header h1 span {
  color: var(--accent);
}

header p {
  opacity: 0.65;
  font-size: 0.85rem;
  margin-top: 0.2rem;
  font-weight: 400;
}

nav {
  display: flex;
  gap: 0.25rem;
  padding: 1.2rem 0 0;
  margin-top: 0.5rem;
}

nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color 0.2s, background 0.2s;
}

nav a:hover {
  color: #FFFFFF;
  background: rgba(255,255,255,0.08);
}

nav a.active {
  color: #FFFFFF;
  background: var(--bg);
  color: var(--primary-dark);
  font-weight: 600;
}

/* ── Hauptinhalt ── */
main {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}

/* ── Karten ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card h2 .icon {
  font-size: 1.15rem;
}

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

/* ── News-Einträge ── */
.news-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-light);
}

.news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-item:first-child { padding-top: 0; }

.news-item h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.news-item h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.news-item h3 a:hover { color: var(--accent); }

.news-item .meta {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-item .meta::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
}

.news-item p {
  font-size: 0.835rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Tags / Badges ── */
.tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-lg);
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.3px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.1px;
}

.btn:hover {
  background: #b37a61;
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* ── Hero (Startseite) ── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
}

.hero h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.4px;
  line-height: 1.3;
}

.hero p {
  opacity: 0.82;
  font-size: 0.975rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ── Themenliste ── */
.topic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.topic-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* ── Update-Badge ── */
.update-info {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
  margin-bottom: 1.25rem;
  font-style: italic;
}

/* ── Passwort-Overlay ── */
.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2e3d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.overlay-box {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.overlay-box .lock-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.overlay-box h2 {
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
  font-size: 1.25rem;
  font-weight: 700;
}

.overlay-box p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.overlay-box input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  margin-bottom: 0.75rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--bg);
}

.overlay-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.overlay-box .btn {
  width: 100%;
  font-size: 1rem;
  padding: 0.8rem;
}

.error-msg {
  color: #c0392b;
  font-size: 0.83rem;
  margin-top: 0.5rem;
  min-height: 1.2rem;
}

/* ── Ruhestand-Karte ── */
.location-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.location-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.location-card .rating { color: #e8971a; font-size: 0.9rem; }

.location-card .details {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 0.3rem;
  line-height: 1.5;
}

.location-card .pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
}

.pros { color: #1a7a4a; }
.cons { color: #c0392b; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-light);
  margin-top: 3rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
  header { padding: 1.5rem 1.25rem 0; }
  main { padding: 0 1.25rem; margin: 1.75rem auto; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 1.75rem; }
  .hero h2 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  header { padding: 1.25rem 1rem 0; }
  main { padding: 0 1rem; }
  .card { padding: 1.25rem; }
  nav a { font-size: 0.8rem; padding: 0.45rem 0.75rem; }
}
