:root {
  --green-deep: #0d4f2a;
  --green: #176334;
  --green-soft: #e9f2e7;
  --green-panel: #edf5ec;
  --cream: #f4eddf;
  --cream-light: #fffaf0;
  --card: #fff7e7;
  --card-strong: #f6ead4;
  --ink: #1f2a22;
  --muted: #5e6a60;
  --line: rgba(13, 79, 42, 0.22);
  --shadow: 0 18px 48px rgba(18, 54, 33, 0.12);
  --shadow-soft: 0 10px 28px rgba(18, 54, 33, 0.08);
  --radius-xl: 32px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  background:
    radial-gradient(circle at top left, rgba(23, 99, 52, 0.12), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(13, 79, 42, 0.08), transparent 30rem),
    linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(13, 79, 42, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 79, 42, 0.032) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.52), transparent 74%);
}

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

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  width: min(1120px, calc(100% - 36px));
  margin: 20px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 247, 231, 0.95);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 12px;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--green-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(13, 79, 42, 0.20);
  background: var(--cream-light);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.92rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--green-deep);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--green-soft);
  outline: none;
}

.hero {
  margin-top: 52px;
}

.hero-panel,
.text-card,
.card,
.value-grid > article {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 247, 231, 0.98), rgba(247, 235, 214, 0.93));
}

.hero-panel::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(13, 79, 42, 0.075);
  pointer-events: none;
}

.hero-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.hero-mark {
  width: clamp(112px, 16vw, 180px);
  height: clamp(112px, 16vw, 180px);
  flex: 0 0 auto;
  object-fit: contain;
  padding: 10px;
  border: 1px solid rgba(13, 79, 42, 0.16);
  border-radius: 26px;
  background: rgba(255, 250, 240, 0.78);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.mini-label {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.94rem;
  font-weight: 750;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-bottom: 22px;
  color: var(--green-deep);
  font-size: clamp(2.45rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  max-width: 820px;
  margin-bottom: 16px;
  color: var(--green-deep);
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  color: var(--green-deep);
  font-size: 1.55rem;
  line-height: 1.15;
}

.lead,
.text-card p,
.card p,
.value-grid p,
.path-box p {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.lead,
.text-card p,
.card p,
.value-grid p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.03rem;
}

.lead {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin-bottom: 30px;
  font-size: clamp(1.04rem, 1.5vw, 1.20rem);
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 780;
}

.button.primary {
  background: var(--green-deep);
  color: var(--cream-light);
  box-shadow: 0 12px 24px rgba(13, 79, 42, 0.22);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #0a3d21;
  outline: none;
}

.button.secondary {
  color: var(--green-deep);
  background: var(--green-soft);
  border-color: rgba(13, 79, 42, 0.18);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: #dfeade;
  outline: none;
}

.section {
  margin-top: 70px;
}

.section-head {
  padding: 0 4px;
}

.text-card {
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 247, 231, 0.98), rgba(247, 235, 214, 0.92));
}

.text-card.wide {
  background: linear-gradient(180deg, rgba(237, 245, 236, 0.98), rgba(255, 247, 231, 0.90));
}

.text-card p:last-child {
  margin-bottom: 0;
  max-width: 900px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.card {
  min-height: 300px;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card-strong));
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card.accent {
  background: linear-gradient(180deg, var(--green-panel), var(--card));
}

.card-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(13, 79, 42, 0.10);
  color: var(--green-deep);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.card p {
  margin-bottom: 24px;
}

.text-link {
  width: fit-content;
  margin-top: auto;
  padding-bottom: 4px;
  color: var(--green-deep);
  border-bottom: 2px solid rgba(13, 79, 42, 0.28);
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 820;
}

.text-link:hover,
.text-link:focus-visible {
  border-bottom-color: var(--green-deep);
  outline: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  gap: 22px;
  align-items: stretch;
}

.path-box {
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius-xl);
  background: var(--green-deep);
  color: var(--cream-light);
  box-shadow: var(--shadow);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.path-box p {
  margin: 0 0 6px;
  color: rgba(255, 250, 240, 0.78);
  font-weight: 750;
  letter-spacing: 0.04em;
}

.path-box code {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  background: rgba(255, 250, 240, 0.10);
  color: var(--cream-light);
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.value-grid > article {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(237, 245, 236, 0.97), rgba(255, 247, 231, 0.90));
  border-left: 5px solid var(--green-deep);
  min-width: 0;
}

.value-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green-deep);
  font-size: 1.16rem;
}

.value-grid p {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 82px;
  margin-bottom: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--green-deep);
}

.site-footer strong {
  font-size: 1.08rem;
}

.site-footer p,
.site-footer nav {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  text-decoration: none;
  color: var(--green-deep);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  outline: none;
}


.hero-contact {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-contact a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid rgba(92, 117, 74, 0.35);
}

.hero-contact a:hover {
  border-bottom-color: var(--green-dark);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    border-radius: 26px;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

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

  .cards,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .hero-topline {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 18px;
  }

  .hero-mark {
    width: 132px;
    height: 132px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.35rem);
    line-height: 1.04;
  }
}

