/* ============================================
   Hansa Angelköderversand — Design Tokens
   ============================================ */
:root {
  --red: #CC071E;
  --red-deep: #93051A;
  --ink: #1B1714;
  --ink-soft: #2B2521;
  --parchment: #F3ECD8;
  --paper: #FFFFFF;
  --stone: #7A7266;
  --stone-light: #C9C1B2;

  --font-display: "Fredoka", sans-serif;
  --font-body: "Inter", sans-serif;

  --wrap: 1120px;
  --radius-chunky: 22px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.05rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* Top brand stripe */
.topline {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0, var(--red) 28px,
    var(--ink) 28px, var(--ink) 30px
  );
}

/* ============ HEADER ============ */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.brand-mark.small { width: 38px; height: 38px; }

.brand-word {
  height: 20px;
  width: auto;
}
.brand-word.small { height: 17px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.primary-nav > a,
.primary-nav > .nav-item > a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 2px;
  position: relative;
}

.primary-nav > a::after,
.primary-nav > .nav-item > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.primary-nav > a:hover::after,
.primary-nav > a.active::after,
.primary-nav > .nav-item > a:hover::after,
.primary-nav > .nav-item > a.active::after {
  transform: scaleX(1);
}

/* Dropdown */
.nav-item.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, -6px);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  min-width: 240px;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 60;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-menu li + li {
  margin-top: 2px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--parchment);
  color: var(--red);
}

.dropdown-menu a.current {
  color: var(--red);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 7px;
  background: var(--ink);
}

/* ============ HERO ============ */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  padding-bottom: 110px;
}

.hero-kicker {
  font-size: 0.95rem;
  color: var(--stone-light);
  margin-bottom: 18px;
  max-width: 34ch;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  max-width: 14ch;
  margin-bottom: 0.4em;
}

.hero-lead {
  color: #E7E1D3;
  max-width: 46ch;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-figure {
  display: flex;
  justify-content: center;
}

.hero-mascot {
  width: min(480px, 100%);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35));
}

.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  position: relative;
}
.wave-divider path {
  fill: var(--parchment);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: var(--paper);
}
.btn-primary:hover { background: var(--red-deep); }

.btn-ghost {
  border-color: var(--stone-light);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--paper); }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  width: 100%;
}
.btn-dark:hover { background: var(--ink-soft); }

/* ============ VALUES ============ */
.values {
  background: var(--parchment);
  padding: 20px 0 76px;
}

.values-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.hook-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  color: var(--red);
  margin-bottom: 14px;
}
.hook-icon svg { width: 100%; height: 100%; }

.value-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35em;
}
.value-item p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 32ch;
}

/* ============ CATEGORIES ============ */
.categories {
  padding: 90px 0;
}

.section-head {
  max-width: 52ch;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.section-head p {
  color: var(--stone);
  margin-bottom: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.category-card {
  position: relative;
  display: block;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius-chunky);
  padding: 26px 22px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--ink);
}

.inline-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--red);
  font-weight: 600;
}

.category-card .pin {
  position: absolute;
  top: -9px;
  left: 22px;
  width: 16px;
  height: 16px;
  background: var(--red);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.category-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}
.category-card p {
  color: var(--stone);
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ============ ABOUT ============ */
.about {
  background: var(--ink);
  color: var(--paper);
  padding: 92px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.about h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--paper);
}

.about-copy p {
  color: #DCD5C6;
  max-width: 50ch;
}

.about-figure {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
}

.about-divider {
  width: 2px;
  background: var(--stone);
  opacity: 0.5;
  flex-shrink: 0;
}

.about-mascot {
  height: min(230px, 38vw);
  width: auto;
  opacity: 0.96;
}

.about-mascot-old {
  height: min(230px, 38vw);
  width: auto;
}

