/* ============================================
   User Template - Simple TYPO3 Template
   ============================================ */

/* ---- 1. RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* guard against .full-bleed 100vw scrollbar overflow */
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }
address { font-style: normal; }
p { font-size: var(--fs-med); }

/* ---- 2. CUSTOM PROPERTIES ---- */
:root {
  /* Primärfarbe + Abstufungen */
  --color-primary:  #0093e0;
  --color-primary-dark: #0a6aa1;
  --color-primary-darker: #075e8a;
  --color-primary-light: #e6f4fc;
  --color-primary-tint: rgba(0, 147, 224, 0.10);
  --color-primary-tint-soft: rgba(0, 147, 224, 0.05);

  /* using brand color from constants */
  --color-primary: var(--brand-color);
  /* Calculated darker shades */
  --color-primary-dark: color-mix(in srgb, var(--brand-color), black 15%);
  --color-primary-darker: color-mix(in srgb, var(--brand-color), black 25%);

  /* Optional: Calculated lighter shades */
  --color-primary-light: color-mix(in srgb, var(--brand-color), white 90%);
  --color-primary-tint: color-mix(in srgb, var(--brand-color), transparent 90%);

  /* Kühle Neutraltöne */
  --color-text: #243039;
  --color-text-secondary: #51616d;
  --color-text-muted: #8a97a2;
  --color-border: #e1e7ec;
  --color-bg-gray: #eef2f6;
  --color-bg: #f5f8fb;
  --color-white: #ffffff;
  --color-footer: #13242e;

  /* Typografie */
  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', 'Segoe UI', Roboto, Arial, sans-serif;

  --fs-hero-title: clamp(1.9rem, 4vw, 3rem);
  --fs-section-title: clamp(1.5rem, 3vw, 2rem);
  --fs-card-title: clamp(1.05rem, 2vw, 1.25rem);
  --fs-body: 1rem;
  --fs-med: 1.125rem;
  --fs-small: 0.875rem;
  --fs-meta: 0.8125rem;
  --fs-nav: 1.3125rem;

  --line-height-tight: 1.25;
  --line-height-normal: 1.6;

  --container-max: 1200px;
  --container-padding: 1rem;
  --section-padding: 3.5rem;
  --gap: 1.5rem;

  --radius: 8px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 4px rgba(20, 40, 55, 0.07);
  --shadow-hover: 0 8px 24px rgba(20, 40, 55, 0.12);
  --transition: 0.2s ease;
}

/* ---- 3. UTILITIES ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* Break an element out of the constraining page .container to full viewport width.
   Use on full-width sections that provide their OWN inner .container. */
.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.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;
}

@media (min-width: 768px) {
  :root { --container-padding: 1.5rem; --section-padding: 4.5rem; }
}

/* Mobile: Search toggle visible, logo smaller, header nav hidden by default */
@media (max-width: 999px) {
  .site-header.search-open .header-search {
    display: block;
  }
  .header-action--search-m {
    display: inline-flex;
    flex-shrink: 0;
  }
  .logo img {
    height: 64px;
  }
  .site-header.is-scrolled .logo img {
    height: 48px;
  }
  .header-topbar__paper {
    display: none !important;
  }
  .header-topbar .container {
    justify-content: center !important;
  }
  .header-topbar__usp-desc {
    display: none !important;
  }
  .header-action__label {
    display: none;
  }
}

