/* =========================================================================
   raumart – Küchen & Wohnkonzepte
   Gemeinsames Stylesheet für alle Seiten.
   Nachbau der früheren ProcessWire/UIkit-Seite ohne Framework.

   Aufbau:
    1. Schriften
    2. Farben & Grundwerte (Variablen)
    3. Basis (Typografie, Links, Bilder)
    4. Layout-Helfer (Container, Raster, Abstände)
    5. Header & Navigation, Off-Canvas-Menü
    6. Seitenköpfe (Startseiten-Hero, Unterseiten-Hero)
    7. Inhaltsblöcke (Teaser, Karten, Akkordeon, Slider …)
    8. Footer
    9. Kontakt-Button & Kontakt-Fenster
   10. Responsive Anpassungen (Breakpoints wie im Original)
   ========================================================================= */

/* ---------- 1. Schriften (lokal, keine Google-Anfragen) ---------- */
@font-face { font-family: 'Zalando Sans SemiExpanded'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/zalando-sans-semiexpanded-v2-latin-300.woff2') format('woff2'); }
@font-face { font-family: 'Zalando Sans SemiExpanded'; font-style: italic; font-weight: 300; font-display: swap; src: url('../fonts/zalando-sans-semiexpanded-v2-latin-300italic.woff2') format('woff2'); }
@font-face { font-family: 'Zalando Sans SemiExpanded'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/zalando-sans-semiexpanded-v2-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Zalando Sans SemiExpanded'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/zalando-sans-semiexpanded-v2-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Zalando Sans SemiExpanded'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/zalando-sans-semiexpanded-v2-latin-500italic.woff2') format('woff2'); }
@font-face { font-family: 'Zalando Sans SemiExpanded'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/zalando-sans-semiexpanded-v2-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Zalando Sans SemiExpanded'; font-style: italic; font-weight: 600; font-display: swap; src: url('../fonts/zalando-sans-semiexpanded-v2-latin-600italic.woff2') format('woff2'); }
@font-face { font-family: 'Zalando Sans SemiExpanded'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/zalando-sans-semiexpanded-v2-latin-700.woff2') format('woff2'); }

/* ---------- 2. Farben & Grundwerte ---------- */
:root {
  --font: 'Zalando Sans SemiExpanded', sans-serif;
  --font-button: 'Montserrat', sans-serif;   /* wie im Original: Montserrat wird nicht geladen → Systemschrift */

  --c-seite: #E5E5E5;        /* Seitenhintergrund */
  --c-header: #f7f7f6;       /* Header */
  --c-dunkel: #3B342C;       /* Dunkelbraun, Überschriften */
  --c-mittelbraun: #60544A;
  --c-hellbraun: #A6978B;
  --c-hell: #C4BBAF;         /* Beige */
  --c-oliv: #434835;         /* Teaser, Markenpartner */
  --c-text-hell: #CDCBC7;
  --c-text-weiss: #EDEDE9;
  --c-navy: #091233;

  --gutter: 30px;            /* Rasterabstand, ab 1200px 40px */
  --container-pad: 15px;     /* Seitenrand, ab 640px 30px, ab 960px 40px */
}

/* ---------- 3. Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; max-width: 100vw; -webkit-text-size-adjust: 100%; }
html, body { font-family: var(--font); line-height: 1.8; color: #000; background-color: var(--c-seite); }
body { margin: 0; font-weight: 400; overflow-x: hidden; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 400; color: var(--c-dunkel); margin: 0 0 20px; text-transform: none; }
* + h1, * + h2, * + h3, * + h4, * + h5, * + h6 { margin-top: 40px; }
h1 { font-size: 90px; line-height: 1.2; }
h2 { font-size: 72px; line-height: 1.3; }
h3 { font-size: 64px; line-height: 1.4; }
h4 { font-size: 48px; line-height: 1.4; }
h5 { font-size: 32px; line-height: 1.4; }
h6 { font-size: 30px; line-height: 1.4; color: var(--c-mittelbraun); margin: 0; }

p, ul, ol, dl, figure { margin: 0 0 20px; }
* + p, * + ul, * + ol, * + dl, * + figure { margin-top: 20px; }
#content p { line-height: 1.8; }
em { color: #000; }
strong, b { font-weight: 700; }

a { color: var(--c-mittelbraun); text-decoration: none; cursor: pointer; }
a:hover { color: #000; text-decoration: underline; }

img, picture, video, canvas, iframe { max-width: 100%; height: auto; box-sizing: border-box; vertical-align: middle; }
picture { display: contents; }
hr { border: 0; border-top: 1px solid #e5e5e5; margin: 20px 0; overflow: visible; }
button { font: inherit; }

.icon { display: inline-block; vertical-align: middle; line-height: 0; fill: currentColor; }
.icon svg { display: block; }
.icon svg [fill*="#"]:not(.uk-preserve) { fill: currentColor; }
.icon svg [stroke*="#"] { stroke: currentColor; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; padding: 10px 20px; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- 4. Layout-Helfer ---------- */
.container { display: flow-root; box-sizing: content-box; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: var(--container-pad); padding-right: var(--container-pad); }
.container--large { max-width: 1400px; }
.container--small { max-width: 900px; }
.container--expand { max-width: none; }

/* Raster wie UIkit: negative Marge + Innenabstand je Spalte */
.grid { display: flex; flex-wrap: wrap; margin: 0 0 0 calc(var(--gutter) * -1); padding: 0; list-style: none; }
.grid > * { padding-left: var(--gutter); width: 100%; margin: 0; }
.grid > * > :last-child { margin-bottom: 0; }
.grid--collapse { margin-left: 0; }
.grid--collapse > * { padding-left: 0; }
.grid.stack-gap > * + * { margin-top: var(--gutter); }

.text-center { text-align: center; }
.flex-center { display: flex; justify-content: center; }
.flex-right { display: flex; justify-content: flex-end; }

.pad { padding-top: 6rem; padding-bottom: 6rem; }
.pad-3 { padding-top: 3rem; padding-bottom: 3rem; }
.pad-bottom { padding-bottom: 8rem; }
.mt { margin-top: 20px; }
.mt-large { margin-top: 40px; }
.mb-large { margin-bottom: 40px; }
.my-xlarge { margin-top: 70px; margin-bottom: 70px; }
.mt-xlarge { margin-top: 70px; }
.mb-xlarge { margin-bottom: 70px; }

.bg-dunkel { background: var(--c-dunkel); }
.bg-mittelbraun { background: var(--c-mittelbraun); }
.bg-hellbraun { background: var(--c-hellbraun); }
.bg-hell { background: var(--c-hell); }
.bg-oliv { background: var(--c-oliv); }
.text-hell, .text-hell h3, .text-hell h4 { color: var(--c-text-hell); }
.text-weiss h3 { color: var(--c-text-weiss); }
.text-weiss { color: var(--c-text-weiss); }
.text-braun, .text-braun h3 { color: var(--c-hellbraun); }
.text-gross { font-size: 20px; line-height: 2; }
.text-large { font-size: 1.5rem; line-height: 1.5; }

/* Abschnitt mit Bild + Text (UIkit "card" mit Cover-Bild) */
.split { position: relative; }
.cover { position: relative; overflow: hidden; }
.cover > img, .cover > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.cover canvas { display: block; visibility: hidden; }

/* Rund-Button (Pill) */
.sd-button { display: inline; background: none; font-family: var(--font-button); font-size: 18px; color: #000; border: 1px solid var(--c-text-hell); border-radius: 25px; padding: 12px 30px; line-height: 17px; width: auto; transition: all .2s; text-decoration: none; cursor: pointer; }
.sd-button:hover { background: var(--c-text-hell); color: var(--c-navy); text-decoration: none; }
.sd-button .icon { margin-left: 20px; }
.sd-button .icon--small-gap { margin-left: 10px; }

/* ---------- 5. Header & Navigation ---------- */
.site-header { background-color: var(--c-header); position: sticky; top: 0; z-index: 980; }
.site-header__inner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; margin-left: calc(var(--gutter) * -1); }
.site-header__inner > * { padding-left: var(--gutter); }
.site-header__logo { width: 50%; }
.logo { padding-top: 30px; padding-bottom: 30px; width: 33.333%; }
.logo a { display: block; }
.logo img { width: 100%; height: auto; display: block; }
.site-header__nav { width: 50%; }

#topnav { margin-top: 16px; margin-left: 100px; }
.navbar-nav { display: flex; gap: 40px; margin: 0; padding: 0; list-style: none; }
.navbar-nav > li { margin: 0; }
.navbar-nav > li > a { position: relative; display: flex; align-items: center; min-height: 80px; font-family: var(--font); font-size: 24px; color: var(--c-navy); text-transform: none; text-decoration: none; line-height: 1.8; transition: color .1s ease-in-out; }
.navbar-nav > li > a:hover { color: #666; }
.navbar-nav > li.is-active > a::after, .navbar-nav > li > a:hover::after { content: ""; position: absolute; bottom: 25px; left: 0; width: 100%; height: 1px; background: #000; }
.navbar-nav > li.is-active > a { color: #333; }

.menu-toggle { display: none; position: absolute; top: 8px; right: 5px; padding: 0; border: 0; background: none; color: var(--c-dunkel); cursor: pointer; line-height: 0; }
.menu-toggle .icon svg { width: 40px; height: 40px; }

/* Off-Canvas-Menü (Mobil) */
.offcanvas { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.offcanvas.is-open { visibility: visible; }
.offcanvas__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.1); opacity: 0; transition: opacity .3s ease-out; }
.offcanvas.is-open .offcanvas__overlay { opacity: 1; }
.offcanvas__bar { position: absolute; top: 0; bottom: 0; left: 0; width: 270px; padding: 20px; background: #222; color: rgba(255,255,255,.7); overflow-y: auto; display: flex; flex-direction: column; text-align: center; transform: translateX(-100%); transition: transform .3s ease-out; }
.offcanvas.is-open .offcanvas__bar { transform: translateX(0); }
.offcanvas__close { position: absolute; top: 20px; right: 20px; padding: 5px; border: 0; background: none; color: rgba(255,255,255,.5); cursor: pointer; line-height: 0; }
.offcanvas__close:hover { color: rgba(255,255,255,.7); }
.offcanvas__close svg { width: 20px; height: 20px; }
.offcanvas__nav { margin: auto 0; padding: 0; list-style: none; }
.offcanvas__nav a { display: block; padding: 5px 0; font-size: 1.5rem; line-height: 1.5; color: var(--c-text-hell); text-decoration: none; }
.offcanvas__nav a:hover { color: #fff; }
.offcanvas__social { display: inline-flex; gap: 15px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 500px; background: rgba(255,255,255,.1); color: var(--c-text-hell); transition: .1s ease-in-out; }
.icon-button:hover { background: rgba(255,255,255,.15); color: #fff; }
body.no-scroll { overflow: hidden; }

/* ---------- 6. Seitenköpfe ---------- */
#wraper { position: relative; z-index: 10; background-color: var(--c-header); }

/* Startseite: Titelbild mit Text */
.hero-start { position: relative; overflow: hidden; }
.hero-start .hero-start__media canvas { display: block; visibility: hidden; }
.hero-start img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background-image: linear-gradient(rgb(61 62 63 / 50%) 0%, rgb(12 0 0 / 71%) 100%); }
.text-slider { position: absolute; bottom: 0; left: 0; z-index: 1; max-width: 100%; padding: 3rem 0 6rem 3rem; }
.text-slider h1 { margin: 0; font-size: 64px; line-height: .85; color: #fff; }
.text-slider h1 > span { display: block; margin: 0 0 20px; }
.text-slider h1 > span + span { margin-top: 40px; }
.text-slider p { color: #fff; }
.text-slider__lead { width: 66.666%; }
.hero-start__cta { position: absolute; z-index: 1; bottom: 0; left: 50%; transform: translateX(-50%); margin-bottom: 50px; white-space: nowrap; }
.hero-start .sd-button { display: block; border-color: #fff; font-size: 22px; color: #fff; }
.hero-start .sd-button a { color: #fff; padding: 30px 40px; text-decoration: none; }
.hero-start .sd-button:hover a { color: var(--c-navy); }

@keyframes slide-left-medium { from { opacity: 0; transform: translateX(-100px); } to { opacity: 1; transform: none; } }
.anim-slide-left { animation: slide-left-medium .5s ease-out both; }
@media (prefers-reduced-motion: reduce) { .anim-slide-left { animation: none; } }

/* Unterseiten: Titelbild */
.page-hero { position: relative; height: 800px; background-repeat: no-repeat; background-size: cover; background-position: 50% 50%; }
.page-hero > img, .page-hero > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.page-hero__text { position: absolute; bottom: 0; width: 800px; max-width: 100%; padding: 40px 40px 60px 70px; }
.page-hero__text h1 { color: var(--c-text-weiss); margin: 0 0 40px; font-size: 64px; line-height: 1.4; }
.page-hero--kurz .page-hero__text h1 { margin-bottom: 20px; } /* Leistungen: im Original kleinerer Abstand unter dem Titel */

/* ---------- 7. Inhaltsblöcke ---------- */

/* Teaser-Balken (oliv) */
.teaser__inner { padding-top: 5rem; padding-bottom: 5rem; text-align: center; }
.teaser__inner h3 { line-height: 1.2; color: var(--c-text-hell); margin: 0 0 20px; }

/* Zentrierter Textblock */
.text-block h2:first-child, .text-block h3:first-child { margin-top: 0; }
.insta-intro h3 { margin-top: 0; }

/* Startseite: drei Leistungskarten, die beim Scrollen übereinander gleiten */
#cards { list-style: none; padding: 0; margin: 0; }
.card { position: sticky; top: 0; margin: 0; padding: 0; }
.card__content { overflow: hidden; display: grid; grid-template-areas: "text img"; grid-template-columns: 1fr 1fr; align-items: stretch; height: 40vw; margin: 0; }
.card__content > div { grid-area: text; width: 80%; place-self: center; text-align: left; display: grid; gap: 1rem; place-items: start; padding: 70px; }
.card__content > figure { grid-area: img; overflow: hidden; margin: 0; }
.card__content > figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
#cards h3 { line-height: 1.4; font-size: 48px; margin: 0; }
.card .link { margin-top: 20px; margin-bottom: 40px; }
.card .sd-button { border-color: #000; color: #000; }
.card .text-braun .sd-button, .card.text-braun .sd-button, .text-braun .sd-button { border-color: var(--c-hellbraun); color: var(--c-hellbraun); }
.text-hell .sd-button { border-color: var(--c-text-hell); color: var(--c-text-hell); }
.card .text-hell .sd-button:hover, .card .text-braun .sd-button:hover, .card .sd-button:hover { color: #000; }

/* Instagram-Raster */
.insta-intro { margin-bottom: 70px; }
.insta-intro .icon svg { width: 40px; height: 40px; }
.insta-intro .icon { margin-right: 10px; }
.insta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.insta-grid a { display: block; }
.insta-grid img { width: 100%; height: auto; display: block; }

/* Björn-Porträt */
.person { display: grid; grid-template-columns: 1fr 1fr; }
.person .cover canvas { width: 600px; }
.person__text { padding: 70px 70px 0; }
.person__text h4 { margin-top: 0; }
.person .link { margin-top: 70px; }
.person .sd-button { background: var(--c-mittelbraun); border-color: #000; color: #000; }
.person .sd-button:hover { background: var(--c-text-hell); color: var(--c-navy); }

/* Markenpartner-Slider */
.brands__head { text-align: center; margin-bottom: 70px; }
.brands__head h4 { color: var(--c-text-hell); margin-top: 0; }
.brands__head p { color: var(--c-text-hell); }
.logo-slider { position: relative; overflow: hidden; }
.logo-slider__track { display: flex; margin: 0 0 0 calc(var(--gutter) * -1); padding: 0; list-style: none; will-change: transform; }
.logo-slider__track > li { flex: 0 0 25%; max-width: 25%; padding-left: var(--gutter); margin: 0; }
.logo-slider__track img { display: block; width: 250px; max-width: 100%; height: auto; }

/* Akkordeon (Startseite „Warum raumart“, Leistungen „Unser Service“) */
.split-card { display: grid; grid-template-columns: 1fr 1fr; }
.split-card .cover canvas { width: 600px; }
.card-body { padding: 40px; }
.card-body > :last-child, .accordion__content > div > :last-child, .slide-card__body > :last-child, .grid > * > :last-child { margin-bottom: 0; }
.card-body > :first-child { margin-top: 0; }
.accordion { padding: 0; list-style: none; margin: 0; }
.accordion > li + li { margin-top: 20px; }
.accordion__title { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; font-size: 1.25rem; line-height: 1.4; color: #333; cursor: pointer; overflow: hidden; }
.accordion__title::before { content: ""; float: right; width: 1.4em; height: 1.4em; margin-left: 10px; font-size: 48px; background-repeat: no-repeat; background-position: 50% 50%;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2213%22%20height%3D%2213%22%20viewBox%3D%220%200%2013%2013%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20fill%3D%22%23666%22%20width%3D%2213%22%20height%3D%221%22%20x%3D%220%22%20y%3D%226%22%20%2F%3E%3Crect%20fill%3D%22%23666%22%20width%3D%221%22%20height%3D%2213%22%20x%3D%226%22%20y%3D%220%22%20%2F%3E%3C%2Fsvg%3E"); }
.accordion > li.is-open > .accordion__title::before {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2213%22%20height%3D%2213%22%20viewBox%3D%220%200%2013%2013%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20fill%3D%22%23666%22%20width%3D%2213%22%20height%3D%221%22%20x%3D%220%22%20y%3D%226%22%20%2F%3E%3C%2Fsvg%3E"); }
.accordion__title .accordion__label { display: block; margin: 0; padding-bottom: 6px; border-bottom: 2px solid var(--c-hellbraun); color: var(--c-dunkel); line-height: 1.4; }
.accordion--h5 .accordion__label { font-size: 32px; }
.accordion--h4 .accordion__label { font-size: 42px; }
.accordion__content { overflow: hidden; transition: height .2s ease; }
.accordion__content > div { padding-top: 20px; }
.accordion__content[hidden] { display: none; }

/* Bild mit Hinweis-Punkten (Startseite) */
#marker { position: relative; }
.text-marker { position: absolute; top: 90px; left: 25%; width: 75%; z-index: 100; }
.text-marker > div { width: 66.666%; text-align: center; color: var(--c-text-weiss); }
.text-marker h3 { color: var(--c-text-weiss); margin-top: 0; }
.marker-image { position: relative; display: block; }
.marker-image img { display: block; width: 100%; height: auto; }
.tooltip-dot { position: absolute; transform: translate(-50%, -50%); padding: 6px; background: #fff; color: #000; border-radius: 30px; border: 0; line-height: 0; cursor: pointer; opacity: 0; }
.tooltip-dot:hover, .tooltip-dot:focus-visible { color: var(--c-navy); }
.tooltip-dot svg { width: 30px; height: 30px; }
.tooltip-dot.is-visible { animation: fade-in .5s linear both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.tooltip-dot__text { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 250px; padding: 10px; background: #fff; color: #000; font-size: 16px; line-height: 1.4; text-align: left; border-radius: 0; display: none; pointer-events: none; z-index: 1030; }
.tooltip-dot:hover .tooltip-dot__text, .tooltip-dot:focus-visible .tooltip-dot__text { display: block; animation: fade-in .2s both; }
/* Punkte am rechten Rand: Text nach links öffnen, damit nichts über den Bildschirm hinausragt */
.tooltip-dot--right .tooltip-dot__text { left: auto; right: -10px; transform: none; }

/* Kundenstimmen */
#kunden { padding-top: 6rem; padding-bottom: 3rem; }
.kunden-grid > :first-child { width: 40%; }
.kunden-grid > :last-child { width: 60%; }
.kunden-grid h3 { margin-top: 0; }

/* Slideshow (Kundenstimmen, Über uns, Leistungen) */
.slideshow { position: relative; }
.slideshow__viewport { position: relative; overflow: hidden; }
.slideshow__items { position: relative; margin: 0; padding: 0; list-style: none; }
.slideshow__items > li { position: absolute; inset: 0; margin: 0; visibility: hidden; transform: translateX(100%); }
.slideshow__items > li.is-active { visibility: visible; transform: none; z-index: 1; }
.slideshow__items > li.is-animating { visibility: visible; transition: transform .6s cubic-bezier(.25,.46,.45,.94); }
.slideshow--kunden .slideshow__items { min-height: 350px; }
.slideshow--kunden .quote-person { display: flex; align-items: center; }
.slideshow--kunden .quote-person img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.slideshow--kunden .quote-person i { padding: 40px; }

.slidenav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: inline-flex; padding: 5px 10px; border: 0; background: none; color: rgba(0,0,0,.5); cursor: pointer; line-height: 0; transition: color .1s ease-in-out, opacity .1s; }
.slidenav:hover { color: rgba(0,0,0,.9); }
.slidenav--prev-out { right: 100%; margin-right: 15px; }
.slidenav--next-out { left: 100%; margin-left: 15px; }
.slidenav--medium.slidenav--prev-out { margin-right: 30px; }
.slidenav--medium.slidenav--next-out { margin-left: 30px; }
.slidenav--prev-in { left: 0; margin-left: 15px; }
.slidenav--next-in { right: 0; margin-right: 15px; }
.slidenav--large { padding: 10px 10px; }
.hidden-hover:not(:focus-visible) { opacity: 0; }
.slideshow:hover .hidden-hover, .slideshow:focus-within .hidden-hover { opacity: 1; }
.slider-blau .slidenav { color: var(--c-navy); }

/* Bild-Text-Slider (Über uns, Leistungen) */
.slide-card { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.slide-card .cover canvas { width: 600px; }
.slide-card__body { padding: 70px; }
.slide-card__body p { line-height: 1.5; }
.slider-blau .slide-card__text { margin-top: 40px; }
.slider-schritte .slide-card__text { margin-top: 20px; }
.ratio-7-3 { aspect-ratio: 7 / 3; }
.ratio-16-9 { aspect-ratio: 16 / 9; }

.thumbnav { position: absolute; bottom: 0; left: 50%; transform: translateX(calc(-50% - 7.5px)); margin: 0 0 15px; padding: 0; list-style: none; display: flex; align-items: flex-end; gap: 15px; z-index: 2; }
.thumbnav button { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.thumbnav button::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,.4)); transition: opacity .1s; }
.thumbnav button:hover::after, .thumbnav .is-active button::after { opacity: 0; }
.thumbnav img { width: 100px; height: auto; }

/* Text-Blöcke über halbe Breite (Über uns „Mein Highlight“, Leistungen „Wie wir arbeiten“) */
.half-grid > * { width: 50%; }
.half-grid h3 { margin-top: 0; }
.highlight-bild { display: block; width: 100%; }

/* Leistungen */
#block_text, .block-text { padding-top: 4rem; padding-bottom: 3rem; }
.offer-grid > :first-child { width: 33.333%; }
.offer-grid > :last-child { width: 66.666%; }
.offer-grid h3 { margin-top: 0; }
.offer-grid .grid > * { width: 50%; }
.offer-grid h4 { margin-top: 0; }
.offer-grid .grid > * + * { margin-top: 0; }
.offer-grid .grid > :nth-child(n+3) { margin-top: var(--gutter); }
.offer-grid .grid { margin-bottom: var(--gutter); } /* im Original sorgt ein leeres Element für diesen Zusatzabstand */
.service .split-card .cover { order: 2; }
.service .split-card .cover canvas { width: 600px; }

/* Kontakt */
.kontakt-grid > * { width: 50%; }
.kontakt-grid h2 { margin-top: 0; }
.kontakt-grid h4:first-child { margin-top: 0; }
.list { padding: 0; list-style: none; }
.list > li + li { margin-top: 10px; }

/* Karte: wird erst nach Klick von Google geladen (Zwei-Klick-Lösung) */
.map-consent { position: relative; height: 500px; background: #d9d6d1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px 15px; }
.map-consent__box { max-width: 560px; }
.map-consent__box p { font-size: 16px; line-height: 1.6; }
.map-consent .sd-button { display: inline-block; border-color: #000; color: #000; margin-top: 10px; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Rechtstexte */
.legal h4:first-child { margin-top: 0; }
.legal [id] { scroll-margin-top: 140px; } /* Sprungziele nicht unter dem festen Header verstecken */

/* 404 */
.error-page { text-align: center; }
.error-page h1 { font-size: 72px; line-height: 1.3; }

/* ---------- 8. Footer ---------- */
.site-footer { position: sticky; bottom: 0; z-index: 0; min-height: 700px; padding: 70px 0; display: flex; color: rgba(255,255,255,.7);
  background-color: #222; background-size: cover; background-position: 50% 50%; background-repeat: no-repeat;
  background-image: url('../img/global/footer-beratungsgespraech-1920.jpg');
  background-image: image-set(url('../img/global/footer-beratungsgespraech-1920.webp') type('image/webp'), url('../img/global/footer-beratungsgespraech-1920.jpg') type('image/jpeg')); }
.site-footer__overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgb(0 0 0 / 80%); }
.site-footer__overlay > .container { flex: 1; }
.footer_inhalt { position: relative; }
.footer_inhalt, .footer_inhalt a, .footer_inhalt h3 { color: var(--c-text-hell); }
.footer_inhalt h5 { color: var(--c-hellbraun); margin: 0 0 20px; }
.footer-cta { margin-bottom: 70px; }
.footer-cta__inner { width: 66.666%; text-align: center; }
.footer-cta h3 { margin: 0 0 40px; }
.footer_inhalt .sd-button { color: var(--c-text-hell); border-color: var(--c-text-hell); }
.footer_inhalt .sd-button:hover { background: var(--c-text-hell); color: var(--c-navy); }
.footer_inhalt hr { border-top-color: rgba(255,255,255,.2); }
.to-top { position: absolute; right: 0; bottom: 30px; width: 40px; height: 40px; border-radius: 50%; color: var(--c-text-hell); line-height: 0; }
.to-top svg { width: 40px; height: 40px; }
.footer-grid { margin-top: 70px; }
.footer-grid > * { width: 50%; }
.footer-grid__about p { width: 50%; }
.footer-grid__cols { display: flex; justify-content: flex-end; margin-left: calc(var(--gutter) * -1); }
.footer-grid__cols > :first-child { width: 50%; padding-left: var(--gutter); }
.footer-grid__cols > :last-child { width: 33.333%; padding-left: var(--gutter); }
.footer_inhalt .list { margin: 0; }
.footer_inhalt a:hover { color: #fff; }

/* ---------- 9. Kontakt-Button rechts unten & Kontakt-Fenster ---------- */
.contact-button { position: fixed; bottom: 30px; right: 30px; width: 70px; height: 70px; background: var(--c-text-hell); border-radius: 50%; border: 0; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: all 0.3s ease; z-index: 1000; }
.contact-button:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
.contact-button img { width: 50px; height: 50px; object-fit: contain; pointer-events: none; }

.modal { position: fixed; inset: 0; z-index: 1010; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .15s linear, visibility .15s; overflow-y: auto; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog { position: fixed; bottom: 110px; right: 30px; margin: 0; width: 400px; max-width: calc(100vw - 60px); background: #fff; border-radius: 15px; padding: 30px; transform: translateY(-100px); transition: transform .3s linear; }
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; top: 10px; right: 10px; padding: 5px; border: 0; background: none; color: #999; cursor: pointer; line-height: 0; }
.modal__close:hover { color: #666; }
.modal__close svg { width: 14px; height: 14px; }
.titel-kontakt { font-size: 26px; line-height: 1.4; margin: 0; }
.contact-items { margin-top: 20px; }
.contact-item { display: flex; align-items: center; padding: 15px; border-radius: 8px; transition: background 0.2s ease; text-decoration: none; color: inherit; }
.contact-item + .contact-item { margin-top: 10px; }
.contact-item:hover { background: #f8f8f8; text-decoration: none; color: inherit; }
.contact-icon { width: 45px; height: 45px; flex: 0 0 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; }
.contact-icon svg { width: 30px; height: 30px; fill: #fff; }
.phone-icon { background: #4caf50; }
.whatsapp-icon { background: #25d366; }
.email-icon { background: #ea4335; }
.contact-info strong { display: block; margin: 0 0 5px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--c-dunkel); }
.contact-info span { display: block; margin: 0; font-size: 14px; color: #666; line-height: 1.8; }

/* ---------- 10. Responsive (Breakpoints wie im Original) ---------- */
@media (min-width: 640px) {
  :root { --container-pad: 30px; }
  .offcanvas__bar { width: 350px; padding: 40px; }
  .offcanvas__close { top: 20px; right: 20px; padding: 10px; }
  .offcanvas__close svg { width: 20px; height: 20px; }
}
@media (min-width: 960px) {
  :root { --container-pad: 40px; }
  .site-header__nav { display: block; }
}
@media (min-width: 1200px) {
  :root { --gutter: 40px; }
  .mt-large { margin-top: 70px; }
  .mb-large { margin-bottom: 70px; }
  .my-xlarge { margin-top: 140px; margin-bottom: 140px; }
  .mt-xlarge { margin-top: 140px; }
  .mb-xlarge { margin-bottom: 140px; }
}
@media (max-width: 1199px) {
  .card__content > div, .slide-card__body, .person__text { padding: 40px; }
  .person__text { padding-bottom: 0; }
  .card-body { padding: 30px; }
  .insta-intro, .brands__head { margin-bottom: 40px; }
  .person .link { margin-top: 40px; }
  .footer-cta { margin-bottom: 40px; }
  .footer-grid { margin-top: 40px; }
  .insta-grid { gap: 0 30px; } /* wie im Original: zwischen 960 und 1199 px kein Zeilenabstand */
  .slideshow--kunden .quote-person i { padding: 30px; }
}

/* bis 1440px (Original: „X-Large devices“) */
@media (max-width: 1440px) {
  #cards h3 { font-size: 28px; }
  h4 { font-size: 32px; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  #cards h3 { font-size: 32px; }
  #cards p { margin-top: 0; }
  h5, .accordion--h5 .accordion__label { font-size: 26px; }
  .accordion--h4 .accordion__label { font-size: 28px; }
  .thumbnav { display: none; }
  .accordion__title::before { background-position: 50% 20%; }
  .text-marker { top: 50px; }
  h3, .page-hero__text h1 { font-size: 1.75rem; line-height: 1.3; }
  .text-slider h1 { font-size: 1.75rem; }
}
@media (max-width: 1199.98px) {
  h3 { font-size: 1.25rem; line-height: 1.3; }
  .page-hero__text h1 { font-size: 1.25rem; line-height: 1.3; }
  .text-slider h1 { font-size: 1.25rem; }
}
@media (max-width: 1024px) {
  .navbar-nav > li > a { font-size: 18px; }
  .text-marker { top: 60px; }
}

/* Unter 960px: Navigation wird zum Off-Canvas-Menü, Spalten stapeln sich */
@media (max-width: 959.98px) {
  .site-header__nav { display: none; }
  .site-header__logo { width: 100%; }
  .menu-toggle { display: block; }
  .text-slider__lead { display: none; }
  .hero-start__cta { margin-bottom: 30px; }
  .person, .slide-card, .kunden-grid > :first-child, .kunden-grid > :last-child, .offer-grid > :first-child, .offer-grid > :last-child, .offer-grid > *, .half-grid > *, .kontakt-grid > *, .footer-grid > *, .footer-grid__cols > *, .offer-grid .grid > * { width: 100%; }
  .person, .slide-card { grid-template-columns: 1fr; }
  .grid.stack-m > * + * { margin-top: var(--gutter); }
  .offer-grid .grid > * + * { margin-top: var(--gutter); }
  .half-grid .flex-right { justify-content: flex-start; }
  .footer-grid__about p { width: 100%; }
  .footer-grid__cols { flex-wrap: wrap; justify-content: flex-start; margin-left: calc(var(--gutter) * -1); }
  .footer-grid__cols > :first-child, .footer-grid__cols > :last-child { width: 100%; }
  .footer-cta__inner { width: 100%; }
  .logo-slider__track > li { flex-basis: 50%; max-width: 50%; }
  .text-marker > div { width: 100%; }
  .service .split-card .cover { order: 0; }
  .thumbnav { display: none; }
  .insta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
  .slider-bild-text .slideshow__items { min-height: 950px !important; aspect-ratio: auto; }
  .slider-blau .slideshow__items { min-height: 1000px !important; }
}
/* Akkordeon-Abschnitte: zweispaltig ab 640px (Original: uk-child-width-1-2@s) */
@media (max-width: 639.98px) {
  .split-card { grid-template-columns: 1fr; }
  .service .split-card .cover { order: 0; }
  .slidenav-out { display: none; }
}
@media (min-width: 640px) {
  .slidenav-in { display: none; }
}
@media (max-width: 639.98px) {
  .insta-grid { gap: 30px; }
}

/* Smartphones (bis 767px) */
@media (max-width: 767.98px) {
  h6 { font-size: 18px; }
  h5, .accordion--h5 .accordion__label { font-size: 20px; }
  h4 { font-size: 22px; }
  h3 { font-size: 24px; }
  h2 { font-size: 26px; }
  h1 { font-size: 28px; }
  #cards h3 { font-size: 28px; }

  .logo { padding-top: 10px; padding-bottom: 10px; width: 100%; }
  .logo img { width: 50%; }

  .page-hero { height: 40vh; }
  .page-hero__text { width: 250px; padding: 40px; }
  .page-hero__text h1 { font-size: 30px; }

  .accordion--h4 .accordion__label, .accordion--h5 .accordion__label { font-size: 20px; }
  .accordion__title::before { font-size: 20px; }

  #kunden { padding-top: 2rem; padding-bottom: 2rem; }
  .text-gross { font-size: 18px; line-height: 1.4; }
  .teaser__inner { padding-top: 3rem; padding-bottom: 3rem; }
  .teaser__inner h3 { line-height: 1.5; }
  .card-body { padding: 30px 20px; }
  .pad { padding-top: 2rem; padding-bottom: 2rem; }
  .text-large { font-size: 1rem; line-height: 1.5; }

  .hero-start .sd-button { font-size: 17px; padding: 10px 30px; text-align: center; }
  .hero-start .sd-button a { line-height: 1.5; padding: 10px; }
  .text-slider h1 { font-size: 24px; }
  .text-slider h1 > span { margin: 0 0 1rem 0 !important; }

  #cards { display: block; }
  .card__content { display: block; height: auto; padding: 20px; }
  .card__content > div { width: 100%; padding: 20px; }
  .card__content > figure { display: none; }
  .card__content p { margin: 0; }
  .card .link { margin-bottom: 30px; }

  .slide-card__body { padding: 10px; }
  .slide-card__text, .slide-card__body p, .slide-card__body h3 { margin-top: 0 !important; }
  .slider-bild-text .slideshow__items, .slider-blau .slideshow__items { min-height: 850px !important; }
  .slider-bild-text .slidenav--prev-in { left: -30px; }
  .slider-bild-text .slidenav--next-in { right: -25px; }

  .sd-button { font-size: 16px; }
  .text-marker { position: relative; display: block; margin-bottom: 20px; left: 0; top: 0; width: 100%; padding-left: 10px; padding-right: 10px; }
  #marker .text-weiss, #marker .text-weiss h3 { color: var(--c-dunkel); }

  .site-footer { min-height: 850px; height: 850px; }
  .site-footer { padding: 40px 0; }
}
