﻿:root {
  --primary: #ff9e1b;
  --secondary: #211812;
  --accent: #ff9e1b;
  --bg: #faf6f0;
  --bg-mid: #e7dfd2;
  --dark: #211812;
  --text: #211812;
}

/* Utility-Klassen (ersetzen die zuvor per Tailwind-CDN geladenen Klassen) */
.hidden { display: none; }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.translate-y-8 { transform: translateY(2rem); }
.translate-y-0 { transform: translateY(0); }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.duration-700 { transition-duration: 700ms; }

/* Reset: ersetzt das Preflight des entfernten Tailwind-CDN.
   Ohne margin:0 zeichnet der Browser 8px weissen Rand um die ganze Seite. */
html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

/* Image placeholder — zeigt wo Bilder eingefügt werden */
.img-placeholder {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,158,27,0.07) 0px,
    rgba(255,158,27,0.07) 10px,
    transparent 10px,
    transparent 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}
.img-placeholder span {
  background: rgba(255,158,27,0.85);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

.btn-primary {
  background-color: var(--primary);
  color: #211812;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: #e88e00;
  color: #211812;
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.badge-popular {
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Phone mockup frame */
.phone-frame {
  border: 3px solid #e7dfd2;
  border-radius: 36px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(139,111,71,0.18), 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
}
.phone-notch {
  background: #211812;
  height: 22px;
  border-radius: 0 0 14px 14px;
  width: 90px;
  margin: 0 auto;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #e7dfd2;
  border-radius: 28px;
  transition: 0.3s;
}
.toggle-slider:before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 4px; bottom: 4px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
input:checked + .toggle-slider { background: var(--accent); }
input:checked + .toggle-slider:before { transform: translateX(24px); }

/* Feature card */
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e7dfd2;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(139,111,71,0.13);
  transform: translateY(-3px);
}

/* Pricing card */
.pricing-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  border: 2px solid #e7dfd2;
  transition: box-shadow 0.2s;
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(139,111,71,0.18);
  transform: scale(1.03);
}

/* Testimonial card */
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e7dfd2;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--secondary);
  line-height: 1;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

/* Nav */
.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--primary); }

/* Nav dropdown ("Produkte") */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: #e7dfd2;
  font-weight: 500;
  font-size: 1rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.15s;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger { color: var(--primary); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(33, 24, 18, 0.22);
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 60;
}
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-dropdown-menu li a:hover { background: var(--bg); color: var(--primary); }

/* Section spacing */
.section { padding: 5rem 0; }

/* Divider */
.divider {
  height: 3px;
  width: 60px;
  background: var(--secondary);
  border-radius: 2px;
  margin: 1rem auto 2rem;
}

/* Star rating */
.stars { color: #ff9e1b; letter-spacing: 2px; }

/* Barrierefreiheit: Fokus-Stile */
:focus-visible {
  outline: 3px solid #ff9e1b;
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #ff9e1b;
  outline-offset: 3px;
}

/* Skip-Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #ff9e1b;
  color: #211812;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Screen-Reader-only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Logo bar */
.logo-bar-item {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #211812;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .pricing-card.popular { transform: scale(1); }
  .section { padding: 3rem 0; }
  /* Mehrspaltige Inline-Grids brechen auf eine Spalte um, egal wie tief verschachtelt */
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  /* Randlose Leisten brauchen auf kleinen Screens weniger Seitenabstand */
  header nav > div,
  footer {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* ---------- Consent-Banner ---------- */
/* Eigene Loesung ohne Drittanbieter: das Banner selbst laedt nichts nach. */
#cabalgo-consent { position: fixed; inset: 0; z-index: 9999; display: flex;
  align-items: flex-end; justify-content: center; padding: 1rem; }
#cabalgo-consent .cc-backdrop { position: absolute; inset: 0;
  background: rgba(33, 24, 18, 0.55); }
#cabalgo-consent .cc-box { position: relative; background: #fff;
  border: 1px solid #e7dfd2; border-radius: 18px; padding: 1.8rem;
  max-width: 620px; width: 100%; box-shadow: 0 18px 50px rgba(33, 24, 18, 0.25);
  animation: cc-in 0.25s ease-out; }