@media (max-width: 560px) {
  .shell,
  .site-header {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    margin-top: 12px;
    padding: 12px;
    top: 8px;
  }

  .brand span {
    font-size: 1.02rem;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .main-nav {
    gap: 4px;
    font-size: 0.86rem;
  }

  .main-nav a {
    min-height: 34px;
    padding: 0 9px;
  }

  .hero {
    margin-top: 34px;
  }

  .hero-panel {
    padding: 26px 22px;
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.55rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    margin-top: 52px;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

/* Rechtliche Unterseiten */
.legal-hero {
  margin-top: 52px;
}

.legal-panel {
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(237, 245, 236, 0.98), rgba(255, 247, 231, 0.92));
  box-shadow: var(--shadow-soft);
}

.legal-panel h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.legal-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.legal-card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card-strong));
  box-shadow: var(--shadow-soft);
}

.legal-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  letter-spacing: -0.02em;
}

.legal-card p,
.legal-card a,
.placeholder {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.legal-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal-card a {
  color: var(--green-deep);
  font-weight: 750;
}

.placeholder {
  color: #8a5d16;
  font-weight: 750;
}

@media (max-width: 560px) {
  .legal-hero {
    margin-top: 34px;
  }
}

/* Überarbeitete Rechtseiten im BioHistorika-Stil */
:root {
  --green-dark: var(--green-deep);
}

.sub-hero {
  margin-top: 52px;
}

.sub-hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 240px);
  align-items: center;
  gap: clamp(22px, 5vw, 54px);
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 247, 231, 0.98), rgba(247, 235, 214, 0.92));
  box-shadow: var(--shadow-soft);
}

.sub-hero-card::after {
  content: '';
  position: absolute;
  right: -110px;
  bottom: -160px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: rgba(13, 79, 42, 0.075);
  pointer-events: none;
}

.sub-hero-text,
.sub-hero-mark {
  position: relative;
  z-index: 1;
}

.sub-hero-text h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 4.45rem);
}

.sub-hero-text .lead {
  margin-bottom: 0;
}

.sub-hero-mark {
  align-self: stretch;
  min-height: 210px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(13, 79, 42, 0.16);
  border-radius: 28px;
  background: rgba(237, 245, 236, 0.90);
}

.sub-hero-mark img {
  width: min(150px, 100%);
  height: auto;
  object-fit: contain;
}

.sub-hero-mark span {
  color: var(--green-deep);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-page {
  display: grid;
  grid-template-columns: minmax(220px, 295px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 24px;
}

.legal-aside {
  position: sticky;
  top: 108px;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(237, 245, 236, 0.98), rgba(255, 247, 231, 0.93));
  box-shadow: var(--shadow-soft);
}

.legal-aside strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green-deep);
  font-size: 1.25rem;
  line-height: 1.2;
}

.legal-aside p {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.98rem;
  line-height: 1.65;
}

.legal-aside .button.compact {
  width: 100%;
  min-height: 44px;
  padding-left: 14px;
  padding-right: 14px;
}

.legal-aside.sticky-note {
  border-left: 5px solid var(--green-deep);
}

.legal-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.legal-main.privacy-main {
  grid-template-columns: minmax(0, 1fr);
}

.legal-card {
  min-width: 0;
  padding: clamp(24px, 3.6vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 247, 231, 0.98), rgba(246, 234, 212, 0.94));
  box-shadow: var(--shadow-soft);
}

.legal-card.highlight {
  background: linear-gradient(180deg, rgba(237, 245, 236, 0.98), rgba(255, 247, 231, 0.92));
  border-left: 5px solid var(--green-deep);
}

.legal-card.subdued {
  background: linear-gradient(180deg, rgba(247, 235, 214, 0.92), rgba(255, 250, 240, 0.95));
}

.legal-card.full {
  grid-column: 1 / -1;
}

.legal-card h2 {
  margin-bottom: 14px;
  color: var(--green-deep);
  font-size: clamp(1.42rem, 2.2vw, 2.0rem);
  letter-spacing: -0.02em;
}

.legal-card p,
.legal-card a,
.legal-aside a {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.legal-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.01rem;
  line-height: 1.78;
}

.legal-card strong {
  color: var(--green-deep);
}

.legal-card a {
  color: var(--green-deep);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .sub-hero-card {
    grid-template-columns: 1fr;
  }

  .sub-hero-mark {
    align-self: auto;
    min-height: 0;
    width: min(240px, 100%);
  }

  .legal-page {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 700px) {
  .sub-hero {
    margin-top: 34px;
  }

  .sub-hero-card {
    padding: 26px 22px;
  }

  .sub-hero-mark {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
  }

  .sub-hero-mark img {
    width: 92px;
  }

  .legal-main {
    grid-template-columns: 1fr;
  }
}


/* Finale Unterseiten-Anpassung: gleicher Look wie Startseite */
.legal-hero-panel h1 {
  max-width: 760px;
}

.legal-page.section {
  margin-top: 34px;
}

.legal-main.privacy-main .legal-card.full {
  grid-column: auto;
}

@media (max-width: 700px) {
  .legal-hero-panel .hero-topline {
    flex-direction: column-reverse;
  }
}


/* Abschlusskontrolle v11: zusätzliche Stabilität gegen Überlagerungen */
.hero-topline > div {
  min-width: 0;
}

.hero-mark {
  max-width: 100%;
}

.brand span,
.main-nav a,
.button,
.text-link {
  white-space: normal;
}

h1, h2, h3, p, a, code, strong {
  overflow-wrap: break-word;
}

@media (max-width: 420px) {
  .main-nav {
    width: 100%;
  }

  .main-nav a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .mini-label {
    max-width: 100%;
  }
}