/* ---- 4. BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-body);
  border-radius: 3px; padding: 0.75rem 1.5rem; transition: all var(--transition);
  cursor: pointer; text-decoration: none; border: 1px solid transparent; line-height: 1;
}
.btn--primary { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.btn--primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn--accent { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.btn--accent:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn--outline { background: transparent; border-color: var(--color-white); color: var(--color-white); }
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn--outline-dark { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--outline-dark:hover { background: var(--color-primary); color: var(--color-white); }
.btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--sm { padding: 0.5rem 1rem; font-size: var(--fs-small); }
.btn--lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn--full { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---- 5. SECTION BASE ---- */
.section { padding: var(--section-padding) 0; }
.section--tint { background: var(--color-primary-tint-soft); }
.section--green { background: var(--color-primary-tint); }
.section--dark { background: var(--color-primary-dark); color: #fff; }
.section--dark .section__title { color: #fff; }
.section--dark .section__title::after { background: #fff; }
.section--dark .section__subtitle { color: rgba(255, 255, 255, 0.9); }
.section--dark .abo-card { background: #fff; border-color: rgba(255, 255, 255, 0.5); }
.section--dark .abo-card:hover { border-color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.section--dark .abo-card--featured { border-color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); }
.section--dark .abo-card__title { color: var(--color-primary-dark); }
.section--dark .abo-card__amount { color: #333; }
.section--dark .abo-card__period { color: var(--color-primary-dark); opacity: 0.75; }
.section--dark .abo-card__description { color: var(--color-primary-dark); }
.section__header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section__title {
  font-family: var(--font-serif); font-size: var(--fs-section-title); font-weight: 700;
  color: var(--color-text); width: fit-content; line-height: var(--line-height-tight);
}
.section__title::after {
  content: ''; display: block; width: 100%; height: 4px; background: var(--color-primary);
  border-radius: 2px; margin-top: 0.4rem;
}
.section__subtitle { color: var(--color-text-secondary); margin-top: 0.75rem; max-width: 60ch; }
.section__more-link { font-size: var(--fs-small); font-weight: 600; color: var(--color-primary); white-space: nowrap; }
.section__more-link:hover { color: var(--color-primary-dark); }

/* ---- 6. HEADER ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--color-white); box-shadow: 0 1px 0 var(--color-border); }

.header-topbar {
  background: var(--color-primary); color: var(--color-white); font-size: var(--fs-meta);
  padding: 0.45rem 0; letter-spacing: 0.02em;
  max-height: 60px; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease;
}
.site-header.is-scrolled .header-topbar { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.header-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-topbar a { color: var(--color-white); opacity: 0.9; }
.header-topbar a:hover { opacity: 1; }
.header-topbar__paper { display: inline-flex; align-items: center; gap: 0.4rem; }
.header-topbar__paper svg { width: 14px; height: 14px; flex-shrink: 0; }
.header-topbar__usp { display: flex; gap: 1.25rem; }
.header-topbar__usp span { display: inline-flex; align-items: center; gap: 0.35rem; }
.header-topbar__usp svg { width: 14px; height: 14px; }

.header-main { border-bottom: 1px solid var(--color-border); position: relative; }
.header-main .container {
  display: grid; grid-template-columns: 1fr minmax(0, 680px) 1fr; align-items: center; gap: 1.5rem;
  padding-block: clamp(0.7rem, 2vw, 1.4rem);
}
.logo { justify-self: start; }
.logo img { height: 90px; width: auto; transition: height 0.3s ease; }
.site-header.is-scrolled .logo img { height: 56px; }

.header-search { position: relative; justify-self: center; width: 100%; max-width: 640px; }
.header-search input {
  width: 100%; border: 1.5px solid var(--color-border); border-radius: 999px;
  padding: 0.7rem 1.1rem 0.7rem 2.6rem; background: var(--color-bg-gray);
  transition: all var(--transition); outline: none;
}
.header-search input:focus { border-color: var(--color-primary); background: var(--color-white); }
.header-search svg { position: absolute; left: 1.0rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--color-text-muted); }

@media (min-width: 1000px) {
  .header-search { max-width: 680px; }
}

/* Top-Aktionen rechts: Suche (mobil) · Login · Warenkorb */
.header-actions { display: flex; align-items: center; gap: 0.5rem; justify-self: end; }
.header-action {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.15rem;
  padding: 0.4rem 0.65rem; border-radius: 8px; color: var(--color-text);
  position: relative; transition: all var(--transition);
}
.header-action:hover { color: var(--color-primary); background: var(--color-primary-tint); }
.header-action svg { width: 24px; height: 24px; }
.header-action__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em; }
.header-action--search-m { display: none; }
.icon-btn__badge {
  position: absolute; top: -2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--color-primary); color: #fff; font-size: 0.7rem; font-weight: 700;
  border-radius: 999px; display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* Hauptnavigation */
.header-nav { background: var(--color-white); border-bottom: 1px solid var(--color-border); }
.main-nav__list { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.main-nav__link {
  display: block; font-size: var(--fs-nav); font-weight: 400; color: var(--color-text);
  padding: 0.7rem 0.85rem; position: relative; transition: color var(--transition);
}
.main-nav__link:hover, .main-nav__link.active { color: var(--color-primary); }
.main-nav__link.active::after {
  content: ''; position: absolute; bottom: 0; left: 0.85rem; right: 0.85rem; height: 4px;
  background: var(--color-primary); border-radius: 2px 2px 0 0;
}
.main-nav__item { position: relative; }
.main-nav__submenu {
  position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--color-white);
  border-radius: 6px; box-shadow: 0 8px 24px rgba(20,40,55,0.14); padding: 0.5rem 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--transition); z-index: 20;
}
.main-nav__item:hover .main-nav__submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav__submenu a { display: block; padding: 0.5rem 1.25rem; font-size: var(--fs-med); font-weight: 500; }
.main-nav__submenu a:hover { background: var(--color-primary-light); color: var(--color-primary); }

.header-left { display: none; }
.mobile-menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; justify-self: start; }
.mobile-menu-toggle svg { width: 26px; height: 26px; }

/* Mobile navigation toggle (< 1000px) */
@media (max-width: 999px) {
  .header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    order: 1;
    flex: 1 1 0;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-shrink: 0;
    cursor: pointer;
  }

  .header-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow-hover);
  }

  .header-nav.open {
    display: block;
  }

  .header-nav.open .main-nav__list {
    flex-direction: column;
    padding: 0.5rem 1rem;
  }

  .header-nav.open .main-nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
  }

  .main-nav__link {
    padding: 0.75rem 0;
  }
}

