/* ==========================================================================
   DIE EIERMÄNNER — Stylesheet
   Design tokens derived from Markenleitfaden v1.0
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Manrope:wght@400;500;700&family=Caveat:wght@600&display=swap');

:root {
  /* Brand colors */
  --navy: #183B63;
  --navy-ink: #12304F;
  --blue: #27A9E1;
  --green: #6BAF45;
  --green-hover: #4F7F2F;
  --gold: #F6B11A;
  --canvas: #FAFAF7;
  --anthrazit: #2B2F33;
  --white: #FFFFFF;

  /* Type */
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-accent: 'Caveat', cursive;

  /* Rhythm */
  --radius: 22px;
  --radius-sm: 12px;
  --gap: clamp(1rem, 2vw, 2rem);
  --section-pad: clamp(4rem, 8vw, 7rem);
  --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--anthrazit);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-weight: 800; font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-weight: 700; color: var(--green); font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-weight: 700; font-size: 1.25rem; }

p { margin: 0 0 1em; }

.accent-script {
  font-family: var(--font-accent);
  font-weight: 600;
  color: var(--green);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.9em;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-hover); }

.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-gold { background: var(--gold); color: var(--navy-ink); }
.btn-gold:hover { background: #e0a112; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(24, 59, 99, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
}

.brand .badge-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2.5px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  flex-shrink: 0;
}

.brand .badge-ring svg { width: 22px; height: 22px; }

.brand .brand-name .pre { display: block; font-family: var(--font-accent); font-weight: 600; font-size: 0.95rem; color: var(--green); line-height: 1; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  margin: 0;
  padding: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}

nav.main-nav a { color: var(--navy); }
nav.main-nav a:hover { color: var(--blue); text-decoration: none; }
nav.main-nav a.is-active { color: var(--green); }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  nav.main-nav ul { gap: 1rem; font-size: 0.85rem; flex-wrap: wrap; justify-content: flex-end; }
  .brand .brand-name .pre { font-size: 0.8rem; }
}

/* ==========================================================================
   Signature element: the "ring" motif — echoes the round badge logo
   ========================================================================== */

.ring-frame {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.ring-frame svg { width: 100%; height: 100%; }

.icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: 1.4rem 0;
}

.icon-row .icon-chip {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(24, 59, 99, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-row .icon-chip svg { width: 22px; height: 22px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #EEF6F1 0%, var(--canvas) 65%);
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .icon-row { justify-content: center; }
}

.hero .lede { font-size: 1.15rem; max-width: 46ch; }
.hero .cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
@media (max-width: 860px) { .hero .cta-row { justify-content: center; } }

.hero-visual {
  position: relative;
}

.sun-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246,177,26,0.35) 0%, rgba(246,177,26,0) 70%);
  z-index: 0;
}

/* ==========================================================================
   Section framework
   ========================================================================== */

section { padding: var(--section-pad) 0; }
section.alt { background: var(--white); }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* Topic cards (Camping / Nachhaltigkeit / Digitalisierung) */
.topic-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid rgba(24,59,99,0.08);
  box-shadow: 0 18px 40px -28px rgba(24,59,99,0.35);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.topic-card .icon-chip {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topic-card .icon-chip svg { width: 26px; height: 26px; }

.topic-card.navy .icon-chip { background: rgba(24,59,99,0.08); }
.topic-card.green .icon-chip { background: rgba(107,175,69,0.12); }
.topic-card.blue .icon-chip { background: rgba(39,169,225,0.12); }

.topic-card a.more { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; }

.founder-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 22px 50px -28px rgba(24,59,99,0.45);
  border: 1px solid rgba(24,59,99,0.08);
}
.founder-photo img { width: 100%; height: auto; display: block; }

/* Founders */
.founders-strip {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.founder-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.founder-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Quote / value pill list */
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.value-list li { display: flex; gap: 0.8rem; align-items: flex-start; font-weight: 500; }
.value-list li .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-top: 0.55em; flex-shrink: 0; }

/* CTA banner */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius);
  color: var(--white);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.82); max-width: 52ch; margin-left: auto; margin-right: auto; }

/* Forms (contact / newsletter) */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid rgba(24,59,99,0.08);
}

.field { margin-bottom: 1.1rem; display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75em 0.9em;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(24,59,99,0.18);
  background: var(--canvas);
  color: var(--anthrazit);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(39,169,225,0.18);
}

.form-note { font-size: 0.85rem; color: rgba(43,47,51,0.65); margin-top: 0.6rem; }

.flash {
  border-radius: var(--radius-sm);
  padding: 0.9em 1.1em;
  margin-bottom: 1.3rem;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 0.92rem;
}
.flash.success { background: rgba(107,175,69,0.15); color: var(--green-hover); }
.flash.error { background: rgba(246,177,26,0.18); color: #8a5c00; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 2rem;
}
.site-footer a { color: var(--white); }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 720px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 0.95rem; letter-spacing: 0.03em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
