/* ===================================================
   BIOPARK BLUDENZ — Botanical Editorial Design System
   Farben: Forest | Sage | Cream | Terracotta
   Fonts: Cormorant Garamond (Display) + DM Sans (Body)
   Self-hosted — DSGVO-konform, kein Google CDN
   =================================================== */

/* === 0. SELF-HOSTED FONTS (DSGVO-konform) === */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-latin-300-italic.woff2') format('woff2');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-latin-600-italic.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-latin-300-italic.woff2') format('woff2');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-latin-500-italic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Scroll-Progress-Bar oben am Viewport */
html {
  scroll-timeline: --page-scroll block;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

.scroll-progress::after {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--terracotta), var(--sage));
  transform-origin: left;
  animation: scrollProgress linear;
  animation-timeline: --page-scroll;
}

@keyframes scrollProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: bodyFade 0.4s ease;
}

/* Analog-Film Grain ueber die gesamte Seite */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

@keyframes bodyFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

a {
  color: var(--sage);
  text-decoration: none;
  transition: color 200ms ease;
}

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

/* === 2. CUSTOM PROPERTIES === */
:root {
  /* Colors */
  --forest:           #1B4332;
  --forest-dark:      #0F2B1F;
  --forest-mid:       #2D6A4F;
  --sage:             #357A5B;
  --sage-light:       #74C69D;
  --sage-subtle:      rgba(64, 145, 108, 0.08);
  --cream:            #F8F4E8;
  --linen:            #EDE8D8;
  --parchment:        #E3DCCA;
  --terracotta:       #C4734A;
  --terracotta-light: #E8956D;
  --terracotta-subtle:rgba(196, 115, 74, 0.10);
  --bark:             #8B5E3C;
  --ink:              #2A2318;
  --ink-muted:        #5C4E3A;
  --ink-light:        #7A6E5C;
  --white:            #FFFFFF;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(27, 67, 50, 0.08);
  --shadow-md:  0 4px 20px rgba(27, 67, 50, 0.12);
  --shadow-lg:  0 8px 40px rgba(27, 67, 50, 0.18);
  --shadow-xl:  0 16px 60px rgba(27, 67, 50, 0.22);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display-swap: swap;

  --text-hero:  clamp(3.2rem, 8vw, 6.5rem);
  --text-h1:    clamp(2.4rem, 5vw, 4rem);
  --text-h2:    clamp(1.75rem, 3vw, 2.6rem);
  --text-h3:    clamp(1.15rem, 2vw, 1.5rem);
  --text-lg:    1.125rem;
  --text-base:  1rem;
  --text-sm:    0.875rem;
  --text-xs:    0.75rem;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  9rem;

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Transitions */
  --trans-fast: 200ms ease;
  --trans-base: 300ms ease;
  --trans-slow: 500ms ease;
  --trans-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === 2b. ACCESSIBILITY === */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--forest);
  color: var(--cream);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: var(--text-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* Externe Links: Screenreader-Hinweis */
a[target="_blank"]::after {
  content: " (öffnet neues Fenster)";
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a[target="_blank"] {
  position: relative;
}

/* === 3. TYPOGRAPHY === */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.display-heading {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display-heading em {
  font-style: italic;
  font-weight: 300;
}

.section-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  color: var(--sage);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--terracotta);
  padding-left: 1.75rem;
  border-left: 3px solid var(--terracotta);
  margin: var(--space-lg) 0;
  line-height: 1.35;
}

.lead-text {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.75;
}

/* === 4. LAYOUT === */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
}

.container--narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--lg {
  padding: var(--space-3xl) 0;
}

.section--sm {
  padding: var(--space-xl) 0;
}

.section--dark {
  background-color: var(--forest);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--cream);
}

.section--dark .section-label {
  color: var(--sage-light);
}

.section--linen {
  background-color: var(--linen);
}

.section--cream {
  background-color: var(--cream);
}

/* Paper grain on dark sections */
.section--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

.section--dark > * {
  position: relative;
  z-index: 2;
}

/* === 5. NAVIGATION === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem clamp(1.25rem, 5vw, 5rem);
  transition: padding var(--trans-base), background var(--trans-base),
              box-shadow var(--trans-base), backdrop-filter var(--trans-base);
}

.site-header.scrolled {
  padding: 1rem clamp(1.25rem, 5vw, 5rem);
  background: rgba(248, 244, 232, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--parchment), var(--shadow-sm);
}

/* Homepage: start transparent */
.page-home .site-header:not(.scrolled) {
  background: transparent;
}

