/* ════════════════════════════════════════════════
   AKADEMIE KAISERLINDE – Hauptstyles
   Farbpalette aus Logo:
     Dunkelrot   #8B1A2A  (AKADEMIE)
     Dunkelgrün  #2D6A35  (KAISERLINDE / Schriftzug)
     Gold        #C8A227  (Kronen)
     Hellgrau    #F5F3EE  (Hintergrund)
════════════════════════════════════════════════ */

:root {
  --rot:       #8B1A2A;
  --gruen:     #2D6A35;
  --gold:      #C8A227;
  --hell:      #F5F3EE;
  --weiss:     #FFFFFF;
  --text:      #2C2C2C;
  --text-mid:  #555555;
  --linie:     #C5B99A;

  --serif:     'EB Garamond', Georgia, serif;
  --sans:      'Open Sans', Arial, sans-serif;

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

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--hell);
}

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

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

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

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link { display: flex; align-items: center; }

.logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

/* Navigation */
.main-nav { display: flex; align-items: center; }

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-menu a {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gruen);
  letter-spacing: .04em;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.nav-menu a:hover {
  color: var(--rot);
  border-bottom-color: var(--rot);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gruen);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.header-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--rot) 0%, var(--gold) 50%, var(--gruen) 100%);
}

/* ── HERO ────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--gruen) 0%, #1e4a25 100%);
  color: var(--weiss);
  text-align: center;
  padding: 5rem 1.5rem;
}

.hero-inner { max-width: 760px; margin: 0 auto; }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(.95rem, 2vw, 1.2rem);
  font-style: italic;
  opacity: .88;
}

/* ── INHALTSSEKTIONEN ────────────────────────── */
.content-sections { padding: var(--gap) 1.5rem; }

.content-block {
  max-width: var(--max-w);
  margin: 0 auto var(--gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Bild-links: standard grid-Reihenfolge */
.content-block.image-left  .block-image { order: 1; }
.content-block.image-left  .block-text  { order: 2; }

/* Bild-rechts: Text zuerst, Bild danach */
.content-block.image-right .block-text  { order: 1; }
.content-block.image-right .block-image { order: 2; }

.block-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
}

.block-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--gruen);
  margin-bottom: .85rem;
  line-height: 1.25;
}

.block-text p {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  color: var(--text-mid);
  line-height: 1.8;
}

/* Trennlinie zwischen Sektionen */
.content-block + .content-block {
  padding-top: var(--gap);
  border-top: 1px solid var(--linie);
}

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  background: var(--gruen);
  color: var(--weiss);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: var(--gap);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.footer-address {
  font-size: .95rem;
  line-height: 1.8;
  opacity: .92;
}

.footer-address strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .03em;
}

/* Service-Menü */
.service-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-align: right;
}

.service-nav a {
  font-size: .95rem;
  opacity: .85;
  border-bottom: 1px solid transparent;
  transition: opacity .2s, border-color .2s;
}

.service-nav a:hover {
  opacity: 1;
  border-bottom-color: var(--gold);
}

.footer-copy {
  max-width: var(--max-w);
  margin: 1.2rem auto 0;
  text-align: center;
  font-size: .82rem;
  opacity: .65;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 820px) {

  /* Hamburger anzeigen */
  .nav-toggle { display: flex; }

  /* Menü ausgeblendet (collapsed) */
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--weiss);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 2px solid var(--gruen);
  }

  .nav-menu.open { display: flex; }

  .nav-menu li { padding: .5rem 0; }

  .nav-menu a { font-size: 1.15rem; }

  /* Sektionen untereinander stapeln */
  .content-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Bild immer oben, Text darunter */
  .content-block.image-left  .block-image,
  .content-block.image-right .block-image { order: 1; }
  .content-block.image-left  .block-text,
  .content-block.image-right .block-text  { order: 2; }

  /* Footer untereinander */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .service-nav ul { text-align: center; flex-direction: row; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 1rem; }
  .content-sections { padding: 2rem 1rem; }
  :root { --gap: 2.5rem; }
}