/* ============ CONTACT ============ */
.contact {
  background: var(--red);
  color: var(--paper);
  padding: 90px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact h2 {
  color: var(--paper);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}

.contact-info > p {
  color: #FBE4E7;
  max-width: 38ch;
}

.contact-details {
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}
.contact-details dt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  color: #FBE4E7;
}
.contact-details dd {
  margin: 2px 0 0;
  font-size: 1.02rem;
}
.contact-details a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.placeholder-note {
  font-size: 0.8rem;
  color: #FBE4E7;
  opacity: 0.85;
}

.contact-social {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.3);
}

.contact-social-label {
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.social-link svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.social-link:hover {
  background: var(--paper);
  color: var(--red);
}

.contact-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-chunky);
  padding: 30px;
  display: grid;
  gap: 6px;
}

.contact-form label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 13px;
  border: 2px solid var(--stone-light);
  border-radius: 12px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
}

.contact-form button {
  margin-top: 16px;
}

.form-status {
  margin: 10px 0 0;
  font-size: 0.92rem;
  min-height: 1.2em;
}
.form-status.success { color: #146C2E; }
.form-status.error { color: var(--red-deep); }

/* ============ PRODUKTE-SEITE: PAGE HERO ============ */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding-top: 64px;
}

.page-hero-inner {
  padding-bottom: 70px;
  max-width: 700px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--stone-light);
  margin-bottom: 22px;
}
.back-link:hover { color: var(--paper); }

.page-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  margin-bottom: 0.35em;
}

.page-hero-lead {
  color: #E7E1D3;
  max-width: 55ch;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.category-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-jump a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  padding: 9px 18px;
  border: 2px solid var(--stone-light);
  border-radius: 999px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.category-jump a:hover {
  border-color: var(--paper);
  background: rgba(255,255,255,0.06);
}

/* Kategorie-Schlagworte im Hero */
.page-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.page-hero-tags li {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: #E7E1D3;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 7px 16px;
}

/* Scroll-Hinweis */
.page-hero-with-cue {
  position: relative;
}

.scroll-cue {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 56px 0 30px;
  color: var(--stone-light);
  animation: scrollCueBounce 2.2s ease-in-out infinite;
}

.scroll-cue span {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.scroll-cue svg {
  width: 20px;
  height: 20px;
}

@keyframes scrollCueBounce {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(8px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
}

/* Variante für hellen Hintergrund (z. B. direkt vor der dunklen Galerie) */
.scroll-cue-inline {
  color: var(--stone);
  margin: 0 0 36px;
}

.placeholder-banner {
  background: var(--parchment);
  border: 2px dashed var(--stone-light);
  border-radius: 16px;
  padding: 16px 22px;
  margin: -34px auto 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 2;
}

/* ============ PRODUKTE-SEITE: KATEGORIEN ============ */
.product-category {
  padding: 76px 0;
}
.product-category.alt {
  background: var(--parchment);
}

.category-intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 36px;
  max-width: 62ch;
}

.category-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  color: var(--red);
  flex-shrink: 0;
}
.category-icon svg { width: 100%; height: 100%; }

.category-intro h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin-bottom: 0.2em;
}
.category-intro p {
  color: var(--stone);
  margin-bottom: 0;
}

.category-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.category-tagline-img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--ink);
  flex-shrink: 0;
}

.category-tagline span {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--red);
  font-size: 0.98rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius-chunky);
  padding: 20px 20px 22px;
}
.product-category.alt .product-card {
  background: var(--paper);
}

.product-image {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-light);
  margin-bottom: 14px;
}
.product-image svg { width: 70%; height: 70%; }

.product-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--stone);
  background: var(--parchment);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.product-category.alt .product-tag {
  background: var(--paper);
}

.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35em;
}

