/* ==========================================================================
   HGO Dienstleistungen — Stylesheet
   ========================================================================== */

:root {
  --green-900: #14301a;
  --green-800: #1a4322;
  --green-700: #226332;
  --green-600: #2f8f3a;
  --green-500: #43ab48;
  --green-400: #7cc96c;
  --green-100: #e2f5db;
  --green-50: #f3fbef;
  --lime: #89c431;
  --ink: #1c2621;
  --ink-soft: #4d5d55;
  --white: #ffffff;
  --border: #dfe9e2;
  --shadow-sm: 0 2px 10px rgba(22, 58, 43, .08);
  --shadow-md: 0 14px 34px rgba(22, 58, 43, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --font-head: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--green-900); }
p { line-height: 1.65; color: var(--ink-soft); margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--lime); color: var(--green-900); }
.btn-primary:hover { background: #9ed13f; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: var(--white); color: var(--green-800); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22, 58, 43, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 90px; height: auto;
  flex-shrink: 0;
}
.brand-mark-light { width: 110px; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--green-900); line-height: 1.2; }
.brand-text strong { font-weight: 700; }

.main-nav { display: flex; gap: 22px; }
.main-nav a { white-space: nowrap; }
.main-nav a { font-weight: 500; font-size: .92rem; color: var(--ink); position: relative; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--green-600); transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }
.main-nav .nav-cta { display: none; }
.main-nav .nav-cta::after { display: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--green-800); white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--green-900); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,30,21,.92) 0%, rgba(10,30,21,.82) 35%, rgba(10,30,21,.45) 65%, rgba(10,30,21,.1) 100%),
    linear-gradient(0deg, rgba(10,30,21,.6) 0%, rgba(10,30,21,0) 40%);
}
.hero-content { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 90px; }
.hero-content h1, .hero-content .hero-lead, .hero-content .eyebrow, .hero-trust li { text-shadow: 0 1px 3px rgba(0,0,0,.5), 0 2px 18px rgba(0,0,0,.45); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green-400);
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  max-width: 900px;
  hyphens: manual;
  margin-bottom: .4em;
}
.hero-lead { color: var(--white); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 46ch; margin-bottom: 2em; }
.hero-lead strong { color: var(--lime); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-trust { display: flex; flex-wrap: wrap; row-gap: 10px; column-gap: 26px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--white); }
.hero-trust svg { color: var(--lime); flex-shrink: 0; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--green-50); }
.section-green { background: var(--green-100); }
.section-dark { background: linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 100%); }
.section-dark .section-title, .section-dark h3 { color: var(--white); }
.section-dark .section-eyebrow { color: var(--green-400); }
.section-dark p { color: rgba(255,255,255,.82); }
.section-dark p strong { color: var(--lime); }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700;
  color: var(--green-600); margin-bottom: 12px;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 22ch; }
.section-lead { max-width: 58ch; font-size: 1.05rem; margin-bottom: 3em; }

/* Leistungen grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--green-100); }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
@media (hover: hover) {
  .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-400); }
  .service-card:hover .service-card-media img { transform: scale(1.06); }
  .gallery-item:hover img { transform: scale(1.06); }
}
.service-card-body { padding: 22px 24px 26px; background: var(--white); }
.service-card h3 { font-size: 1.15rem; margin-bottom: .5em; }
.service-card p { margin: 0; font-size: .92rem; }
.service-card p strong, .detail-text p strong { color: var(--green-700); }

/* Leistungen im Detail */
.detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.detail-block:last-child { border-bottom: none; padding-bottom: 0; }
.detail-block:first-of-type { padding-top: 0; }
.detail-block[id], .detail-block-full[id] { scroll-margin-top: 90px; }
.detail-block.reverse .detail-media { order: -1; }
.detail-block-full {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.detail-block-full:last-child { border-bottom: none; padding-bottom: 0; }
.detail-block-full .detail-text { max-width: 680px; margin-bottom: 40px; }

.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.ba-grid .ba-slider { max-width: none; aspect-ratio: 4/3; }
.ba-grid-item .ba-label { font-size: .68rem; padding: 5px 12px; }
.ba-grid-item .ba-handle { width: 36px; height: 36px; }
.detail-media .ba-slider { max-width: none; margin: 0; }
.detail-media > img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.detail-icon { width: 44px; height: 44px; object-fit: contain; margin-bottom: 14px; }
.detail-text h3 { font-size: 1.5rem; }
.check-list { margin: 22px 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-size: .96rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12' fill='%232f8a5c'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.link-inline { color: var(--green-700); font-weight: 600; font-size: .92rem; }
.link-inline:hover { text-decoration: underline; }

/* Vorher/Nachher slider */
.ba-slider {
  position: relative;
  max-width: 900px;
  aspect-ratio: 4/3;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.ba-image { position: absolute; inset: 0; }
.ba-image img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-after { z-index: 1; }
.ba-before { z-index: 2; clip-path: inset(0 50% 0 0); }
.ba-label {
  position: absolute; top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(22, 58, 43, .65);
  backdrop-filter: blur(3px);
}
.ba-label-before { left: 16px; }
.ba-label-after { right: 16px; }
.ba-range {
  position: absolute; inset: 0;
  z-index: 3;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.ba-handle {
  position: absolute;
  z-index: 4;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  background: var(--white);
  color: var(--green-700);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ba-range:focus-visible ~ .ba-handle { outline: 3px solid var(--lime); outline-offset: 3px; }
.ba-handle::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 3px; height: 2000px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 6px rgba(0,0,0,.25);
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* Bildergalerie */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--green-500); color: var(--green-700); }
.filter-btn.active { background: var(--green-600); border-color: var(--green-600); color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: zoom-in;
  background: var(--green-100);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item.is-hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 30, 22, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: background .15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* About */
.about-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.about-badge {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-100), var(--white));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.about-badge img { width: 150px; height: auto; }
.about-text .btn { margin-top: 10px; }

/* Kontakt */
.kontakt-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; }
.kontakt-list { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; }
.kontakt-list li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--green-900); }
.kontakt-list svg { color: var(--green-600); flex-shrink: 0; }
.kontakt-note { font-size: .9rem; color: var(--ink-soft); }

