/*----------------------------------------
  1. @font‑face
----------------------------------------*/
@font-face {
  font-family: 'Asap';
  src: url('../fonts/Asap-Regular.woff2') format('woff2');
  font-display: swap;
  font-weight: 400;
}

/*----------------------------------------
  2. Root‑Variablen
----------------------------------------*/
:root {
  --primary: #e33030;
  --secondary: #28a745;
  --tertiary: #f2994a;
  --bg: #fafafa;
  --text: #222;
  --muted: #666;
  --border: #ddd;
  --warning: #ffc107;
  --gray: #ececec;
  --darkred: #B82727;
  --error-bg: #ffe6e6;
  --error-text: #b30000;
  --error-border: #ffcccc;

  --font: Asap, sans-serif;
  --base-size: 18px;
  --small-size: 16px;
  --line-h: 1.5;

  --xs: .25rem;
  --sm: .5rem;
  --md: 1rem;
  --lg: 1.5rem;
  --xl: 3rem;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 20px;

  --z-nav: 100;
  --z-overlay: 200;
  --z-toast: 300;
}

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

html {
  font-size: var(--base-size);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
button {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0 0 80px;
  font-family: var(--font);
  line-height: var(--line-h);
  color: var(--text);
  background: var(--bg) url('../img/background.webp') top/cover no-repeat;
}

body.no-scroll {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--md);
}

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

/*----------------------------------------
  4. Utilities
----------------------------------------*/
.flex {
  display: flex;
  align-items: center;
}

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

.center-column {
  display: flex;
  flex-direction: column;
}

.gap-sm {
  gap: var(--sm);
}

/*----------------------------------------
  5. Header & Navigation
----------------------------------------*/
.site-header {
  background: var(--primary);
  color: var(--bg);
}

.header-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--xs);
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--bg);
  text-decoration: none;
}

.nav-menu {
  display: flex;
}

.nav-menu ul {
  display: flex;
  list-style: none;
}

.nav-menu li {
  padding: 0 var(--sm);
}

.nav-menu a {
  color: var(--bg);
  text-decoration: none;
}

.nav-menu a:hover {
  color: var(--bg);
  text-decoration: underline;
}

/* Burger‑Toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle .icon-menu,
.nav-toggle .hamburger {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.nav-toggle:focus,
.nav-toggle:focus-visible {
  outline: 2px solid var(--tertiary);
  outline-offset: 2px;
}

.nav-toggle:hover {
  background: var(--darkred);
}

/* Hamburger fallback */
.hamburger {
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--bg);
  border-radius: var(--r-sm);
  margin: auto;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--bg);
  border-radius: var(--r-sm);
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  #main-nav.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary);
    z-index: var(--z-nav);
    flex-direction: column;
  }

  #main-nav.nav-menu.active {
    display: flex;
  }

  #main-nav.nav-menu ul {
    flex-direction: column;
    margin: 0;
    padding: 0;
  }

  #main-nav.nav-menu li {
        padding: var(--md);
  }

  #main-nav.nav-menu li+li {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
}



/*----------------------------------------
  6. Pizza‑Grid & Cards
----------------------------------------*/
.pizza-list {
  display: grid;
  gap: var(--md);
  padding: var(--md) 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pizza-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--md);
  display: flex;
  flex-direction: column;
  gap: var(--sm);
}

.pizza-item h2 {
  font-size: 1.25rem;
}

.pizza-item p {
  color: var(--muted);
  font-size: var(--small-size)
}

/*----------------------------------------
  7. Size‑Toggle
----------------------------------------*/
.size-toggle {
  display: flex;
  gap: var(--sm);
  margin: var(--sm) 0;
}

.size-toggle label {
  display: flex;
  align-items: center;
  gap: var(--xs);
  padding: var(--xs) var(--md);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: background .2s, color .2s, border-color .2s;
}

.size-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-toggle label:has(input:checked) {
  background: var(--tertiary);
  color: var(--bg);
  border-color: var(--tertiary);
}

.size-toggle label:hover {
  background: var(--border);
}

.size-toggle label:focus-within {
  outline: 2px solid var(--tertiary);
  outline-offset: 2px;
}

