/* =========================================================
   Rasende Pferdewaage – Stylesheet
   Klassische Webseite, keine Frameworks. Alles selbst gehostet.
   ========================================================= */

/* ---------- Schriften (lokal) ---------- */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/raleway-400.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/raleway-600.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/raleway-700.woff2") format("woff2");
}

/* ---------- Design-Variablen ---------- */
:root {
  --brand: #79a74d;
  --brand-dark: #5f8a3c;
  --brand-darker: #4c7030;
  --brand-light: #eef3e7;
  --brand-tint: #f6f8f2;
  --muted: #737373;
  --heading: #3f4a33;
  --text: #4d4d4d;
  --white: #ffffff;
  --surface: #ffffff;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --maxw: 1180px;
}

/* Dark Mode: wird per data-theme="dark" auf <html> aktiviert (siehe
   assets/js/theme.js). Die Markenfarbe bleibt bewusst gleich, nur
   Flächen, Text und Kontraste wechseln. */
:root[data-theme="dark"] {
  --brand-light: #26311f;
  --brand-tint: #1b2116;
  --muted: #a9b3a0;
  --heading: #f2f5ee;
  --text: #d7ddd0;
  --white: #12160f;
  --surface: #1a2015;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset / Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

a {
  color: var(--brand-dark);
  text-decoration: none;
}


h1,
h2,
h3,
h4 {
  font-family: "Raleway", system-ui, sans-serif;
  color: var(--heading);
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}
h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

/* ---------- Layout-Helfer ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}
.section--tint {
  background: var(--brand-tint);
}
.section--light {
  background: var(--brand-light);
}

.text-center {
  text-align: center;
}
.narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}
.btn svg {
  width: 1.15em;
  height: 1.15em;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}
.btn-outline {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: transparent;
}
.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}
.btn-whatsapp {
  border-color: #25d366;
  color: #25d366;
  background: transparent;
}
.btn-whatsapp:hover {
  background: #25d366;
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 2.5rem;
  max-width: 1700px;
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  flex-shrink: 0;
}
.logo img {
  height: 96px;
  width: auto;
}
.main-nav-wrap {
  min-width: 0;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.badge {
  flex-shrink: 0;
  line-height: 0;
}
.badge img {
  height: 88px;
  width: 88px;
  object-fit: contain;
}

.theme-toggle {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}
.theme-toggle-icon {
  display: flex;
}
.theme-toggle-icon svg {
  width: 19px;
  height: 19px;
}
.theme-toggle-icon--moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle-icon--sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle-icon--moon {
  display: flex;
}

/* Desktop-Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.main-nav > li {
  position: relative;
  list-style: none;
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.6rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.16);
}
.main-nav .caret {
  width: 0.8rem;
  height: 0.8rem;
  transition: transform 0.2s;
}
.has-sub:hover .caret {
  transform: rotate(180deg);
}
.submenu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 230px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.has-sub:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  color: var(--heading);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
}
.submenu a:hover {
  background: var(--brand-light);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 0.55rem;
  cursor: pointer;
}
.nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* Mobile-Navigation */
.mobile-nav {
  display: none;
  background: var(--brand);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.mobile-nav.open {
  display: block;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.mobile-nav > ul > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.mobile-nav a {
  color: #fff;
  display: block;
  padding: 0.8rem 0;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.mobile-nav .submenu-m {
  list-style: none;
  padding: 0 0 0.5rem 1rem;
}
.mobile-nav .submenu-m a {
  text-transform: none;
  font-weight: 400;
  padding: 0.4rem 0;
  opacity: 0.9;
}

/* ---------- Hero-Slider ---------- */
.hero {
  position: relative;
  height: 84vh;
  min-height: 520px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.hero-content .inner {
  max-width: 780px;
}
.hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.hero-content p {
  color: #fff;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  margin-top: 0.75rem;
}
.hero-content .btn {
  margin-top: 1.75rem;
}
.hero-dots {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.6rem;
}
.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s, background 0.3s;
}
.hero-dots button.active {
  width: 30px;
  background: var(--surface);
}
.scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.9);
  animation: bob 1.8s ease-in-out infinite;
}
.scroll-hint svg {
  width: 30px;
  height: 30px;
}
@keyframes bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(9px);
  }
}

/* ---------- Seiten-Kopf (Unterseiten) ---------- */
.page-hero {
  position: relative;
  background: var(--brand);
  color: #fff;
  overflow: hidden;
}
.page-hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(76, 112, 48, 0.72),
    rgba(95, 138, 60, 0.72)
  );
}
.page-hero .inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  text-align: center;
}
.page-hero h1 {
  color: #fff;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  margin: 1rem auto 0;
  max-width: 640px;
}

