/* ===========================
   MABLUE FASHION & TRENDS
   Design System – Bläulich
=========================== */

/* Newson Font Family */
@font-face {
  font-family: 'Newson';
  src: url('/fonts/Newson-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newson';
  src: url('/fonts/Newson-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newson';
  src: url('/fonts/Newson-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newson';
  src: url('/fonts/Newson-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newson';
  src: url('/fonts/Newson-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue-50: #f0f7ff;
  --blue-100: #dceeff;
  --blue-200: #b8ddf8;
  --blue-300: #7ec8e3;
  --blue-400: #4da8e8;
  --blue-500: #2a8fd4;
  --blue-600: #1a6fa8;
  --blue-700: #1a5080;
  --blue-800: #163a5c;
  --blue-900: #0d2540;
  --accent: #a8d8f0;
  --accent2: #c8e8f8;
  --text: #1a3a5c;
  --text-mid: #4a7090;
  --text-light: #7aa8c8;
  --bg: #f8fcff;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(74, 160, 220, 0.12);
  --shadow-lg: 0 8px 40px rgba(74, 160, 220, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Newson', sans-serif;
  --font-body: 'Newson', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Newson', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ===== NOTIFICATIONS ===== */
.notification {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  padding: 14px 48px 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.5s;
}
.notification.success { background: #e8f8f0; color: #1a7a4a; border-left: 4px solid #34c776; }
.notification.error { background: #fef0f0; color: #c0392b; border-left: 4px solid #e74c3c; }
.notification button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 16px; opacity: 0.6; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 252, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue-100);
  box-shadow: 0 1px 12px rgba(74, 160, 220, 0.08);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 70px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.logo:hover .logo-img { opacity: 0.75; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-400);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--blue-500); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  border: 1.5px solid var(--blue-200);
  transition: all 0.2s;
}
.cart-btn:hover { background: var(--blue-100); transform: scale(1.05); }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--blue-400);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - 70px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 60px;
}

.hero-badge {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-highlight { color: var(--blue-400); }

.hero-text {
  font-size: 18px;
  color: var(--text-mid);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

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

.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-blob {
  width: 380px;
  height: 380px;
  background: radial-gradient(ellipse at 30% 30%, #b8ddf8, #7ec8e3, #4da8e8, #a8d8f0);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  animation: blob 8s ease-in-out infinite;
  opacity: 0.6;
}
@keyframes blob {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  33% { border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%; }
  66% { border-radius: 55% 45% 60% 40% / 45% 55% 50% 50%; }
}

.hero-circles { position: absolute; inset: 0; }
.circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-200));
  opacity: 0.4;
  animation: float 6s ease-in-out infinite;
}
.c1 { width: 100px; height: 100px; top: 10%; right: 5%; animation-delay: 0s; }
.c2 { width: 60px; height: 60px; bottom: 20%; left: 5%; animation-delay: 2s; }
.c3 { width: 40px; height: 40px; top: 60%; right: 20%; animation-delay: 4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ===== FEATURES BAR ===== */
.features-bar {
  background: var(--white);
  display: flex;
  justify-content: center;
  padding: 16px 24px;
}
.features-bar-inner {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  border: 1px solid var(--blue-100);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 32px;
  border-right: 1px solid var(--blue-100);
  white-space: nowrap;
  background: var(--white);
}
.feature-item:last-child { border-right: none; }
.feat-icon { font-size: 24px; }
.feature-item strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.feature-item small { font-size: 12px; color: var(--text-light); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section.bg-light { background: var(--blue-50); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
}
.section-tag {
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}
.section-tag-lg { font-size: 15px; padding: 9px 20px; letter-spacing: 2.5px; }
.section-link { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--blue-400); transition: color 0.2s; }
.section-link:hover { color: var(--blue-600); }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--blue-50);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-image img { transform: scale(1.06); }

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
}
.product-placeholder.small { height: 80px; font-size: 28px; border-radius: var(--radius-sm); }
.product-placeholder.large { aspect-ratio: 3/4; font-size: 80px; border-radius: var(--radius); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge-featured { background: var(--blue-400); color: white; }
.badge-low { background: #fef3e8; color: #e67e22; border: 1px solid #f0c080; top: auto; bottom: 12px; }

.product-link { display: flex; flex-direction: column; flex: 1; }
.product-info { padding: 16px; flex: 1; }
.product-category { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-light); margin-bottom: 4px; }
.product-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.product-price { font-size: 18px; font-weight: 700; color: var(--blue-500); }

.product-add-form { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.size-select {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--blue-100);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-mid);
  background: var(--bg);
}
.btn-add-cart {
  width: 100%;
  padding: 11px;
  background: var(--blue-400);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-add-cart:hover:not(:disabled) { background: var(--blue-500); transform: scale(1.02); }
.btn-add-cart:disabled { background: var(--blue-200); cursor: not-allowed; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--blue-400); color: white; }
.btn-primary:hover { background: var(--blue-500); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(77, 168, 232, 0.4); }
.btn-outline { background: transparent; color: var(--blue-500); border-color: var(--blue-300); }
.btn-outline:hover { background: var(--blue-50); border-color: var(--blue-400); }
.btn-white { background: white; color: var(--blue-600); }
.btn-white:hover { background: var(--blue-50); }
.btn-large { padding: 16px 36px; font-size: 16px; width: 100%; justify-content: center; }
.btn-small { padding: 8px 16px; font-size: 13px; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  border-bottom: 1px solid var(--blue-200);
  padding: 48px 24px;
  text-align: center;
}
.page-header h1 { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: var(--text); }
.page-header p { color: var(--text-mid); margin-top: 8px; font-size: 16px; }


/* ===== SHOP-HEADER (visuell) ===== */
.page-header--shop { position: relative; overflow: hidden; padding: 64px 24px 56px; background: linear-gradient(135deg, var(--blue-100) 0%, var(--blue-200) 55%, var(--blue-300) 130%); }
.page-header--shop .container { position: relative; z-index: 2; }
.page-header--shop h1 { font-size: 52px; letter-spacing: -0.5px; }
.page-header--shop p { font-size: 17px; }
.ph-blob { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); z-index: 1; }
.ph-blob--1 { width: 320px; height: 320px; top: -120px; left: -80px; }
.ph-blob--2 { width: 240px; height: 240px; bottom: -110px; right: -50px; background: rgba(42,143,212,.18); }
.ph-emoji { position: absolute; z-index: 1; font-size: 44px; opacity: .55; filter: drop-shadow(0 6px 10px rgba(26,80,128,.15)); animation: phFloat 6s ease-in-out infinite; }
.ph-emoji--1 { top: 22%; left: 12%; transform: rotate(-12deg); }
.ph-emoji--2 { bottom: 20%; right: 13%; transform: rotate(10deg); animation-delay: -2s; }
.ph-emoji--3 { top: 16%; right: 26%; font-size: 30px; animation-delay: -4s; }
@keyframes phFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.ph-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.ph-chip { background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.9); border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--blue-700); box-shadow: 0 2px 10px rgba(74,160,220,.15); backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: reduce) { .ph-emoji { animation: none; } }
@media (max-width: 768px) {
  .page-header--shop { padding: 36px 16px 30px; }
  .page-header--shop h1 { font-size: 34px; }
  .page-header--shop p { font-size: 14px; }
  .ph-emoji { font-size: 28px; opacity: .4; }
  .ph-emoji--3 { display: none; }
  .ph-emoji--1 { left: 4%; top: 14%; }
  .ph-emoji--2 { right: 4%; bottom: 10%; }
  .ph-chips { gap: 6px; margin-top: 16px; }
  .ph-chip { padding: 6px 12px; font-size: 12px; }
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filter-form { display: flex; gap: 12px; flex-wrap: wrap; flex: 1; }
.search-box { display: flex; border: 1.5px solid var(--blue-200); border-radius: 100px; overflow: hidden; flex: 1; min-width: 200px; }
.search-box input { flex: 1; padding: 10px 16px; border: none; outline: none; font-size: 14px; background: transparent; }
.search-box button { padding: 10px 16px; background: var(--blue-400); border: none; cursor: pointer; font-size: 14px; }
.filter-group { display: flex; gap: 8px; }
.filter-group select { padding: 10px 16px; border: 1.5px solid var(--blue-200); border-radius: 100px; font-size: 14px; color: var(--text-mid); background: var(--bg); cursor: pointer; outline: none; }
.result-count { font-size: 13px; color: var(--text-light); white-space: nowrap; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state h3 { font-family: var(--font-display); font-size: 28px; color: var(--text); margin: 16px 0 8px; }
.empty-state p { color: var(--text-light); margin-bottom: 24px; }

/* ===== PRODUCT DETAIL ===== */
.breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 32px; }
.breadcrumb a { color: var(--blue-400); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 80px; }

.gallery-main img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; }
.thumb:hover, .thumb.active { border-color: var(--blue-400); }