/*----------------------------------------
  8. Button‑ & Link‑Pattern
----------------------------------------*/
/* Button-Group */
.button-group {
  display: flex;
  gap: var(--sm);
  margin: var(--sm) 0;
  flex-direction: row;
}

/* Basis‑Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: var(--r-sm);
  padding: var(--sm) var(--md);
  min-width: 44px;
  min-height: 44px;
  transition: background .2s, transform .1s, opacity .2s;
  text-decoration: none;
}

/* Volle Breite */
.btn--full {
  width: 100%;
}

/* Quadratisch */
.btn--square {
  width: 44px;
  height: 44px;
  padding: 0;
}

/* Farb-Varianten */
.btn--primary {
  background: var(--primary);
  color: var(--bg);
}

.btn--secondary {
  background: var(--secondary);
  color: var(--bg);
}

.btn--tertiary {
  background: var(--tertiary);
  color: var(--bg);
}

.btn--danger {
  background: var(--darkred);
  color: var(--bg);
}

.btn--primary {
  background: var(--primary);
  color: var(--bg);
}







.btn--disabled {
  background: var(--gray);
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
}

/* Hover & Active */
.btn:focus-visible,
.btn:focus,
a.btn:focus,
a:focus-visible,
a:focus {
  outline: 2px solid var(--tertiary);
  outline-offset: 2px;
}

.btn:not(:focus-visible):focus,
a.btn:not(:focus-visible):focus,
a:not(:focus-visible):focus {
  outline: none;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: translateY(1px);
}

/* Link‑Pattern */
a {
  color: var(--primary);
}


a.btn:hover,
a.btn:focus {
  color: var(--bg) !important;
  text-decoration: none !important;
}


a.btn.btn--secondary {
  color: var(--bg);
}


a,
a:visited {
  color: var(--primary);
  text-decoration: underline;
}

a:hover {
  color: var(--secondary);
}

.nav-menu a {
  color: var(--bg);
}

.nav-menu a {
  color: var(--bg);
}


.back-to-link {
  display: block;
  margin-top: var(--md);
  text-align: center;
  font-size: var(--small-size)
}

/*----------------------------------------
  9. Toast
----------------------------------------*/
#toast-container {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column-reverse;
  gap: var(--sm);
  pointer-events: none;
  z-index: var(--z-toast);
}

.toast {
  background: rgba(0, 0, 0, 0.8);
  color: var(--bg);
  padding: var(--sm) var(--lg);
  border-radius: var(--r-sm);
  font-size: .9rem;
  opacity: 0;
  transform: translateY(1rem);
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: auto;
}

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

/*----------------------------------------
 10. Overlay & Builder
----------------------------------------*/
#builder-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-overlay);
  overflow-y: auto;
}

#builder-box {
  position: relative;
  background: var(--bg);
  border-radius: var(--r-md);
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  padding: var(--md);
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: fadeIn .2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Option‑Pattern (Radios & Checkboxes) */
fieldset.option-group {
  border: none;
  margin: var(--md) 0;
  padding: 0;
}

.option-group legend {
  font-weight: bold;
  margin-bottom: var(--sm);
}

.options {
  display: flex;
  flex-direction: column;
  gap: var(--sm);
}

/* Labels verstecken native Inputs */
.option-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  appearance: none;
}

/* Gemeinsame Label‑Styles */
.option-label {
  display: flex;
  align-items: center;
  padding: var(--sm);
  gap: var(--sm);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.option-label:hover {
  background: rgba(242, 153, 74, 0.1);
  border-color: var(--tertiary);
}

/* Ausgewählt */
.option-label:has(input:checked) {
  background: var(--tertiary);
  border-color: var(--tertiary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Fokus auf Label */
.option-label:focus-within {
  outline: 2px solid var(--tertiary);
  outline-offset: 2px;
}

.option-name {
  flex: 1;
  font-size: 1rem;
  color: var(--text);
}

.option-price {
  color: var(--muted);
  white-space: nowrap;
}

.option-label.disabled {
  background: var(--gray);
  cursor: not-allowed;
  pointer-events: none;
}

.option-label.disabled .option-name {
  color: var(--muted);
}

/*----------------------------------------
 11. Close‑Button (allgemein)
----------------------------------------*/
#close-builder,
.btn--close {
  position: absolute;
  top: var(--sm);
  right: var(--sm);

}

/*----------------------------------------
 12. Footer & Legal‑Nav
----------------------------------------*/
.footer-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: var(--small-size)
}

.legal-stuff-nav {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--sm) var(--md);
}

.legal-stuff-nav ul {
  display: flex;
  list-style: none;
  gap: var(--md);
  margin: 0;
  padding: 0;
}


.legal-stuff-nav a {
  color: var(--muted);
  text-decoration: none;
}

.legal-stuff-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width:480px) {
  .legal-stuff-nav ul {
    flex-direction: column;
    gap: var(--sm);
  }
}

