/* Stefanie Spielberger Kunst-Website - Stylesheet */

/* 1. Imports & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* 2. CSS Custom Properties (Design System Tokens) */
:root {
  --color-bg-deep: #080b11;
  --color-bg-card: #121824;
  --color-bg-modal: #0d121c;
  --color-glass-bg: rgba(18, 24, 36, 0.65);
  --color-glass-border: rgba(197, 168, 128, 0.15);
  --color-glass-border-hover: rgba(197, 168, 128, 0.4);
  
  --color-primary: #c5a880;
  --color-primary-hover: #e5cda8;
  --color-primary-light: rgba(197, 168, 128, 0.1);
  --color-text-main: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-text-dark: #1f2937;
  
  --font-title: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 0 15px rgba(197, 168, 128, 0.2);
}

/* 3. Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background-color: var(--color-bg-deep);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-light);
  border-radius: 4px;
  border: 2px solid var(--color-bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* 4. Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-center {
  text-align: center;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 1rem;
  letter-spacing: 2px;
  position: relative;
  text-transform: uppercase;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 1.5rem auto 3rem auto;
}

.section-subtitle {
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Sektions-Abstände */
section {
  padding: 8rem 0;
  position: relative;
}

section:nth-child(even) {
  background-color: rgba(18, 24, 36, 0.2);
}

/* 5. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-deep);
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  border: 1px solid var(--color-glass-border);
  color: var(--color-text-main);
  background-color: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.btn-full {
  width: 100%;
}

.btn-icon svg {
  transition: var(--transition-fast);
}

.btn-icon:hover svg {
  transform: scale(1.1);
}

/* 6. Header (Navigationsleiste) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
  background: transparent;
  border-bottom: 1px solid transparent;
}

/* Shrinking Header - Native CSS */
@keyframes shrink-header {
  to {
    height: 70px;
    background-color: rgba(8, 11, 17, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-glass-border);
    box-shadow: var(--shadow-sm);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    header {
      animation: shrink-header auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 100px;
    }
  }
}

/* Fallback-Klasse via JS */
header.scrolled {
  height: 70px;
  background-color: rgba(8, 11, 17, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-glass-border);
  box-shadow: var(--shadow-sm);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-text-main);
  display: flex;
  flex-direction: column;
}

.logo span:last-child {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-top: -2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.cart-trigger {
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-text-main);
  padding: 0.5rem;
  transition: var(--transition-fast);
}

.cart-trigger:hover {
  color: var(--color-primary);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--color-primary);
  color: var(--color-bg-deep);
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
}

/* 7. Hero Section (Einstieg) */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-image: linear-gradient(to bottom, rgba(8, 11, 17, 0.4), var(--color-bg-deep)), url('scraped-content/images/Bild-Homepage-scaled.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.2s ease-out; /* Weiche Rückstellung für Maus-Parallaxe */
}

/* Dunkle Vignette */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 40%, var(--color-bg-deep) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-title-wrap {
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--color-text-main);
  text-transform: uppercase;
  line-height: 1.2;
  animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle-wrap {
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-primary);
  letter-spacing: 2px;
  animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  opacity: 0;
}

.hero-actions {
  animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  opacity: 0;
}

/* Animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 8. Galerie & Shop */
.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-tab {
  cursor: pointer;
  padding: 0.65rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.filter-tab:hover {
  color: var(--color-text-main);
}

.filter-tab.active {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem;
}

.art-card {
  background-color: var(--color-bg-card);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-glass-border);
  transition: var(--transition-smooth);
}

.art-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.art-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #0b0e14;
}

.art-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.art-card:hover .art-card-media img {
  transform: scale(1.05);
}

.art-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 11, 17, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
}

.art-card:hover .art-card-overlay {
  opacity: 1;
}

.art-card-info {
  padding: 1.5rem;
  border-top: 1px solid var(--color-glass-border);
}

.art-card-category {
  font-size: 0.75rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 0.5rem;
}

.art-card-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--color-text-main);
}

.art-card-footer {
  display: flex;
  justify-content: justify;
  justify-content: space-between;
  align-items: center;
}

.art-card-size {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.art-card-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* 9. Entstehung der Naturfarben (Timeline) */
.timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--color-primary) 10%, var(--color-primary) 90%, transparent);
  transform: translateX(-50%);
}

.timeline-step {
  display: flex;
  margin-bottom: 6rem;
  position: relative;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-content {
  width: 45%;
  background-color: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 4px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.timeline-step:hover .timeline-content {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-gold);
}

.timeline-step:nth-child(odd) {
  justify-content: flex-start;
}

.timeline-step:nth-child(even) {
  justify-content: flex-end;
}

.timeline-dot {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 16px;
  height: 16px;
  background-color: var(--color-bg-deep);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: var(--transition-fast);
}

.timeline-step:hover .timeline-dot {
  background-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

.timeline-step-num {
  font-family: var(--font-title);
  font-size: 3rem;
  color: rgba(197, 168, 128, 0.15);
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 2rem;
}

.timeline-step:nth-child(even) .timeline-step-num {
  left: 2rem;
  right: auto;
}

.timeline-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--color-text-main);
  letter-spacing: 1px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.timeline-media {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* 10. Über mich Sektion */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-img-wrap {
  border: 1px solid var(--color-glass-border);
  border-radius: 4px;
  padding: 1rem;
  background-color: var(--color-glass-bg);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
}

.about-img-wrap img {
  border-radius: 2px;
  width: 100%;
}

.about-media::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 150px;
  height: 150px;
  border-top: 2px solid var(--color-primary);
  border-left: 2px solid var(--color-primary);
  z-index: 1;
}

.about-media::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  border-bottom: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
  z-index: 1;
}

