/* IGM Malerei – Stylesheet (v3: kräftig, malerisch, ohne Serifenschrift)
   Markenfarben: Rot #DC2626, Schwarz, Anthrazit */

:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --black: #0d0d0e;
  --charcoal: #1c1d20;
  --charcoal-2: #26272b;
  --paper: #f5f3f0;
  --white: #ffffff;
  --text: #1c1d20;
  --muted: #5c5e66;
  --line: #e4e1dc;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1160px;
  /* Pinselstrich als Hintergrundbild */
  --stroke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 11 C 28 3, 62 15, 100 9 S 168 5, 198 9 L 197 16 C 162 20, 122 12, 90 17 S 30 19, 3 16 Z' fill='%23dc2626'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--text); background: var(--white);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---------- Überschriften ---------- */
h1, h2, h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
h2 { font-size: clamp(2rem, 4.8vw, 3.3rem); margin: 0 0 16px; }

/* Pinselstrich hinter einem Wort */
.mark { position: relative; z-index: 0; display: inline-block; white-space: nowrap; font-style: normal; }
.mark::after {
  content: ""; position: absolute; z-index: -1; left: -3%; right: -3%; bottom: .02em; height: .42em;
  background: var(--stroke) no-repeat center / 100% 100%; opacity: .38;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.6s cubic-bezier(.2,.7,.2,1) 1.1s;
}
.mark.solid { color: #fff; padding-inline: .14em; }
.mark.solid::after { opacity: 1; height: 1.02em; bottom: -.04em; left: -1%; right: -1%; }
.in .mark::after, .mark.in::after, .hero .mark::after { transform: scaleX(1); }
html:not(.js) .mark::after { transform: scaleX(1); }
.hero .mark::after { animation: strokeIn 1.7s cubic-bezier(.2,.7,.2,1) 1.2s both; }
@keyframes strokeIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 17px 28px; border-radius: 999px; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(220,38,38,.7); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--black); border-color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand img { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--charcoal); }
.nav-links a:not(.btn):hover { color: var(--red); }
.nav-links .btn { padding: 11px 22px; font-size: .95rem; color: #fff; }
.nav-links .btn:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--charcoal); }
.menu-toggle svg { width: 28px; height: 28px; display: block; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--charcoal);
  padding: clamp(64px, 11vw, 140px) 0 clamp(96px, 12vw, 160px); isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(900px 500px at 85% 10%, rgba(220,38,38,.28), transparent 60%), linear-gradient(135deg, #17181b 0%, #26272b 100%);
}
.brush { position: absolute; right: -10%; top: 50%; transform: translate(var(--px, 0px), calc(-42% + var(--py, 0px))) rotate(var(--rot, 0deg)) scale(var(--sc, 1)); transform-origin: 80% 50%; width: min(960px, 82vw); z-index: -1; pointer-events: none; animation: wipe 3.4s cubic-bezier(.25,.6,.2,1) .5s both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 820px) { .brush { top: auto; bottom: 4%; transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--rot, 0deg)) scale(var(--sc, 1)); right: -45%; width: 150vw; opacity: .55; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #f3b4b4; margin: 0 0 22px; }
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--red); border-radius: 2px; }
.hero h1 {
  font-weight: 900; text-transform: uppercase; margin: 0 0 26px;
  font-size: clamp(2.3rem, 7vw, 5.2rem); line-height: 1.02; letter-spacing: -.025em; max-width: 12em;
}
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d9d9dd; max-width: 40rem; margin: 0 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 48px 0 0; color: #c9c9ce; font-size: .95rem; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
.hero .eyebrow, .hero h1, .hero .lead, .hero-cta, .facts { animation: rise 1.3s cubic-bezier(.2,.7,.2,1) both; }
.hero .eyebrow { animation-delay: .2s; } .hero h1 { animation-delay: .5s; } .hero .lead { animation-delay: 1s; } .hero-cta { animation-delay: 1.4s; } .facts { animation-delay: 1.8s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Sections + Pinselkante ---------- */
section { padding: clamp(72px, 9vw, 116px) 0; position: relative; }
.edge { position: absolute; left: 0; width: 100%; height: 38px; top: 0; transform: translateY(-96%); color: inherit; pointer-events: none; display: block; }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.kicker { color: var(--red); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; margin: 0 0 12px; }
.section-head p:not(.kicker) { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Scroll-Animation */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Leistungen */
.services { background: var(--paper); color: var(--paper); }
.services > .wrap { color: var(--text); }
.grid-services { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s, opacity 1s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -24px rgba(0,0,0,.4); border-color: #d6d2cb; }
.js .card.reveal.in:hover { transform: translateY(-5px); }
.card-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--charcoal-2); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img { transform: scale(1.06); }
.card-body { padding: 22px 26px 24px; display: flex; flex-direction: column; flex: 1; position: relative; }
.card-body::before { content: ""; position: absolute; left: 26px; top: 0; width: 46px; height: 5px; background: var(--red); border-radius: 0 0 4px 4px; transition: width .35s; }
.card:hover .card-body::before { width: 90px; }
.card h3 { font-size: 1.45rem; margin: 10px 0 10px; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); }
.card details { margin-top: 14px; }
.card summary { cursor: pointer; font-weight: 700; color: var(--red); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.card summary::-webkit-details-marker { display: none; }
.card summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.card details[open] summary::after { content: "–"; }
.card details p { margin-top: 12px; }

/* Über uns */
.about { background: var(--charcoal); color: var(--charcoal); }
.about > .wrap { color: #fff; }
.about h2 { color: #fff; }
.grid-about { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.about-item { border-top: 4px solid var(--red); padding-top: 20px; border-radius: 2px; }
.about-item h3 { font-size: 1.3rem; margin: 0 0 10px; }
.about-item p { margin: 0; color: #c4c4ca; }


/* Eckdaten */
.stats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 0 0 clamp(36px, 5vw, 60px); }
.stat { position: relative; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid #34353a; border-radius: var(--radius); padding: 24px 24px 22px 28px; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.stat b { display: block; font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.stat b em { font-style: normal; color: var(--red); }
.stat > span { display: block; color: #c4c4ca; margin-top: 10px; }

/* Bilder im Markenstil: Symbol hebt sich beim Darüberfahren */
.card-img .icon { transition: transform .55s cubic-bezier(.2,.7,.2,1); transform-box: fill-box; transform-origin: center; }
.card:hover .card-img .icon { transform: translateY(-8px) rotate(-2deg) scale(1.03); }

/* Anrufknopf pulsiert sanft */
.call-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(220,38,38,.55); animation: ring 2.6s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.5); } 70%, 100% { box-shadow: 0 0 0 18px rgba(220,38,38,0); } }

/* Ablauf */
.process { background: #fff; color: #fff; }
.process > .wrap { color: var(--text); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 62px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50% 46% 52% 48%;
  background: var(--red); color: #fff; font: 800 1.2rem/48px var(--sans); text-align: center; transform: rotate(-4deg);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 62px; right: -12px; height: 4px; border-radius: 2px; background: var(--line); }
.steps h3 { margin: 0 0 6px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .steps li::after { display: none; } }

/* Bewertungen */
.reviews { background: var(--paper); color: var(--paper); }
.reviews > .wrap { color: var(--text); }
.review-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 860px; margin-inline: auto; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 26px; text-align: center; }
.badge-g { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); margin-bottom: 14px;
  font: 800 1.7rem/1 Arial, var(--sans); }
.badge-g span { background: conic-gradient(from -40deg, #ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.badge-h { display: inline-block; background: #fcd116; color: #111; font-weight: 900; letter-spacing: .03em; padding: 8px 18px; border-radius: 6px; margin-bottom: 14px; }
.review-card h3 { font-size: 1.15rem; margin: 0 0 12px; }
.review-card p { margin: 0 0 14px; color: var(--muted); }
.review-card .stars { display: flex; justify-content: center; gap: 3px; margin-bottom: 8px; }
.review-card .score { font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.review-card .note { font-size: .93rem; }
.review-link { color: var(--red); font-weight: 700; text-decoration: none; }
.review-link:hover { text-decoration: underline; }

/* Kontakt */
.contact { background: #fff; color: #fff; }
.contact > .wrap { color: var(--text); }
.contact-grid { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr 1.15fr; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { margin-bottom: 14px; }
.contact-info > p { color: var(--muted); margin: 0 0 28px; font-size: 1.08rem; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.info-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--red); color: #fff; display: grid; place-items: center; }
.info-list .ico svg { width: 20px; height: 20px; }
.info-list strong { display: block; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.info-list a { text-decoration: none; font-weight: 700; font-size: 1.08rem; }
.info-list a:hover { color: var(--red); }
.info-list span.val { font-weight: 700; font-size: 1.08rem; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 38px); box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); }
.form-card h3 { font-size: 1.6rem; margin: 0 0 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff; border: 1.5px solid #cfcbc4; border-radius: 10px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(220,38,38,.15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .86rem; color: var(--muted); margin: 4px 0 18px; }
.consent a { color: var(--text); }
.form-card .btn { width: 100%; }
.form-card .btn[disabled] { opacity: .7; cursor: wait; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 500; display: none; }
.form-status.ok { display: block; background: #e8f6ec; color: #17612f; border: 1px solid #b7e1c3; }
.form-status.err { display: block; background: #fdeaea; color: #8c1d1d; border: 1px solid #f3bcbc; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #b9b9bf; padding: 54px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; padding-bottom: 32px; border-bottom: 1px solid #2c2d31; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 64px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; margin-bottom: 14px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: .88rem; }

/* Fester Anruf-Knopf am Handy */
.call-fab {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--red); color: #fff; text-decoration: none;
  padding: 14px 20px; border-radius: 999px; font-weight: 800; gap: 10px; align-items: center; box-shadow: 0 12px 28px -8px rgba(220,38,38,.6);
}
.call-fab svg { width: 20px; height: 20px; }
@media (max-width: 820px) { .call-fab { display: inline-flex; } body { padding-bottom: 70px; } }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 28px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.legal h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.legal p, .legal li { color: #34353a; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--red); }
.back { display: inline-block; margin-bottom: 18px; text-decoration: none; color: var(--muted); font-weight: 600; }
.back:hover { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mark::after { transform: scaleX(1); }
}

/* Chat-Assistent */
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chat-fab { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 800; color: #fff; background: #1c1c1f; padding: 13px 18px; border-radius: 999px; box-shadow: 0 12px 28px -8px rgba(0,0,0,.5); }
.chat-fab svg { width: 20px; height: 20px; }
.chat-fab:hover { background: #2d2e33; }
.chat-panel { width: min(360px, calc(100vw - 32px)); max-height: min(560px, 72vh); display: flex; flex-direction: column; background: #fff; color: #1c1c1f; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px -12px rgba(0,0,0,.5); animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 16px; background: #1c1c1f; color: #fff; border-bottom: 4px solid var(--red); }
.chat-head strong { display: block; font-weight: 800; }
.chat-head span { font-size: .78rem; opacity: .75; }
.chat-head button { background: none; border: 0; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.chat-log { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 120px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: .95rem; line-height: 1.45; animation: rise .4s both; }
.msg.bot { background: #f0eeea; border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.msg a.act { display: table; margin-top: 12px; padding: 8px 12px; border-radius: 999px; background: #1c1c1f; color: #fff; font-weight: 700; text-decoration: none; font-size: .88rem; }
.msg.typing { color: #777; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid #e7e4de; }
.chat-chips button { font: inherit; font-size: .88rem; font-weight: 700; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--red); background: #fff; color: var(--red); cursor: pointer; }
.chat-chips button:hover { background: var(--red); color: #fff; }
@media (max-width: 820px) { .chat { bottom: 80px; } }
