/* ===== Variables ===== */
:root {
  --forest: #1e3a12;
  --forest-mid: #2d4a1e;
  --forest-light: #3a5c28;
  --moss: #4a7033;
  --sage: #7a9a5c;
  --bark: #5c4a2a;
  --earth: #8b6f47;
  --straw: #c8a96e;
  --cream: #f5f0e8;
  --parchment: #ede5d0;
  --ink: #1a1a14;
  --ink-soft: #3a3830;
  --mist: #e8e3d8;
  --highlight: #c17f24;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Libre Baskerville', Georgia, serif;
  --font-mono: 'DM Mono', monospace;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ===== Grain overlay ===== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--forest); }
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.8; }
em { font-style: italic; color: var(--moss); }

.dm-mono { font-family: var(--font-mono); }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--earth);
  display: block;
  margin-bottom: 0.75rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(245, 240, 232, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(90, 74, 42, 0.12);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.02em;
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--forest) !important;
  color: var(--cream) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--forest-light) !important; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  z-index: 0;
}
.c1 { width: 600px; height: 600px; background: var(--moss); top: -200px; right: -100px; }
.c2 { width: 400px; height: 400px; background: var(--straw); bottom: -100px; left: 100px; animation: drift 12s ease-in-out infinite alternate; }
.c3 { width: 300px; height: 300px; background: var(--forest); top: 40%; left: 40%; animation: drift 16s ease-in-out infinite alternate-reverse; }

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(30px, -20px); }
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
  animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--earth);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.5rem; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

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

.btn-primary {
  background: var(--forest);
  color: var(--cream);
  padding: 0.85rem 2rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--forest-light); transform: translateY(-1px); }

.btn-ghost {
  border: 1.5px solid var(--bark);
  color: var(--bark);
  padding: 0.85rem 2rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transition: all 0.2s;
  display: inline-block;
}
.btn-ghost:hover { background: var(--bark); color: var(--cream); }

.hero-illustration {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 42vw);
  opacity: 0.9;
  animation: fadeUp 1.1s 0.2s ease both;
}

.bird-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(30,58,18,0.12));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--earth);
  opacity: 0.5;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== About ===== */
.about {
  padding: 7rem 0;
  background: var(--parchment);
  border-top: 1px solid rgba(90,74,42,0.1);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1rem; }

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(90,74,42,0.15);
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--forest);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--earth);
}

/* Field notes card */
.field-notes {
  background: var(--cream);
  border: 1px solid rgba(90,74,42,0.18);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(30,58,18,0.08), 0 2px 8px rgba(30,58,18,0.05);
  transform: rotate(1.5deg);
  transition: transform 0.3s ease;
}
.field-notes:hover { transform: rotate(0deg); }

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(90,74,42,0.15);
  font-size: 0.7rem;
  color: var(--earth);
}

.note-date { opacity: 0.7; }

.note-entry {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(90,74,42,0.1);
  font-size: 0.88rem;
}

.note-entry:last-of-type { border-bottom: none; }

.species-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--earth);
  font-weight: 400;
}

.species-name {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink);
}

.species-detail {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-soft);
  opacity: 0.7;
  text-align: right;
}

.note-entry.highlight { background: rgba(193,127,36,0.08); border-radius: 2px; padding-left: 0.4rem; }
.note-entry.highlight .species-name { color: var(--highlight); }

.note-footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(90,74,42,0.15);
  font-size: 0.65rem;
  color: var(--earth);
  text-align: center;
}

/* ===== Leistungen ===== */
.leistungen {
  padding: 7rem 0;
  background: var(--cream);
}

.leistungen h2 { margin-bottom: 3rem; }

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.leistung-card {
  background: var(--parchment);
  border: 1px solid rgba(90,74,42,0.12);
  padding: 2rem;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.leistung-card--wide {
  grid-column: 1 / -1;
}

.leistung-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(30,58,18,0.1);
}

.leistung-icon {
  font-size: 1.5rem;
  color: var(--moss);
  margin-bottom: 1rem;
  display: block;
}

.leistung-card p { font-size: 0.92rem; }

/* ===== Methodik ===== */
.methodik {
  padding: 7rem 0;
  background: var(--forest);
}

.methodik .section-label { color: var(--sage); }
.methodik h2 { color: var(--cream); margin-bottom: 3rem; }

.methodik-list { display: flex; flex-direction: column; gap: 0; }

.methodik-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: start;
  min-width: 0;
}

.methodik-item > div {
  min-width: 0;
}