.about-content {
  font-size: 1.05rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.about-vision {
  border-left: 2px solid var(--color-primary);
  padding-left: 1.5rem;
  margin-top: 2.5rem;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-text-main);
  line-height: 1.5;
}

/* 11. Kontakt & Formular */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-block h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--color-text-main);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.contact-info-block p {
  color: var(--color-text-muted);
}

.contact-info-block a:hover {
  color: var(--color-primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-glass-border);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  color: var(--color-text-main);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.15);
}

textarea.form-control {
  resize: vertical;
}

/* 12. Modale Dialoge (Native HTML5 <dialog>) */
dialog {
  margin: auto;
  border: 1px solid var(--color-glass-border);
  background-color: var(--color-bg-modal);
  color: var(--color-text-main);
  border-radius: 6px;
  max-width: 900px;
  width: 90%;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(8, 11, 17, 0.85);
  backdrop-filter: blur(8px);
}

/* Dialog Animationen */
dialog[open] {
  animation: modalFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.modal-close {
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-text-main);
}

.modal-body {
  padding: 2rem;
  max-height: 75vh;
  overflow-y: auto;
}

/* Produktdetail Modal Layout */
.modal-product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
}

.modal-product-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-gallery-main {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--color-glass-border);
  background-color: #0b0e14;
}

.modal-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.75rem;
}

.thumb-wrapper {
  aspect-ratio: 1;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--color-glass-border);
  cursor: pointer;
  transition: var(--transition-fast);
  background-color: #0b0e14;
}

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

.thumb-wrapper:hover, .thumb-wrapper.active {
  border-color: var(--color-primary);
}

.modal-product-info {
  display: flex;
  flex-direction: column;
}

.modal-product-category {
  font-size: 0.8rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.modal-product-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.modal-product-meta {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.meta-label {
  color: var(--color-text-muted);
  margin-right: 0.5rem;
}

.meta-value {
  color: var(--color-text-main);
  font-weight: 500;
}

.modal-product-price {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.modal-product-description {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-product-actions {
  margin-top: auto;
}

/* Warenkorb Modal Layout */
#cart-modal {
  max-width: 600px;
}

.cart-item-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 40vh;
  overflow-y: auto;
  margin-bottom: 2rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-glass-border);
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--color-glass-border);
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-category {
  font-size: 0.7rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cart-item-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0.15rem 0;
}

.cart-item-size {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.cart-item-price-remove {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-item-price {
  font-weight: 600;
  color: var(--color-primary);
}

.btn-remove {
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0.25rem;
  transition: var(--transition-fast);
}

.btn-remove:hover {
  color: #ef4444;
}

.cart-summary {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-glass-border);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 500;
}

.cart-summary-row span:last-child {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.4rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1.5rem;
}

.cart-empty svg {
  color: var(--color-primary-light);
  margin-bottom: 1.5rem;
}

.cart-empty p:first-of-type {
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Checkout Modal Layout */
#checkout-modal {
  max-width: 700px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
}

.checkout-summary-box {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-glass-border);
  border-radius: 4px;
  padding: 1.5rem;
}

.checkout-summary-box h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-glass-border);
  padding-bottom: 0.5rem;
  color: var(--color-primary);
}

.checkout-summary-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.summary-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.1rem;
  border-top: 1px solid var(--color-glass-border);
  padding-top: 1rem;
}

.checkout-total-row span:last-child {
  color: var(--color-primary);
}

/* 13. Toast-Benachrichtigung */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-primary);
  color: var(--color-text-main);
  padding: 1rem 2rem;
  border-radius: 4px;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* 14. Erfolgs-Overlay */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 11, 17, 0.95);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-box {
  text-align: center;
  max-width: 500px;
  padding: 3rem;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-smooth);
}

.success-overlay.active .success-box {
  transform: scale(1) translateY(0);
}

.success-checkmark {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
  box-shadow: var(--shadow-gold);
}

.success-box h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.success-box p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* 15. Scroll-driven Animations (Native) */
@keyframes fadeInFloat {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    /* Alle Elemente mit .animate-on-scroll */
    .animate-on-scroll {
      animation: fadeInFloat auto linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 45%;
    }
  }
}

/* Fallback-Klassen (für JS-Observer) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Wenn native CSS Scroll-Animationen vorhanden sind, Fallback-Transitionen deaktivieren */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  .animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 16. Footer */
footer {
  background-color: #05070a;
  border-top: 1px solid var(--color-glass-border);
  padding: 4rem 0 2rem 0;
  font-size: 0.9rem;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.footer-copy {
  color: var(--color-text-muted);
}

.footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.footer-nav a:hover {
  color: var(--color-primary);
}

/* 17. Responsive Media Queries */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .about-layout {
    gap: 3rem;
  }
}

@media (max-width: 1024px) {
  section {
    padding: 6rem 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .about-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .about-media {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .timeline::before {
    left: 2rem;
  }
  
  .timeline-step {
    justify-content: flex-end;
    margin-bottom: 4rem;
  }
  
  .timeline-content {
    width: calc(100% - 4rem);
  }
  
  .timeline-dot {
    left: 2rem;
  }
  
  .timeline-step-num {
    left: 2rem;
    right: auto;
  }
  
  .timeline-step:nth-child(even) .timeline-step-num {
    left: 2rem;
  }
}

@media (max-width: 768px) {
  header {
    height: 80px;
  }
  
  nav {
    display: none; /* Mobile Menü kann hier ausgeblendet oder über Toggle angezeigt werden */
  }
  
  /* Einfacher Mobile Cart Button rechts */
  .mobile-header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .modal-product-layout {
    grid-template-columns: 1fr;
  }
  
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-layout {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
}
