/* ============================================================
   Thoka Network – Golfclub Webdesign
   Design: Organic Modernism mit skandinavischer Reduktion
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --moss:       #3d6b35;
  --moss-dark:  #2d5027;
  --moss-light: #e8f0e6;
  --sand:       #f9f6f0;
  --sand-dark:  #ede8df;
  --terracotta: #b5663a;
  --terracotta-dark: #9a5530;
  --sky:        #4a7fa5;
  --charcoal:   #2c2c2c;
  --muted:      #6b7280;
  --white:      #ffffff;
  --border:     #e2ddd6;
  --radius:     1rem;
  --radius-sm:  0.5rem;
  --radius-lg:  1.5rem;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.items-center { align-items: center; }
.mt-auto { margin-top: auto; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2rem; }
.mt-xl { margin-top: 3rem; }
.mb-xl { margin-bottom: 3rem; }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.gap-md { gap: 1.5rem; }
.gap-lg { gap: 2rem; }
.gap-xl { gap: 3rem; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--moss);
  transition: opacity var(--transition);
}
.nav__logo:hover { opacity: 0.8; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-weight: 500;
  color: var(--charcoal);
  transition: color var(--transition);
}
.nav__link:hover, .nav__link--active { color: var(--moss); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav__burger { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__cta { width: 100%; text-align: center; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--round { border-radius: 9999px; }

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

.btn--accent { background: var(--moss); color: var(--white); }
.btn--accent:hover { background: var(--moss-dark); }

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

.btn--secondary { background: var(--sand-dark); color: var(--charcoal); }
.btn--secondary:hover { background: var(--border); }

.btn--ghost {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.2); }

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

.btn__icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(181,102,58,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(181,102,58,0); }
}
.breathe { animation: breathe 2.5s ease-in-out infinite; }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section--light { background: var(--white); }
.section--sand { background: var(--sand); }
.section--green {
  background: linear-gradient(135deg, var(--moss-dark) 0%, #1e3d1a 100%);
  position: relative;
  overflow: hidden;
}
.section--green::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.section__header { margin-bottom: 3rem; }
.section__lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 48rem;
  margin: 1rem auto 0;
}

.text-white { color: var(--white); }
.text-white\/80 { color: rgba(255,255,255,0.8); }
.text-white\/90 { color: rgba(255,255,255,0.9); }
.text-xl { font-size: 1.2rem; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--moss); }
.font-bold { font-weight: 700; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--moss-dark) 0%, #1e3d1a 100%);
  overflow: hidden;
  padding-top: 5rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: blur(2px);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 1.5rem;
}

.hero__text h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero__sub { font-size: 1.3rem; color: rgba(255,255,255,0.9); margin-bottom: 2rem; font-weight: 300; }

.hero__image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 80px;
}
.wave-divider svg { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { display: none; }
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card--border { border: 2px solid var(--border); box-shadow: none; }
.card--border:hover { border-color: var(--moss); }
.card--white { background: var(--white); }
.card--accent { border: 2px solid var(--terracotta); }
.card--border-primary { border: 2px solid var(--moss); }
.card--narrow { max-width: 48rem; }

.card--featured {
  border: 3px solid var(--moss);
  transform: scale(1.03);
  position: relative;
}

.card__badge {
  display: inline-block;
  background: var(--moss);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.card__icon {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: var(--moss-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  padding: 1rem;
}

.card__target { color: var(--muted); margin-bottom: 0.5rem; }
.card__price { font-size: 1.8rem; font-weight: 900; color: var(--moss); margin: 0.75rem 0 1.5rem; font-family: var(--font-display); }

.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--muted); }

/* ── Checklist ────────────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 0.75rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
}
.checklist li::before {
  content: '';
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  background: var(--moss);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 0.2rem;
}

/* ── ROI Box ──────────────────────────────────────────────── */
.roi-box {
  background: var(--moss-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.roi-box__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--moss);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ── Contact Form ─────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-group label { font-weight: 600; font-size: 1rem; }

.form-group input {
  height: 3rem;
  padding: 0 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus {
  outline: none;
  border-color: var(--moss);
}
.form-group input::placeholder { color: #aaa; }

.form-error {
  background: #fee2e2;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Erfolgsmeldung */
.form-success {
  text-align: center;
  padding: 2rem 0;
}
.form-success__icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--moss);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.form-success__icon svg { width: 2.5rem; height: 2.5rem; color: var(--white); }
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ── Accordion (FAQ) ──────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 1rem; }

.accordion__item {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion__trigger {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-body);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--charcoal);
  transition: color var(--transition);
}
.accordion__trigger:hover { color: var(--moss); }
.accordion__trigger::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--moss);
}
.accordion__trigger[aria-expanded="true"]::after { transform: rotate(45deg); }

.accordion__content {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
}
.accordion__content.is-open { display: block; }

/* ── CTA Buttons ──────────────────────────────────────────── */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Metrics ──────────────────────────────────────────────── */
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.metric {
  background: var(--moss-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.metric__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--moss);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.metric__label { font-size: 0.85rem; color: var(--muted); }

/* ── Testimonial ──────────────────────────────────────────── */
.testimonial {
  background: var(--sand);
  border-left: 4px solid var(--moss);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 2rem;
  font-style: italic;
  color: var(--charcoal);
}
.testimonial p { font-size: 1.1rem; margin-bottom: 1rem; }
.testimonial footer { font-style: normal; color: var(--muted); font-size: 0.9rem; }

/* ── Case Studies ─────────────────────────────────────────── */
.case-study { max-width: 1000px; margin: 0 auto; }
.case-study__meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.case-study__subtitle { font-size: 1.2rem; color: var(--muted); margin-top: 0.5rem; }

.tag {
  display: inline-block;
  background: var(--moss-light);
  color: var(--moss);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero {
  padding: 8rem 0 5rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero__label {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

/* ── Legal Pages ──────────────────────────────────────────── */
.legal-page {
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--moss);
  font-weight: 600;
  margin-bottom: 2.5rem;
  transition: opacity var(--transition);
}
.back-link:hover { opacity: 0.7; }
.back-link svg { width: 1.2rem; height: 1.2rem; }

.legal-content { max-width: 48rem; }
.legal-content h1 { margin-bottom: 2rem; }
.legal-content section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.legal-content section:last-child { border-bottom: none; }
.legal-content h2 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--charcoal); }
.legal-content h3 { font-size: 1.15rem; margin: 1.5rem 0 0.75rem; }
.legal-content h4 { font-size: 1rem; margin: 1rem 0 0.5rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li { margin-bottom: 0.25rem; }
.legal-content a { color: var(--moss); text-decoration: underline; }

.info-box {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}
.info-box--highlight {
  border-left: 4px solid var(--moss);
  background: var(--moss-light);
}

/* ── Images ───────────────────────────────────────────────── */
.img-rounded { border-radius: var(--radius-lg); }
.img-shadow { box-shadow: var(--shadow-lg); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #1e2e1a;
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a { color: rgba(255,255,255,0.7); transition: color var(--transition); font-size: 0.9rem; }
.footer__links a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer__bottom a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer__bottom a:hover { color: var(--white); }

.footer__bottom nav { display: flex; gap: 1rem; align-items: center; }

/* ── Scroll Animations ────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .card { padding: 1.5rem; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .card--featured { transform: none; }
  .hero { min-height: auto; padding: 6rem 0 4rem; }
}