.product-desc {
  color: var(--stone);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ============ PRODUKTE-SEITE: CTA ============ */
.products-cta {
  background: var(--red);
  color: var(--paper);
  padding: 70px 0;
  text-align: center;
}

.products-cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.products-cta h2 {
  color: var(--paper);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.products-cta p {
  color: #FBE4E7;
  margin-bottom: 26px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-actions .btn {
  width: auto;
}

.cta-or {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: #FBE4E7;
}

.katalog-placeholder {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
}

.katalog-placeholder-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 90px 28px;
}

.katalog-placeholder .category-icon {
  width: 56px;
  height: 56px;
  color: var(--red);
  margin: 0 auto 24px;
}

.katalog-placeholder h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: 32px;
}

/* ============ SCROLL-SCHWEBE-GALERIE ============ */
.scroll-gallery {
  position: relative;
  background: var(--paper);
}

.scroll-gallery-dark {
  background: linear-gradient(180deg, var(--ink) 0%, #201a17 100%);
}

.scroll-gallery-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.scroll-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 90px 28px;
  opacity: 0;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  pointer-events: none;
}

.scroll-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(560px, 70vw);
  height: min(560px, 70vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, rgba(204,7,30,0.08) 45%, transparent 72%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.scroll-item-img {
  position: relative;
  z-index: 1;
  max-height: 44vh;
  max-width: min(560px, 80%);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(0,0,0,0.45)) drop-shadow(0 0 46px rgba(204,7,30,0.16));
}

.scroll-caption-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}

.scroll-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
}

.scroll-index {
  color: var(--stone-light);
  letter-spacing: 0.04em;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.25);
}

.scroll-caption {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--paper);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 44ch;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

/* Mobil: echtes Swipe-Karussell mit Einrasten, statt freier
   Scroll-Kopplung – so kann ein Wisch nie mehr als ein Produkt
   auf einmal weiterblättern. */
@media (max-width: 768px) {
  .scroll-gallery {
    height: 100vh !important; /* überschreibt die per JS gesetzte Gesamthöhe */
  }

  .scroll-gallery-sticky {
    position: relative;
    top: auto;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .scroll-gallery-sticky::-webkit-scrollbar { display: none; }

  .scroll-item {
    position: relative;
    inset: auto;
    height: 100%;
    width: 100%;
    flex-shrink: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always; /* verhindert, dass ein Wisch mehrere Produkte überspringt */
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
  }
  .scroll-item.is-active {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============ ARTIKEL-TEXTBLOCK ============ */
.article-block {
  padding: 80px 0 40px;
  background: var(--paper);
}

.article-block-inner {
  max-width: 760px;
  margin: 0 auto;
}

.article-block h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 0.6em;
}

.article-block h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin: 1.4em 0 0.6em;
  color: var(--red);
}

.article-block p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.article-block ul {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  color: var(--ink-soft);
  line-height: 1.7;
}

.article-block li {
  margin-bottom: 0.7em;
}

.article-block li strong {
  color: var(--ink);
}

/* ============ BILD-REVEAL-GALERIE ============ */
.reveal-gallery {
  padding: 30px 0 90px;
  background: var(--paper);
}

.reveal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.reveal-card {
  margin: 0;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-title {
  font-size: 1rem;
  text-align: center;
  margin: 0 0 12px;
}

.reveal-frame {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-chunky);
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--parchment);
}

.reveal-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reveal-frame-contain img {
  object-fit: contain;
  padding: 14px;
}

.reveal-frame-contain {
  background: var(--ink);
}

.reveal-desc {
  margin: 12px 0 0;
  font-size: 0.86rem;
  color: var(--stone);
  text-align: center;
  line-height: 1.5;
}

/* ============ FUTTER-SEITE: FEDERNDE PRODUKT-REIHEN ============ */
.spring-products {
  padding: 90px 0;
  background: var(--paper);
  overflow: hidden;
}

.spring-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.spring-row + .spring-row {
  margin-top: 110px;
}

.spring-row-reverse .spring-media { order: 2; }
.spring-row-reverse .spring-copy { order: 1; }

.spring-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.spring-img {
  max-width: 100%;
  max-height: 360px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(0,0,0,0.16));

  /* Startzustand: unterhalb der Zielposition, federt beim Reveal nach oben ein */
  transform: translateY(90px);
  transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spring-row.is-visible .spring-img {
  transform: translateY(0);
}

.spring-copy h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 0.5em;
}

.spring-copy p {
  color: var(--stone);
  line-height: 1.7;
  margin: 0;
}