.methodik-item:last-child { border-bottom: none; }

.methodik-num {
  font-size: 0.75rem;
  color: var(--sage);
  padding-top: 0.2rem;
  letter-spacing: 0.05em;
}

.methodik-item h4 { color: var(--straw); margin-bottom: 0.4rem; }
.methodik-item p { color: rgba(245,240,232,0.65); font-size: 0.92rem; }

/* ===== Kontakt ===== */
.kontakt {
  padding: 7rem 0;
  background: var(--parchment);
}

.kontakt-inner { max-width: 600px; }
.kontakt h2 { margin-bottom: 1rem; }
.kontakt-sub { margin-bottom: 2.5rem; font-size: 1.05rem; }

.kontakt-options {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.kontakt-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--cream);
  border: 1.5px solid rgba(90,74,42,0.15);
  padding: 1.5rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  min-width: 180px;
}

.kontakt-card:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,58,18,0.1);
}

.kontakt-icon { font-size: 1.2rem; color: var(--moss); margin-bottom: 0.25rem; }
.kontakt-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--earth);
}
.kontakt-value {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--forest);
}

.kontakt-note {
  font-size: 0.7rem;
  color: var(--earth);
  opacity: 0.8;
}

/* ===== Footer ===== */
footer {
  background: var(--ink);
  padding: 2rem 3rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(245,240,232,0.4);
  letter-spacing: 0.05em;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .hero { padding: 7rem 1.5rem 4rem; flex-direction: column; align-items: flex-start; }
  .hero-illustration { position: relative; right: auto; top: auto; transform: none; width: 100%; max-width: 320px; margin-top: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .leistungen-grid { grid-template-columns: 1fr; }
  footer .container { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 600px) {
  /* Nav: logo zweizeilig, kompakter */
  nav { padding: 0.75rem 1.25rem; }
  .nav-logo { font-size: 1.2rem; line-height: 1.25; }
  .nav-links li:not(:last-child) { display: none; }

  /* Hero: ausreichend Abstand unter kompakterer Nav (Logo zweizeilig ~80px) */
  .hero { padding: 7.5rem 1.25rem 3rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero-sub { font-size: 0.97rem; }

  /* Methodik-Tabs: vertikal statt horizontal auf kleinen Phones */
  .methodik-tabs {
    flex-direction: column;
    border-bottom: none;
    overflow-x: visible;
    margin-bottom: 1.5rem;
  }
  .methodik-tab {
    border-bottom: none;
    border-left: 2px solid transparent;
    padding: 0.65rem 1rem;
    text-align: left;
    margin-bottom: 0;
    white-space: normal;
  }
  .methodik-tab.active {
    border-left-color: var(--straw);
    border-bottom: none;
    background: rgba(255,255,255,0.05);
  }

  .methodik-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .methodik-num { padding-top: 0; }
  .about-stats { flex-wrap: wrap; }
}

/* ===== Impressum ===== */
.impressum {
  padding: 5rem 0;
  background: var(--cream);
  border-top: 1px solid rgba(90,74,42,0.1);
}

.impressum-inner { max-width: 600px; }
.impressum h2 { margin-bottom: 2.5rem; }

.impressum-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px dashed rgba(90,74,42,0.15);
}
.impressum-block:last-child { border-bottom: none; }
.impressum-block h4 { margin-bottom: 0.5rem; }
.impressum-block p { font-size: 0.92rem; line-height: 1.9; }

/* ===== Methodik Tabs ===== */
.methodik-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.methodik-tabs::-webkit-scrollbar {
  display: none;
}

/* Select dropdown — versteckt auf Desktop, sichtbar auf Tablet */
.methodik-select-wrap {
  display: none;
  margin-bottom: 2rem;
}

.methodik-select {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--straw);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c8a96e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.methodik-select option {
  background: var(--forest);
  color: var(--cream);
}

@media (max-width: 820px) {
  .methodik-tabs { display: none; }
  .methodik-select-wrap { display: block; }
}

.methodik-tab {
  background: none;
  border: none;
  color: rgba(245,240,232,0.45);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.methodik-tab:hover {
  color: rgba(245,240,232,0.75);
}

.methodik-tab.active {
  color: var(--straw);
  border-bottom-color: var(--straw);
}

.methodik-panel {
  display: none;
}

.methodik-panel.active {
  display: block;
}

.about-image {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(90,74,42,0.15);
}

.about-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(30,58,18,0.12);
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-image img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0px 0px rgba(30,58,18,0.12);
}
