/* ===== VARIABLEN ===== */
:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --white: #ffffff;

  --cat-delphin: linear-gradient(145deg, #0ea5e9, #0369a1);
  --cat-hai:     linear-gradient(145deg, #64748b, #334155);
  --cat-rochen:  linear-gradient(145deg, #7c3aed, #4f46e5);
  --cat-elefant: linear-gradient(145deg, #94a3b8, #64748b);
  --cat-tiger:   linear-gradient(145deg, #f97316, #c2410c);
  --cat-loewe:   linear-gradient(145deg, #f59e0b, #b45309);

  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --transition: .2s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
  color: var(--slate-800);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: filter var(--transition), transform var(--transition);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(.96); }
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}
.btn-hero {
  background: var(--white);
  color: var(--blue-700);
  font-size: 1.05rem;
  padding: .8rem 2rem;
}
.btn-full { width: 100%; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,.1);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-600);
}
.logo-icon { font-size: 1.6rem; }
.cart-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--slate-800);
  border: 2px solid var(--slate-200);
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.cart-toggle:hover { border-color: var(--blue-600); background: var(--blue-50); }
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--blue-600);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
.cart-badge.pop { animation: pop .25s ease; }
@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; opacity: .9; margin-bottom: 2rem; }
.hero-animals {
  font-size: 4rem;
  letter-spacing: .5rem;
  opacity: .15;
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* ===== FILTER ===== */
.filter-section {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 2.5rem 1.5rem;
}
.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: .4rem;
}
.section-subtitle {
  color: var(--slate-600);
  margin-bottom: 1.5rem;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.filter-btn {
  padding: .5rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--slate-200);
  font-size: .9rem;
  font-weight: 600;
  color: var(--slate-600);
  background: var(--white);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--blue-600); color: var(--blue-600); background: var(--blue-50); }
.filter-btn.active { border-color: var(--blue-600); color: var(--white); background: var(--blue-600); }

/* ===== PRODUKTE ===== */
.products-section { padding: 2.5rem 1.5rem 4rem; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.empty-hint {
  text-align: center;
  color: var(--slate-400);
  padding: 3rem 0;
  font-size: 1.1rem;
}

/* ===== PRODUKT-KARTE ===== */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  role: listitem;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.product-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}
.product-image.bg-delphin { background: var(--cat-delphin); }
.product-image.bg-hai     { background: var(--cat-hai); }
.product-image.bg-rochen  { background: var(--cat-rochen); }
.product-image.bg-elefant { background: var(--cat-elefant); }
.product-image.bg-tiger   { background: var(--cat-tiger); }
.product-image.bg-loewe   { background: var(--cat-loewe); }

.product-image svg { width: 90px; height: 90px; opacity: .95; }

.product-size-badge {
  position: absolute;
  top: .6rem;
  right: .6rem;
  background: rgba(0,0,0,.35);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 999px;
  letter-spacing: .05em;
}

.product-info {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-name { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }
.product-meta { font-size: .82rem; color: var(--slate-600); margin-bottom: .5rem; }
.product-variant-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.2);
  margin-right: .3rem;
  vertical-align: middle;
}
.product-desc {
  font-size: .85rem;
  color: var(--slate-600);
  flex: 1;
  margin-bottom: .9rem;
  line-height: 1.5;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
}
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--blue-700); }
.btn-cart {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .9rem;
  background: var(--blue-600);
  color: var(--white);
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  transition: filter var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-cart:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ===== WARENKORB SIDEBAR ===== */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 300;
  animation: fadeIn .2s;
}
.cart-overlay.open { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--white);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}
.cart-header h3 { font-size: 1.15rem; font-weight: 700; }
.cart-close {
  font-size: 1.2rem;
  color: var(--slate-600);
  padding: .25rem .5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.cart-close:hover { background: var(--slate-100); }

.cart-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty-msg { color: var(--slate-400); text-align: center; margin-top: 2rem; }

.cart-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: .75rem;
  align-items: start;
  padding: .9rem 0;
  border-bottom: 1px solid var(--slate-100);
}
.cart-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.cart-item-thumb svg { width: 32px; height: 32px; }
.cart-item-info { min-width: 0; }
.cart-item-name { font-weight: 600; font-size: .9rem; }
.cart-item-meta { font-size: .78rem; color: var(--slate-600); margin-top: .1rem; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .4rem;
}
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 6px;
  border: 1.5px solid var(--slate-200);
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.qty-btn:hover { border-color: var(--blue-600); color: var(--blue-600); }
.qty-value { font-size: .9rem; font-weight: 600; min-width: 1.5rem; text-align: center; }
.cart-item-price { font-weight: 700; font-size: .9rem; color: var(--blue-700); white-space: nowrap; }

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--slate-200);
  background: var(--slate-100);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}
.cart-total-row strong { font-size: 1.2rem; color: var(--blue-700); }
.cart-note { font-size: .78rem; color: var(--slate-600); text-align: center; }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  padding: 1rem;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}
.modal-overlay.open {
  display: flex;
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  margin: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal--small { max-width: 400px; text-align: center; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}
.modal-header h3 { font-size: 1.15rem; font-weight: 700; }
.modal-close {
  font-size: 1.2rem;
  color: var(--slate-600);
  padding: .25rem .5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.modal-close:hover { background: var(--slate-100); }
.modal-body { padding: 1.5rem; }

/* Anfrage-Zusammenfassung */
.inquiry-summary {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: .88rem;
}
.inquiry-summary h4 { font-weight: 700; margin-bottom: .5rem; color: var(--blue-700); }
.inquiry-summary-item { display: flex; justify-content: space-between; padding: .2rem 0; }
.inquiry-summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  border-top: 1px solid var(--blue-100);
  margin-top: .5rem;
  padding-top: .5rem;
  color: var(--blue-700);
}

/* Formular */
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-group--narrow { flex: 0 0 120px !important; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--slate-800);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--slate-200);
  border-radius: 8px;
  font: inherit;
  font-size: .95rem;
  background: var(--white);
  transition: border-color var(--transition);
  color: var(--slate-800);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group input.invalid,
.form-group textarea.invalid { border-color: #ef4444; }
.form-group textarea { resize: vertical; }
.form-info {
  font-size: .8rem;
  color: var(--slate-600);
  background: var(--slate-100);
  border-radius: 8px;
  padding: .7rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Erfolgs-Modal */
.success-content { padding: 2.5rem 1.5rem; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.success-content h3 { font-size: 1.4rem; margin-bottom: .75rem; }
.success-content p { color: var(--slate-600); margin-bottom: .5rem; }
.success-order-id { font-size: .8rem; color: var(--slate-400); font-family: monospace; }
.success-content .btn { margin-top: 1.5rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--slate-800);
  color: #cbd5e1;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: .4rem; }
.footer-tagline { font-size: .85rem; color: #94a3b8; }
.site-footer h4 { color: var(--white); font-size: .9rem; margin-bottom: .75rem; }
.site-footer ul li { font-size: .83rem; padding: .2rem 0; }
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.25rem;
  text-align: center;
  font-size: .8rem;
  color: var(--slate-400);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 3.5rem 1.5rem 2.5rem; }
  .hero-animals { display: none; }
  .form-row { flex-direction: column; gap: 0; }
  .form-group--narrow { flex: unset !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .product-image { height: 140px; font-size: 3.5rem; }
  .product-image svg { width: 64px; height: 64px; }
}
@media (max-width: 480px) {
  .filter-bar { gap: .35rem; }
  .filter-btn { font-size: .8rem; padding: .4rem .8rem; }
  .logo span:not(.logo-icon) { display: none; }
}