.product-detail-name { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--text); margin: 8px 0; line-height: 1.2; }
.product-detail-price { font-size: 32px; font-weight: 700; color: var(--blue-500); margin-bottom: 20px; }
.product-detail-desc { color: var(--text-mid); line-height: 1.8; margin-bottom: 28px; }

.add-to-cart-form { display: flex; flex-direction: column; gap: 16px; }

.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--blue-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(77, 168, 232, 0.12);
}

.size-buttons, .color-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.size-buttons input[type="radio"], .color-buttons input[type="radio"] { display: none; }
.size-btn {
  padding: 8px 16px;
  border: 2px solid var(--blue-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.color-btn {
  padding: 8px 20px;
  border: 2px solid var(--blue-200);
  border-radius: 100px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
input[type="radio"]:checked + .size-btn,
input[type="radio"]:checked + .color-btn {
  background: var(--blue-400);
  border-color: var(--blue-400);
  color: white;
}

.qty-control { display: flex; align-items: center; border: 1.5px solid var(--blue-200); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.qty-control button { padding: 10px 16px; background: var(--blue-50); border: none; cursor: pointer; font-size: 18px; font-weight: 600; color: var(--blue-500); transition: background 0.2s; }
.qty-control button:hover { background: var(--blue-100); }
.qty-control input { width: 60px; text-align: center; border: none; padding: 10px; font-size: 16px; font-weight: 600; }
.qty-control span { padding: 10px 20px; font-size: 16px; font-weight: 600; }
.qty-control.small { }

.product-meta { margin-top: 24px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-light); }
.stock-warning { color: #e67e22; font-size: 13px; font-weight: 600; }

.related-section { margin-top: 60px; }
.related-section h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 32px; }

/* ===== CART ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }

.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: center;
}
.cart-item-image { width: 90px; height: 110px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--blue-50); }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.cart-item-info p { font-size: 13px; color: var(--text-light); }
.item-price { color: var(--text-mid); font-size: 14px; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.item-total { font-size: 18px; font-weight: 700; color: var(--blue-500); }
.btn-remove { background: none; border: none; cursor: pointer; font-size: 20px; opacity: 0.6; transition: opacity 0.2s; }
.btn-remove:hover { opacity: 1; }

.cart-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}
.cart-summary h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--blue-100); font-size: 15px; }
.summary-row.total { border-bottom: none; font-size: 18px; font-weight: 700; color: var(--text); margin-top: 4px; }
.free-shipping { color: #27ae60; font-weight: 600; }
.shipping-hint { font-size: 12px; color: var(--blue-400); margin: 4px 0 8px; text-align: center; }
.secure-badge { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 16px; }

/* ===== CHECKOUT ===== */
.checkout-steps { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; justify-content: center; }
.step { color: var(--text-light); }
.step.active { color: var(--blue-500); font-weight: 700; }
.step-sep { color: var(--blue-200); }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.checkout-form-wrap { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.checkout-form-wrap h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-secure { background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 13px; color: var(--text-mid); }
.checkout-summary { top: 90px; }
.checkout-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--blue-100); font-size: 14px; }
.checkout-item-name { color: var(--text-mid); }
.checkout-item-name small { color: var(--text-light); }
.payment-methods { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--blue-100); text-align: center; }

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--blue-100);
  border-top-color: var(--blue-400);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SUCCESS PAGE ===== */