.page-home .site-header:not(.scrolled) .nav-logo,
.page-home .site-header:not(.scrolled) .nav-logo svg path,
.page-home .site-header:not(.scrolled) .nav-links a {
  color: var(--white);
}

.page-home .site-header:not(.scrolled) .nav-logo-text {
  color: var(--white);
}

.page-home .site-header:not(.scrolled) .nav-toggle span {
  background: var(--white);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: 0.02em;
  line-height: 1.1;
  transition: color var(--trans-fast);
}

.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bark);
  margin-top: 1px;
}

.nav-logo:hover .nav-logo-text {
  color: var(--sage);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--trans-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: width var(--trans-base);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--forest);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 350ms ease,
              width 350ms ease;
  transform-origin: center;
}

/* Hamburger → X */
.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--forest-dark);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.nav-open .nav-drawer {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav-drawer-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-drawer-links a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 300;
  color: var(--cream);
  text-decoration: none;
  display: block;
  padding: 0.5rem 2rem;
  transition: color var(--trans-fast);
  letter-spacing: 0.02em;
}

.nav-drawer-links a:hover {
  color: var(--sage-light);
}

.nav-drawer-address {
  font-size: var(--text-sm);
  color: rgba(248, 244, 232, 0.72);
  text-align: center;
  font-style: italic;
  font-family: var(--font-display);
}

/* === 5b. TEAM CAROUSEL === */
.team-carousel {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.team-carousel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .team-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  .team-carousel-card {
    scroll-snap-align: center;
    flex-shrink: 0;
    min-width: 180px;
  }
}

/* === 6. FOOTER === */
.site-footer {
  background: var(--forest-dark);
  color: var(--cream);
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}

.footer-leaf-bg {
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 320px;
  opacity: 0.06;
  pointer-events: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(248, 244, 232, 0.12);
  position: relative;
  z-index: 1;
}

.footer-brand .nav-logo-text {
  color: var(--cream);
  font-size: 1.5rem;
}

.footer-brand .nav-logo-text span {
  color: rgba(248,244,232,0.72);
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(248, 244, 232, 0.78);
  margin-top: var(--space-md);
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 244, 232, 0.65);
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  color: rgba(248, 244, 232, 0.85);
  font-size: var(--text-sm);
  transition: color var(--trans-fast);
}

.footer-nav a:hover {
  color: var(--cream);
}

.footer-contact address {
  font-style: normal;
  color: rgba(248, 244, 232, 0.75);
  font-size: var(--text-sm);
  line-height: 1.9;
}

.footer-contact a {
  color: var(--sage-light);
}

.footer-contact a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(248, 244, 232, 0.4);
}

.footer-bottom a {
  color: rgba(248, 244, 232, 0.4);
  transition: color var(--trans-fast);
}

.footer-bottom a:hover {
  color: rgba(248, 244, 232, 0.75);
}

.footer-community {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(248, 244, 232, 0.35) !important;
  font-size: 0.95rem !important;
}

/* === 7. HERO COMPONENTS === */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-2xl);
  overflow: hidden;
  min-height: 100svh;
}

.hero--page {
  min-height: 55vh;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: var(--space-xl);
}

.hero--small {
  min-height: 40vh;
}

.hero-bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: kenBurns 25s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

@media (hover: hover) and (min-width: 768px) {
  .hero-bg {
    background-attachment: fixed;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero h1, .hero .display-heading {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero .lead-text {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  color: rgba(255,255,255,0.35);
}

/* === 8. BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--trans-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--trans-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.btn--primary:hover {
  background: var(--forest-mid);
  border-color: var(--forest-mid);
  color: var(--cream);
}

.btn--outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255,255,255,0.5);
}

.btn--outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: var(--white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}

.btn--outline-dark:hover {
  background: var(--forest);
  color: var(--cream);
}

.btn--terracotta {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.btn--terracotta:hover {
  background: #B5633B;
  border-color: #B5633B;
  color: var(--white);
}

.btn--sm {
  font-size: var(--text-xs);
  padding: 0.5rem 1.25rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--sage);
  text-decoration: none;
  transition: gap var(--trans-base), color var(--trans-fast);
}

.link-arrow:hover {
  gap: 0.7rem;
  color: var(--forest);
}

/* === 9. CARDS === */
.card {
  background: var(--linen);
  border: 1px solid var(--parchment);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--trans-base), box-shadow var(--trans-base), border-color var(--trans-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-light);
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--parchment);
}

.card-img-wrap {
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 500ms ease;
}

.card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.5rem;
}