@keyframes cc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #cabalgo-consent .cc-box { animation: none; } }
#cabalgo-consent h2 { font-size: 1.25rem; margin: 0 0 0.6rem; color: #211812; }
#cabalgo-consent p { font-size: 0.92rem; line-height: 1.7; color: #211812; margin: 0 0 1.2rem; }
#cabalgo-consent .cc-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
#cabalgo-consent .cc-btn { flex: 1 1 200px; padding: 0.85rem 1.4rem; border-radius: 9px;
  font-weight: 600; font-size: 0.95rem; font-family: inherit; cursor: pointer;
  border: 2px solid #211812; transition: opacity 0.15s; }
#cabalgo-consent .cc-btn:hover { opacity: 0.85; }
#cabalgo-consent .cc-btn:focus-visible { outline: 3px solid #ff9e1b; outline-offset: 2px; }
#cabalgo-consent .cc-btn-primary { background: #ff9e1b; border-color: #ff9e1b; color: #fff; }
#cabalgo-consent .cc-btn-ghost { background: transparent; color: #211812; }
#cabalgo-consent .cc-links { margin: 1.1rem 0 0; font-size: 0.82rem; }
#cabalgo-consent .cc-links a { color: #211812; font-weight: 600; }
@media (min-width: 700px) { #cabalgo-consent { align-items: center; } }

/* ---------- Magazin- und Glossartexte ---------- */
/* Fliesstext bekommt eigene Typografie, damit Artikel nicht wie
   Landingpages aussehen: engere Zeilenlaenge, mehr Luft um Ueberschriften. */
.magazin-body { font-size: 1.02rem; line-height: 1.8; color: #211812; }
.magazin-body h2 { font-size: 1.6rem; line-height: 1.3; margin: 2.4rem 0 1rem; }
.magazin-body h3 { font-size: 1.2rem; line-height: 1.4; margin: 1.8rem 0 0.6rem; }
.magazin-body p { margin: 0 0 1.1rem; }
.magazin-body ul, .magazin-body ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.magazin-body li { margin-bottom: 0.55rem; }
.magazin-body a { color: #211812; font-weight: 600; }
.magazin-body a:hover { color: #ff9e1b; }
.magazin-body strong { font-weight: 700; }
.magazin-body > *:first-child { margin-top: 0; }

/* ---------- Navigation auf kleinen Bildschirmen ---------- */
/* Die Liste wird per position:absolute unter der Leiste ausgeklappt,
   dafuer braucht die Leiste einen Bezugspunkt. */
header nav { position: relative; }

.nav-burger {
  display: none;
  background: none;
  border: 0;
  color: #e7dfd2;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}
.nav-burger:hover { color: #ff9e1b; }
.nav-burger:focus-visible { outline: 3px solid #ff9e1b; outline-offset: 2px; }

@media (max-width: 900px) {
  .nav-burger { display: block; }

  /* Die Liste traegt Inline-Styles aus dem Seitenkopf, deshalb !important */
  .nav-liste {
    display: none !important;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #211812;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0.4rem 1.5rem 1.2rem !important;
    border-top: 1px solid rgba(231, 223, 210, 0.15);
    box-shadow: 0 14px 28px rgba(33, 24, 18, 0.4);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav-liste.offen { display: flex !important; }

  .nav-liste > li { width: 100%; }
  .nav-liste > li > a,
  .nav-liste > li > .nav-dropdown-trigger {
    display: block;
    width: 100%;
    padding: 0.9rem 0;
    font-size: 1.05rem;
  }
  .nav-liste > li + li { border-top: 1px solid rgba(231, 223, 210, 0.1); }

  /* Produkte-Untermenue nicht schwebend, sondern eingerueckt darunter */
  .nav-dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    min-width: 0 !important;
    padding: 0 0 0.4rem 1rem !important;
  }
  .nav-dropdown-menu li a {
    color: rgba(231, 223, 210, 0.75) !important;
    padding: 0.6rem 0 !important;
    font-size: 0.98rem;
  }
  .nav-dropdown-menu li a:hover { background: transparent !important; color: #ff9e1b !important; }
  .nav-dropdown-trigger { justify-content: space-between; }

  /* Der Abschluss-Button soll auch mobil als Schaltflaeche erkennbar bleiben */
  .nav-liste .btn-primary {
    text-align: center;
    margin-top: 0.9rem;
    padding: 0.85rem 1.4rem !important;
  }
  .nav-liste > li:last-child { border-top: 0; }
}

/* Sehr schmale Geraete: Logo etwas kleiner, damit nichts umbricht */
@media (max-width: 380px) {
  header nav img { height: 26px !important; }
  header nav > div { padding-left: 1rem !important; padding-right: 1rem !important; }
}
