/* ==========================================================================
   5ive – Custom Styles (Vorschlag3: Best-of-both)
   Ergänzt Tailwind (CDN). Design-Tokens, Blobs, organische Formen,
   Scroll-Animationen, TopicShowcase, Event-Cards (V2-Stil).
   ========================================================================== */

:root {
  --green: #7eaf90;
  --green-dark: #5f9174;
  --green-deep: #4c7a60;
  --cream: #d2c7c2;
  --cream-light: #e0d8d5;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --white: #ffffff;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* Noto Serif für Fließtexte in Sections */
section p,
.testimonial-card blockquote,
.topic-panel p {
  font-family: "Noto Serif", Georgia, serif;
}

.font-display {
  font-family: "Noto Sans", sans-serif;
  letter-spacing: -0.02em;
}

.font-script {
  font-family: "Caveat", cursive;
}

::selection {
  background: var(--green);
  color: #fff;
}

/* ==========================================================================
   Floating Blobs
   ========================================================================== */
.blob {
  position: absolute;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  filter: blur(2px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.blob--cream { background: var(--cream); }
.blob--green { background: var(--green); opacity: 0.35; }

.blob--a { animation: drift-a 22s ease-in-out infinite; }
.blob--b { animation: drift-b 28s ease-in-out infinite; }
.blob--c { animation: drift-c 34s ease-in-out infinite; }

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%       { transform: translate(40px, -30px) rotate(40deg) scale(1.08); }
  66%       { transform: translate(-25px, 25px) rotate(-25deg) scale(0.96); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%       { transform: translate(-50px, 40px) rotate(-35deg) scale(1.12); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  40%       { transform: translate(30px, 50px) rotate(30deg) scale(1.05); }
  75%       { transform: translate(-40px, -20px) rotate(-15deg) scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
  .blob--a, .blob--b, .blob--c { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Scroll-triggered Reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.9rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  will-change: transform;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 25px -10px rgba(126, 175, 144, 0.7);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px -12px rgba(126, 175, 144, 0.85);
  background: var(--green-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--green-deep);
  border: 2px solid var(--green);
}
.btn-ghost:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-3px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--green);
  transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--green-deep);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.is-open {
  max-height: 420px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease;
}
.hamburger span + span { margin-top: 6px; }
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Themen-Cards (Hero-Pills & Grid)
   ========================================================================== */
.theme-card {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.theme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -22px rgba(26, 26, 26, 0.25);
}
.theme-badge {
  display: inline-block;
  background: var(--ink-soft);
  color: #fff;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 0.5rem;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Topic Showcase (interaktiver Themenzyklus)
   ========================================================================== */
.topic-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 2px solid var(--cream);
  background: var(--cream-light);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
  width: 100%;
}
.topic-btn:hover {
  background: var(--cream);
  border-color: var(--green);
  transform: translateX(4px);
}
.topic-btn--active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(126, 175, 144, 0.55);
}
.topic-btn--active:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateX(4px);
}
.topic-btn__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
  color: var(--green-deep);
  transition: background 0.25s ease, color 0.25s ease;
}
.topic-btn--active .topic-btn__icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.topic-btn__badge {
  font-size: 0.625rem;
  font-family: "Space Grotesk", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  line-height: 1;
}
.topic-btn__title {
  font-size: 1.0625rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.2;
}
.topic-btn__chevron {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.topic-btn:hover .topic-btn__chevron,
.topic-btn--active .topic-btn__chevron {
  opacity: 1;
  transform: translateX(0);
}

/* Topic Panel */
.topic-panel {
  display: none;
}
.topic-panel.is-active {
  display: flex;
  flex-direction: column;
  animation: topicReveal 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes topicReveal {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .topic-panel.is-active { animation: none; }
}

/* ==========================================================================
   Video-Sektion (organische Blob-Masken aus V1)
   ========================================================================== */
.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 50% 50% 0 0;
  background: var(--cream);
  aspect-ratio: 9 / 16;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.video-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 60px -25px rgba(26, 26, 26, 0.35);
}
.video-card video,
.video-card .video-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--green-deep);
  text-align: center;
  padding: 1.5rem;
}

/* ==========================================================================
   Event-Cards (V2-Stil: weiche Rundungen, Cream-Hintergrund)
   ========================================================================== */
.event-card-v2 {
  border-radius: 1.5rem;
  background: var(--cream-light);
  border: 2px solid var(--cream);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.25s ease,
              background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.event-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px -24px rgba(26, 26, 26, 0.28);
  border-color: rgba(126, 175, 144, 0.35);
  background: var(--cream);
}
.event-card-v2::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(126, 175, 144, 0.08);
  transition: transform 0.5s ease;
  pointer-events: none;
}
.event-card-v2:hover::after {
  transform: scale(4);
}

/* Skeleton-Loader */
.skeleton {
  background: linear-gradient(100deg, #f3f3f3 30%, #e9e9e9 50%, #f3f3f3 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* ==========================================================================
   Formular-Felder
   ========================================================================== */
.field-input {
  width: 100%;
  background: #fff;
  border: 2px solid #ece3d6;
  border-radius: 0.9rem;
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(126, 175, 144, 0.18);
}
.field-label {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
  display: inline-block;
}

.form-feedback {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.form-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Starten-Seite: Checkliste
   ========================================================================== */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.checklist-item__icon {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--green);
  margin-top: 0.1rem;
}

/* ==========================================================================
   Testimonial-Cards
   ========================================================================== */
.testimonial-card {
  border-radius: 2rem 2rem 2rem 0.5rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -22px rgba(26, 26, 26, 0.22);
}

/* ==========================================================================
   Kontakt-Card (Starten-Seite)
   ========================================================================== */
.contact-card {
  border-radius: 1.5rem;
  background: rgba(126, 175, 144, 0.1);
  border: 1.5px solid rgba(126, 175, 144, 0.2);
  padding: 1.5rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-balance { text-wrap: balance; }

.bg-grain {
  background-image: radial-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px);
  background-size: 4px 4px;
}

.organic-quote {
  border-radius: 38% 62% 58% 42% / 52% 38% 62% 48%;
  overflow: hidden;
}
