/* ==========================================================================
   KOMMnext 2027 – Landing Page (dynamisches Fluss-Layout)
   - rechter Foto-/Wellen-Bereich = fester Teil, volle Höhe, skaliert mit
   - linke Spalte wächst frei; Text bleibt immer links vom rechten Bereich
   ========================================================================== */
/* Roboto (self-hosted, latin subset – deckt äöüß ab). Eine Datei, zwei
   Schnitte (400/700); Google liefert für diese Achse dieselbe Quelldatei. */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --green:      #86BD35;   /* Grün der Original-Kurve/Muster */
  --green-dark: #6ea227;
  --teal:       #175350;
  --ink:        #201E1D;
  --darkgreen:  #175350;
  --body:       #3a3a3a;
  --muted:      #6b6b6b;
  --font: "Roboto", Arial, "Segoe UI", sans-serif;

  /* Breite des festen rechten Bereichs (Foto + Welle). Wächst mit 40vw,
     zieht sich bei breiten Screens aber zusätzlich Richtung Textende
     (Viewport minus reservierter Textbreite), damit rechts vom Text nicht
     zu viel Leerraum entsteht. */
  --decor-w: clamp(320px, max(40vw, calc(100vw - 1150px)), 1100px);
  /* Abstand des Textes zur rechten Kante des Inhaltsbereichs */
  --zone-pad-x: clamp(28px, 3.5vw, 72px);
  /* Einheitliche Größe der grünen Marker-Quadrate (Eyebrow + Checkliste) */
  --bullet: clamp(11px, 0.92vw, 16px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--body);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
.clip-defs { position: absolute; width: 0; height: 0; }

/* ==========================================================================
   Grundgerüst
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}

/* Inhalts-Zonen (links) enden immer vor dem rechten Dekor-Bereich */
.zone {
  margin-right: var(--decor-w);
  padding-left: var(--zone-pad-x);
  padding-right: clamp(20px, 2vw, 40px);
}

/* ==========================================================================
   Rechter Dekor-Bereich: Foto + grüne Welle
   ========================================================================== */
