/* =========================================================================
   THÜRINGER SCHWITZHÜTTE – DESIGN SYSTEM
   =========================================================================
   Inhalt:
     1. Schriften (lokal, WOFF2)
     2. Design-Tokens (Farben, Glass, Radii, Typografie, Abstände)
     3. Basis & Typografie
     4. Glass-Primitives (.glass-card, .glass-btn, Formularfelder)
     5. Header (.ts-header, sticky Glass-Overlay)
     6. Footer
     7. Utilities & Accessibility

   Die Klassennamen .glass-card, .glass-btn, .glass-header sowie die Custom
   Properties --glass-* sind bewusst identisch zur bisherigen Website, damit
   bestehende Elementor-Inhalte ohne Anpassung weiter funktionieren.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Schriften – lokal aus dem Theme, kein externer Request
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lora/Lora-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/lora/Lora-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/lora/Lora-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lora/Lora-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url("../fonts/lato/Lato-Thin.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/lato/Lato-Light.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato/Lato-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato/Lato-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/lato/Lato-Black.woff2") format("woff2");
}

/* -------------------------------------------------------------------------
   2. Design-Tokens
   ------------------------------------------------------------------------- */
:root {
  /* --- Farben ---------------------------------------------------------- */
  --ts-color-bg:            #1A2B20;              /* Waldgrün, Seitenhintergrund   */
  --ts-color-bg-soft:       #213728;              /* hellere Verlaufsstufe         */
  --ts-color-accent:        #5D9972;              /* Akzentgrün (Eyebrows, Badges) */
  --ts-color-accent-strong: #40694F;              /* Akzentgrün Hover              */
  --ts-color-text:          #FFFFFF;
  --ts-color-text-muted:    rgba(255, 255, 255, 0.61); /* entspricht #FFFFFF9C     */
  --ts-color-danger:        #E5484D;

  /* Hintergrund-Overlays für Bild-Sektionen (Hero, Preise) */
  --ts-overlay-hero:  linear-gradient(180deg, rgba(26,43,32,.95) 0%, rgba(33,55,40,.87) 50%, rgba(26,43,32,1) 100%);
  --ts-overlay-photo: linear-gradient(180deg, rgba(26,43,32,1) 0%, rgba(33,55,40,.84) 56%, rgba(26,43,32,1) 100%);

  /* --- Glass-System (Namen identisch zur Live-Site!) -------------------- */
  --glass-radius:     28px;
  --glass-btn-radius: 14px;
  --glass-bg-1:       rgba(255, 255, 255, 0.06);
  --glass-bg-2:       rgba(255, 255, 255, 0.02);
  --glass-border:     rgba(255, 255, 255, 0.18);
  --glass-inner:      rgba(255, 255, 255, 0.06);
  --glass-blur:       10px;

  /* Zusammengesetzte Glass-Werte (einmal definieren, überall nutzen) */
  --ts-glass-surface: linear-gradient(135deg, var(--glass-bg-1), var(--glass-bg-2));
  --ts-glass-surface-hover: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  --ts-glass-shadow:
    0 18px 50px rgba(0, 0, 0, 0.25),
    0 2px 0 rgba(255, 255, 255, 0.03) inset,
    0 0 0 1px var(--glass-inner) inset;
  --ts-glass-shadow-hover:
    0 22px 60px rgba(0, 0, 0, 0.5),
    0 2px 0 rgba(255, 255, 255, 0.04) inset,
    0 0 0 1px var(--glass-inner) inset;
  --ts-glass-sheen:
    linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,0) 35%),
    radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.06), rgba(255,255,255,0) 60%);

  /* --- Radii ------------------------------------------------------------ */
  --ts-radius-card:  33px;   /* große Karten / Sektionen (Elementor-Wert)   */
  --ts-radius-glass: var(--glass-radius);
  --ts-radius-pill:  33px;   /* Signatur-Look der CTAs (Pill)               */
  --ts-radius-btn:   var(--ts-radius-pill); /* ALLE Buttons sind Pills –
                                wie die Live-CTAs ("Jetzt Buchen" etc.);
                                --glass-btn-radius (14px) bleibt nur für
                                Legacy-CSS erhalten                          */
  --ts-radius-input: 14px;
  --ts-radius-check: 6px;

  /* --- Typografie ------------------------------------------------------- */
  --ts-font-heading: "Lora", Georgia, serif;
  --ts-font-body:    "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ts-text-h1:        38px;  --ts-leading-h1:        48px;
  --ts-text-h2:        30px;  --ts-leading-h2:        40px;
  --ts-text-h3:        24px;  --ts-leading-h3:        32px;
  --ts-text-h4:        22px;  --ts-leading-h4:        28px;
  --ts-text-body:      18px;  --ts-leading-body:      24px;
  --ts-text-small:     15px;
  --ts-text-price:     40px;
  --ts-text-price-old: 26px;

  /* --- Layout ----------------------------------------------------------- */
  --ts-container:      1140px;
  --ts-container-wide: 1350px;
  --ts-gutter:         2em;

  /* --- Abstände ---------------------------------------------------------- */
  --ts-space-xs: 0.5em;
  --ts-space-sm: 1em;
  --ts-space-md: 1.5em;
  --ts-space-lg: 3em;
  --ts-space-xl: 6em;

  /* --- Motion ------------------------------------------------------------ */
  --ts-transition: 0.25s ease;
  --ts-transition-slow: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ts-color-bg);
  color: var(--ts-color-text);
  font-family: var(--ts-font-body);
  font-size: var(--ts-text-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ts-font-heading);
  font-weight: 700;
  color: var(--ts-color-text);
  margin: 0 0 0.5em;
}

