:root {
  --green: #3d7a2e;
  --green-dark: #2f6023;
  --green-soft: #e6efe0;
  --green-mist: #f0f5ec;
  --text: #111111;
  --grey: #6b6b6b;
  --grey-line: #d9d9d6;
  --bg: #f3f3f1;
  --card: #ffffff;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--green);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }

.muted { color: var(--grey); }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 243, 241, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--grey-line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 62px; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--green); text-decoration: none; letter-spacing: -0.01em; }
.menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 0.92rem; color: var(--text); text-decoration: none;
}
.menu a:hover { background: var(--green-soft); }
.menu a[aria-current="page"] { background: var(--green); color: #fff; }
.toggle {
  display: none; background: none; border: 1px solid var(--grey-line);
  border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 0.92rem; cursor: pointer; color: var(--text);
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(80px, 16vw, 170px) 0 clamp(70px, 12vw, 130px);
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(120, 170, 100, 0.35), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(190, 205, 175, 0.55), transparent 55%),
    linear-gradient(180deg, #dfe9d8 0%, #eef2ea 70%, var(--bg) 100%);
}
.hero p.lead { font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--grey); max-width: 640px; margin: 0 auto 1.8em; }
.hero.small { padding: clamp(60px, 10vw, 110px) 0 clamp(40px, 7vw, 70px); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--grey); margin-bottom: 1.2em; }

.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  background: var(--green); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.98rem;
  border: 2px solid var(--green); margin: 4px 6px; transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--green-dark); }
.btn.ghost:hover { background: var(--green-soft); color: var(--green-dark); }

/* Sections */
section { padding: clamp(50px, 9vw, 100px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.4em; }
.section-head p { color: var(--grey); }
.alt { background: var(--card); }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--card); border-radius: var(--radius); padding: 30px 28px;
  border: 1px solid var(--grey-line);
}
.alt .card { background: var(--bg); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.tag {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green-dark); background: var(--green-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.tag.grey { color: var(--grey); background: #ececea; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.feature .visual {
  min-height: 300px; border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7), transparent 45%),
    linear-gradient(135deg, #b9d3aa, #8fb47c);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 5.5rem; font-weight: 700;
}

/* Blog Liste */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 2em; }
.chip {
  font: inherit; font-size: 0.9rem; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--grey-line); background: var(--card); color: var(--text);
}
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.post-card { display: block; text-decoration: none; color: var(--text); transition: transform 0.2s, border-color 0.2s; }
a.post-card:hover { transform: translateY(-3px); border-color: var(--green); color: var(--text); }
.post-card .meta { font-size: 0.88rem; color: var(--grey); }
.post-card.soon { opacity: 0.75; }