.success-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 20px;
}
.success-icon { font-size: 72px; margin-bottom: 24px; }
.success-box h1 { font-family: var(--font-display); font-size: 40px; color: var(--text); margin-bottom: 12px; }
.success-sub { color: var(--text-mid); font-size: 18px; margin-bottom: 32px; }
.order-number-box {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-300));
  border-radius: var(--radius);
  padding: 24px;
  color: white;
  margin-bottom: 32px;
}
.order-number-box span { font-size: 13px; opacity: 0.85; display: block; margin-bottom: 4px; }
.order-number-box strong { font-size: 32px; font-weight: 700; }
.success-details { background: var(--blue-50); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 32px; text-align: left; }
.success-details p { color: var(--text-mid); font-size: 14px; margin-bottom: 8px; }
.success-items { background: var(--white); border-radius: var(--radius); padding: 20px; margin-bottom: 32px; box-shadow: var(--shadow); text-align: left; }
.success-items h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 16px; }
.success-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--blue-100); font-size: 14px; color: var(--text-mid); }
.success-item.total { font-size: 16px; color: var(--text); font-weight: 700; border-bottom: none; }

/* ===== PROMO BANNER ===== */
.promo-banner {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400), var(--blue-300));
  text-align: center;
  padding: 80px 24px;
}
.promo-banner h2 { font-family: var(--font-display); font-size: 48px; color: white; margin-bottom: 12px; }
.promo-banner p { color: rgba(255,255,255,0.85); font-size: 18px; margin-bottom: 32px; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-family: var(--font-display); font-size: 40px; margin: 12px 0 20px; }
.about-text p { color: var(--text-mid); line-height: 1.8; margin-bottom: 16px; }
.about-visual { display: flex; flex-direction: column; gap: 16px; }
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}
.about-num { font-size: 28px; }
.about-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.about-card p { font-size: 14px; color: var(--text-light); }