.decor {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--decor-w);
  z-index: 0;
}
.decor__photo,
.decor__ribbon {
  position: absolute;
  inset: 0;
}
/* Grünes Wellenband (liegt unten) – Grünfläche + Chevron-Muster */
.decor__ribbon {
  background-color: var(--green);
  background-image: url("assets/muster-kurve.svg");
  background-size: cover;                  /* eine große Instanz → keine harten Kachel-Nähte */
  background-position: center;
  background-repeat: no-repeat;
  -webkit-clip-path: url(#ribbonClip);
  clip-path: url(#ribbonClip);
}
/* Foto (liegt oben, deckt das Grün bis auf das Band ab) */
.decor__photo {
  background: url("assets/photo.jpg") no-repeat center;
  background-size: cover;                  /* Foto füllt den Bereich */
  -webkit-clip-path: url(#photoClip);
  clip-path: url(#photoClip);
}

/* ==========================================================================
   Kopfzeile
   ========================================================================== */
.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-top: 25px;
}
/* logo-kommnext.png hat einen eingebauten weißen Rand um das K-Icon;
   negativer margin-left zieht das sichtbare Icon auf die Flucht der
   übrigen linksbündigen Elemente (Marker, Fließtext). */
.brand__logo { height: 90px; width: auto; margin-left: -14px; }
.organizer {
  display: flex;
  align-items: center;
  gap: clamp(8px, 0.9vw, 16px);
  padding-top: 24px;
}
.organizer__label { color: var(--body); font-size: clamp(13px, 1vw, 18px); }
.organizer__link { display: block; line-height: 0; }
.organizer__link img { 
  /*height: clamp(20px, 1.9vw, 34px);
  width: auto; */
  margin-top: -7px; 
  margin-left: -15px; 
}

/* ==========================================================================
   Inhaltsblock
   ========================================================================== */
.content {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  max-width: 1040px;
  padding-top: clamp(36px, 3vw, 80px);
  padding-bottom: clamp(24px, 3vw, 56px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: clamp(9px, 0.9vw, 16px);
  margin: 0 0 clamp(16px, 1.6vw, 28px);
  font-size: clamp(13px, 1.05vw, 18px);
  color: var(--darkgreen);
  margin-left: 3px;
}
.marker {
  width: var(--bullet);
  height: var(--bullet);
  background: var(--green);
  flex: none;
}

.title {
  margin: 0;
  font-size: clamp(42px, 5.1vw, 88px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.subtitle {
  margin: clamp(6px, 0.6vw, 12px) 0 0;
  font-size: clamp(22px, 2.5vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
}

.lead {
  margin: clamp(20px, 2vw, 38px) 0 0;
  font-size: clamp(16px, 1.35vw, 23px);
  line-height: 1.5;
  color: var(--body);
  max-width: 40em;
}
.lead strong { color: var(--ink); font-weight: 700; }

.checklist {
  list-style: none;
  margin: clamp(18px, 1.8vw, 32px) 0 0;
  padding: 0;
}
.checklist li {
  position: relative;
  padding-left: clamp(22px, 1.9vw, 34px);
  margin-bottom: clamp(6px, 0.5vw, 12px);
  font-size: clamp(16px, 1.35vw, 23px);
  line-height: 1.4;
  color: var(--body);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: var(--bullet);
  height: var(--bullet);
  background: var(--green);
}

.tagline {
  margin: clamp(22px, 2.2vw, 40px) 0 0;
  font-size: clamp(18px, 1.35vw, 28px);
  font-weight: 700;
  color: var(--teal);
}

/* ==========================================================================
   Save the Date – Box (mit Muster-Ebene)
   ========================================================================== */
.save-the-date {
  margin-top: clamp(26px, 2.6vw, 48px);
  width: clamp(300px, 25vw, 420px);
  max-width: 100%;
  padding: clamp(20px, 1.7vw, 34px) clamp(22px, 1.8vw, 36px) clamp(22px, 1.8vw, 36px);
  background-color: var(--green);
  background-image: url("assets/muster-block.svg");   /* Chevron-Muster fürs Kästchen */
  background-size: cover;
  background-repeat: no-repeat;
}
.std__title {
  margin: 0;
  font-size: clamp(22px, 1.95vw, 34px);
  font-weight: 700;
  color: var(--teal);
}
.std__date {
  margin: clamp(12px, 1.1vw, 20px) 0 0;
  font-size: clamp(18px, 1.5vw, 27px);
  font-weight: 800;
  color: var(--teal);
}
.std__place {
  margin: 2px 0 0;
  font-size: clamp(16px, 1.4vw, 24px);
  color: var(--teal);
}
.std__button {
  display: block;
  margin-top: clamp(16px, 1.5vw, 28px);
  padding: clamp(11px, 0.9vw, 18px) clamp(12px, 1vw, 20px);
  background: #ffffff;
  color: var(--teal);
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.std__button:hover,
.std__button:focus-visible { background: var(--teal); color: #fff; }

/* ==========================================================================
   Fußzeile
   ========================================================================== */
.footer {
  position: relative;
  z-index: 1;
  flex: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 1.6vw, 30px);
  padding-top: clamp(20px, 2vw, 36px);
  padding-bottom: clamp(20px, 2vw, 36px);
  font-size: clamp(13px, 1vw, 17px);
  color: var(--muted);
}
.footer__links { display: flex; gap: clamp(16px, 1.6vw, 30px); }
.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease;
}
.footer a:hover,
.footer a:focus-visible { color: var(--teal); }
.footer__funding { display: flex; align-items: center; gap: clamp(12px, 1.2vw, 22px); }
.footer__funding img { height: clamp(34px, 3.2vw, 56px); width: auto; }

/* ==========================================================================
   Mobil / schmale Viewports (< 860px): gestapelter Fluss mit Foto-Banner
   ========================================================================== */
@media (max-width: 860px) {
  .hero { overflow: visible; }

  /* Zonen nutzen volle Breite */
  .zone { margin-right: 0; padding-left: 24px; padding-right: 24px; }

  /* Dekor wird zum Foto-Banner zwischen Kopf und Inhalt */
  .decor {
    position: relative;       /* enthält die absolut positionierten Ebenen */
    order: 0;                 /* liegt im DOM nach der Kopfzeile → Banner darunter */
    width: auto;
    height: clamp(180px, 42vw, 260px);
    border-bottom: 8px solid var(--green);
    margin-top: 24px;
  }
  .decor__photo {
    -webkit-clip-path: none;
    clip-path: none;
    background-size: cover;
    background-position: center;
  }
  .decor__ribbon { display: none; }

  .topbar {
    flex-direction: column;
    gap: 18px;
    padding-top: 28px;
  }
  .brand__logo { height: 52px; margin-left: -9px; }
  .organizer { padding-top: 0; gap: 10px; }

  .content { max-width: none; padding-top: 30px; }
  .tagline { line-height: 1.25; }

  .save-the-date { width: 100%; max-width: 400px; }

  .footer {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 36px;
    padding-bottom: 32px;
  }
}