.card-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
  display: block;
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.card-text {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Dark card variant */
.card--dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.card--dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--sage-light);
}

.card--dark .card-title {
  color: var(--cream);
}

.card--dark .card-text {
  color: rgba(248,244,232,0.7);
}

.card--dark .card-label {
  color: var(--sage-light);
}

/* Team card */
.team-card {
  text-align: center;
  padding: var(--space-lg);
  background: var(--linen);
  border-radius: var(--radius-lg);
  border: 1px solid var(--parchment);
  border-top: 3px solid var(--forest);
  transition: transform var(--trans-base), box-shadow var(--trans-base);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--parchment);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.05em;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.team-role {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.65;
}

/* === 10. GRIDS === */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* Produkt-Karten: Horizontal-Slider auf Mobile */
@media (max-width: 767px) {
  .product-card-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1.5rem;
    scrollbar-width: none;
  }
  .product-card-slider::-webkit-scrollbar { display: none; }
  .product-card-slider .category-card {
    flex: 0 0 calc(85vw - 2rem);
    max-width: 320px;
    scroll-snap-align: start;
  }
}
/* Scroll-Indikator auf Mobile */
@media (max-width: 767px) {
  .product-card-slider::after {
    content: '';
    flex: 0 0 1rem;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.grid-2--7-5 {
  grid-template-columns: 7fr 5fr;
}

.grid-2--5-7 {
  grid-template-columns: 5fr 7fr;
}

.grid-2--6-4 {
  grid-template-columns: 6fr 4fr;
}

/* === 11. STORY IMAGE === */
.story-image-wrap {
  position: relative;
}

.story-image-frame {
  border-radius: 4px 32px 4px 32px;
  overflow: hidden;
  transform: rotate(1.5deg);
  box-shadow: var(--shadow-xl);
  transition: transform var(--trans-spring);
}

.story-image-frame:hover {
  transform: rotate(0deg);
}

.story-image-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

/* Year decorator */
.year-decorator {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 300;
  color: var(--terracotta);
  opacity: 0.1;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

/* === 12. TRUST STRIP === */
.trust-strip {
  background: var(--linen);
  border-top: 1px solid var(--parchment);
  border-bottom: 1px solid var(--parchment);
  padding: 1.4rem 0;
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-muted);
  flex: 1;
  min-width: 180px;
  justify-content: center;
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--sage);
}

/* === 13. PARTNER PILLS === */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sage-subtle);
  border: 1px solid rgba(64, 145, 108, 0.2);
  color: var(--forest);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  transition: background var(--trans-fast), border-color var(--trans-fast);
}

.partner-pill:hover {
  background: rgba(64, 145, 108, 0.14);
  border-color: var(--sage);
}

/* === 14. EVENT CARDS === */
.event-card {
  background: var(--linen);
  border: 1px solid var(--parchment);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--trans-base), box-shadow var(--trans-base);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.event-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
}

.event-date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--terracotta);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  min-width: 56px;
}

.event-date-badge .day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.event-date-badge .month {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-top: 2px;
}

.event-type-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-subtle);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

.event-card-body {
  padding: 1rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.event-desc {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--text-xs);
  color: var(--ink-light);
  font-weight: 500;
}

/* === 15. HOURS TABLE === */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--parchment);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 1rem 0;
  vertical-align: middle;
}

.hours-table .day {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  width: 55%;
}

.hours-table .time {
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  text-align: right;
  font-weight: 500;
}

.hours-table .highlight .day {
  color: var(--terracotta);
  font-weight: 600;
}

.hours-table .highlight .time {
  color: var(--terracotta);
  font-weight: 600;
}

/* === 16. FORM === */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: var(--cream);
  border: 1.5px solid var(--parchment);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: var(--text-base);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.15);
  outline: 2px solid transparent;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* === 17. TIMELINE === */