h1 { font-size: var(--ts-text-h1); line-height: var(--ts-leading-h1); }
h2 { font-size: var(--ts-text-h2); line-height: var(--ts-leading-h2); }
h3 { font-size: var(--ts-text-h3); line-height: var(--ts-leading-h3); }
h4 { font-size: var(--ts-text-h4); line-height: var(--ts-leading-h4); }

@media (max-width: 767px) {
  h1 { font-size: 24px; line-height: 32px; }
  h2 { font-size: 24px; line-height: 32px; }
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--ts-color-text);
  text-decoration: none;
  transition: color var(--ts-transition);
}

a:hover {
  color: rgba(255, 255, 255, 0.92);
}

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

/* Eyebrow: kleine grüne Überzeile über Headlines */
.ts-eyebrow {
  display: block;
  font-family: var(--ts-font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: var(--ts-color-accent);
}

/* Inline-SVG-Icons */
.ts-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}

/* -------------------------------------------------------------------------
   4. Glass-Primitives
   ------------------------------------------------------------------------- */

/* --- 4.1 Glass-Karte ----------------------------------------------------- */
.glass-card,
.ts-glass {
  position: relative;
  border-radius: var(--ts-radius-glass);
  background: var(--ts-glass-surface);
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--ts-glass-shadow);
  transition: transform var(--ts-transition-slow), box-shadow var(--ts-transition-slow), background var(--ts-transition-slow);
}

/* Glanz-Schicht */
.glass-card::before,
.ts-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--ts-glass-sheen);
  mix-blend-mode: screen;
}

/* Feine Licht-/Schattenkante */
.glass-card::after,
.ts-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 -1px 0 rgba(0, 0, 0, 0.35) inset;
}

@media (hover: hover) {
  .glass-card:hover,
  .glass-card:focus-within {
    transform: translateY(-2px);
    background: var(--ts-glass-surface-hover);
    box-shadow: var(--ts-glass-shadow-hover);
  }
}

/* Variante ohne Hover-Bewegung (z. B. Formular-Container) */
.glass-card-nohover:hover,
.glass-card-nohover:focus-within {
  transform: none;
}

/* --- 4.2 Glass-Button ----------------------------------------------------- */
/* Funktioniert direkt auf <a>/<button> UND auf Elementor-Buttons, deren
   Widget die Klasse .glass-btn trägt. */
a.ts-btn,
.ts-minicart a.button,
button.ts-btn,
.elementor-widget-button.glass-btn .elementor-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  isolation: isolate;
  overflow: hidden;

  border-radius: var(--ts-radius-btn);
  padding: 13px 30px; /* wie die Live-CTAs */

  font-family: var(--ts-font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ts-color-text);
  cursor: pointer;

  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform var(--ts-transition), box-shadow var(--ts-transition), background var(--ts-transition);
}

a.ts-btn::before,
.ts-minicart a.button::before,
button.ts-btn::before,
.elementor-widget-button.glass-btn .elementor-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,0) 38%),
    radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.10), rgba(255,255,255,0) 60%);
  mix-blend-mode: screen;
}

@media (hover: hover) {
  a.ts-btn:hover,
  .ts-minicart a.button:hover,
  button.ts-btn:hover,
  .elementor-widget-button.glass-btn .elementor-button:hover {
    transform: translateY(-1px);
    color: var(--ts-color-text);
    background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
    box-shadow:
      0 14px 36px rgba(0, 0, 0, 0.25),
      0 1px 0 rgba(255, 255, 255, 0.07) inset,
      0 0 0 1px rgba(255, 255, 255, 0.10) inset;
  }
}