/*----------------------------------------
 13. Page Styles
----------------------------------------*/
/* 2‑Spalten‑Grid auf Desktop */
.cart-page,
.checkout-page,
.confirmation-page,
.agb-page,
.page {
  padding: var(--md) 0;
}

.page-grid {
  display: flex;
  flex-direction: column;
  gap: var(--md);
}


@media (min-width:768px) {
  .page-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--md);
  }
}

/* Weiße Container */
.pizza-item,
.cart-sidebar>*,
.cart-item,
.page-title,
.grid-section {
  background: var(--bg);
  padding: var(--md);
  border-radius: var(--r-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.cart-sidebar,
.cart-list {
  display: flex;
  flex-direction: column;
  gap: var(--md);
}

.cart-sidebar>* {
  background: var(--bg);
  padding: var(--md);
  border-radius: var(--r-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.page-title {
  background: var(--bg);
  padding: var(--sm);
  border-radius: var(--r-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  margin-top: var(--md);
  font-size: 1.45rem;
}

/* Cart Summary */
.cart-summary {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--sm) var(--md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sm);
}

.cart-summary .cart-info {
  display: flex;
  align-items: center;
  font-weight: bold;
}

.cart-info svg {
  margin-right: var(--sm);
}

.cart-total-info {
  font-size: 1.2rem;
  font-weight: bold;
  border: 5px solid var(--tertiary);
  text-align: center;
  padding: var(--sm) var(--lg);
  margin-bottom: var(--md);
}

/* Cart‑Item (2‑Spalten‑Grid) */
.cart-item {
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: auto auto auto;
  gap: var(--xs) var(--md);
  background: var(--bg);
  padding: var(--md);
  border-radius: var(--r-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cart-item.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--md);
  padding: var(--lg);
}

.cart-item.empty p {
  text-align: center;
}

.cart-item.empty .btn {
  min-width: 200px;
}

/* Inhalt */
.cart-item h2 {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: var(--xs);
  font-size: 1.25rem;
}

.cart-item-config {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.9rem;
  color: var(--muted);
}

.cart-item-toppings {
  grid-column: 1;
  grid-row: 3;
  font-size: 0.9rem;
  color: var(--text);
}

/* Remove‑Button */
.remove-item-btn {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
}

.remove-item-btn:hover {
  background: var(--darkred);
}

.remove-item-btn:focus,
.remove-item-btn:focus-visible {
  outline: 2px solid var(--tertiary);
  outline-offset: 2px;
}

/* Einzelpreis */
.cart-item-price {
  grid-column: 2;
  grid-row: 2 / span 2;
  justify-self: end;
  align-self: end;
  font-weight: bold;
  font-size: 1rem;
}

.checkout,
.confirmation {
  display: flex;
  flex-direction: column;
  gap: var(--md);
}

.grid-section {
  background: var(--bg);
  padding: var(--md);
  border-radius: var(--r-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}



/*----------------------------------------
 14. Form‑Pattern inkl. Custom Checkbox & Radio
----------------------------------------*/
/* Basis: Desktop und größere Tablets */
.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

/* Bis 768px (Tablets im Hoch- oder Querformat) */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;

  }

  .form-row .form-group {
    flex: none;

    width: 100%;

  }

  .address-row .house-group {
    max-width: 100% !important;
  }

}

.address-row .street-group {
  flex: 3;
}

.address-row .house-group {
  flex: 1;
  max-width: 7rem;
}

/* Gruppierung */
.form-group {
  margin: var(--sm) 0;
  display: flex;
  flex-direction: column;
  gap: var(--xs);
}

/* Label für jedes Feld */
.form-label {
  font-weight: 600;
  font-size: 0.875rem;
}

/* Basis‑Style für Inputs, Select, Textarea */
.form-control {
  font: inherit;
  padding: var(--sm);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--tertiary);
  box-shadow: 0 0 0 3px rgba(242, 153, 74, 0.3);
}

/* Hilfetext & Fehlermeldungen */

.form-help {
  color: var(--muted);
  font-size: var(--small-size);
}

/* 1. hide all errors initially */
.form-error {
  display: none;
  color: var(--primary);
  font-size: var(--small-size);
}

form.was-validated .form-control:invalid+.form-error {
  display: block;
}


/* 2b. nach dem ersten Submit alle invaliden Felder anzeigen */
form.was-validated .form-control:invalid+.form-error {
  display: block;
}


/* Container für Checkbox‑/Radio‑Gruppe */
.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--sm);
}