/* Artikel */
.article { padding: 20px 0 80px; }
.article h2 { font-size: 1.7rem; margin-top: 1.8em; }
.article p { font-size: 1.12rem; }
.article .meta { color: var(--grey); font-size: 0.95rem; margin-bottom: 2em; }
.callout {
  background: var(--green-mist); border-left: 5px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; margin: 2em 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Hinweisbox */
.notice {
  background: #fff8e1; border: 1px solid #f0d98a; border-radius: 16px; padding: 18px 22px; margin: 0 0 2em; font-size: 0.97rem;
}
.portrait {
  width: 190px; height: 190px; border-radius: 50%; margin: 0 auto 1.4em;
  background: linear-gradient(135deg, #b9d3aa, #8fb47c);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 4.5rem; font-weight: 700;
}

ul.clean { padding-left: 1.2em; }
ul.clean li { margin-bottom: 0.5em; }

/* Footer */
footer { padding: 50px 0 60px; border-top: 1px solid var(--grey-line); color: var(--grey); font-size: 0.92rem; text-align: center; }
footer a { color: var(--grey); margin: 0 10px; }
footer a:hover { color: var(--green); }

/* Scroll Effekt wie bei Apple: Inhalte erscheinen beim Scrollen */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay1 { transition-delay: 0.12s; }
.delay2 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 820px) {
  body { font-size: 17px; }
  .toggle { display: block; }
  .menu {
    display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column;
    background: var(--bg); padding: 12px 20px 20px; border-bottom: 1px solid var(--grey-line);
  }
  .menu.open { display: flex; }
  .feature { grid-template-columns: 1fr; }
  .feature .visual { min-height: 200px; }
}

/* Kontaktformular */
.contact { display: grid; gap: 8px; margin-top: 1.4em; }
.contact label { font-size: 0.92rem; color: var(--grey); margin-top: 10px; }
.contact input, .contact select, .contact textarea {
  font: inherit; font-size: 1rem; width: 100%; padding: 13px 16px; border-radius: 14px;
  border: 1px solid var(--grey-line); background: var(--card); color: var(--text);
}
.contact input:focus, .contact select:focus, .contact textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.contact .btn { justify-self: start; margin: 18px 0 0; cursor: pointer; font-family: inherit; }

/* Team */
.author { text-align: center; }
.avatar {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1.1em; overflow: hidden;
  background: linear-gradient(135deg, #b9d3aa, #8fb47c); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 700;
}
.avatar.grey { background: #e4e4e1; color: var(--grey); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Startseite mit Titelbild */
.hero.photo {
  padding: clamp(110px, 20vw, 230px) 0 clamp(100px, 16vw, 190px);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(243, 243, 241, 0.88) 0%, rgba(243, 243, 241, 0.6) 38%, rgba(243, 243, 241, 0) 70%),
    linear-gradient(180deg, rgba(243, 243, 241, 0) 65%, var(--bg) 100%),
    url(assets/hero.svg) center / cover no-repeat;
}
.hero.photo h1 { text-shadow: 0 1px 24px rgba(243, 243, 241, 0.9); }
.hero.photo .lead { color: #4a4a4a; }

/* Titelbilder von Unsplash mit hellem Schleier für gute Lesbarkeit */
.hero.photo {
  background: linear-gradient(180deg, rgba(243, 243, 241, 0.58) 0%, rgba(243, 243, 241, 0.74) 55%, var(--bg) 100%),
              var(--hero-img, url(assets/hero.svg)) center / cover no-repeat,
              #dfe9d8;
}
.hero.small.photo { padding: clamp(80px, 13vw, 140px) 0 clamp(60px, 9vw, 100px); }
.hero.photo .lead, .hero.photo .eyebrow { color: #3d3d3d; }
.credit { font-size: 0.8rem; margin: 10px 0 0; }
.credit a { margin: 0; }

/* Eigene Fotos */
.feature .visual.photo-card { position: relative; overflow: hidden; min-height: 0; aspect-ratio: 4 / 5; max-height: 560px; background: #dfe9d8; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; display: block; }
.photo-card .hello {
  position: absolute; left: 18px; bottom: 18px; font-size: 1rem; font-weight: 700; color: var(--green-dark);
  background: rgba(243, 243, 241, 0.92); padding: 8px 16px; border-radius: 999px;
}
.portrait { overflow: hidden; background: #dfe9d8; }
.portrait img, .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; display: block; }
@media (max-width: 820px) { .feature .visual.photo-card { aspect-ratio: 1 / 1; max-height: 380px; } }

/* Rundes Foto auf der Startseite */
.photo-round { position: relative; width: min(280px, 72%); margin: 0 auto 18px; }
.photo-round img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; object-position: 55% 30%; display: block;
  border: 6px solid #fff; box-shadow: 0 14px 34px rgba(31, 43, 35, 0.22);
}
.photo-round .hello {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap;
  font-size: 0.95rem; font-weight: 700; color: #fff; background: var(--ink); padding: 8px 18px; border-radius: 999px;
}
.portrait, .avatar { border: 4px solid #fff; box-shadow: 0 8px 22px rgba(31, 43, 35, 0.18); }

/* Dezente dunkle Akzente */
:root { --ink: #1f2b23; }
.menu a[aria-current="page"] { background: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.tag { background: var(--ink); color: #fff; }
.tag.grey { background: #e9e9e6; color: var(--grey); }
.section-head h2::after {
  content: ""; display: block; width: 44px; height: 3px; background: var(--ink); border-radius: 2px; margin: 16px auto 0;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink);
  margin-right: 10px; vertical-align: 1px;
}
.btn.ghost { border-color: var(--ink); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.callout { border-left-color: var(--ink); }
.card { box-shadow: 0 1px 0 rgba(31, 43, 35, 0.04); }
footer { background: var(--ink); color: #c6cfc8; border-top: 0; margin-top: 40px; }
footer a { color: #e8eee9; }
footer a:hover { color: #a9d196; }

/* Logo in der Navigation */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .logo { display: block; border-radius: 9px; }

/* Beitrag Ordnerstruktur: Abbildung, Kurz erklärt, Merkliste */
.article figure { margin: 2em 0; }
.article figure img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--grey-line); }
.article figcaption { color: var(--grey); font-size: 0.92rem; margin-top: 0.7em; }
.erklaert { background: var(--green-mist); border-radius: var(--radius); padding: 22px 26px; margin: 2em 0; }
.erklaert h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.7em; }
.erklaert p { font-size: 1.05rem; }
.ce-box { background: #fff; border: 2px solid var(--green); border-radius: 14px; padding: 14px 16px 16px; }
.ce-box .ce-name { font-weight: 700; color: var(--green); }
.ce-box .ce-sub { font-weight: 400; color: var(--grey); font-size: 0.88rem; }
.cte-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cte-box { flex: 1 1 140px; min-width: 0; background: var(--green-soft); border: 1px solid var(--green); border-radius: 10px; padding: 8px 12px; font-size: 0.95rem; }
.cte-box b { display: block; }
.cte-box span { color: var(--grey); font-size: 0.85rem; }
.article ul.lern, .article ol.lern { padding-left: 1.3em; }
.article ul.lern li, .article ol.lern li { margin-bottom: 0.7em; font-size: 1.12rem; }
.article ul.lern li::marker, .article ol.lern li::marker { color: var(--green); font-weight: 700; }