.spring-products-bg {
  position: relative;
  background-image:
    linear-gradient(rgba(255,255,255,0.62), rgba(255,255,255,0.62)),
    url('assets/zubehoer/sprayer-bg.jpg');
  background-size: min(950px, 75%);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: local;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: var(--stone-light);
  padding: 40px 0;
  border-top: 3px solid var(--red);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-tagline {
  margin: 0;
  font-size: 0.92rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--stone);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
}

.footer-legal a,
.footer-legal button {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--stone);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal a:hover,
.footer-legal button:hover {
  color: var(--stone-light);
}

/* ============ COOKIE-CONSENT ============ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--red);
  padding: 22px 24px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
  transform: translateY(110%);
  transition: transform 0.4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.cookie-banner-text {
  flex: 1 1 380px;
  font-size: 0.92rem;
  color: #E7E1D3;
  margin: 0;
  line-height: 1.6;
}
.cookie-banner-text a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: 999px;
  border: 2px solid var(--paper);
  cursor: pointer;
  background: none;
  color: var(--paper);
  transition: background 0.15s ease, color 0.15s ease;
}
.cookie-btn:hover { background: rgba(255,255,255,0.1); }

.cookie-btn-accept {
  background: var(--red);
  border-color: var(--red);
}
.cookie-btn-accept:hover { background: var(--red-deep); border-color: var(--red-deep); }

/* Einstellungen-Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cookie-modal-overlay[hidden] { display: none; }

.cookie-modal {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-chunky);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px;
}

.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}
.cookie-modal > p {
  color: var(--stone);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.cookie-category {
  border-top: 1px solid var(--stone-light);
  padding: 16px 0;
}
.cookie-category:last-of-type { border-bottom: 1px solid var(--stone-light); }

.cookie-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-category-head strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
}

.cookie-category p {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--stone);
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch-track {
  position: absolute;
  inset: 0;
  background: var(--stone-light);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cookie-switch-track::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: var(--paper);
  border-radius: 50%;
  transition: transform 0.15s ease;
}
.cookie-switch input:checked + .cookie-switch-track {
  background: var(--red);
}
.cookie-switch input:checked + .cookie-switch-track::before {
  transform: translateX(18px);
}
.cookie-switch input:disabled + .cookie-switch-track {
  background: var(--stone);
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.cookie-modal-actions .btn { width: auto; }

.cookie-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--stone);
  padding: 2px 6px;
  flex-shrink: 0;
}
.cookie-modal-close:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  margin-top: 20px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-bottom: 70px;
    text-align: left;
  }
  .hero-figure { order: -1; }
  .hero-mascot { width: 230px; margin: 0 auto; }

  .values-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .about-figure { order: -1; }
  .about-mascot { height: 150px; width: auto; margin: 0 auto; }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .category-intro {
    flex-direction: column;
    gap: 10px;
  }

  .placeholder-banner {
    margin-top: -24px;
  }
}

@media (max-width: 620px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .primary-nav.open {
    max-height: 70vh;
    overflow-y: auto;
  }
  .primary-nav > a,
  .primary-nav > .nav-item > a {
    padding: 14px 28px;
    border-top: 1px solid var(--stone-light);
    display: block;
  }
  .nav-toggle { display: flex; }

  .nav-item.has-dropdown {
    flex-direction: column;
    align-items: stretch;
    display: block;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--parchment);
    min-width: 0;
    padding: 4px 0;
    margin: 0;
  }

  .dropdown-menu a {
    padding: 12px 44px;
    border-radius: 0;
  }

  .category-grid { grid-template-columns: 1fr; }

  .reveal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions {
    justify-content: stretch;
  }
  .cookie-banner-actions .cookie-btn {
    flex: 1;
  }

  .spring-row {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .spring-row + .spring-row {
    margin-top: 64px;
  }
  .spring-row-reverse .spring-media,
  .spring-row-reverse .spring-copy {
    order: initial;
  }
  .spring-img {
    max-height: 260px;
  }
}