.timeline {
  position: relative;
  padding: var(--space-lg) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--parchment) 15%, var(--parchment) 85%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-content-left {
  text-align: right;
}

.timeline-content-right {
  text-align: left;
}

.timeline-node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--terracotta);
  flex-shrink: 0;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

/* === 18. MAP PLACEHOLDER === */
.map-placeholder {
  background: var(--forest);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  color: var(--cream);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.map-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(64,145,108,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.map-placeholder h3 {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.map-placeholder p {
  color: rgba(248,244,232,0.7);
  font-size: var(--text-sm);
}

.map-disclaimer {
  font-size: var(--text-xs);
  color: rgba(248,244,232,0.68);
  margin-top: 0.5rem;
}

/* === 19. GALLERY / MASONRY === */
.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  filter: grayscale(30%);
  transition: filter 400ms ease, transform 400ms ease;
}

.gallery-item:hover img {
  filter: grayscale(0%) brightness(0.65);
  transform: scale(1.02);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 300ms ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.1rem;
  line-height: 1.25;
}

/* === 20. SECTION DIVIDER (Botanical) === */
.botanical-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: var(--space-xl) 0;
}

.botanical-divider::before,
.botanical-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--parchment);
}

.botanical-divider svg {
  flex-shrink: 0;
  color: var(--sage);
  opacity: 0.6;
}

/* === 21. SCROLL REVEAL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 3px;
}

/* === 22. COMMUNITY BANNER === */
.community-banner {
  background: radial-gradient(ellipse at center, var(--forest-mid) 0%, var(--forest-dark) 70%);
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Licht-Reflex: wie Sonnenlicht durch Blaetter */
.community-banner::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116,198,157,0.15) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: lightDrift 15s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes lightDrift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(60vw, 80px); }
  66% { transform: translate(30vw, -40px); }
  100% { transform: translate(80vw, 60px); }
}

.community-banner-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.community-banner-hours {
  font-size: var(--text-sm);
  color: rgba(248,244,232,0.82);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.community-leaf-bg {
  position: absolute;
  right: -80px;
  bottom: -60px;
  width: 380px;
  opacity: 0.06;
  pointer-events: none;
}

.community-leaf-bg-left {
  position: absolute;
  left: -80px;
  top: -60px;
  width: 280px;
  opacity: 0.05;
  pointer-events: none;
  transform: rotate(180deg);
}

/* === 23. PHILOSOPHY PILLARS === */
.pillar-card {
  background: var(--sage-subtle);
  border: 1px solid rgba(64, 145, 108, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: background var(--trans-base), transform var(--trans-base);
}

.pillar-card:hover {
  background: rgba(64, 145, 108, 0.13);
  transform: translateY(-3px);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  color: var(--forest);
  opacity: 0.85;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.pillar-text {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.7;
}

/* === 24. RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .grid-2,
  .grid-2--7-5,
  .grid-2--5-7,
  .grid-2--6-4 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

  .story-image-frame {
    transform: none;
    border-radius: var(--radius-lg);
    max-width: 400px;
    margin: 0 auto;
  }

  .year-decorator {
    display: none;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .timeline-content-left {
    display: none;
  }

  .timeline-content-right {
    text-align: left;
  }

  .gallery-grid { columns: 2; }

  .trust-strip-inner {
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .trust-item {
    justify-content: flex-start;
    min-width: 150px;
    flex: none;
    width: calc(50% - 0.4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .trust-item {
    width: 100%;
    flex: none;
  }

  /* Kontakt-CTA Buttons: untereinander auf kleinen Screens */
  .section--lg .btn {
    width: 100%;
    justify-content: center;
  }

  /* Team-Carousel: kleinere Avatare auf Mobil */
  .team-carousel-card .team-avatar-placeholder {
    width: 120px !important;
    height: 120px !important;
    font-size: 2rem !important;
  }

  /* Brottage-Badge: kleiner auf Mobil */
  .hours-table .day span {
    display: block;
    margin-left: 0 !important;
    margin-top: 0.25rem;
  }

  /* Scroll-Progress etwas dicker auf Touch */
  .scroll-progress { height: 4px; }
}

/* === 24b. BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--forest);
  color: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--trans-base), transform var(--trans-base), background var(--trans-fast);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--forest-mid);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
  }
}

/* === 25. ANIMATIONEN & EFFEKTE === */

/* Pulse fuer "Jetzt geoeffnet" Dot */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* Sanftes Blatt-Schweben im Community-Banner */
@keyframes leafFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.community-leaf-bg {
  animation: leafFloat 8s ease-in-out infinite;
}

.community-leaf-bg-left {
  animation: leafFloat 10s ease-in-out infinite reverse;
}

/* Footer-Blatt sanft atmen */
@keyframes leafBreathe {
  0%, 100% { opacity: 0.06; }
  50% { opacity: 0.09; }
}

.footer-leaf-bg {
  animation: leafBreathe 6s ease-in-out infinite;
}

/* Team-Avatar Hover: leichter Scale + Schatten */
.team-avatar-placeholder {
  transition: transform var(--trans-base), box-shadow var(--trans-base);
}

.team-card:hover .team-avatar-placeholder,
.team-carousel-card:hover .team-avatar-placeholder {
  transform: scale(1.06);
  box-shadow: var(--shadow-lg);
}

/* Partner-Pill: sanfter Hover-Lift */
.partner-pill {
  transition: transform var(--trans-fast), box-shadow var(--trans-fast), background var(--trans-fast);
}

.partner-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Card-Image Zoom on Hover */
.card-img {
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card-img {
  transform: scale(1.04);
}

/* Story-Image Frame: subtiler Schatten-Wechsel */
.story-image-frame {
  transition: box-shadow 600ms ease;
}

.story-image-frame:hover {
  box-shadow: var(--shadow-xl);
}

/* Hero: sanfter Parallax-Effekt via CSS (nur visuell, kein JS noetig) */
.hero-bg {
  transition: transform 300ms ease-out;
}

/* Sortiment-Section: subtile Kornstruktur-Animation */
@keyframes grainShift {
  0% { background-position: 0 0; }
  100% { background-position: 200px 200px; }
}

.sortiment-section::after {
  animation: grainShift 20s linear infinite;
}

/* Section-Uebergaenge: sanfte Farbverlaeufe zwischen Sections */
.story-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--linen) 100%);
}

