/* Wagner Markisen – Design „Variante D" mit Header aus „Variante E"
   Farben zentral anpassbar: */
:root {
  --purple: #592E85;
  --deep: #2A1751;
  --yellow: #FFCB00;
  --ink: #898E8B;          /* Logo-Grau für alle Texte */
  --bg: #FAF8FD;
  --lilac: #EFEAF7;
  --line: #E3DDF0;
  --line-soft: #ECE8F2;
  --white: #FFFFFF;
  --font: 'Fira Sans', 'Segoe UI', system-ui, sans-serif;
  --font-slogan: 'Montserrat', 'Fira Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 18px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
section[id], [id="inhalt"] { scroll-margin-top: 96px; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--purple); outline-offset: 3px;
}
.skip { position: absolute; left: 16px; top: -60px; z-index: 3000; background: var(--purple); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--line-soft); }
.hdr__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); }
.hdr__inner { max-width: 1240px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr__brand { display: block; flex: 0 0 auto; }
.hdr__logo { height: 56px; width: auto; }
.hdr__wordmark { font-weight: 600; font-size: 22px; letter-spacing: .08em; color: var(--ink); }
.hdr__wordmark strong { color: var(--purple); font-weight: 700; }
.hdr__nav { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; justify-content: center; font-weight: 600; font-size: 17px; }
@media (max-width: 1180px) { .hdr__nav { gap: 8px 22px; font-size: 16px; } }
.hdr__link { position: relative; padding: 10px 0; }
.hdr__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.hdr__link:hover::after { transform: scaleX(1); }
.hdr__actions { display: flex; align-items: center; gap: 12px; }
.hdr__phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; padding: 12px 8px; min-height: 48px; }
.hdr__cta { display: inline-flex; align-items: center; justify-content: center; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 17px; padding: 14px 24px; min-height: 50px; transition: transform .2s ease, filter .2s ease; }
.hdr__cta:hover, .hdr__phone:hover { transform: translateY(-2px); filter: brightness(.96); }
.hdr__phone { transition: transform .2s ease; }
.cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.cut:focus-visible { outline: 3px solid var(--deep); outline-offset: -6px; }
.hdr__mob { display: none; }
.hdr__mob > summary { list-style: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); background: var(--white); cursor: pointer; }
.hdr__mob > summary::-webkit-details-marker { display: none; }
.hdr__mobnav { position: absolute; left: 0; right: 0; top: 100%; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 8px 24px 24px; display: flex; flex-direction: column; background: var(--white); font-weight: 700; font-size: 20px; }
.hdr__mobnav a { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.hdr__mobnav .hdr__cta { margin-top: 20px; border-bottom: 0; }
@media (max-width: 960px) {
  .hdr-desk { display: none !important; }
  .hdr__mob { display: block; }
}
@media (max-width: 560px) {
  .hdr-sm { display: none; }
  .hdr__inner { padding: 10px 16px; }
  .hdr__logo { height: 46px; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hdr__progress { animation: hdr-grow linear both; animation-timeline: scroll(root); }
    .hdr__logo { animation: hdr-shrink linear both; animation-timeline: scroll(root); animation-range: 0px 240px; }
  }
}
@keyframes hdr-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hdr-shrink { to { height: 44px; } }
@media (prefers-reduced-motion: reduce) { .hdr__cta:hover, .hdr__phone:hover { transform: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 18px; line-height: 1.2; padding: 16px 28px; min-height: 52px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-align: center; transition: filter .2s ease; }
.btn:hover { filter: brightness(.93); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--purple { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn--outline { background: transparent; color: var(--purple); border-color: var(--purple); padding: 14px 26px; }
.btn--white { background: #fff; color: var(--ink); }
.btn--ghost-light { background: transparent; color: #fff; border-color: #fff; padding: 14px 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-col { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Typografie ---------- */
.h1 { font-weight: 700; font-size: 56px; line-height: 1.04; letter-spacing: -.03em; margin: 16px 0 20px; color: var(--ink); overflow-wrap: break-word; hyphens: auto; }
.h2 { font-weight: 700; font-size: 44px; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 40px; color: var(--ink); }
.h2--tight { margin-bottom: 24px; }
.h3 { font-weight: 700; font-size: 36px; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 24px; color: var(--purple); }
.lead { font-size: 22px; line-height: 1.55; margin: 0 0 28px; color: var(--ink); }
.lead--narrow { max-width: 720px; font-size: 20px; margin-bottom: 40px; }
.rich p { margin: 0 0 14px; line-height: 1.6; }
.rich h2 { font-weight: 700; font-size: 28px; letter-spacing: -.01em; margin: 44px 0 12px; color: var(--purple); }
.rich h3 { font-weight: 700; font-size: 21px; margin: 28px 0 8px; color: var(--ink); }
.rich ul, .rich ol { margin: 0 0 14px; padding-left: 24px; }
.rich li { margin: 0 0 6px; padding-left: 4px; }
.rich a { color: var(--purple); text-decoration: underline; overflow-wrap: anywhere; }
.rich--large p { font-size: 20px; }

/* ---------- Layout ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 96px 24px 0; }
.page { max-width: 1200px; margin: 0 auto; padding: 40px 24px 0; }
.block { padding-top: 72px; }
.back { display: inline-block; padding: 12px 0; font-weight: 600; font-size: 17px; color: var(--purple); }
.back:hover { text-decoration: underline; }
.rounded { border-radius: 28px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rounded--xl { border-radius: 32px; }

/* Platzhalter für fehlende Fotos */
.ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; background: var(--line); border: 2px dashed var(--ink); color: var(--ink); font-size: 15px; line-height: 1.4; aspect-ratio: 4 / 3; width: 100%; }
.ph.rounded, .gallery .ph, .about .ph { border-radius: 24px; }

/* ---------- Hero ---------- */
.hero { max-width: 1200px; margin: 20px auto 0; padding: 0 24px; }
.hero__box { position: relative; overflow: hidden; border-radius: 40px; background: var(--deep); min-height: 640px; display: flex; align-items: center; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slides .ph { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; border: 0; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42, 23, 81, .35), rgba(42, 23, 81, 0) 70%); }
.hero__card { position: relative; margin: 48px; max-width: 548px; background: rgba(255, 255, 255, .9); border-radius: 32px; padding: 40px; }
.hero__slogan { font-family: var(--font-slogan); font-style: italic; font-weight: 700; font-size: 48px; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 20px; color: var(--yellow); }
.hero__text { font-size: 20px; line-height: 1.5; margin: 0 0 28px; color: var(--ink); }
/* Bild statt Text (Backend: Startseite → Bereich oben) */
.hero__img { width: auto; height: auto; max-width: 100%; }
.hero__img--slogan { max-height: 200px; }
.hero__img--text { max-height: 220px; }

/* ---------- Produktkarten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--lilac); color: var(--purple); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(42, 23, 81, .12); }
.card__img { aspect-ratio: 4 / 3; background: var(--line); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img .ph { height: 100%; border: 0; border-bottom: 2px dashed var(--ink); }
.card__body { padding: 24px 24px 28px; }
.card__title { font-weight: 700; font-size: 24px; letter-spacing: -.01em; margin: 0 0 8px; color: var(--purple); hyphens: auto; overflow-wrap: break-word; }
.card__text { font-size: 17px; line-height: 1.5; margin: 0; color: var(--ink); }
.card__more { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 17px; color: var(--purple); }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.step { border: 1px solid var(--line); border-radius: 28px; padding: 28px; background: #fff; }
.step__num { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 700; border-radius: 999px; padding: 6px 14px; font-size: 16px; }
.step__title { font-size: 24px; letter-spacing: -.01em; margin: 20px 0 8px; color: var(--ink); }
.step__text { font-size: 18px; line-height: 1.55; margin: 0; }

/* ---------- Über uns ---------- */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about__text, .about__img { flex: 1 1 440px; min-width: 0; }

/* ---------- Kontakt-Box ---------- */
.cta { background: var(--deep); color: #fff; border-radius: 40px; padding: 64px 56px; }
.cta__title { font-weight: 700; font-size: 44px; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 12px; color: var(--yellow); }
.cta__text { font-size: 20px; margin: 0 0 32px; }

/* ---------- Produktseite ---------- */
.prod-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; margin-top: 16px; }
.prod-hero__text, .prod-hero__img { flex: 1 1 440px; min-width: 0; }
.prod-hero__img .ph { border-radius: 32px; }
.list { font-size: 20px; line-height: 1.5; margin: 0; padding-left: 24px; max-width: 760px; }
.list li { margin: 0 0 12px; padding-left: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--lilac); color: var(--purple); font-weight: 600; font-size: 17px; border-radius: 999px; padding: 10px 20px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery__item { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; border-radius: 24px; overflow: hidden; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.03); }
.video-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--deep); }
.video-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card .ph { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.video-card__shade { position: absolute; inset: 0; background: rgba(42, 23, 81, .22); }
.video-card__play { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 999px; background: var(--yellow); color: var(--deep); display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.video-card:hover .video-card__play { transform: scale(1.08); }
.video-card__title { position: absolute; left: 16px; top: 16px; right: 16px; font-weight: 700; font-size: 22px; line-height: 1.15; }
.video-card__title span { background: var(--yellow); color: var(--ink); border-radius: 12px; padding: 6px 14px; display: inline-block; }
.video-card__label { position: absolute; left: 16px; bottom: 14px; color: #fff; font-weight: 600; font-size: 16px; background: rgba(42, 23, 81, .85); border-radius: 999px; padding: 6px 14px; }
.makers { display: flex; flex-wrap: wrap; gap: 16px; }
.maker { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1 1 260px; max-width: 380px; transition: filter .2s ease; }
.maker:hover { filter: brightness(.97); }
.maker__logo { height: 72px; display: flex; align-items: center; }
.maker__logo img { max-height: 64px; width: auto; }
.maker__fallback { font-weight: 800; font-size: 26px; letter-spacing: .06em; color: var(--ink); }
.maker__name { font-weight: 700; font-size: 20px; color: var(--ink); }
.maker__link { font-weight: 600; font-size: 16px; color: var(--purple); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 17px; border-radius: 999px; padding: 10px 20px; }
.pill:hover { border-color: var(--purple); color: var(--purple); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 72px 88px; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(20, 10, 40, .93); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 999px; border: 0; background: #fff; color: var(--deep); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__close { top: 20px; right: 24px; }
.lightbox__prev { left: 20px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 20px; top: 50%; margin-top: -24px; }
@media (max-width: 700px) { .lightbox { padding: 72px 12px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; margin: 0; } }

/* ---------- Kontaktseite ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.contact__form { flex: 2 1 520px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 40px; }
.contact__aside { flex: 1 1 300px; background: var(--deep); color: #fff; border-radius: 32px; padding: 40px; }
.contact__aside p { font-size: 18px; line-height: 1.55; margin: 0 0 24px; }
.contact__aside-title { font-weight: 700; font-size: 28px; margin: 0 0 12px; color: var(--yellow); }
.contact__hours-title { font-size: 20px; margin: 32px 0 8px; color: var(--yellow); }
.contact__hours { margin: 0; }
.form { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 260px; min-width: 0; }
.field--full { flex-basis: 100%; }
.field label { display: block; font-weight: 600; font-size: 16px; margin: 0 0 8px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: #fff; border: 1.5px solid #CFC6E0; border-radius: 16px; padding: 14px 16px; }
.field textarea { resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B3261E; }
.field__error { display: block; color: #B3261E; font-size: 15px; margin-top: 6px; font-weight: 600; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--purple); flex: 0 0 auto; }
.check a { text-decoration: underline; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 20px; padding: 20px 24px; margin-bottom: 24px; font-size: 17px; }
.notice p { margin: 6px 0 0; }
.notice--ok { background: #EAF6EC; border: 1px solid #9BCFA5; color: #1E5B2A; }
.notice--error { background: #FCEDEC; border: 1px solid #E6A19C; color: #8C1D18; }
.findus { background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.findus__addr { font-size: 20px; line-height: 1.6; }

/* ---------- Rechtliches ---------- */
.legal { max-width: 820px; }
.legal .rich { font-size: 18px; }

/* ---------- Footer ---------- */
.footer { max-width: 1200px; margin: 0 auto; padding: 64px 24px 48px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 16px; color: var(--ink); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.rich--page { max-width: 820px; font-size: 19px; }
.rich--page p { line-height: 1.65; }
.block--text { padding-top: 40px; }
.footer__links a:hover { text-decoration: underline; }

/* ---------- Cookie-Hinweis ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2000; max-width: 920px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 14px 40px rgba(42, 23, 81, .16); padding: 16px 16px 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cookie[hidden] { display: none; }
.cookie__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 999px; background: var(--lilac); color: var(--purple); display: flex; align-items: center; justify-content: center; }
.cookie__text { flex: 1 1 420px; min-width: 0; margin: 0; font-size: 16px; line-height: 1.55; }
.cookie__text a { color: var(--purple); font-weight: 600; text-decoration: underline; }
.cookie__btn { min-height: 48px; padding: 12px 28px; font-size: 17px; }

/* ---------- Handy & Tablet ---------- */
@media (max-width: 900px) {
  .hero__box { min-height: 560px; align-items: flex-end; }
  .h1 { font-size: 44px; }
  .h2 { font-size: 36px; margin-bottom: 28px; }
  .h3 { font-size: 30px; }
  .section { padding-top: 72px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { padding: 0 12px; margin-top: 12px; }
  .hero__box { border-radius: 28px; min-height: 520px; }
  .hero__card { margin: 16px; padding: 24px; border-radius: 24px; }
  .hero__slogan { font-size: 34px; }
  .hero__text { font-size: 18px; }
  .hero__img--slogan { max-height: 140px; }
  .hero__img--text { max-height: 160px; }
  .section, .page { padding-left: 16px; padding-right: 16px; }
  .h1 { font-size: 36px; }
  .h2 { font-size: 30px; }
  .h3 { font-size: 26px; }
  .lead { font-size: 19px; }
  .list { font-size: 18px; }
  .cta { padding: 36px 24px; border-radius: 28px; }
  .cta__title { font-size: 30px; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .contact__form, .contact__aside, .findus { padding: 24px; border-radius: 24px; }
  .block { padding-top: 56px; }
}

@media print {
  .hdr, .cookie, .cta, .footer__links, .back { display: none !important; }
  body { background: #fff; color: #000; }
}
