/* Lackiererei Ingo Müller – Stylesheet */
@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #191919;
  --bg-2: #202020;
  --surface: #262626;
  --line-dark: #3a3a3a;
  --paper: #ffffff;
  --paper-2: #f5f5f5;
  --line-light: #e2e2e2;
  --ink: #191919;
  --ink-2: #404040;
  --on-dark: #f5f5f5;
  --on-dark-2: #b0b0b0;
  --accent: #fb2056;
  --accent-strong: #da1c4b; /* Text & Flächen mit weißer Schrift (AA auf Weiß/Hellgrau) */
  --accent-hi: #b8143c;
  --accent-ink: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 20px 50px -24px rgb(0 0 0 / .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Farbfächer */
  --sw-1: #da1c4b; --sw-2: #fb2056; --sw-3: #f2b33d; --sw-4: #2d6a4f; --sw-5: #2a6f97; --sw-6: #adb5bd; --sw-7: #191919;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--accent-strong); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.center { text-align: center; margin-top: 40px; }
.muted { color: var(--ink-2); }
.site-footer .muted { color: var(--on-dark-2); }

/* ---------- Typografie ---------- */
h1, h2, h3, .h2, .h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
.h2 { font-size: clamp(30px, 4.2vw, 50px); }
.h3 { font-size: clamp(22px, 2.4vw, 30px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 60ch; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-strong);
}
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: currentColor; }
.hero .kicker { color: var(--accent); }
.kicker--dark { color: #fff; }
.accent-text { color: var(--accent-strong); }
.prose p { margin: 0 0 1.1em; max-width: 64ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; letter-spacing: .01em;
  border: 2px solid transparent; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent-strong); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hi); }
.btn--ghost { border-color: rgb(255 255 255 / .45); color: #fff; background: rgb(255 255 255 / .06); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: #fff; background: rgb(255 255 255 / .14); }
.btn--line { border-color: currentColor; color: inherit; }
.btn--line:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-light); color: var(--ink);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.site-footer .brand { color: #fff; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background:
    linear-gradient(135deg, transparent 0 46%, rgb(255 255 255 / .9) 46% 54%, transparent 54%),
    conic-gradient(from 200deg, var(--sw-1), var(--sw-2), var(--sw-3), var(--sw-2), var(--sw-1));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .15);
}
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.05; letter-spacing: -.01em; }
.brand-text small { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.site-footer .brand-text small { color: var(--on-dark-2); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--accent-hi); background: rgb(251 32 86 / .08); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid var(--line-light); background: transparent; color: var(--ink); cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; }
  .bars::after { top: 6px; }
  [data-open] .bars { background: transparent; }
  [data-open] .bars::before { transform: translateY(6px) rotate(45deg); }
  [data-open] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; padding: 12px var(--gutter) 22px;
    background: #fff; border-bottom: 1px solid var(--line-light); box-shadow: 0 18px 30px -18px rgb(0 0 0 / .18);
    transform-origin: top; transform: scaleY(.96); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  [data-open] .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a { font-size: 18px; padding: 14px 16px; border-radius: 12px; }
}