.partners-section {
  background: linear-gradient(180deg, var(--cream) 0%, rgba(237,232,216,0.4) 100%);
}

/* Hours-Table: Zeilen-Highlight bei Hover */
.hours-table tr {
  transition: background var(--trans-fast);
}

.hours-table tr:hover {
  background: rgba(64, 145, 108, 0.05);
}

/* Directions-Item: Icon-Pulse bei Hover */
.directions-item:hover .directions-icon {
  transform: scale(1.08);
  transition: transform var(--trans-base);
}

/* Accordion: sanftere Oeffnung */
.accordion-item > div:last-child {
  transition: max-height 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Category-Card Icon: leichter Bounce bei Hover */
.category-card:hover .category-card-icon {
  animation: iconBounce 400ms ease;
}

@keyframes iconBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Map-Placeholder: subtiles Leuchten */
@keyframes mapGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.map-placeholder::after {
  animation: mapGlow 4s ease-in-out infinite;
}

/* Performance: content-visibility fuer Below-fold Sections */
.partners-section,
.section--lg,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* Smooth Scroll fuer alle internen Anker */
html {
  scroll-padding-top: 5rem;
}

/* Form-Submit Button: Lade-Effekt */
.btn--primary:active {
  transform: scale(0.97);
  transition: transform 100ms ease;
}

/* Team-Name: sanfte Farbaenderung bei Hover */
.team-card:hover .team-name,
.team-carousel-card:hover .team-name {
  color: var(--sage);
  transition: color var(--trans-fast);
}

/* Nav-Logo Blatt: subtile Rotation bei Hover */
.nav-logo:hover svg {
  transform: rotate(-5deg) scale(1.05);
  transition: transform var(--trans-base);
}

.nav-logo svg {
  transition: transform var(--trans-base);
}

/* Reduced Motion: alle Animationen respektieren */
@media (prefers-reduced-motion: reduce) {
  .community-leaf-bg,
  .community-leaf-bg-left,
  .footer-leaf-bg,
  .sortiment-section::after,
  .map-placeholder::after,
  .hero-bg,
  .community-banner::before {
    animation: none;
  }
}

/* ===================================================
   BIOPARK ENHANCEMENTS — Particles | Waves | Form
   =================================================== */

/* --- Floating Hero Particles --- */
@keyframes bp-float-a {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1);   opacity: 0.30; }
  35%       { transform: translateY(-22px) rotate(12deg) scale(1.08); opacity: 0.55; }
  65%       { transform: translateY(-10px) rotate(-7deg) scale(0.94); opacity: 0.40; }
}
@keyframes bp-float-b {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1);   opacity: 0.20; }
  40%       { transform: translateY(-16px) rotate(-8deg) scale(1.1);  opacity: 0.45; }
  70%       { transform: translateY(-6px)  rotate(5deg)  scale(0.92); opacity: 0.28; }
}
@keyframes bp-float-c {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1);   opacity: 0.35; }
  30%       { transform: translateY(-28px) rotate(15deg) scale(1.06); opacity: 0.60; }
  60%       { transform: translateY(-12px) rotate(-10deg) scale(0.96); opacity: 0.42; }
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-particle {
  position: absolute;
  width: 7px;
  height: 10px;
  border-radius: 50% 30% 60% 20% / 40% 60% 30% 70%;
  background: rgba(255, 255, 255, 0.35);
  will-change: transform, opacity;
}
.hero-particle:nth-child(odd)  { animation: bp-float-a linear infinite; }
.hero-particle:nth-child(3n)   { animation: bp-float-b linear infinite; background: rgba(116, 198, 157, 0.4); }
.hero-particle:nth-child(5n)   { animation: bp-float-c linear infinite; background: rgba(196, 115, 74, 0.3); width: 5px; height: 7px; }

