/* ============================================================
   KLEINWASSERKRAFT — CSS
   Schriften: Lora (Serif, Headlines) + Inter (Sans, Fließtext)
   Palette:
     --stone:    #F5F2EC  (Hintergrund, warm off-white)
     --ink:      #1C1C1A  (Primärtext)
     --muted:    #6B6B62  (Sekundärtext)
     --water:    #1D6A8A  (Akzent, gesättigtes Wasserblau)
     --water-lt: #E8F3F8  (Heller Akzent-Hintergrund)
     --rule:     #DDD9CF  (Trennlinien)
     --dark-bg:  #162028  (Dunkle Section)
     --dark-text:#E8EEF2  (Text auf Dunkel)
============================================================ */

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

:root {
  --stone:    #F5F2EC;
  --ink:      #1C1C1A;
  --muted:    #6B6B62;
  --water:    #1D6A8A;
  --water-lt: #E8F3F8;
  --rule:     #DDD9CF;
  --dark-bg:  #162028;
  --dark-text:#E8EEF2;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --max-w: 1100px;
  --gap:   2rem;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }

p { color: var(--ink); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--water);
  margin-bottom: 0.75rem;
}

/* --- LAYOUT HELPERS --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(245, 242, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--water);
}

/* --- HERO + STATS (gemeinsam genau 1 Viewport hoch) --- */
.hero-screen {
  height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  flex: 1 1 80svh;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  padding-top: 64px; /* nav height */
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 22, 28, 0.55);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  /* Überlagerung unten für Lesbarkeit */
  background: linear-gradient(to top, rgba(15, 22, 28, 0.85) 0%, rgba(15, 22, 28, 0.2) 100%);
}

.hero-content .eyebrow { color: rgba(255,255,255,0.85); }

.hero h1 {
  color: #fff;
  max-width: 680px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-sub {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* --- STATS --- */
.stats {
  background: var(--ink);
  padding: 3rem 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.stats .container { width: 100%; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}

.stat {
  padding: 1.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: #6fc3e8;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

/* --- SECTIONS --- */
.section {
  padding: 6rem 0;
  background: var(--stone);
}

.section-alt {
  background: #fff;
}

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

.section-dark h2,
.section-dark h3 {
  color: var(--dark-text);
}

.section-dark p {
  color: rgba(232, 238, 242, 0.75);
}

.section-dark .eyebrow {
  color: #5ba8c4;
}

/* Split layout: text + bild nebeneinander */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.section-split--reverse {
  direction: rtl;
}

.section-split--reverse > * {
  direction: ltr;
}

.section-text p {
  font-size: 1.0rem;
  color: var(--ink);
  line-height: 1.8;
}

.section-dark .section-text p {
  color: rgba(232, 238, 242, 0.75);
}

/* --- BILDER / PLATZHALTER --- */
.section-img {
  width: 100%;
}

.section-img-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.history-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-bottom: 1rem;
}

/* --- ZENTRIERTER SECTION-HEADER (Geschichte) --- */
.section-header-centered {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 3.5rem;
}

.section-intro {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* --- HISTORY GRID --- */
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.history-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.history-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- PULLQUOTE --- */
.pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: #8ab4c8 !important;
  border-left: 3px solid var(--water);
  padding-left: 1.25rem;
  margin-top: 2rem;
  line-height: 1.7;
}

.pullquote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(232,238,242,0.4) !important;
  margin-top: 0.5rem;
}

/* --- FOOTER --- */
.footer {
  background: var(--ink);
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.4rem;
}

.footer-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .section { padding: 4rem 0; }

  .section-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-split--reverse {
    direction: ltr;
  }

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

  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .stat:nth-child(2n) { border-right: none; }
  .stat:last-child { border-bottom: none; }

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

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