/* Gemeinsame Basis für Label */
.checkbox-label,
.radio-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--xs);
  padding-left: 1.6rem;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  color: var(--text);
}

.checkbox-label input,
.radio-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ----------------------------------------
   Custom Checkbox
----------------------------------------*/
/* Außenbox */
.checkbox-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  transition: background .2s, border-color .2s;
}

/* Haken */
.checkbox-label::after {
  content: '';
  position: absolute;
  left: 0;
  top: 45%;
  /* Verschiebung in die Mitte der Außenbox: (1.2rem − 0.7rem)/2 = 0.25rem */
  margin-left: 0.25rem;
  transform: translateY(-50%) scale(0) rotate(-45deg);
  width: 0.7rem;
  height: 0.4rem;
  border-left: 3px solid var(--bg);
  border-bottom: 3px solid var(--bg);
  transform-origin: center center;
  transition: transform .2s ease;
}

/* Checked‑State */
.checkbox-label:has(input:checked)::before {
  background: var(--tertiary);
  border-color: var(--tertiary);
}

.checkbox-label:has(input:checked)::after {
  transform: translateY(-50%) scale(1) rotate(-45deg);
}

/* Hover‑State */
.checkbox-label:hover::before {
  border-color: var(--tertiary);
}

/* Fokus‑State */
.checkbox-label:focus-within::before {
  outline: 2px solid var(--tertiary);
  outline-offset: 2px;
}

.agb-label {
  display: block;
  font-size: var(--small-size);
  padding-left: 2rem;
}

/* ----------------------------------------
   Custom Radio
----------------------------------------*/
/* Außenkreis */
.radio-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  transition: border-color .2s, background .2s;
}

/* Punkt */
.radio-label::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  /* Verschiebung in die Mitte des Außenkreises: (1.2rem − 0.6rem)/2 = 0.3rem */
  margin-left: 0.3rem;
  transform: translateY(-50%) scale(0);
  width: 0.6rem;
  height: 0.6rem;
  background: var(--tertiary);
  border-radius: 50%;
  transition: transform .2s ease;
}

/* Checked‑State */
.radio-label:has(input:checked)::before {
  border-color: var(--tertiary);
}

.radio-label:has(input:checked)::after {
  transform: translateY(-50%) scale(1);
}

/* Hover‑State */
.radio-label:hover::before {
  border-color: var(--tertiary);
}

/* Fokus‑State */
.radio-label:focus-within::before {
  outline: 2px solid var(--tertiary);
  outline-offset: 2px;
}