/* --- Hero Wave Divider --- */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: clamp(48px, 6vw, 80px);
}

/* --- Section Wave Dividers --- */
.section-wave-top,
.section-wave-bottom {
  display: block;
  line-height: 0;
  pointer-events: none;
  overflow: hidden;
}
.section-wave-top svg,
.section-wave-bottom svg {
  display: block;
  width: 100%;
  height: clamp(40px, 5vw, 70px);
}

/* --- OpenStreetMap Embed --- */
.map-embed {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 16px;
  display: block;
  filter: saturate(0.82) brightness(1.03) sepia(0.06);
  box-shadow: 0 8px 32px rgba(27, 67, 50, 0.12);
}

/* --- Contact Form Feedback Messages --- */
.form-message {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-top: 14px;
  line-height: 1.55;
  font-family: var(--font-body);
}
.form-message--success {
  background: rgba(64, 145, 108, 0.10);
  border: 1px solid rgba(64, 145, 108, 0.30);
  color: var(--forest-mid);
}
.form-message--error {
  background: rgba(196, 115, 74, 0.10);
  border: 1px solid rgba(196, 115, 74, 0.30);
  color: var(--terracotta);
}

/* --- Logo in Navigation --- */
.nav-logo img {
  height: 64px !important;
  width: auto !important;
  object-fit: contain;
  mix-blend-mode: multiply; /* weisser JPG-Hintergrund verschwindet auf Cream-Nav */
  transition: opacity 0.3s ease;
}

/* Homepage non-scrolled: Logo auf dunklem Hero mit multiply = unsichtbar
   → JPG verstecken, SVG-Fallback (weisser Text) zeigen */
.page-home .site-header:not(.scrolled) .nav-logo img {
  display: none !important;
}
.page-home .site-header:not(.scrolled) #nav-logo-fallback-home {
  display: flex !important;
}

/* Footer: dunkler Hintergrund → Logo normal anzeigen mit Cream-Badge */
.site-footer .nav-logo img {
  mix-blend-mode: normal !important;
  background: rgba(248, 244, 232, 0.92);
  padding: 3px 8px;
  border-radius: 6px;
}

/* --- Focus Visible (WCAG 2.1 AA) --- */
*:focus {
  outline: none;
}
*:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 3px;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}
.nav-links a:focus-visible,
.nav-drawer-links a:focus-visible {
  outline: 2px solid var(--sage-light);
  outline-offset: 4px;
}
.btn:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(53, 122, 91, 0.20);
}

/* --- Reduced motion: full suppression (WCAG 2.1 AA + EAA Pflicht) --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-particle { opacity: 0 !important; }
  .hero-wave,
  .section-wave-top,
  .section-wave-bottom { display: none; }
}