/* ---------- Intro ---------- */
.intro h2 {
  margin-top: 0.5rem;
}

/* ---------- Kacheln ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}
.tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.tile .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.tile .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.tile:hover .thumb img {
  transform: scale(1.06);
}
.tile .body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tile .body p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}
.tile .more {
  color: var(--brand-dark);
  font-weight: 600;
  font-family: "Raleway", sans-serif;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ---------- Cards / Gründe ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.75rem;
}
.card .num {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--brand-light);
  line-height: 1;
}
.card h2,
.card h3 {
  margin-top: 0.4rem;
}
.card p {
  color: var(--muted);
  margin-bottom: 0;
  margin-top: 0.6rem;
}

/* ---------- Grund-Karten (Warum wiegen?) ---------- */
.reason-card {
  text-align: center;
}
.reason-media {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
}
.reason-media img {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 6px var(--brand-light);
}
.reason-num {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
}
.reason-card h2 {
  font-size: 1.2rem;
}
.reason-card p {
  text-align: left;
}

/* ---------- Gerundetes Inhaltsbild ---------- */
.figure-rounded {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 0;
}
.figure-rounded img {
  width: 100%;
  height: auto;
}

/* ---------- Download-Aushang ---------- */
.download-panel {
  margin-top: 3rem;
}
.download-panel .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ---------- Liste mit Haken ---------- */
.check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: var(--muted);
}
.check-list .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.check-list .tick svg {
  width: 15px;
  height: 15px;
}

/* ---------- Schritte ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 2rem 0 0;
  padding: 0;
}
.steps li {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.steps .n {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
}
.team-flip-card {
  aspect-ratio: 3 / 4;
  perspective: 1400px;
}
.team-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.team-flip-inner:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 3px;
}
.team-flip-card.is-flipped .team-flip-inner {
  transform: rotateY(180deg);
}
.team-flip-front,
.team-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
}
.team-flip-front {
  background: var(--brand-light);
}
.team-flip-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.team-flip-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-darker));
}
.team-flip-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.team-flip-name {
  font-family: "Raleway", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.team-flip-role {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
}
.team-flip-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
}
.team-flip-hint svg {
  width: 13px;
  height: 13px;
}
.team-flip-back {
  transform: rotateY(180deg);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  display: flex;
}
.team-flip-back-inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  overflow-y: auto;
  width: 100%;
}
.team-flip-name-back {
  font-family: "Raleway", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
}
.team-flip-role-back {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 0.25rem;
}
.team-flip-p {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.55;
}
.team-flip-sign {
  display: block;
  font-family: "Raleway", sans-serif;
  color: var(--heading);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

@media (max-width: 560px) {
  .team-flip-card {
    aspect-ratio: 4 / 5;
  }
}
@media (prefers-reduced-motion: reduce) {
  .team-flip-inner {
    transition: none;
  }
}

/* ---------- CTA ---------- */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ---------- Social ---------- */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  transition: transform 0.2s;
}
.social-btn:hover {
  transform: scale(1.05);
  color: #fff;
}
.social-btn svg {
  width: 1.2em;
  height: 1.2em;
}
.bg-fb {
  background: #1877f2;
}
.bg-ig {
  background: linear-gradient(45deg, #feda75, #d62976, #4f5bd5);
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.75rem;
}
.panel--tint {
  background: var(--brand-tint);
  box-shadow: none;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.contact-list li {
  margin-bottom: 1rem;
}
.contact-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--heading);
}
.contact-list a:hover {
  color: var(--brand-dark);
}
.contact-list .ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-list .ico svg {
  width: 20px;
  height: 20px;
}
.contact-list .ico.wa {
  background: #25d366;
}

