/* ==========================================================
   Farben und Schriften aus dem Brand Book
   Hier lassen sich die Farben zentral ändern.
   ========================================================== */
:root {
  --deep-forest: #355744;   /* Primärfarbe */
  --forest-dark: #2a4536;   /* Hover-Farbe */
  --sage: #A6B5A0;          /* Sekundärfarbe */
  --warm-sand: #E9E2D5;     /* Akzent */
  --soft-ivory: #F7F5EF;    /* Hintergrund */
  --charcoal: #333532;      /* Textfarbe */
  --white: #ffffff;
  --muted: #6b6f69;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(51, 53, 50, 0.08);
}

/* ---------- Grundeinstellungen ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--soft-ivory);
}

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

a {
  color: var(--deep-forest);
}

/* Fokus für die Tastaturnavigation: auf hellen Flächen dunkelgrün, auf dunklen Flächen sandfarben */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--deep-forest);
  outline-offset: 3px;
}

.hero :focus-visible,
.section-forest :focus-visible {
  outline-color: var(--warm-sand);
}

h1, h2, h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--deep-forest);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin-top: 0;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Fortschrittsanzeige ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--sage);
  z-index: 20;
}

/* ---------- Kopfzeile und Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 239, 0.97);
  border-bottom: 1px solid var(--warm-sand);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}

.logo img {
  height: 46px;
  width: auto;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  display: inline-block;
  padding: 6px 2px;
  font-size: 0.92rem;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover {
  border-bottom-color: var(--sage);
}

nav a.is-active {
  color: var(--deep-forest);
  font-weight: 600;
  border-bottom-color: var(--deep-forest);
}

/* Menü-Button: nur auf dem Handy sichtbar */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--deep-forest);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--deep-forest);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Einstieg (Hero): dunkles Grün mit Seenlandschaft ---------- */
.hero {
  position: relative;
  padding: 64px 0 100px;
  color: var(--soft-ivory);
  background:
    linear-gradient(120deg, rgba(53, 87, 68, 0.94) 0%, rgba(53, 87, 68, 0.82) 55%, rgba(53, 87, 68, 0.7) 100%),
    url("assets/allgaeu-see.jpg") center / cover no-repeat;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  color: var(--soft-ivory);
  margin-bottom: 0.3em;
}

.claim {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--warm-sand);
}

.subtitle {
  margin: 0;
  color: #dfe6dc;
}

/* Porträt mit Bogenform */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.portrait {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0;
  border: 6px solid var(--warm-sand);
  background: var(--sage);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: 0.1em;
  color: var(--soft-ivory);
}

.wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 56px;
}

/* ---------- Abschnitte ---------- */
.section {
  padding: 72px 0;
  background: var(--soft-ivory);
}

.section-sand {
  background: var(--warm-sand);
}

.section-forest {
  position: relative;
  overflow: hidden;
  background: var(--deep-forest);
  color: var(--soft-ivory);
}

.section-forest h2 {
  color: var(--soft-ivory);
}

.section-forest .lead {
  color: #e6ebe3;
}

.section-forest .container {
  position: relative;
  z-index: 1;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-kicker {
  margin: 0 0 8px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-forest);
}

.section-forest .section-kicker {
  color: var(--sage);
}

.lead {
  max-width: 720px;
  font-size: 1.08rem;
}

.muted-light {
  margin: 24px 0 0;
  color: #cfd9cc;
  font-size: 0.95rem;
}

/* Profil: zwei Spalten */
.split {
  display: grid;
  gap: 20px;
}

/* ---------- Kompetenzkarten mit Nummern ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  padding: 26px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--sage);
}

.card-number {
  display: block;
  margin-bottom: 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--deep-forest);
}

.card p {
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Projekte: Kategorie links, Beschreibung rechts ---------- */
.projects {
  border-top: 1px solid var(--sage);
}

.project {
  display: grid;
  gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid var(--sage);
}

.project h3 {
  margin-bottom: 0.4em;
}

.project p {
  margin: 0;
  max-width: 680px;
}

.project-meta {
  margin-top: 12px !important;
  font-size: 0.88rem;
  color: var(--muted);
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pill-forest {
  background: var(--deep-forest);
  color: var(--soft-ivory);
}

.pill-sage {
  background: var(--sage);
  color: var(--charcoal);
}

.pill-sand {
  background: var(--warm-sand);
  color: var(--deep-forest);
  border: 1px solid var(--sage);
}

/* ---------- Bildband ---------- */
.image-band {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-band-inner {
  position: relative;
  height: 100%;
}

.image-band-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(53, 87, 68, 0.45);
}

.image-band-quote {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0 16px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* ---------- Weitere Stationen ---------- */
.station-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}

.station-list li {
  padding: 14px 16px;
  margin-bottom: 8px;
  background: var(--soft-ivory);
  border-left: 4px solid var(--deep-forest);
  border-radius: 0 10px 10px 0;
}

/* ---------- Kontakt ---------- */
/* Großes AML im Hintergrund, sehr dezent */
.watermark {
  position: absolute;
  right: -2%;
  bottom: -70px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(180px, 30vw, 320px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(247, 245, 239, 0.05);
  pointer-events: none;
  user-select: none;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0 0;
}

.button {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.button-light {
  background: var(--warm-sand);
  color: var(--deep-forest);
}

.button-light:hover {
  background: var(--white);
}

.button-outline-light {
  color: var(--soft-ivory);
  border: 2px solid var(--soft-ivory);
}

.button-outline-light:hover {
  background: var(--soft-ivory);
  color: var(--deep-forest);
}

/* ---------- Fußzeile ---------- */
footer {
  padding: 22px 0;
  background: var(--charcoal);
  color: var(--warm-sand);
  text-align: center;
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

/* ---------- Sparsame Einblendung (nur Abschnittsköpfe, nur mit JavaScript) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Handy: Menü einklappen ---------- */
@media (max-width: 799px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px 16px 20px;
    background: var(--soft-ivory);
    border-bottom: 1px solid var(--warm-sand);
    box-shadow: var(--shadow);
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
  }
}

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 720px) {
  .hero-inner {
    grid-template-columns: 1.2fr 1fr;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }

  .split .section-head {
    margin-bottom: 0;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .project {
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
  }

  .image-band {
    height: 360px;
  }
}

/* Für Menschen, die keine Bewegungen mögen */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