/* ===== CONTACT ===== */
.contact-box { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.contact-box > p { color: var(--text-mid); margin-bottom: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.contact-item > span { font-size: 24px; }
.contact-item strong { display: block; font-size: 15px; margin-bottom: 2px; }
.contact-item p, .contact-item a { color: var(--text-mid); font-size: 14px; }

/* ===== LEGAL ===== */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-family: var(--font-display); font-size: 28px; color: var(--text); margin: 32px 0 12px; }
.legal-content h3 { font-size: 18px; color: var(--text); margin: 20px 0 8px; }
.legal-content p { color: var(--text-mid); line-height: 1.8; margin-bottom: 12px; }
.legal-content a { color: var(--blue-400); }

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding-top: 60px;
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-logo { margin-bottom: 8px; }
.footer-logo-img {
  height: 56px;
  width: auto;
}
.footer-brand p:first-of-type { font-size: 12px; letter-spacing: 2px; color: rgba(255,255,255,0.5); margin: 2px 0 12px; }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); transition: all 0.2s; }
.footer-social a:hover { border-color: var(--blue-300); color: var(--blue-300); }
.footer-links h4 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: white; margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-links a:hover { color: var(--blue-300); }
.footer-contact h4 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: white; margin-bottom: 16px; }
.footer-contact p { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 8px; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.payment-icons span { background: rgba(255,255,255,0.1); border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 700; color: white; }
.footer-bottom { background: rgba(0,0,0,0.2); padding: 16px 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-container { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero { grid-template-columns: 1fr; text-align: center; padding: 60px 24px; min-height: auto; }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px 24px; box-shadow: var(--shadow); gap: 16px; border-bottom: 1px solid var(--blue-100); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .features-bar { flex-direction: column; align-items: center; }
  .features-bar-inner { flex-direction: column; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--blue-100); width: 100%; }
  .section { padding: 48px 0; }
  .footer-container { grid-template-columns: 1fr; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Kategorien-Pills */
.category-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.category-pill {
  padding: 8px 18px;
  border: 2px solid var(--blue-200);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-500);
  background: var(--white);
  text-decoration: none;
  transition: all 0.2s;
}
.category-pill small { opacity: 0.7; font-weight: 500; margin-left: 4px; }
.category-pill:hover, .category-pill.active { background: var(--blue-400); border-color: var(--blue-400); color: white; }

/* Nicht lieferbare Größen/Farben */
.size-buttons input[type="radio"]:disabled + .size-btn,
.color-buttons input[type="radio"]:disabled + .color-btn {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}
.variant-stock { color: #e67e22; font-size: 13px; font-weight: 600; min-height: 18px; margin: 0 0 12px; }


/* ===== KUNDENKONTO & TREUEPROGRAMM ===== */
.account-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 50px; background: var(--blue-50); color: var(--blue-600); border: 1.5px solid var(--blue-200); font-size: 14px; font-weight: 600; transition: all 0.2s; }
.account-btn:hover { background: var(--blue-100); }
.points-chip { font-size: 13px; white-space: nowrap; }
.form-group input[type="password"] {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--blue-200); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-group input[type="password"]:focus { border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(77, 168, 232, 0.12); }
.account-box { max-width: 460px; margin: 0 auto; background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.account-box .form-group { margin-bottom: 18px; }
.account-box hr { border: none; border-top: 1px solid var(--blue-100); margin: 24px 0; }
.account-links { text-align: center; font-size: 14px; color: var(--text-mid); margin-top: 16px; }
.account-links small { color: var(--text-light); }
.check-label { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; font-size: 13px !important; line-height: 1.5; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; }
.check-label input { margin-top: 3px; }
.loyalty-card { display: flex; gap: 28px; align-items: center; background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); border: 1px solid var(--blue-200); border-radius: var(--radius); padding: 28px; margin-bottom: 36px; }
.loyalty-points { flex: 0 0 auto; width: 120px; height: 120px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--blue-600); }
.loyalty-num { font-size: 36px; font-weight: 700; line-height: 1; }
.loyalty-text h3 { margin-bottom: 8px; }
.reward-list { list-style: none; padding: 0; margin: 12px 0; }
.reward-list li { padding: 6px 0; color: var(--text-mid); }
.reward-list li.reachable { color: var(--text); }
.badge-ok { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 50px; background: #d9f5e3; color: #1d7a45; font-size: 12px; font-weight: 600; }
.account-h2 { font-family: var(--font-display); font-size: 24px; margin: 36px 0 16px; }
.account-order { background: var(--white); border: 1px solid var(--blue-100); border-radius: var(--radius-sm); margin-bottom: 14px; box-shadow: var(--shadow); }
.account-order-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--blue-100); }
.account-order-total { font-weight: 700; color: var(--blue-600); }
.account-order-items { padding: 14px 20px; font-size: 14px; color: var(--text-mid); line-height: 1.7; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 50px; background: var(--blue-100); color: var(--blue-600); font-size: 12px; font-weight: 600; text-transform: capitalize; }
.status-pill.cancelled { background: #fde4e4; color: #b03030; }
.points-table { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 14px; }
.points-table td { padding: 8px 6px; border-bottom: 1px solid var(--blue-100); }
.points-table .plus { color: #1d7a45; font-weight: 700; text-align: right; }
.points-table .minus { color: #b03030; font-weight: 700; text-align: right; }
.account-delete { margin-top: 28px; font-size: 14px; color: var(--text-mid); }
.account-delete summary { cursor: pointer; list-style: none; }
.account-delete summary::-webkit-details-marker { display: none; }
.btn-danger-outline { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid #e0a3a3; border-radius: 999px; color: #b03030; background: #fff5f5; font-weight: 600; font-size: 14px; transition: background .2s, border-color .2s, color .2s; }
.btn-danger-outline:hover { background: #fde8e8; border-color: #c94a4a; }
.account-delete[open] .btn-danger-outline { background: #b03030; border-color: #b03030; color: #fff; }
.btn-danger { background: #c0392b; color: #fff; border-color: #c0392b; }
.btn-danger:hover { background: #a02c20; border-color: #a02c20; box-shadow: 0 6px 18px rgba(192,57,43,.3); }
.account-delete form { max-width: 320px; margin-top: 12px; }
.reward-box { background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 20px; }
.reward-box h4 { margin: 0 0 10px; font-size: 15px; }
.reward-option { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; cursor: pointer; margin-bottom: 8px; font-size: 14px; }
.reward-option.disabled { opacity: 0.55; cursor: not-allowed; }
.reward-option input { margin-top: 3px; }
.summary-row.discount span:last-child { color: #1d7a45; font-weight: 600; }
.points-preview { font-size: 13px; color: var(--blue-600); background: var(--blue-50); border-radius: var(--radius-sm); padding: 10px 12px; margin: 8px 0 12px; }
@media (max-width: 768px) {
  .loyalty-card { flex-direction: column; text-align: center; }
  .account-label { display: none; }
  .account-box { padding: 24px 18px; }
  .account-order-head { flex-wrap: wrap; }
}


/* =====================================================================
   MOBILE-OPTIMIERUNG (Handy & Tablet)
   Alles Folgende überschreibt bewusst die Desktop-Regeln weiter oben.
===================================================================== */

/* --- Grundlagen für alle Geräte --- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; -webkit-tap-highlight-color: rgba(77, 168, 232, 0.15); }
a, button, label, select, summary { touch-action: manipulation; }
.legal-content, .success-box, .contact-box, .account-box, .cart-item-info { overflow-wrap: anywhere; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-open { display: none; }
.nav-toggle.is-open .icon-close { display: block; }

/* Hover-Effekte nur bei Maus – auf Touch-Geräten bleiben Karten ruhig */
@media (hover: none) {
  .product-card:hover { transform: none; box-shadow: var(--shadow); }
  .product-card:hover .product-image img { transform: none; }
  .cart-btn:hover, .btn-primary:hover, .btn-add-cart:hover:not(:disabled) { transform: none; }
  .lp-step:hover, .lp-reward:hover, .ct-card:hover { transform: none; }
}

/* iPhone-Notch / Home-Indikator */
@supports (padding: max(0px)) {
  .navbar { padding-top: env(safe-area-inset-top); }
  .nav-container, .container, .footer-container, .hero { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  .footer-bottom { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* --- Tablet (bis 1024px) --- */
@media (max-width: 1024px) {
  .hero-text { margin-left: auto; margin-right: auto; }
  .product-detail { gap: 36px; margin-bottom: 56px; }
  .cart-summary { position: static; }
  .section-header h2 { font-size: 32px; }
}

/* --- Handy (bis 768px) --- */
@media (max-width: 768px) {
  :root { --gutter: 16px; }
  /* Formularfelder mind. 16px, sonst zoomt iOS beim Antippen */
  input, select, textarea { font-size: 16px !important; }
  .form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"],
  .form-group input[type="number"], .form-group input[type="password"], .form-group select, .form-group textarea {
    padding: 14px 16px; min-height: 48px;
  }
  .form-group textarea { min-height: 110px; }

  /* Buttons: gut tippbar, Text darf umbrechen */
  .btn { white-space: normal; text-align: center; justify-content: center; min-height: 48px; padding: 13px 24px; }
  .btn-small { min-height: 42px; padding: 10px 18px; }
  .btn-large { padding: 15px 24px; }

  /* Hinweis-Meldung über volle Breite */
  .notification { top: 10px; left: 12px; right: 12px; max-width: none; padding-top: 14px; padding-bottom: 14px; }
  .notification button { width: 40px; height: 40px; right: 4px; }

  /* Navigation */
  .navbar { box-shadow: 0 1px 8px rgba(74, 160, 220, 0.1); }
  .nav-container { height: 60px; padding: 0 16px; gap: 10px; }
  .logo { min-width: 0; }
  .logo-img { height: 38px; max-width: 150px; object-fit: contain; }
  .nav-actions { margin-left: auto; gap: 8px; }
  .account-btn { height: 42px; min-width: 42px; justify-content: center; padding: 0 10px; }
  .points-chip { font-size: 12px; }
  .cart-btn { width: 42px; height: 42px; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 42px; height: 42px; border-radius: 50%; padding: 0;
    background: var(--blue-50); border: 1.5px solid var(--blue-200); color: var(--blue-600);
  }
  .nav-links {
    top: 100%; margin-left: 0; gap: 0; padding: 4px 20px 12px;
    max-height: calc(100vh - 70px); overflow-y: auto;
    box-shadow: 0 12px 24px rgba(74, 160, 220, 0.15);
  }
  .nav-links li { border-bottom: 1px solid var(--blue-50); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 15px 4px; font-size: 17px; color: var(--text); }
  .nav-links a::after { display: none; }

  /* Startseite */
  .hero { padding: 28px 16px 40px; gap: 0; }
  .hero-badge { font-size: 12px; margin-bottom: 16px; }
  .hero-title { font-size: clamp(40px, 13vw, 56px); margin-bottom: 16px; }
  .hero-text { font-size: 16px; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; }

  .features-bar { padding: 12px 16px; }
  .features-bar-inner { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .feature-item { flex-direction: column; text-align: center; gap: 6px; padding: 16px 10px; white-space: normal; border-right: 1px solid var(--blue-100); border-bottom: 1px solid var(--blue-100); }
  .feature-item:nth-child(2n) { border-right: none; }
  .feature-item:nth-last-child(-n+2) { border-bottom: none; }
  .feat-icon { font-size: 26px; }
  .feature-item strong { font-size: 13px; }
  .feature-item small { font-size: 11.5px; }

  /* Abschnitte */
  .section { padding: 36px 0; }
  .container { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  .section-header { margin-bottom: 22px; gap: 8px 12px; }
  .section-header h2 { font-size: 26px; }
  .section-link { margin-left: 0; width: 100%; padding: 4px 0; }
  .page-header { padding: 28px 16px; }
  .page-header h1 { font-size: 30px; }
  .page-header p { font-size: 14px; }

  /* Kategorie-Pillen: eine Zeile, seitlich wischbar */
  .category-pills { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 calc(var(--gutter) * -1) 18px; padding: 2px var(--gutter) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .category-pills::-webkit-scrollbar { display: none; }
  .category-pill { flex: 0 0 auto; white-space: nowrap; padding: 10px 18px; }

  /* Produktraster: 2 Spalten wie in jedem Mode-Shop */
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { border-radius: 12px; }
  .product-info { padding: 12px 12px 8px; }
  .product-category { font-size: 10px; letter-spacing: 1px; }
  .product-name { font-size: 15px; margin-bottom: 6px; }
  .product-price { font-size: 16px; }
  .product-add-form { padding: 0 12px 12px; gap: 8px; }
  .size-select { padding: 11px 10px; min-height: 44px; }
  .btn-add-cart { min-height: 44px; font-size: 14px; }
  .badge { top: 8px; left: 8px; font-size: 10px; padding: 3px 8px; }
  .badge-low { top: auto; bottom: 8px; }

  /* Shop: Suche + Filter */
  .filter-bar { padding: 14px; gap: 10px; margin-bottom: 24px; }
  .filter-form { flex-direction: column; gap: 10px; flex: 1 1 100%; min-width: 0; width: 100%; }
  .filter-form > * { min-width: 0; max-width: 100%; }
  .search-box { min-width: 0; width: 100%; flex: none; }
  .search-box input { padding: 13px 16px; min-width: 0; }
  .search-box button { padding: 0 18px; min-width: 52px; }
  .filter-group { width: 100%; }
  .filter-group select { width: 100%; min-width: 0; max-width: 100%; min-height: 48px; padding: 12px 16px; }
  .search-box input { width: 100%; }
  .result-count { width: 100%; }
  .empty-state { padding: 48px 12px; }
  .empty-state h3 { font-size: 24px; }

  /* Produktseite */
  .breadcrumb { margin-bottom: 18px; font-size: 12.5px; line-height: 1.8; }
  .product-detail { gap: 24px; margin-bottom: 40px; }
  .gallery-main img { border-radius: 12px; }
  .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 10px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gallery-thumbs::-webkit-scrollbar { display: none; }
  .thumb { flex: 0 0 auto; width: 68px; height: 68px; }
  .product-detail-name { font-size: 26px; }
  .product-detail-price { font-size: 26px; margin-bottom: 10px; }
  .product-detail-desc { margin-bottom: 22px; line-height: 1.7; }
  .add-to-cart-form { gap: 20px; }
  .size-buttons, .color-buttons { gap: 10px; }
  .size-btn, .color-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 10px 18px; }
  .qty-control button { width: 48px; min-height: 48px; padding: 0; }
  .qty-control input { width: 56px; min-height: 48px; }
  .qty-control span { min-width: 44px; text-align: center; padding: 12px 10px; }
  .product-meta { flex-direction: column; gap: 8px; padding-top: 8px; }
  .related-section { margin-top: 36px; }
  .related-section h2 { font-size: 23px; margin-bottom: 20px; }

  /* Warenkorb */
  .cart-layout, .checkout-layout { gap: 24px; }
  .cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px 14px; padding: 14px; align-items: start; }
  .cart-item-image { width: 76px; height: 96px; }
  .cart-item-info h3 { font-size: 15px; line-height: 1.35; }
  .cart-item-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--blue-100); }
  .cart-item-actions .item-total { margin: 0; font-size: 17px; }
  .qty-control.small button { width: 42px; min-height: 42px; }
  .qty-control.small span { min-width: 38px; padding: 8px 6px; }
  .btn-remove { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; opacity: 1; }
  .cart-summary { padding: 20px 18px; }
  .cart-summary h3 { font-size: 20px; margin-bottom: 12px; }
  .summary-row { gap: 12px; }
  .summary-row span:last-child { text-align: right; }

  /* Kasse */
  .checkout-steps { font-size: 12px; flex-wrap: wrap; gap: 4px 6px; }
  .checkout-form-wrap { padding: 20px 16px; }
  .checkout-form-wrap h3 { font-size: 20px; margin-bottom: 18px; }
  .checkout-form-wrap .form-group { margin-bottom: 14px; }
  .checkout-form-wrap input[type="radio"], .checkout-form-wrap input[type="checkbox"],
  .reward-option input, .check-label input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px !important; accent-color: var(--blue-400); }
  .checkout-form-wrap label[style*="flex"], .reward-option { padding: 6px 0; gap: 12px !important; }
  .reward-box { padding: 14px; }
  .checkout-item { gap: 12px; }
  .checkout-item span:last-child { white-space: nowrap; }

  /* Bestellbestätigung / Abbruch */
  .success-box { padding: 32px 0; }
  .success-icon { font-size: 56px; margin-bottom: 16px; }
  .success-box h1 { font-size: 28px; }
  .success-sub { font-size: 16px; margin-bottom: 24px; }
  .order-number-box { padding: 18px; }
  .order-number-box strong { font-size: 24px; overflow-wrap: anywhere; }
  .success-items, .success-details { padding: 16px; }
  .success-item { gap: 12px; }

  /* Banner, Über uns */
  .promo-banner { padding: 48px 16px; }
  .promo-banner h2 { font-size: 30px; }
  .promo-banner p { font-size: 16px; margin-bottom: 24px; }
  .about-grid { gap: 32px; }
  .about-text h2 { font-size: 30px; }
  .about-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; padding: 18px; }
  .about-num { grid-row: 1 / 3; font-size: 30px; }

  /* Kontakt / Treueprogramm (haben eigene <style>-Blöcke, daher höhere Spezifität) */
  .ct-wrap .ct-grid { grid-template-columns: 1fr; gap: 14px; }
  .ct-wrap .ct-main { margin-top: -36px; }
  .lp .lp-rewards { grid-template-columns: 1fr; }
  .lp .lp-reward { padding: 24px 18px; }
  .lp .lp-earn-num { width: 128px; height: 128px; }
  .lp .lp-earn-num strong { font-size: 38px; }
  .lp .lp-title h2 { font-size: 25px; }
  .lp .lp-final { padding: 32px 18px; }
  .lp .lp-final h2 { font-size: 24px; }
  .lp .lp-hero .lp-cta .btn { width: 100%; }

  /* Rechtstexte */
  .legal-content h2 { font-size: 22px; margin-top: 26px; }
  .legal-content h3 { font-size: 17px; }
  .legal-content p, .legal-content li { font-size: 15px; line-height: 1.75; }
  .legal-content ul, .legal-content ol { padding-left: 20px; }

  /* Kundenkonto */
  .account-box { padding: 22px 16px; }
  .account-h2 { font-size: 21px; margin-top: 28px; }
  .loyalty-card { padding: 22px 16px; gap: 18px; }
  .loyalty-points { width: 104px; height: 104px; }
  .loyalty-num { font-size: 30px; }
  .account-order-head { padding: 14px; gap: 8px 12px; }
  .account-order-items { padding: 12px 14px; }
  .points-table { font-size: 13px; }
  .account-delete form { max-width: none; }

  /* Widerruf & Co.: Buttons in Formularen untereinander */
  form[style*="display:flex"] > .btn, div[style*="justify-content:center"] > .btn { flex: 1 1 100%; }

  /* Footer */
  .footer { padding-top: 36px; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 0 16px 32px; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-logo-img { height: 46px; }
  .footer-social a { width: 44px; height: 44px; }
  .footer-links ul { gap: 0; }
  .footer-links a { display: block; padding: 8px 0; }
  .footer-links .btn-withdraw { display: inline-block; padding: 10px 14px; margin-top: 8px; }
  .footer-contact p { line-height: 1.6; }
  .footer-bottom { padding: 16px; }
}

/* --- Kleine Handys (bis 400px) --- */
@media (max-width: 400px) {
  .nav-container { gap: 6px; padding: 0 12px; }
  .logo-img { height: 34px; max-width: 120px; }
  .nav-actions { gap: 6px; }
  .account-btn, .cart-btn, .nav-toggle { width: 40px; height: 40px; min-width: 40px; }
  .account-btn { padding: 0; }
  .points-chip { display: none; }
  :root { --gutter: 14px; }
  .product-grid { gap: 10px; }
  .product-name { font-size: 14px; }
  .product-price { font-size: 15px; }
  .page-header h1 { font-size: 27px; }
  .section-header h2 { font-size: 23px; }
  .footer-container { grid-template-columns: 1fr; }
}
@media (max-width: 340px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Querformat auf dem Handy: Menü nicht höher als der Bildschirm */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .nav-links { max-height: calc(100vh - 66px); }
  .hero { padding-top: 20px; }
}

/* ===== Konto-Seiten (Anmelden, Registrieren, Passwort, E-Mail-Bestätigung) ===== */
.auth-hero {
  position: relative; overflow: hidden; text-align: center; padding: 52px 0 116px;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50) 55%, #fff);
  border-bottom: 1px solid var(--blue-100);
}
.auth-hero::before, .auth-hero::after { content: ''; position: absolute; border-radius: 50%; background: var(--blue-200); opacity: .35; }
.auth-hero::before { width: 260px; height: 260px; top: -90px; left: -70px; }
.auth-hero::after { width: 200px; height: 200px; bottom: -90px; right: -50px; background: var(--blue-300); opacity: .25; }
.auth-hero .container { position: relative; z-index: 1; }
.auth-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--blue-600);
  font-weight: 600; font-size: 13px; padding: 7px 16px; border-radius: 999px; box-shadow: var(--shadow);
  margin-bottom: 16px; letter-spacing: .04em; text-transform: uppercase;
}
.auth-hero h1 { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: var(--text); line-height: 1.15; }
.auth-hero p { max-width: 560px; margin: 12px auto 0; color: var(--text-mid); font-size: 16px; line-height: 1.7; }

.auth-main { padding: 0 0 72px; }
.auth-card {
  position: relative; max-width: 480px; margin: -72px auto 0; background: #fff; border: 1px solid var(--blue-100);
  border-radius: 22px; padding: 44px 36px 32px; box-shadow: var(--shadow-lg);
}
.auth-icon {
  position: absolute; top: -36px; left: 50%; transform: translateX(-50%); width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-300)); box-shadow: 0 8px 22px rgba(77,168,232,.45); border: 4px solid #fff;
}
.auth-card .form-group { margin-bottom: 18px; }
.auth-card .field { position: relative; }
.auth-card .field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 17px; opacity: .75; pointer-events: none; }
.auth-card .field input { padding-left: 44px; }
.auth-card .btn-large { border-radius: 999px; box-shadow: 0 6px 18px rgba(77,168,232,.35); }
.auth-card hr { border: none; border-top: 1px solid var(--blue-100); margin: 24px 0; }
.auth-links { text-align: center; font-size: 14px; color: var(--text-mid); margin-top: 16px; line-height: 1.7; }
.auth-links a { color: var(--blue-600); }
.auth-links a:hover { text-decoration: underline; }
.auth-links small { color: var(--text-light); }
.auth-alt { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; color: var(--text-mid); text-align: center; }
.auth-alt a { font-weight: 700; color: var(--blue-600); }

.auth-perks { max-width: 780px; margin: 28px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.auth-perk { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--blue-100); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; color: var(--text-mid); line-height: 1.4; }
.auth-perk span { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.auth-perk strong { display: block; color: var(--text); font-size: 14.5px; }

.auth-steps { list-style: none; counter-reset: s; margin: 24px 0 8px; display: grid; gap: 12px; text-align: left; }
.auth-steps li { counter-increment: s; display: flex; align-items: center; gap: 14px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-sm); padding: 12px 16px; color: var(--text); font-size: 15px; }
.auth-steps li::before { content: counter(s); flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-400); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.auth-center { text-align: center; }
.auth-center h2 { font-family: var(--font-display); font-size: 22px; color: var(--text); margin-bottom: 8px; }
.auth-center p { color: var(--text-mid); line-height: 1.7; }
.auth-center strong { color: var(--text); overflow-wrap: anywhere; }
.auth-hint { margin-top: 14px; font-size: 13.5px; color: var(--text-light) !important; }
.auth-actions { display: grid; gap: 10px; margin-top: 22px; }
.btn-ghost-blue { display: flex; justify-content: center; padding: 13px 24px; border: 1.5px solid var(--blue-200); border-radius: 999px; color: var(--blue-600); font-weight: 600; background: #fff; transition: all .2s; }
.btn-ghost-blue:hover { background: var(--blue-50); border-color: var(--blue-300); }

@media (max-width: 768px) {
  .auth-hero { padding: 40px 0 88px; }
  .auth-hero h1 { font-size: 32px; }
  .auth-perks { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 480px) {
  .auth-card { padding: 42px 20px 26px; margin-left: 0; margin-right: 0; }
}
.auth-verify { background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 22px; text-align: center; color: var(--text); }
.auth-verify p { color: var(--text-mid); font-size: 14px; margin: 4px 0 12px; line-height: 1.5; }
.auth-verify .btn-ghost-blue { width: 100%; cursor: pointer; font: inherit; font-weight: 600; }


/* ===== Shop: Kategorien-Sidebar ===== */
.shop-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; }
.shop-sidebar { position: sticky; top: 90px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 16px; }
.sidebar-title { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-light); margin: 0 6px 12px; }
.category-pills--side { flex-direction: column; flex-wrap: nowrap; gap: 4px; margin-bottom: 0; }
.category-pills--side .category-pill { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: none; border-radius: 10px; padding: 11px 14px; background: transparent; }
.category-pills--side .category-pill:hover { background: var(--blue-50); color: var(--blue-600); }
.category-pills--side .category-pill.active { background: var(--blue-400); color: #fff; }
.category-pills--side .category-pill small { background: var(--blue-100); color: var(--blue-600); border-radius: 100px; padding: 1px 9px; opacity: 1; margin: 0; }
.category-pills--side .category-pill.active small { background: rgba(255,255,255,.25); color: #fff; }
.shop-main .filter-bar { margin-bottom: 28px; }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 16px; }
  .shop-sidebar { position: static; background: none; box-shadow: none; padding: 0; }
  .sidebar-title { display: none; }
  .category-pills--side { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 calc(var(--gutter, 16px) * -1); padding: 2px var(--gutter, 16px) 8px; scrollbar-width: none; }
  .category-pills--side::-webkit-scrollbar { display: none; }
  .category-pills--side .category-pill { flex: 0 0 auto; white-space: nowrap; border: 2px solid var(--blue-200); border-radius: 100px; padding: 10px 18px; background: var(--white); }
  .category-pills--side .category-pill.active { border-color: var(--blue-400); }
  .category-pills--side .category-pill small { background: none; padding: 0; margin-left: 4px; opacity: .7; }
  .category-pills--side .category-pill.active small { background: none; }
}

/* Karten-Button als Link */
a.btn-add-cart { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
a.btn-add-cart:hover { background: var(--blue-500); transform: scale(1.02); }
a.btn-add-cart--soldout { background: var(--blue-200); }
a.btn-add-cart--soldout:hover { background: var(--blue-200); transform: none; }

/* ===== Größen-Hinweis Startseite ===== */
.hero-sizes { display: inline-block; margin: 0 0 24px; padding: 8px 16px; background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: 999px; color: var(--blue-700); font-size: 15px; }
.hero-sizes strong { color: var(--blue-500); }
.sizes-box { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 40px 48px; background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); border: 1px solid var(--blue-200); border-radius: var(--radius); box-shadow: var(--shadow); }
.sizes-text { flex: 1 1 380px; }
.sizes-text h2 { font-family: var(--font-display); font-size: 36px; color: var(--blue-800); margin: 12px 0; }
.sizes-text p { color: var(--text-mid); margin-bottom: 22px; line-height: 1.6; }
.sizes-chips { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sizes-chips span { min-width: 52px; padding: 10px 14px; text-align: center; background: var(--white); border: 1.5px solid var(--blue-300); border-radius: var(--radius-sm); color: var(--blue-700); font-weight: 600; }
.sizes-chips span:last-child { background: var(--blue-400); border-color: var(--blue-400); color: #fff; }
@media (max-width: 768px) {
  .sizes-box { flex-direction: column; align-items: flex-start; padding: 28px 20px; gap: 24px; }
  .sizes-text h2 { font-size: 26px; }
  .sizes-chips { justify-content: flex-start; }
  .sizes-chips span { min-width: 46px; padding: 8px 10px; }
}

/* ===== Highlights hervorgehoben ===== */
.featured-section { background: linear-gradient(180deg, var(--blue-50), var(--bg)); }
.product-card.is-featured { border: 2px solid var(--blue-400); box-shadow: 0 8px 30px rgba(77, 168, 232, 0.35); }
.badge-featured { background: linear-gradient(135deg, #4da8e8, #1a6fa8); box-shadow: 0 2px 10px rgba(26, 111, 168, 0.4); }

.section-header-center { flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 36px; }
.section-sub { color: var(--text-mid); font-size: 16px; }
.section-more { text-align: center; margin-top: 36px; }

/* ===== Kundenkonto visuell ===== */
.acc-hero { background: linear-gradient(135deg, var(--blue-400), var(--blue-600)); color: #fff; padding: 36px 0; }
.acc-hero-inner { display: flex; align-items: center; gap: 20px; }
.acc-hero h1 { font-family: var(--font-display); font-size: 30px; color: #fff; margin: 0 0 2px; }
.acc-hero p { color: rgba(255,255,255,0.85); margin: 0; overflow-wrap: anywhere; }
.acc-avatar { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--blue-600); font-size: 32px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.acc-logout { margin-left: auto; }
.acc-logout .btn { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.6); }
.acc-logout .btn:hover { background: rgba(255,255,255,0.28); }
.acc-stats { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 16px; margin: -64px 0 28px; position: relative; }
.acc-stat { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.acc-stat-icon { font-size: 26px; margin-bottom: 4px; }
.acc-stat strong { font-size: 24px; color: var(--blue-700); line-height: 1.15; }
.acc-stat-wide strong { font-size: 19px; }
.acc-stat small { color: var(--text-mid); }
.loy-progress { position: relative; height: 12px; background: var(--white); border-radius: 99px; margin: 18px 0 20px; box-shadow: inset 0 1px 3px rgba(26,80,128,0.15); }
.loy-progress-bar { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue-300), var(--blue-500)); transition: width .4s; }
.loy-mark { position: absolute; top: -3px; width: 4px; height: 18px; margin-left: -2px; background: var(--blue-700); border-radius: 2px; opacity: .55; }
.reward-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.reward-item { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.75); border: 1.5px dashed var(--blue-300); border-radius: var(--radius-sm); padding: 12px 14px; }
.reward-item.reachable { background: #fff; border: 1.5px solid #6cc596; }
.reward-item div { flex: 1; display: flex; flex-direction: column; }
.reward-item small, .reward-need { color: var(--text-mid); font-size: 12px; }
.reward-ico { font-size: 26px; }
.order-steps { list-style: none; display: flex; margin: 0; padding: 16px 20px 6px; }
.order-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; text-align: center; font-size: 12px; color: var(--text-light); }
.order-steps li:not(:first-child)::before { content: ''; position: absolute; top: 12px; right: 50%; width: 100%; height: 3px; background: var(--blue-100); }
.order-steps li.done:not(:first-child)::before, .order-steps li.current:not(:first-child)::before { background: var(--blue-400); }
.order-steps .dot { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-100); color: var(--text-light); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.order-steps li.done .dot { background: var(--blue-400); color: #fff; }
.order-steps li.current .dot { background: var(--blue-600); color: #fff; box-shadow: 0 0 0 4px var(--blue-200); }
.order-steps li.current .lbl { color: var(--blue-700); font-weight: 700; }
.acc-empty { text-align: center; background: var(--white); border: 1px dashed var(--blue-300); border-radius: var(--radius); padding: 36px 20px; }
.acc-empty-ico { font-size: 44px; }
.acc-empty p { margin: 8px 0 16px; color: var(--text-mid); }
@media (max-width: 768px) {
  .acc-hero { padding: 24px 0 70px; }
  .acc-hero-inner { flex-wrap: wrap; gap: 14px; }
  .acc-hero h1 { font-size: 22px; }
  .acc-avatar { width: 56px; height: 56px; font-size: 24px; }
  .acc-logout { margin-left: 0; width: 100%; }
  .acc-stats { grid-template-columns: 1fr 1fr; margin-top: -52px; gap: 12px; }
  .acc-stat-wide { grid-column: 1 / -1; }
  .order-steps { padding: 14px 8px 4px; }
  .order-steps li { font-size: 10px; }
}

/* ===== Shop mobil: Überbreite beheben + aufgeräumter Filter ===== */
.shop-sidebar, .shop-main { min-width: 0; }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .shop-main .filter-bar { margin-bottom: 18px; }
}
@media (max-width: 768px) {
  .section { padding-top: 24px; }
  .shop-main .filter-bar { padding: 0; background: none; box-shadow: none; }
  .shop-main .filter-form { flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 8px; }
  .shop-main .search-box { flex: 1 1 auto; width: auto; background: var(--white); }
  .shop-main .search-box input { padding: 12px 14px; }
  .shop-main .filter-group { flex: 0 0 auto; width: auto; }
  .shop-main .filter-group select { width: 118px; min-height: 0; height: 100%; padding: 0 12px; background: var(--white); }
  .shop-sidebar .category-pills--side { margin-bottom: 0; }
  .product-placeholder span { font-size: 44px; }
}
@media (max-width: 400px) {
  .shop-main .filter-group select { width: 96px; }
}

/* Größen-Chips mobil: keine Streckung in die Höhe */
.sizes-chips span { align-self: flex-start; }
@media (max-width: 768px) {
  .sizes-text, .sizes-chips { flex: 0 0 auto; width: 100%; }
  .sizes-chips { gap: 8px; }
  .sizes-chips span { min-width: 44px; padding: 8px 12px; font-size: 14px; }
}