/* ---- 7. BREADCRUMB ---- */
.breadcrumb { padding: 1rem 0; font-size: var(--fs-small); color: var(--color-text-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 0.4rem; color: var(--color-border); }
.breadcrumb [aria-current] { color: var(--color-text); font-weight: 600; }

/* ---- 8. HERO (Shop-Landing) ---- */
.shop-hero { position: relative; overflow: hidden; background: var(--color-primary-dark); color: var(--color-white); }
.shop-hero__media { position: absolute; inset: 0; }
.shop-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.shop-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(7,55,82,0.65) 0%, rgba(10,106,161,0.55) 45%, rgba(0,147,224,0.15) 100%);
  filter: saturate(0);
}
.shop-hero__inner { position: relative; padding-block: clamp(3rem, 8vw, 6rem); }
.shop-hero__content { max-width: 620px; }
.shop-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-small);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 1rem;
}
.shop-hero__title { font-family: var(--font-serif); font-size: var(--fs-hero-title); font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
.shop-hero__text { font-size: 1.2rem; color: rgba(255,255,255,0.92); margin-bottom: 1.75rem; max-width: 52ch; }
.shop-hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.shop-hero .btn--outline { background: rgba(0, 0, 0, 0.2); }
.shop-hero .btn--outline:hover { background: rgba(0, 0, 0, 0.35); }

/* ---- 9. CATEGORY TILES ---- */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (min-width: 700px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .category-grid { grid-template-columns: repeat(6, 1fr); } }
.category-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.85rem;
  padding: 1.6rem 1rem; background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); transition: all var(--transition);
}
.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--color-primary); }
.category-tile__icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--color-primary-tint); color: var(--color-primary-dark);
}
.category-tile__icon svg { width: 28px; height: 28px; }
.category-tile__label { font-family: var(--font-serif); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.category-tile__count { font-size: var(--fs-meta); color: var(--color-text-muted); }

/* ---- 10. PRODUCT CARD & GRID ---- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  display: flex; flex-direction: column; background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden; position: relative; transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-card__media { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--color-bg-gray); overflow: hidden; }

.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__badge {
  position: absolute; top: 0.7rem; left: 0.7rem; font-size: var(--fs-meta); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; padding: 0.25rem 0.55rem; border-radius: 3px;
  background: var(--color-white); color: var(--color-primary-dark); box-shadow: var(--shadow-card);
}
.product-card__badge--green { background: var(--color-primary-dark); color: #fff; }
.product-card__badge--accent { background: var(--color-primary); color: #fff; }

.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.2rem; }

.product-card__cat { font-size: var(--fs-meta); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-primary); margin-bottom: 0.35rem; }
.product-card__title { font-family: var(--font-serif); font-size: var(--fs-card-title); font-weight: 700; line-height: var(--line-height-tight); margin-bottom: 0.3rem; }
.product-card__title a:hover { color: var(--color-primary); }
.product-card__author { font-size: var(--fs-small); color: var(--color-text-secondary); margin-bottom: 0.75rem; }

.product-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }

.product-card__price { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--color-text); }
.product-card__price small { display: block; font-family: var(--font-sans); font-size: var(--fs-meta); font-weight: 400; color: var(--color-text-muted); }
.price--free { color: var(--color-primary-dark); }

.btn-cart {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: var(--color-primary); color: #fff; border-radius: 3px; padding: 0.55rem 0.85rem;
  font-weight: 600; font-size: var(--fs-small); transition: all var(--transition); white-space: nowrap;
}
.btn-cart:hover { background: var(--color-primary-dark); }
.btn-cart svg { width: 17px; height: 17px; }
.btn-cart.is-added { background: var(--color-primary-darker); }

/* ---- 11. PROMO BAND ---- */
.promo-band { background: var(--color-primary-dark); color: #fff; }
.promo-band .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2rem; flex-wrap: wrap; }
.promo-band__text h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 0.25rem; }
.promo-band__text p { font-size: var(--fs-med); opacity: 0.95; }