.kontakt-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row-half { flex-direction: row; gap: 18px; }
.form-row-half > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.kontakt-form label { font-size: .85rem; font-weight: 600; color: var(--green-900); }
.kontakt-form input, .kontakt-form select, .kontakt-form textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 1rem; /* ab 16px zoomt iOS beim Antippen nicht hinein */
  color: var(--ink);
  background: var(--green-50);
  transition: border-color .15s ease, background .15s ease;
}
.kontakt-form input:focus, .kontakt-form select:focus, .kontakt-form textarea:focus {
  outline: none; border-color: var(--green-500); background: var(--white);
}
.form-checkbox { flex-direction: row; align-items: flex-start; gap: 10px; }
.form-checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-600); }
.form-checkbox label { font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.form-checkbox a { color: var(--green-700); font-weight: 600; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.form-status.success { color: var(--green-700); }
.form-status.error { color: #b3403a; }

/* Footer */
.site-footer { position: relative; background: var(--green-900); color: rgba(255,255,255,.82); padding-top: 46px; }
.footer-grass { display: block; width: 100%; height: auto; opacity: .6; pointer-events: none; }
.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 40px 24px 50px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { color: var(--white); font-family: var(--font-head); font-size: 1.05rem; }
.footer-brand p { margin: 4px 0 0; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: .92rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); position: relative; }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 20px 24px; font-size: .82rem; color: rgba(255,255,255,.55);
}
.footer-bottom-inner nav { display: flex; gap: 20px; }
.footer-bottom-inner a:hover { color: var(--white); }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .header-phone { display: none; }
}

/* Tablet quer */
@media (max-width: 1023px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet hoch */
@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .header-inner { gap: 10px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; gap: 8px; }
  .header-actions .btn { display: none; }
  .header-phone {
    display: flex; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--green-100);
  }
  .header-phone span { display: none; }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: var(--white);
    padding: 8px 24px 24px;
    gap: 0;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .main-nav.is-open a::after { display: none; }
  .main-nav.is-open .nav-cta { display: flex; margin-top: 18px; padding: 14px 26px; border-bottom: 0; font-weight: 700; color: var(--green-900); }

  .hero { min-height: min(88vh, 760px); }

  .detail-block { gap: 36px; }
  .about-inner { grid-template-columns: .7fr 1.3fr; gap: 40px; }
  .about-badge { width: 180px; height: 180px; }
  .about-badge img { width: 124px; }
  .kontakt-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* Tablet klein / Handy quer */