form .checkout fieldset {
  border: none;
  padding: 0;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.order-item {
  display: flex;
  flex-direction: column;
  /* Mobil: alles untereinander */
  gap: 0.3rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #ddd;
}

/* Name immer fett */
.pizza-name {
  font-weight: bold;
  font-size: 1.05rem;
}

/* Preis Mobil links */
.pizza-price {
  font-weight: bold;
  margin-top: 0.3rem;
  text-align: left;
}

/* Desktop-Layout */
@media (min-width: 769px) {
  .order-item {
    flex-direction: row;
    /* Haupt-Layout in 2 Spalten */
    justify-content: space-between;
    align-items: flex-start;
  }

  /* Linke Spalte: Pizza-Details untereinander */
  .order-item .pizza-details {
    display: flex;
    flex-direction: column;
    flex: 2;
    /* 2/3 Breite */
  }

  /* Rechte Spalte: Preis */
  .order-item .pizza-price {
    flex: 1;
    /* 1/3 Breite */
    text-align: right;
    /* Preis rechtsbündig */
    align-self: center;
    /* Vertikal mittig zur linken Spalte */
    margin-top: 0;
  }
}

#order-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: none;
  /* standardmäßig ausblenden */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#order-overlay .overlay-content {
  text-align: center;
  font-family: sans-serif;
}

#order-overlay .spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ddd;
  border-top-color: #e63946;
  border-radius: 50%;
  margin: 20px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}



.checkout-error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 3px solid var(--darkred);
  padding: var(--md);
  margin: var(--md) 0;
  border-radius: var(--r-md);
  font-size: var(--base-size);
  line-height: var(--line-h);
  display: flex;
  align-items: flex-start;
  gap: var(--sm);
}

.checkout-error::before {
  content: "⚠️";
  /* Warnsymbol als dezentes Icon */
  font-size: 1.5rem;
  flex-shrink: 0;
}

.checkout-error strong {
  font-weight: bold;
  color: var(--darkred);
  /* noch dunklerer Akzent */
}

.checkout-error .error-information {
  font-weight: 500;
}

@media (max-width: 600px) {
  .checkout-error {
    font-size: var(--small-size);
    flex-direction: column;
    align-items: flex-start;
  }
}







#contact-info address {
  font-style: normal;
  /* Normaler Stil, da Browser address sonst kursiv setzen */
  margin: var(--sm) 0;
  line-height: 1.6;
}

.page #contact-info p,
.page .cart-info-box p {
  margin-bottom: 0;
}



/* Optional: Mindesthöhe für Blockelemente (z.B. divs), damit sie nicht kollabieren */
.placeholder:empty {
  min-height: 1em;
  /* für Texte */

}



.placeholder,
.placeholder.block {
  color: transparent;
  background: linear-gradient(90deg, var(--gray) 25%, var(--border) 50%, var(--gray) 75%);
  background-size: 200% 100%;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  animation: placeholder-loading 1.5s infinite;
  transition: color 0.4s ease, background 0.4s ease;
}

/* Skeleton Animation */
@keyframes placeholder-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: grid;
  place-items: center;
  z-index: 9999;
}

.overlay.hidden {
  display: none;
}

.modal {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  background: var(--bg);
  border-radius: var(--r-md);
  width: 90%;
  padding: var(--md);

}

.modal #overlay-message {
  margin-bottom: var(--md)
}


/*----------------------------------------
  Fokusrahmen für alle interaktiven Elemente
----------------------------------------*/
:where(button, a, input, textarea, select, summary, div [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--tertiary);
  outline-offset: 2px;
}


/* AGB & Datenschutz */
.agb p,
.datenschutz p,
.imprint p,
.page p {
  margin-bottom: var(--md);

}

.agb h2,
.datenschutz h2,
.imprint h2
.page h2 {
  margin-bottom: var(--sm);

}

.obfuscated-address {
    visibility: hidden; 
    position: relative;
  }
  
  .obfuscated-address::before {
    content: 'Andreas Berning';
    display: block;
    visibility: visible;
    position: relative;
  }

  .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 2fr));
  gap: var(--md);
  margin-top: 2rem;
}

.team-member img {
  max-width: 100%;
  border-radius: var(--r-sm);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.team-member figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
}

.hours-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0.5rem 1rem;
  font-size: 1rem;
}

.hours-grid .day {
  font-weight: bold;
}

.hours-grid .time {
  color: #333;
}

/* Animation definieren */
@keyframes wiggle {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-10deg); }
  30%  { transform: rotate(8deg); }
  45%  { transform: rotate(-6deg); }
  60%  { transform: rotate(4deg); }
  75%  { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}

/* Animation bei Hover oder Tastaturfokus */
.logo:hover .logo-icon,
.logo:focus-visible .logo-icon {
  animation: wiggle 0.6s ease;
}