a.ts-btn:focus-visible,
.ts-minicart a.button:focus-visible,
button.ts-btn:focus-visible,
.elementor-widget-button.glass-btn .elementor-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* --- 4.3 Glass-Formularfelder --------------------------------------------
   Bewusst gescoped (.ts-glass-form) statt global auf input/select, damit
   Admin-Bar, Plugins etc. nicht mitgestylt werden. Der WooCommerce-Scope
   wird in woocommerce.css ergänzt. */
.ts-glass-form input[type="text"],
.ts-glass-form input[type="email"],
.ts-glass-form input[type="tel"],
.ts-glass-form input[type="password"],
.ts-glass-form input[type="search"],
.ts-glass-form input[type="number"],
.ts-glass-form textarea,
.ts-glass-form select {
  display: block;
  width: 100%;
  padding: 0.75em 1em;

  border-radius: var(--ts-radius-input);
  border: 1px solid var(--glass-border);
  background: var(--ts-glass-surface);
  background-clip: padding-box;
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 0 0 1px var(--glass-inner) inset;

  color: var(--ts-color-text);
  font-family: var(--ts-font-body);
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  transition: border-color var(--ts-transition), background var(--ts-transition), box-shadow var(--ts-transition);
}

.ts-glass-form input::placeholder,
.ts-glass-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.ts-glass-form input:focus,
.ts-glass-form textarea:focus,
.ts-glass-form select:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

/* Native Select-Optionen sind nicht transparent stylbar -> dunkler Fallback */
.ts-glass-form select option {
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
}

/* Checkboxen & Radios im Glass-Look */
.ts-glass-form input[type="checkbox"],
.ts-glass-form input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid var(--glass-border);
  background: var(--ts-glass-surface);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 0 0 1px var(--glass-inner) inset;
  display: inline-grid;
  place-items: center;
  position: relative;
  margin: 0 10px 0 0;
  cursor: pointer;
}

.ts-glass-form input[type="checkbox"] {
  border-radius: var(--ts-radius-check);
}

.ts-glass-form input[type="checkbox"]::after {
  content: "";
  width: 7px;
  height: 12px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}

.ts-glass-form input[type="checkbox"]:checked::after {
  transform: rotate(45deg) scale(1);
}

.ts-glass-form input[type="radio"] {
  border-radius: 50%;
}

.ts-glass-form input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}

.ts-glass-form input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Deaktivierte Felder */
.ts-glass-form [disabled],
.wbt-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- 4.4 Fallback ohne backdrop-filter ------------------------------------ */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-card,
  .ts-glass,
  a.ts-btn,
  button.ts-btn,
  .elementor-widget-button.glass-btn .elementor-button {
    background: rgba(33, 55, 40, 0.92);
  }
}

/* -------------------------------------------------------------------------
   5. Header – sticky mit Glass-Overlay beim Scrollen
   ------------------------------------------------------------------------- */
.ts-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.ts-header::before,
.glass-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  transition: background var(--ts-transition-slow), backdrop-filter var(--ts-transition-slow), box-shadow var(--ts-transition-slow), border-color var(--ts-transition-slow);
}

.ts-header.scrolled::before,
.glass-header.scrolled::before {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Elementor-Header (Bestand): sticky-Verhalten sicherstellen */
.glass-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.ts-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  max-width: var(--ts-container-wide);
  margin: 0 auto;
  padding: 0.75em var(--ts-gutter);
}

.ts-header__contact {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--ts-font-heading);
  font-size: 19px;
  font-weight: 800;
}

.ts-header__contact .ts-icon {
  font-size: 24px;
}

.ts-header__brand {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.ts-header__brand img {
  width: 92px;
  height: auto;
  display: block;
}

.ts-header__actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1em;
}

/* Warenkorb-Button im Header */
.ts-cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--ts-color-text);
  font-family: var(--ts-font-heading);
  font-size: 16px;
}

.ts-cart-toggle .ts-icon {
  font-size: 29px;
}

.ts-cart-toggle__count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ts-color-accent);
  color: #fff;
  font-family: var(--ts-font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

@media (max-width: 767px) {
  .ts-header__contact {
    display: none;
  }
  .ts-header__brand img {
    width: 72px;
  }
  .ts-header__actions .ts-btn {
    font-size: 14px;
  }
}


/* -------------------------------------------------------------------------
   5b. Mini-Warenkorb (Side-Cart, öffnet per Klick auf das Warenkorb-Icon)
   ------------------------------------------------------------------------- */
body.ts-no-scroll {
  overflow: hidden;
}

.ts-minicart {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.ts-minicart__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 13, 0.5);
  opacity: 0;
  transition: opacity var(--ts-transition-slow);
}