/* ---------- Farbfächer ---------- */
.swatches { display: flex; height: 6px; }
.swatches i { flex: 1; }
.swatches i:nth-child(1) { background: var(--sw-1); }
.swatches i:nth-child(2) { background: var(--sw-2); }
.swatches i:nth-child(3) { background: var(--sw-3); }
.swatches i:nth-child(4) { background: var(--sw-4); }
.swatches i:nth-child(5) { background: var(--sw-5); }
.swatches i:nth-child(6) { background: var(--sw-6); }
.swatches i:nth-child(7) { background: var(--sw-7); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88svh, 860px); display: grid; align-items: end; color: #fff; background: var(--bg); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media .hero-img, .hero-media .img-ph { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(18 18 18 / .92) 0%, rgb(18 18 18 / .72) 38%, rgb(18 18 18 / .15) 75%),
    linear-gradient(0deg, rgb(18 18 18 / .85) 0%, transparent 45%);
}
.hero-inner { padding: 120px 0 clamp(64px, 9vw, 110px); }
.hero-title { font-size: clamp(44px, 8.4vw, 104px); line-height: .98; letter-spacing: -.035em; margin-bottom: 24px; max-width: 12ch; }
.hero-lead { font-size: clamp(18px, 1.8vw, 22px); color: #dddddd; max-width: 46ch; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.swatches--hero { position: absolute; left: 0; right: 0; bottom: 0; }

/* ---------- Fakten ---------- */
.facts { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line-light); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 30px 24px 30px 0; border-right: 1px solid var(--line-light); }
.fact + .fact { padding-left: 24px; }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.fact span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 800px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact, .fact + .fact { padding: 22px 16px; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .fact:nth-child(odd) { border-right: 1px solid var(--line-light); padding-left: 0; }
  .fact:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--alt { background: var(--paper-2); color: var(--ink); }
.section--alt .prose { color: var(--ink-2); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row .h2 { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split--media { grid-template-columns: 1fr 1fr; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split--intro .prose { font-size: 18px; color: var(--ink-2); }
@media (max-width: 860px) {
  .split, .split--media { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* ---------- Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; display: block; padding: 30px 26px 32px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line-light); text-decoration: none; color: var(--ink-2);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; overflow: hidden;
}
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
a.card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 20px 40px -22px rgb(0 0 0 / .28); }
a.card:hover::after { transform: scaleX(1); }
.card h3 { font-size: 21px; margin: 18px 0 10px; color: var(--ink); }
.card p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.card-no { font-family: var(--font-display); font-size: 14px; color: var(--accent-strong); letter-spacing: .08em; }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Bilder ---------- */
.framed { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.img-ph {
  width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, rgb(0 0 0 / .03) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #ececec, #dcdcdc);
}
.hero-media .img-ph { border-radius: 0; aspect-ratio: auto; }
.media-frame { position: relative; }
.media-frame::before {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 45%; height: 45%;
  border-radius: var(--radius-lg); background: var(--accent); z-index: 0;
}
.media-frame > * { position: relative; z-index: 1; }

/* ---------- Galerie ---------- */
.g-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.g-item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .25s var(--ease);
}
.g-item:hover img { transform: scale(1.05); }
.g-item:hover::after, .g-item:focus-visible::after { box-shadow: inset 0 0 0 4px var(--accent); }
.g-item[hidden] { display: none; }
@media (max-width: 900px) { .g-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (max-width: 480px) { .g-grid--teaser .g-item:nth-child(n+5) { display: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line-light); background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.chip span { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active span { background: var(--accent-strong); color: var(--accent-ink); }
.empty { padding: 40px; border: 2px dashed var(--line-light); border-radius: var(--radius-lg); text-align: center; color: var(--ink-2); }

/* Lightbox */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(12 12 12 / .96); color: #fff; }
.lb::backdrop { background: rgb(12 12 12 / .96); }
.lb[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { display: grid; place-items: center; padding: 64px 72px 12px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.lb-bar { display: flex; justify-content: center; gap: 12px; padding: 14px 16px 22px; font-size: 14px; color: var(--on-dark-2); }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .18); background: rgb(255 255 255 / .06); color: #fff; cursor: pointer; font-size: 22px; line-height: 1;
}
.lb-btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lb-stage { padding: 64px 8px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
}

/* ---------- Unterseiten ---------- */
.page-hero {
  position: relative; background: var(--paper-2); color: var(--ink); padding: clamp(70px, 10vw, 130px) 0 clamp(56px, 7vw, 90px); overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; z-index: -1; right: -12%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(251 32 86 / .14), transparent 62%);
}
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--sw-1), var(--sw-2), var(--sw-3), var(--sw-4), var(--sw-5), var(--sw-6), var(--sw-7)); }
.page-title { font-size: clamp(40px, 6.4vw, 80px); line-height: 1; letter-spacing: -.035em; color: var(--ink); max-width: 16ch; }
.page-hero .lead { color: var(--ink-2); }
.page-hero--slim { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-hero--404 { min-height: 70vh; display: grid; align-items: center; }

.services { display: grid; gap: clamp(56px, 8vw, 104px); }
.service { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; scroll-margin-top: 100px; }
.service:nth-child(even) .service-media { order: 2; }
.service-body p { font-size: 18px; color: var(--ink-2); max-width: 52ch; }
.service-body .h3 { margin-top: 12px; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-media { order: 0; }
}
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: translateY(-1px); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; gap: 10px; padding: 32px 28px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line-light); text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.contact-card--primary { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.contact-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.contact-value { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -.02em; }
.contact-value--sm { font-size: clamp(19px, 1.8vw, 22px); word-break: break-word; }
.contact-hint { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: 15px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Rechtstexte */
.prose--legal { max-width: 760px; }
.prose--legal h2 { font-size: 22px; margin: 2em 0 .6em; }
.prose--legal h2:first-child { margin-top: 0; }
.prose--legal a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---------- CTA ---------- */
.cta { background: var(--accent-strong); color: var(--accent-ink); padding: clamp(56px, 8vw, 96px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-title { font-size: clamp(34px, 5vw, 60px); line-height: 1; margin-bottom: 12px; }
.cta p { margin: 0; font-size: 18px; max-width: 44ch; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cta-phone {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.03em; line-height: 1;
  text-decoration: none; padding: 18px 30px; border-radius: 999px; background: var(--ink); color: #fff; transition: transform .2s var(--ease);
}
.cta-phone:hover { transform: translateY(-3px); }
.cta-mail { font-weight: 600; padding-left: 30px; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: var(--on-dark-2); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.brand--footer { margin-bottom: 16px; }
.footer-h { font-family: var(--font-body); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid var(--line-dark); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Anruf-Button mobil ---------- */
.callfab { display: none; }
@media (max-width: 700px) {
  .callfab {
    position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 20px 14px 16px; border-radius: 999px; background: var(--accent-strong); color: var(--accent-ink);
    font-weight: 700; text-decoration: none; box-shadow: 0 12px 30px -8px rgb(0 0 0 / .5);
  }
  .callfab svg { width: 20px; height: 20px; fill: currentColor; }
  .site-footer { padding-bottom: 76px; }
}

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