/* ---- 12. ABL BAND (Verband-Störer über Footer) ---- */
.abl-band { background: #539b2c; color: #fff; }
.abl-band .container { display: grid; gap: 2rem; padding-block: 3rem; align-items: center; }
.abl-band__logo { background: #fff; border-radius: var(--radius); padding: 1.25rem 1.5rem; display: inline-flex; justify-self: start; transition: transform var(--transition), box-shadow var(--transition); }
a.abl-band__logo:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.abl-band__logo img { display: block; height: 90px; width: auto; }
.abl-band__text h3 { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.5vw, 1.75rem); margin-bottom: 0.5rem; color: #fff; line-height: 1.2; }
.abl-band__text p { font-size: var(--fs-med); opacity: 0.95; max-width: 78ch; line-height: 1.55; }
@media (min-width: 860px) {
  .abl-band .container { grid-template-columns: auto 1fr; padding-block: 3.5rem; }
}

/* ---- 13. NEWSLETTER ---- */
.newsletter { background: var(--color-primary-dark); color: #fff; }
.newsletter .container { display: grid; gap: 2rem; padding-block: 3.5rem; }
@media (min-width: 860px) { .newsletter .container { grid-template-columns: 1fr 1fr; align-items: center; } }
.newsletter h2 { font-family: var(--font-serif); font-size: 1.85rem; margin-bottom: 0.6rem; }
.newsletter p { color: rgba(255,255,255,0.9); }
.newsletter-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 220px; border: none; border-radius: 3px; padding: 0.85rem 1.1rem; outline: none;
}
.newsletter-form__privacy { font-size: var(--fs-meta); color: rgba(255,255,255,0.7); margin-top: 0.75rem; width: 100%; }
.newsletter-form__privacy a { text-decoration: underline; }

/* ---- 14. ABO CARDS ---- */
.abo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 2rem;
}

@media (max-width: 860px) {
  .abo-grid { grid-template-columns: 1fr; }
}

.abo-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
}

.abo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.abo-card--featured {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 147, 224, 0.15);
  transform: scale(1.02);
}

.abo-card--featured:hover {
  box-shadow: 0 8px 24px rgba(0, 147, 224, 0.25);
}

