/* ==========================================================================
   Zausel & Leitgeb Verleih — Basis-Stylesheet
   Palette: Wiesengrün / Sonnenorange / Himmelblau / Sandgelb / Nebelweiß
   Bewusst hell, kein Dark Mode (siehe README) — passt besser zu einem
   einladenden Kinderfest-/Party-Verleih als ein dunkler Hintergrund.
   ========================================================================== */

@font-face {
  font-family: 'Fredoka';
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/fredoka-variable.woff2') format('woff2-variations'),
       url('/assets/fonts/fredoka-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Karla';
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/karla-variable.woff2') format('woff2-variations'),
       url('/assets/fonts/karla-variable.woff2') format('woff2');
}

:root {
  --wiese: #2F8F46;
  --wiese-dunkel: #1F6B34;
  --wiese-hell: #E4F3E6;
  --orange: #F3752B;
  --orange-dunkel: #D9601C;
  --blau: #1E9BD7;
  --blau-dunkel: #147AAD;
  --gelb: #F5B940;
  --bg: #F6F9F2;
  --bg-raised: #FFFFFF;
  --ink: #16241B;
  --ink-soft: #4B5C50;
  --line: #DDE7DC;
  --shadow: 0 1px 2px rgba(22,36,27,0.06), 0 8px 24px rgba(22,36,27,0.08);
  --radius: 20px;
  --header-h: 88px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Karla', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--wiese-dunkel); }

h1, h2, h3, h4, .display {
  font-family: 'Fredoka', ui-rounded, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* ---------------------------------------------------------------------- */
/* Topbar (Adresse, Öffnungszeiten, Social)                                */
/* ---------------------------------------------------------------------- */

.topbar {
  background: var(--gelb);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.topbar .topbar-social {
  display: flex;
  gap: 12px;
}

.topbar .topbar-social a {
  color: var(--ink);
  text-decoration: none;
}

/* ---------------------------------------------------------------------- */
/* Header / Navigation                                                     */
/* ---------------------------------------------------------------------- */

.site-header {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--wiese-dunkel);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.logo .logo-mark {
  font-size: 1.5rem;
}

nav.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

nav.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

nav.main-nav > ul > li {
  position: relative;
}

nav.main-nav a {
  display: block;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
}

nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li:focus-within > a {
  background: var(--wiese-hell);
  color: var(--wiese-dunkel);
}

nav.main-nav .submenu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

nav.main-nav li:hover > .submenu,
nav.main-nav li:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav.main-nav .submenu a {
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
}

nav.main-nav .submenu a:hover {
  background: var(--wiese-hell);
  color: var(--wiese-dunkel);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.header-phone {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
}

.header-phone strong {
  font-family: 'Fredoka', sans-serif;
  color: var(--wiese-dunkel);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--wiese-dunkel);
  color: #fff;
  padding: 13px 24px;
  font-size: 0.95rem;
}

.btn-accent {
  background: var(--orange);
  color: var(--ink);
  padding: 13px 24px;
  font-size: 0.95rem;
}

.btn-ghost {
  background: transparent;
  color: var(--wiese-dunkel);
  border: 2px solid var(--wiese-dunkel);
  padding: 11px 22px;
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { display: block; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.mobile-nav.is-open { display: block; }

.mobile-nav > ul {
  list-style: none;
  margin: 0;
  padding: 8px 24px 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.98rem;
  border-bottom: 1px solid var(--line);
}

.mobile-nav ul ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
}

.mobile-nav ul ul a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-bottom: none;
  padding: 9px 4px;
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */

.hero {
  background: linear-gradient(160deg, var(--wiese-hell), var(--bg) 60%);
  padding: 56px 0 0;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gelb);
  color: var(--ink);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.1rem;
  max-width: 48ch;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-media {
  border-radius: 42% 58% 63% 37% / 41% 45% 55% 59%;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wave {
  display: block;
  width: 100%;
  height: 70px;
  margin-top: 48px;
}

/* ---------------------------------------------------------------------- */
/* Sections & Cards                                                        */
/* ---------------------------------------------------------------------- */

.section {
  padding: 64px 0;
}

.section-head {
  max-width: 62ch;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.eyebrow {
  display: block;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--wiese-dunkel);
  margin-bottom: 10px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform 0.15s ease; }
  .card:hover { transform: translateY(-3px); }
}

.card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--wiese-hell);
  position: relative;
  overflow: hidden;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .thumb.icon-only {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card .badge-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gelb);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}

.card .body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card .body h3 {
  font-size: 1.1rem;
  margin: 0;
}

.card .body p {
  margin: 0;
  font-size: 0.92rem;
}

.card .body .card-link {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 700;
  color: var(--wiese-dunkel);
  font-size: 0.88rem;
}

/* Trust / Über uns */

.trust-section {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.trust-item {
  text-align: center;
  padding: 12px;
}

.trust-item .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.trust-item h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 0.88rem;
  margin: 0;
}

/* CTA banner */

.cta-banner {
  background: var(--wiese-dunkel);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 6px;
}

.cta-banner p {
  color: #DCEFE0;
  margin: 0;
}

.cta-banner .btn-accent {
  flex: none;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--wiese-hell);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-grid a:hover { color: var(--wiese-dunkel); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.footer-bottom a { color: var(--ink-soft); }

/* ---------------------------------------------------------------------- */
/* Sticky mobile CTA bar                                                   */
/* ---------------------------------------------------------------------- */

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(22,36,27,0.1);
}

.mobile-cta-bar .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.mobile-cta-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.mobile-cta-bar a.call { background: var(--wiese-dunkel); color: #fff; }
.mobile-cta-bar a.whatsapp { background: var(--orange); color: var(--ink); }

/* ---------------------------------------------------------------------- */
/* Responsive                                                               */
/* ---------------------------------------------------------------------- */

@media (max-width: 940px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; margin: 0 auto; }

  .mobile-cta-bar { display: block; }
  body { padding-bottom: 58px; }
}

@media (max-width: 560px) {
  .cta-banner { flex-direction: column; text-align: center; }
}

/* ---------------------------------------------------------------------- */
/* Kategorie-/Produktseiten (Verleih-Unterseiten)                          */
/* ---------------------------------------------------------------------- */

.category-hero {
  background: linear-gradient(160deg, var(--wiese-hell), var(--bg) 60%);
  padding: 44px 0 0;
}

.category-hero .container { max-width: 900px; text-align: center; }
.category-hero .lead { max-width: 60ch; margin: 0 auto; }

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--wiese-dunkel); }

.tier-section { margin-bottom: 52px; }
.tier-section:last-child { margin-bottom: 0; }

.tier-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tier-badge {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 999px;
  color: #fff;
}
.tier-badge.tier-1 { background: var(--blau); }
.tier-badge.tier-2 { background: var(--wiese-dunkel); }
.tier-badge.tier-3 { background: var(--orange-dunkel); }
.tier-badge.tier-4 { background: #B5478B; }

.tier-head h2 { margin: 0; font-size: 1.3rem; }
.tier-head .tier-note { color: var(--ink-soft); font-size: 0.88rem; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.price-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.price-card .name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.price-card .specs {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
  line-height: 1.5;
}

.price-card .prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}

.price-card .price-day {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--wiese-dunkel);
}

.price-card .price-weekend {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.conditions-box {
  background: var(--wiese-hell);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 8px;
}

.conditions-box h3 { margin-bottom: 10px; font-size: 1.05rem; }
.conditions-box ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.conditions-box li { margin-bottom: 6px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 12px;
}

.gallery-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  cursor: zoom-in;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.gallery-grid a::after {
  content: "🔍";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  opacity: 0;
}

.gallery-grid a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 36, 27, 0.15);
  opacity: 0;
}

.gallery-grid a:hover::after,
.gallery-grid a:hover::before,
.gallery-grid a:focus-visible::after,
.gallery-grid a:focus-visible::before {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .gallery-grid img { transition: transform 0.35s ease; }
  .gallery-grid a:hover img,
  .gallery-grid a:focus-visible img { transform: scale(1.06); }
  .gallery-grid a::after,
  .gallery-grid a::before { transition: opacity 0.2s ease; }
}

.gallery-grid a:nth-child(3n+1) { grid-row: span 2; }
.gallery-grid a:nth-child(3n+1) img { height: 100%; }

@media (max-width: 780px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid a:nth-child(3n+1) { grid-row: span 1; }
}

/* ---------------------------------------------------------------------- */
/* Lightbox (Galerie-Bilder groß anzeigen, ohne neue Seite/Tab)            */
/* ---------------------------------------------------------------------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(22, 36, 27, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  opacity: 0;
  visibility: hidden;
}

.lightbox-overlay.is-open { opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: no-preference) {
  .lightbox-overlay { transition: opacity 0.2s ease, visibility 0.2s ease; }
}

.lightbox-overlay img {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