.ts-minicart__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  display: flex;
  flex-direction: column;
  padding: 1.25em 1.5em 1.5em;
  transform: translateX(105%);
  transition: transform var(--ts-transition-slow);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(26, 43, 32, 0.85);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-left: 1px solid var(--glass-border);
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ts-minicart__panel {
    background: rgba(26, 43, 32, 0.97);
  }
}

.ts-minicart.is-open {
  pointer-events: auto;
}

.ts-minicart.is-open .ts-minicart__backdrop {
  opacity: 1;
}

.ts-minicart.is-open .ts-minicart__panel {
  transform: translateX(0);
}

.ts-minicart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1em;
}

.ts-minicart__title {
  font-family: var(--ts-font-heading);
  font-size: 22px;
  font-weight: 700;
}

.ts-minicart__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--ts-glass-surface);
  color: var(--ts-color-text);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--ts-transition);
}

.ts-minicart__close:hover {
  background: var(--ts-glass-surface-hover);
}

/* Inhalt des WooCommerce-Mini-Warenkorbs */
.ts-minicart .widget_shopping_cart_content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ts-minicart ul.woocommerce-mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.ts-minicart li.woocommerce-mini-cart-item {
  position: relative;
  padding: 0.9em 44px 0.9em 0; /* rechts Platz für den Entfernen-Button */
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.ts-minicart li.woocommerce-mini-cart-item::after {
  content: "";
  display: block;
  clear: both;
}

.ts-minicart li.woocommerce-mini-cart-item > a:not(.remove) {
  color: var(--ts-color-text);
  font-weight: 700;
  text-decoration: none;
}

/* Kein Produktbild im Mini-Warenkorb */
.ts-minicart li.woocommerce-mini-cart-item img {
  display: none !important;
}

.ts-minicart .quantity {
  display: block;
  color: var(--ts-color-text-muted);
  font-size: 15px;
  margin-top: 4px;
}

.ts-minicart li.woocommerce-mini-cart-item p,
.ts-minicart li.woocommerce-mini-cart-item small,
.ts-minicart li.woocommerce-mini-cart-item dl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin: 2px 0 0;
}

/* Entfernen-Button (X) im Glass-Look, rechts vertikal zentriert am Artikel */
.ts-minicart a.remove {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  float: none;
  width: 26px;
  height: 26px;
  margin: 0;
  display: inline-grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition: background var(--ts-transition);
}

.ts-minicart a.remove:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ts-minicart .woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
  color: var(--ts-color-text);
  padding: 1em 0;
  margin: 0 0 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--ts-font-heading);
}

.ts-minicart .woocommerce-mini-cart__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.ts-minicart .woocommerce-mini-cart__empty-message {
  color: var(--ts-color-text);
  text-align: center;
  padding: 2.5em 0;
}

/* -------------------------------------------------------------------------
   6. Footer
   ------------------------------------------------------------------------- */
.ts-footer {
  padding: 2em var(--ts-gutter);
  text-align: center;
}

.ts-footer,
.ts-footer a {
  font-family: var(--ts-font-heading);
  font-weight: 400;
  color: var(--ts-color-text-muted);
}

.ts-footer a:hover {
  color: var(--ts-color-text);
}

.ts-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
}

.ts-footer__menu li:not(:last-child)::after {
  content: "|";
  margin-left: 0.5em;
  color: var(--ts-color-text-muted);
}

/* -------------------------------------------------------------------------
   7. Utilities & Accessibility
   ------------------------------------------------------------------------- */
.ts-container {
  max-width: var(--ts-container);
  margin-inline: auto;
  padding-inline: var(--ts-gutter);
}

.ts-container--wide {
  max-width: var(--ts-container-wide);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75em 1.25em;
  background: var(--ts-color-bg-soft);
  color: #fff;
}

.skip-link:focus {
  left: 1em;
  top: 1em;
}

/* Breite Inhalte (Tabellen, Kalender) scrollen im eigenen Container */
.ts-scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Legacy: ausgeblendeter Hinweis-Banner der alten Seite (war im wp_head) */
.aktuellerHinweis {
  display: none !important;
}

/* Bewegung reduzieren, wenn vom System gewünscht */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