.abo-card__title {
  font-family: var(--font-serif);
  font-size: var(--fs-card-title);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.abo-card__price {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.abo-card__amount {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.abo-card__period {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

.abo-card__description {
  font-size: var(--fs-med);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex: 1;
}

.abo-card .btn {
  margin-top: auto;
}

/* ---- 15. FOOTER ---- */
.site-footer { background: var(--color-footer); color: var(--color-white); padding: 3.5rem 0 0; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; } }
.footer__brand img { height: 64px; width: auto; margin-bottom: 0.9rem; }
.footer__tagline { font-size: var(--fs-small); line-height: 1.6; color: rgba(255,255,255,0.8); padding-right: 1rem; }
.site-footer h4 { font-size: var(--fs-body); font-weight: 700; margin-bottom: 1rem; }
.footer__contact address { font-size: var(--fs-small); line-height: 1.8; color: rgba(255,255,255,0.8); }
.footer__contact a { color: #fff; }
.footer__links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a { font-size: var(--fs-small); color: rgba(255,255,255,0.8); transition: opacity var(--transition); }
.footer__links a:hover { opacity: 1; color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.5rem 0; margin-top: 2.5rem; font-size: var(--fs-meta); }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: rgba(255,255,255,0.7); }

/* ---- 16. ANIMATIONS ---- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fade-in { opacity: 1; transform: none; }
}

/* ---- 17. TOAST NOTIFICATIONS ---- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: var(--color-text);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(20, 40, 55, 0.25);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: var(--fs-small);
  z-index: 200;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}
.toast svg {
  width: 18px;
  height: 18px;
  color: #7fd0f5;
}

/* ---- 18. CONTENT ELEMENTS (fluid_styled_content) ---- */

/* Frame spacing */
.frame { margin-bottom: 2rem; }
.frame-space-before-extra-small { margin-top: 1rem; }
.frame-space-before-small { margin-top: 1.5rem; }
.frame-space-before-medium { margin-top: 2rem; }
.frame-space-before-large { margin-top: 3rem; }
.frame-space-before-extra-large { margin-top: 4rem; }
.frame-space-after-extra-small { margin-bottom: 1rem; }
.frame-space-after-small { margin-bottom: 1.5rem; }
.frame-space-after-medium { margin-bottom: 2rem; }
.frame-space-after-large { margin-bottom: 3rem; }
.frame-space-after-extra-large { margin-bottom: 4rem; }

/* Headlines inside content */
.ce-headline,
.frame > h1, .frame > h2, .frame > h3, .frame > h4,
.frame > header > h1, .frame > header > h2, .frame > header > h3, .frame > header > h4 {
  font-family: var(--font-serif);
  color: var(--color-text);
  line-height: var(--line-height-tight);
  margin-bottom: 0.75rem;
}
.frame > h1, .frame > header > h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 900; }
.frame > h2, .frame > header > h2 { font-size: var(--fs-section-title); font-weight: 700; }
.frame > h3, .frame > header > h3 { font-size: var(--fs-card-title); font-weight: 700; }

/* Section headlines in bodytext (e.g. legal § headings) */
.ce-bodytext h2 { font-family: var(--font-serif); font-size: var(--fs-section-title); font-weight: 700; color: var(--color-text); line-height: var(--line-height-tight); margin: 2rem 0 0.75rem; }
.ce-bodytext h3 { font-family: var(--font-serif); font-size: var(--fs-card-title); font-weight: 700; color: var(--color-text); margin: 1.5rem 0 0.5rem; }

/* Body text */
.ce-bodytext { color: var(--color-text-secondary); line-height: 1.75; }
.ce-bodytext p { margin-bottom: 1rem; }
.ce-bodytext a { color: var(--color-primary); text-decoration: underline; }
.ce-bodytext a:hover { color: var(--color-primary-dark); }

/* Restore list markers ONLY inside content (overrides global ul,ol reset) */
.ce-bodytext ul,
.ce-bodytext ol { margin: 0 0 1rem 0; padding-left: 1.4rem; }
.ce-bodytext ul { list-style: disc; }
.ce-bodytext ol { list-style: decimal; }
.ce-bodytext li { margin-bottom: 0.35rem; }

/* Blockquote */
.ce-bodytext blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 0.5rem 0 0.5rem 1rem;
  color: var(--color-text-secondary);
  margin: 0 0 1rem 0;
}

/* Tables (ce-table) */
.ce-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.ce-table th, .ce-table td {
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
.ce-table th { background: var(--color-bg-gray); font-weight: 700; }

/* Images / textpic / gallery */
.ce-gallery { margin-bottom: 1rem; }
.ce-textpic img, .ce-image img { border-radius: var(--radius-sm); height: auto; max-width: 100%; }
.ce-textpic .ce-bodytext { overflow: hidden; }
.ce-intext.ce-left .ce-gallery { float: left; margin: 0 1.5rem 1rem 0; max-width: 40%; }
.ce-intext.ce-right .ce-gallery { float: right; margin: 0 0 1rem 1.5rem; max-width: 40%; }
.ce-above .ce-gallery { margin-bottom: 1rem; }
.ce-below .ce-gallery { margin-top: 1rem; }

/* ---- 19. LEGAL PAGES (default FSC markup → reference look) ---- */
/* Mirrors abl-onlineshop/agb.html: .legal__section h2, .legal__note, .legal__toc */

/* § section headings — reference uses 1.25rem, not the larger default frame h2 */
.frame-type-text header h2,
.frame-type-text > header h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Intro note (editor uses a blockquote in a Text element) → .legal__note box */
.frame-type-text blockquote {
  background: var(--color-primary-tint-soft);
  border-left: 3px solid var(--color-primary);
  padding: 0.8rem 1rem;
  border-radius: 0 6px 6px 0;
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  margin: 0 0 2rem;
}
.frame-type-text blockquote p { margin: 0; }

/* Section Menu (table of contents) → .legal__toc box */
.frame-type-menu_section {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.frame-type-menu_section ul { list-style: none; margin: 0; padding: 0; }
.frame-type-menu_section ul ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.frame-type-menu_section li { margin: 0; }
.frame-type-menu_section a[aria-current="page"] {
  display: none;
}
.frame-type-menu_section a { color: var(--color-primary); text-decoration: none; }
.frame-type-menu_section a:hover { text-decoration: underline; }

.frame-type-menu_section header h2 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}


/* page width */
body.layout-1 #main article {
  max-width: 760px;
  padding-block: 0.5rem 4rem;
}