/* ---------- Formular ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field {
  margin-bottom: 1.25rem;
}
.field label,
.field legend {
  display: block;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--heading);
  margin-bottom: 0.4rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(121, 167, 77, 0.25);
}
.radio,
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.radio input,
.checkbox input {
  accent-color: var(--brand);
  margin-top: 0.3rem;
}
.form-note {
  margin-top: 1rem;
  background: var(--brand-light);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--heading);
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .plus {
  flex: none;
  color: var(--brand);
  transition: transform 0.2s;
}
.faq-item summary .plus svg {
  width: 20px;
  height: 20px;
}
.faq-item[open] summary .plus {
  transform: rotate(45deg);
}
.faq-item .answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
}

/* ---------- Prose (rechtliche Seiten) ---------- */
.prose {
  max-width: 760px;
  color: var(--muted);
}
.prose h2 {
  margin: 2.25rem 0 0;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 1.5rem 0 0;
}
.prose p {
  margin: 0.9rem 0 0;
}
.prose a {
  color: var(--brand-dark);
  text-decoration: underline;
}
.prose strong {
  color: var(--heading);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand);
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 0;
}
.site-footer h3 {
  color: #fff;
}
.site-footer img.flogo {
  height: 78px;
  width: auto;
}
.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.footer-contact li {
  margin-bottom: 0.4rem;
}
.site-footer a {
  color: #fff;
}
.site-footer a:hover {
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.3);
}
.footer-social svg {
  width: 20px;
  height: 20px;
}
.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.btn-ghost {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--brand-dark);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 3rem;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ---------- WhatsApp schwebend ---------- */
.wa-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  transition: transform 0.2s;
}
.wa-float:hover {
  transform: scale(1.05);
  color: #fff;
}
.wa-float svg {
  width: 24px;
  height: 24px;
}

/* ---------- Utility ---------- */
.mt-cta {
  margin-top: 3rem;
}
.center-btn {
  margin-top: 2rem;
  text-align: center;
}

.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;
}

/* ---------- Skip-Link (Barrierefreiheit) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--surface);
  color: var(--brand-dark);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* Hinweis, dass Oberpunkte klickbar sind */
.has-sub > a .caret {
  opacity: 0.85;
}

/* ---------- Preis-Vergleichstabelle ---------- */
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.compare th,
.compare td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: middle;
}
.compare thead th {
  background: var(--brand-tint);
  vertical-align: bottom;
}
.compare thead .col-pkg {
  text-align: center;
  width: 130px;
  font-family: "Raleway", sans-serif;
  color: var(--heading);
}
.compare thead .col-pkg .pkg-name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}
.compare thead .col-pkg .price {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-top: 0.35rem;
  line-height: 1.1;
}
.compare thead .col-pkg .unit {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}
.compare thead .col-pkg .pill {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}
.compare .is-featured {
  background: var(--brand-light);
  border-left: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
}
.compare tbody td:first-child {
  color: var(--text);
  font-weight: 500;
}
.compare tbody .mark {
  text-align: center;
}
.compare .yes {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  align-items: center;
  justify-content: center;
}
.compare .yes svg {
  width: 15px;
  height: 15px;
}
.compare .no {
  display: inline-flex;
  width: 26px;
  height: 26px;
  color: #c2c2c2;
  align-items: center;
  justify-content: center;
}
.compare .no svg {
  width: 15px;
  height: 15px;
}
.compare .opt {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}
.compare tfoot td {
  text-align: center;
  border-bottom: 0;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.price-footnote {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 620px) {
  .compare th,
  .compare td {
    padding: 0.7rem 0.5rem;
    font-size: 0.9rem;
  }
  .compare thead .col-pkg {
    width: 78px;
  }
  .compare thead .col-pkg .price {
    font-size: 1.2rem;
  }
  .compare thead .col-pkg .pill {
    font-size: 0.55rem;
    padding: 0.1rem 0.35rem;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1300px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 3rem 0;
  }
  .tiles {
    grid-template-columns: 1fr;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero {
    height: 64vh;
    min-height: 420px;
  }
  .header-inner {
    padding: 0.5rem 1rem;
  }
  .logo img {
    height: 60px;
  }
  .badge img {
    height: 52px;
    width: 52px;
  }
  .header-right {
    gap: 0.5rem;
  }
}

/* =========================================================
   Chat-Assistentin "Sofia"
   ========================================================= */
.sofia-widget {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 95;
  font-family: "Raleway", sans-serif;
}
.sofia-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--brand);
  color: #fff;
  border: 0;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.sofia-launcher:hover {
  background: var(--brand-dark);
  transform: scale(1.05);
}
.sofia-launcher-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.sofia-panel {
  position: fixed;
  left: 1.25rem;
  bottom: 5.75rem;
  width: min(380px, calc(100vw - 2.5rem));
  max-height: min(600px, calc(100vh - 8rem));
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sofia-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  padding: 0.85rem 1rem;
  flex-shrink: 0;
}
.sofia-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.sofia-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 700;
  flex-shrink: 0;
}
.sofia-header-info strong {
  display: block;
  line-height: 1.2;
}
.sofia-subtitle {
  display: block;
  font-size: 0.72rem;
  opacity: 0.9;
}
.sofia-icon-btn {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0.35rem;
  display: inline-flex;
  border-radius: 6px;
}
.sofia-icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.sofia-icon-btn svg {
  width: 20px;
  height: 20px;
}
#sofia-close svg {
  color: #fff;
}