@media (max-width: 760px) {
  .detail-block, .detail-block.reverse { grid-template-columns: 1fr; gap: 28px; }
  .detail-block.reverse .detail-media { order: 0; }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-badge { width: 150px; height: 150px; margin: 0; }
  .about-badge img { width: 104px; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .footer-brand { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* Handy */
@media (max-width: 640px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  .section { padding: 60px 0; }
  .section-lead { margin-bottom: 2em; }

  .hero { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); }
  .hero-content { padding-top: 48px; padding-bottom: 56px; }
  .br-desktop { display: none; }
  .hero-overlay { background: linear-gradient(0deg, rgba(8,24,17,.88) 0%, rgba(8,24,17,.62) 50%, rgba(8,24,17,.55) 100%); }
  .hero-actions { flex-direction: column; align-items: stretch; margin-bottom: 36px; }

  .services-grid { grid-template-columns: 1fr; gap: 18px; }
  .service-card-media { aspect-ratio: 16/10; }
  .service-card-body { padding: 18px 20px 22px; }

  .detail-block, .detail-block-full { padding: 40px 0; }
  .detail-text h3 { font-size: 1.35rem; }
  .ba-grid { grid-template-columns: 1fr; gap: 16px; }
  .ba-label { top: 12px; font-size: .7rem; padding: 5px 11px; }
  .ba-label-before { left: 12px; }
  .ba-label-after { right: 12px; }

  .gallery-filter { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 24px; }
  .filter-btn { padding: 11px 12px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .form-row-half { flex-direction: column; }
  .kontakt-form { padding: 22px 20px; }

  .lightbox { padding: 64px 12px 96px; }
  .lightbox img { max-height: 100%; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 24px; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}

/* Schmale Handys */
@media (max-width: 400px) {
  .site-header .brand { flex-shrink: 1; min-width: 0; gap: 8px; }
  .site-header .brand-mark { width: 64px; }
  .site-header .brand-text { font-size: .92rem; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 1.75rem; }
}

/* ===== Cookie-Banner (blockierendes Modal mit Tabs) ===== */
.cookie-modal {
  --cc-bg: var(--green-900);
  --cc-tabs-bg: #1c3d24;
  --cc-line: rgba(255,255,255,.18);
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal.is-visible { display: flex; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(20,32,24,.72); }
.cookie-modal__card {
  position: relative; background: var(--cc-bg); color: #fff;
  border: 1px solid var(--cc-line); border-radius: 8px; box-shadow: var(--shadow-md);
  max-width: 700px; width: 100%; max-height: calc(100vh - 40px); overflow-y: auto;
  animation: cc-fade .25s ease;
}
@keyframes cc-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cookie-tabs { display: flex; background: var(--cc-tabs-bg); border-bottom: 1px solid var(--cc-line); }
.cookie-tab {
  flex: 1; border: none; background: transparent; color: #fff; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 700; padding: 16px 12px;
  border-bottom: 3px solid transparent; opacity: .75;
}
.cookie-tab.is-active { border-bottom-color: var(--lime); opacity: 1; }
.cookie-panel { display: none; padding: 24px 24px 12px; }
.cookie-panel.is-active { display: block; }
.cookie-panel h3 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.cookie-scroll { max-height: 128px; overflow-y: auto; padding-right: 10px; }
.cookie-scroll::-webkit-scrollbar { width: 8px; }
.cookie-scroll::-webkit-scrollbar-thumb { background: #fff; border-radius: 4px; }
.cookie-scroll p { font-size: .88rem; line-height: 1.55; color: rgba(255,255,255,.88); margin: 0 0 10px; }
.cookie-links { display: flex; gap: 16px; margin-top: 8px; }
.cookie-links a { color: #fff; font-size: .85rem; font-weight: 700; text-decoration: none; }
.cookie-links a:hover { text-decoration: underline; }
.cookie-toggles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--cc-line); border-bottom: 1px solid var(--cc-line); margin-top: 12px; }
.cookie-toggle {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 18px 8px; font-size: .85rem; font-weight: 700; cursor: pointer; position: relative;
}
.cookie-toggle + .cookie-toggle { border-left: 1px solid var(--cc-line); }
.cookie-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-toggle i { position: relative; width: 44px; height: 24px; border-radius: 12px; background: #0b140e; transition: background .15s ease; }
.cookie-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s ease, background .15s ease; }
.cookie-toggle input:checked + i { background: var(--lime); }
.cookie-toggle input:checked + i::after { transform: translateX(20px); }
.cookie-toggle input:disabled + i { background: #d6d6d6; opacity: .85; }
.cookie-toggle input:disabled + i::after { background: #8a8a8a; }
.cookie-toggle input:disabled { cursor: not-allowed; }
.cookie-toggle input:focus-visible + i { outline: 2px solid #fff; outline-offset: 3px; }
.cookie-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px 24px 24px; }
.cookie-btn {
  border: none; border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 700; padding: 13px 10px; transition: background .15s ease;
}
.cookie-btn:hover { background: #e9efe9; }
.cookie-btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.cookie-settings-link { cursor: pointer; }
@media (max-width: 560px) {
  .cookie-panel { padding: 20px 18px 10px; }
  .cookie-toggles { grid-template-columns: repeat(2, 1fr); }
  .cookie-toggle:nth-child(3) { border-left: none; }
  .cookie-toggle:nth-child(n+3) { border-top: 1px solid var(--cc-line); }
  .cookie-actions { grid-template-columns: 1fr; padding: 16px 18px 20px; }
}
