/* ==========================================================================
   Kiesel Ennens – style.css
   Design-System aus Figma „Ennes (Kiesel)“ (Roboto, #333, Rot, eckige Buttons)
   Aufbau: 1 Tokens · 2 Basis · 3 Utilities · 4 Buttons · 5 Navigation · 6 Hero
           7 Marken-Kacheln · 8 Split · 9 Banner/Showcase · 10 Bewertungen
           11 Kleinanzeigen · 12 Karten · 13 Textblock/Team · 14 Kontakt
           15 Footer · 16 Rechtstexte · 17 Motion · 18 Responsive
   ========================================================================== */

/* 1 Tokens ----------------------------------------------------------------- */
:root {
  --red: #ff0000;
  --red-dark: #cc0000;
  --ink: #333333;
  --paper: #ffffff;
  --line: #eaeaea;
  --muted: #8a8a8a;
  --on-dark-15: rgba(255, 255, 255, .15);
  --on-dark-20: rgba(255, 255, 255, .2);
  --r-m: 16px;
  --r-l: 24px;
  --container: 1248px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 8vw, 120px);
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 72px;
}

/* 2 Basis ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, .h1 { font-size: clamp(2.25rem, 5.2vw, 4.5rem); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; text-decoration: underline; text-decoration-skip-ink: none; text-underline-offset: .1em; text-decoration-thickness: .04em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
h2.h1 { font-weight: 500; }
h3 { font-size: 1.375rem; font-weight: 500; line-height: 1.4; }
.lead { font-size: 1.125rem; line-height: 1.5; }
.tagline { font-size: 1rem; font-weight: 600; line-height: 1.5; margin-bottom: 16px; }
.ico { width: 24px; height: 24px; fill: currentColor; flex: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3 Utilities -------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--section); }
.sec--dark { background: var(--ink); color: #fff; }
.sec__head { display: grid; gap: 24px; max-width: 768px; margin-bottom: clamp(40px, 5vw, 80px); }
.sec__head--wide { max-width: none; }
.sec__head--center { margin-inline: auto; text-align: center; }
.stack { display: grid; gap: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }

/* 4 Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 12px; border: 1px solid transparent; background: none; color: inherit; font: 500 1rem/1.5 var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--light { border-color: var(--on-dark-20); color: #fff; }
.btn--light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.btn--dark { border-color: var(--ink); color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: #fff; }
.btn--link { padding: 0; gap: 8px; }
.btn--block { width: 100%; }
.btn--sm { padding: 4px 10px; }

/* 5 Navigation ------------------------------------------------------------- */
.nav { position: fixed; z-index: 100; top: 24px; left: 0; right: 0; display: flex; justify-content: center; padding-inline: 16px; pointer-events: none; transition: top .3s var(--ease); }
.nav.is-scrolled { top: 12px; }
.nav__bar { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; width: 100%; max-width: var(--container); height: var(--nav-h); padding-inline: 32px; background: rgba(51, 51, 51, .7); border: 2px solid var(--line); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color .3s var(--ease), height .3s var(--ease); }
.nav.is-scrolled .nav__bar { background: rgba(51, 51, 51, .94); height: 64px; }
.nav__logo img { width: 244px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav__links ul { display: flex; gap: 32px; }
.nav__links a:not(.btn) { text-decoration: none; padding-block: 4px; background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.nav__links a:not(.btn):hover, .nav__links a[aria-current="page"] { background-size: 100% 2px; }
.nav__cta { display: flex; gap: 16px; }
.nav__toggle { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 10px; background: none; border: 0; color: #fff; cursor: pointer; }
.nav__toggle .ico-close, .nav-open .nav__toggle .ico-menu { display: none; }
.nav-open .nav__toggle .ico-close { display: block; }

/* 6 Hero ------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 600px; padding-block: 160px 100px; background: var(--ink); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .4); }
.hero--tall { min-height: min(900px, 100svh); }
.hero h1 { max-width: 1100px; }
.hero .actions { margin-top: 32px; }

/* 7 Marken-Kacheln --------------------------------------------------------- */
.marken { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.marken__right { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.kachel { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 269px; padding: 24px; color: #fff; text-decoration: none; overflow: hidden; background: #111; }
.kachel .bg-img { z-index: -2; transition: transform .7s var(--ease); }
.kachel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 61%, #000); }
.kachel:hover .bg-img { transform: scale(1.04); }
.kachel__logo { position: absolute; top: 42%; left: 50%; z-index: -1; width: 56%; max-height: 30%; object-fit: contain; transform: translate(-50%, -50%); }
.kachel__label { display: block; font-size: 1rem; }
.kachel__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.kachel__cta .ico { transition: transform .25s var(--ease); }
.kachel:hover .kachel__cta .ico { transform: translateX(4px); }
.kachel--big { min-height: 590px; padding: 48px; }
.marken__right .kachel { min-height: 289px; }
.marken--seite .kachel { min-height: 590px; padding: 48px; }
.marken__more { margin-top: 80px; }

/* 8 Split (Text + Bild) ---------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; overflow: hidden; background: var(--line); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 600 / 640; }
.split--tall .split__media img { aspect-ratio: 614 / 869; }
.split__media .actions--over { position: absolute; inset: auto 0 48px; justify-content: center; }
.checks { display: grid; gap: 16px; padding-block: 8px; }
.checks li { display: flex; align-items: center; gap: 16px; }
.checks .ico { width: 16px; height: 16px; }

/* 9 Banner / Showcase ------------------------------------------------------ */
.banner { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; min-height: 846px; padding-block: var(--section); text-align: center; color: var(--ink); overflow: hidden; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(200, 210, 215, .85); }
.banner__inner { display: grid; gap: 32px; justify-items: center; max-width: 768px; }
.banner__inner .actions { justify-content: center; }
.showcase { display: grid; gap: 80px; }
.showcase__img { position: relative; height: clamp(240px, 30vw, 366px); overflow: hidden; }
.showcase__img img { width: 100%; height: 100%; object-fit: cover; }
.showcase__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.showcase__cols > div { display: grid; gap: 32px; }

/* 10 Bewertungen / Slider -------------------------------------------------- */
.slider { position: relative; }
.slider__track { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 2px; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__item { flex: 0 0 calc((100% - 64px) / 3); scroll-snap-align: start; }
.slider__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 48px; min-height: 48px; }
.slider__dots { display: flex; gap: 9px; padding: 10px; margin-inline: auto; }
.slider__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(51, 51, 51, .25); cursor: pointer; transition: background-color .2s, transform .2s; }
.slider__dot[aria-current="true"] { background: var(--ink); transform: scale(1.25); }
.slider__arrows { display: flex; gap: 16px; }
.slider__arrow { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; background: #fff; border: 1px solid rgba(4, 11, 7, .15); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s; }
.slider__arrow:hover { background: var(--ink); color: #fff; }
.slider__arrow[disabled] { opacity: .35; pointer-events: none; }
.review { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; height: 100%; padding: 32px; border: 2px solid var(--ink); border-radius: var(--r-m); }
.review__stars { margin-bottom: 24px; color: var(--ink); }
.review__stars span { font-size: 1.4rem; letter-spacing: .15em; line-height: 1; }
.review__who { display: flex; align-items: center; gap: 16px; font-weight: 600; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--line); font-weight: 600; font-size: .875rem; }
.ti-wrap:empty { display: none; }

/* 11 Kleinanzeigen --------------------------------------------------------- */
.angebote { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-block: 8px; }
.angebot { display: flex; flex-direction: column; background: #fff; color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.angebot:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
.angebot__img { aspect-ratio: 4 / 3; background: var(--line); overflow: hidden; }
.angebot__img img { width: 100%; height: 100%; object-fit: cover; }
.angebot__body { display: grid; gap: 4px; padding: 16px; }
.angebot__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; }
.angebot__price { font-weight: 700; }
.angebote-fallback { padding: 32px; border: 1px solid var(--on-dark-20); }

/* 12 Karten (Grid List) ---------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 24px; min-height: 360px; padding: 24px; border: 1px solid var(--ink); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(51, 51, 51, .12); }
.card .ico--xl { width: 48px; height: 48px; }
.card__head { display: grid; }
.card__meta, .card__text { font-size: .875rem; }
.card .btn { margin-top: auto; }
.cards--plain .card { min-height: 0; }
.cards--dark .card { align-items: center; justify-content: center; border-color: transparent; text-align: center; }
.cards--dark .card:hover { box-shadow: none; transform: none; }
.cards-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 80px; }

/* 13 Textblock / Team ------------------------------------------------------ */
.divider { width: 80px; height: 2px; margin-bottom: 24px; background: #fff; }
.textblock { display: grid; gap: 24px; max-width: 768px; }
.team__card { display: grid; gap: 24px; align-content: start; }
.team__img { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(135deg, var(--line), #d7d7d7); color: rgba(51, 51, 51, .35); font-size: 4rem; font-weight: 700; overflow: hidden; }
.team__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team__name { font-size: 1.375rem; font-weight: 600; line-height: 1.4; }
.team__job { font-size: 1.125rem; }
.team .slider__item { flex-basis: calc((100% - 96px) / 3.35); }

/* 14 Kontakt --------------------------------------------------------------- */
.map { height: clamp(280px, 30vw, 416px); border-radius: var(--r-l); overflow: hidden; background: var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
.kontakt { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.kontakt__map-first { margin-bottom: 80px; }
.kontakt--map-last { margin-top: 80px; }
.contact-list { display: grid; gap: 16px; padding-block: 8px; font-style: normal; }
.contact-list__row { display: flex; align-items: flex-start; gap: 16px; }
.contact-list a { text-underline-offset: 3px; }
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field input, .field select, .field textarea { width: 100%; height: 48px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font: inherit; transition: border-color .2s; }
.field textarea { height: 180px; padding: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom: 2px solid var(--ink); margin-bottom: -1px; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%23333'%3E%3Cpath d='M480-360 280-559h400L480-360Z'/%3E%3C/svg%3E") right center / 24px no-repeat; }
.check { display: flex; align-items: center; gap: 8px; padding-bottom: 16px; font-size: .875rem; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.form .btn { justify-self: start; }

/* 15 Footer ---------------------------------------------------------------- */
.footer { background: var(--ink); color: #fff; padding-block: 80px; }
.footer__top { display: flex; justify-content: space-between; gap: 128px; }
.footer__logo img { width: 244px; height: auto; }
.footer__cols { display: flex; gap: 40px; margin-left: auto; }
.footer__col h2 { margin-bottom: 16px; font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.5; }
.footer__col a { display: flex; align-items: center; gap: 12px; padding-block: 8px; font-size: .875rem; text-decoration: none; }
.footer__col h2 a { padding: 0; font-size: 1rem; }
.footer__col a:hover { text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 80px; padding-top: 32px; border-top: 2px solid var(--on-dark-15); font-size: .875rem; }
.footer__bottom .light { font-weight: 300; }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { text-underline-offset: 3px; }

/* 16 Rechtstexte ----------------------------------------------------------- */
.rechtstext { padding-block: 180px var(--section); }
.rechtstext__inner { max-width: 72ch; }
.rechtstext h1 { margin-bottom: 48px; text-decoration: none; }
.rechtstext__erecht24 h2 { margin-block: 48px 16px; font-size: 1.75rem; }
.rechtstext__erecht24 h3 { margin-block: 32px 12px; font-size: 1.375rem; }
.rechtstext__erecht24 h4 { margin-block: 24px 8px; font-size: 1.125rem; font-weight: 600; }
.rechtstext__erecht24 p, .rechtstext__erecht24 li { margin-bottom: 12px; }
.rechtstext__erecht24 ul { padding-left: 1.25em; list-style: disc; }
.rechtstext__individuell { margin-top: 48px; }

/* 17 Motion ---------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 18 Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__bar { padding-inline: 20px; background: rgba(51, 51, 51, .92); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-scrolled .nav__bar { background: rgba(51, 51, 51, .96); }
  .nav-open .nav__bar { background: var(--ink); border-color: transparent; }
  .nav__links { position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 32px; margin: 0; padding: 120px var(--gutter) 40px; background: var(--ink); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; overflow-y: auto; pointer-events: auto; }
  .nav-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links ul { flex-direction: column; gap: 8px; width: 100%; }
  .nav__links ul a { display: block; padding-block: 12px; font-size: 1.75rem; font-weight: 500; }
  .nav__cta { flex-direction: column; width: 100%; }
  .nav__cta .btn { width: 100%; padding: 12px; }
  .angebote { grid-template-columns: repeat(2, 1fr); }
  .slider__item, .team .slider__item { flex-basis: calc((100% - 32px) / 2); }
}
@media (max-width: 900px) {
  .split, .kontakt, .showcase__cols, .cards-head { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .split--tall .split__media img { aspect-ratio: 4 / 5; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .footer__top { flex-direction: column; gap: 48px; }
  .footer__cols { margin-left: 0; }
  .marken { grid-template-columns: 1fr; }
  .marken--seite { grid-template-columns: 1fr; }
  .kachel--big, .marken--seite .kachel { min-height: 420px; padding: 32px; }
  .banner { min-height: 0; }
  .showcase { gap: 48px; }
}
@media (max-width: 640px) {
  .nav { top: 12px; }
  .nav__logo img { width: 180px; }
  .hero { min-height: 520px; padding-block: 140px 64px; }
  .marken__right { grid-template-columns: 1fr; gap: 24px; }
  .marken { gap: 24px; }
  .marken__right .kachel, .kachel { min-height: 300px; }
  .slider__item, .team .slider__item { flex-basis: 88%; }
  .slider__nav { margin-top: 32px; }
  .angebote { gap: 16px; }
  .review { padding: 24px; }
  .footer { padding-block: 56px; }
  .footer__cols { flex-direction: column; gap: 32px; }
  .footer__bottom { flex-direction: column; margin-top: 48px; }
  .btn { padding: 10px 14px; }
  .actions .btn { flex: 1 1 auto; }
  .btn--link { padding: 8px 0; }
  .split__media .actions--over { inset: auto 16px 24px; }
}