.sofia-consent {
  padding: 1rem;
  overflow-y: auto;
}
.sofia-consent p {
  font-size: 0.88rem;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.sofia-consent .btn {
  width: 100%;
  justify-content: center;
}

.sofia-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--brand-tint);
}
.sofia-msg {
  max-width: 82%;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.sofia-msg.bot {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.sofia-msg.user {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.sofia-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.7rem 0.9rem;
}
.sofia-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.6;
  animation: sofia-blink 1.2s infinite ease-in-out;
}
.sofia-typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.sofia-typing span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes sofia-blink {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.sofia-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.sofia-input-row input {
  flex: 1;
  border: 1px solid #ddd6c8;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
}
.sofia-input-row input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.sofia-send {
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}
.sofia-send:hover {
  background: var(--brand-dark);
}

.sofia-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem 0.75rem;
  flex-shrink: 0;
}
.sofia-link-btn {
  background: transparent;
  border: 0;
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0;
  text-decoration: underline;
}

.sofia-handoff {
  padding: 1rem;
  overflow-y: auto;
}
.sofia-handoff h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.sofia-handoff p {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.sofia-handoff .field {
  margin-bottom: 0.75rem;
}
.sofia-handoff .field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.sofia-handoff input[type="text"],
.sofia-handoff input[type="email"],
.sofia-handoff textarea {
  width: 100%;
  border: 1px solid #ddd6c8;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-family: inherit;
  font-size: 0.88rem;
}
.sofia-handoff .checkbox {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.sofia-handoff-actions {
  display: flex;
  gap: 0.6rem;
}
.sofia-handoff-actions .btn {
  flex: 1;
  justify-content: center;
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.4rem 0.7rem;
  }
  .logo img {
    height: 42px;
  }
  .badge img {
    height: 40px;
    width: 40px;
  }
  .header-right {
    gap: 0.35rem;
  }
  .theme-toggle {
    width: 38px;
    height: 38px;
  }
  .nav-toggle {
    padding: 0.4rem;
  }
  .hero {
    height: 58vh;
    min-height: 380px;
  }
  .page-hero .inner {
    padding: 2.75rem 1.1rem;
  }
  .sofia-widget {
    left: 0.6rem;
    bottom: 0.6rem;
  }
  .sofia-panel {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 4.75rem;
    width: auto;
    max-height: calc(100vh - 6.5rem);
  }
  .sofia-launcher-text {
    display: none;
  }
  .sofia-launcher {
    padding: 0.8rem;
    border-radius: 50%;
  }
}

/* Muss ganz am Ende stehen: das hidden-Attribut steuert das Ein-/Ausblenden
   von Panel, Nachrichten, Formular etc. - ohne diese Regel überschreiben
   die "display: flex"-Regeln oben das Verstecken, wodurch sich der Chat
   z. B. nicht mehr schließen ließe. */
.sofia-widget [hidden] {
  display: none !important;
}

/* =========================================================
   "Warum Pferde wiegen?" – modernes Akkordeon-Layout
   ========================================================= */
.reasons-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 820px;
  margin: 0 auto;
}
.reason-item {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.reason-item.is-open {
  border-color: var(--brand);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.reason-item-head {
  margin: 0;
}
.reason-item-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.reason-item-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.reason-item-icon svg {
  width: 32px;
  height: 32px;
}
.is-open .reason-item-icon {
  background: var(--brand);
  color: #fff;
}
.reason-item-title {
  flex: 1;
  font-weight: 700;
  color: var(--heading);
  font-size: 1.2rem;
  line-height: 1.35;
}
.reason-item-caret {
  flex-shrink: 0;
  display: flex;
  color: var(--brand-dark);
}
.reason-item-caret svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s;
}
.is-open .reason-item-caret svg {
  transform: rotate(180deg);
}
.reason-item-panel-inner {
  padding: 0 1.5rem 1.4rem calc(64px + 2.75rem);
}
.reason-item-panel-inner p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 560px) {
  .reason-item-toggle {
    gap: 0.9rem;
    padding: 1.1rem 1.15rem;
  }
  .reason-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }
  .reason-item-icon svg {
    width: 24px;
    height: 24px;
  }
  .reason-item-panel-inner {
    padding: 0 1.15rem 1.15rem 1.15rem;
  }
  .reason-item-title {
    font-size: 1.02rem;
  }
}
