/* ===========================================================
   VP Sanitär – single-page site
   Angular / geometric look, matched to the business card:
   deep reflex blue, sharp edges (no rounding), diagonal cuts.
   Mobile-first, zero-JS, system fonts (fast + DSGVO-clean).
   =========================================================== */

:root {
  /* card surface = deep reflex blue */
  --reflex:     #2a2a8c;
  --reflex-700: #20206e;
  --reflex-900: #15154e;
  /* logo "P" blue = accent */
  --brand:      #1e62b4;
  --brand-600:  #1a559b;
  --brand-400:  #2f80d8;
  --ink:        #14143a;   /* near-black navy for text/the "V" */
  --emergency:  #e23b3b;
  --emergency-600: #c22d2d;

  --bg:      #ffffff;
  --bg-alt:  #f3f5fb;
  --line:    #dfe3ee;
  --text:    #1d2240;
  --muted:   #5a6080;

  --container: 1180px;
  --shadow:    0 14px 34px -22px rgba(20, 20, 58, .55);
  --shadow-lg: 0 26px 60px -28px rgba(20, 20, 58, .6);
  --ring: 0 0 0 3px rgba(47, 128, 216, .5);
  --cut: 46px;            /* diagonal cut depth */
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.62;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.07rem);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: none; box-shadow: var(--ring); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: #fff; color: var(--ink); padding: 10px 16px;
  font-weight: 700; box-shadow: var(--shadow); transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- Buttons (rectangular) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .9em 1.4em; border: 0; border-radius: 0;
  cursor: pointer; white-space: nowrap; letter-spacing: .01em;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-lg { font-size: 1.06rem; padding: 1.05em 1.7em; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 26px -14px rgba(30, 98, 180, .9); }
.btn-primary:hover { background: var(--brand-600); }
.btn-call { background: var(--brand); color: #fff; padding: .7em 1.1em; font-size: .95rem; }
.btn-call:hover { background: var(--brand-600); }
.btn-emergency { background: var(--emergency); color: #fff; box-shadow: 0 12px 26px -14px rgba(226, 59, 59, .9); }
.btn-emergency:hover { background: var(--emergency-600); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 2px solid var(--ink);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 12px 30px -18px rgba(20, 20, 58, .5); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
/* crop the stacked logo down to just the VP monogram */
.brand-mark { display: block; overflow: hidden; width: 94px; height: 40px; flex: none; }
/* logo_mit_text.png has a baked-in grey "transparency" checker (no real alpha);
   brightness lifts that grey to white, then multiply hides it on the white header. */
.brand-logo { width: 130px; height: auto; margin: -15px 0 0 -18px; mix-blend-mode: multiply; filter: brightness(1.34); }
.brand-text { font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
@media (max-width: 460px) {
  .brand-text { font-size: 1rem; }
  .header-call span { display: none; }
  .header-call { padding: .6em .7em; }
}

.main-nav { display: none; margin-left: auto; gap: 1.7rem; }
.main-nav a {
  color: var(--ink); font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .08em; padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }
.header-call { margin-left: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  background:
    linear-gradient(150deg, var(--reflex) 0%, var(--reflex-700) 55%, var(--reflex-900) 100%);
  color: #fff;
  padding: clamp(3.4rem, 8vw, 6rem) 0 clamp(4.5rem, 9vw, 7rem);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--cut)));
  overflow: hidden;
}
/* angular accent panel, echoes the card's overlapping shapes */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(47,128,216,.22), transparent 55%);
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 30% 100%);
  opacity: .8;
}
/* faint water-drop watermark, geometric brand cue */
.hero::after {
  content: ""; position: absolute; z-index: -1; right: -50px; bottom: -30px;
  width: 340px; height: 340px; opacity: .07; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C12 2 5 10 5 15a7 7 0 0 0 14 0c0-5-7-13-7-13z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C12 2 5 10 5 15a7 7 0 0 0 14 0c0-5-7-13-7-13z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hero-glow {
  position: absolute; z-index: -1; right: -8%; top: -25%;
  width: 46%; aspect-ratio: 1;
  background: var(--brand-400); opacity: .14;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  filter: blur(10px);
}
.hero-inner { position: relative; max-width: 780px; }
.hero-kicker {
  display: inline-block; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; font-size: .74rem; color: #cfe0f6;
  border-left: 3px solid var(--brand-400); padding: .25em 0 .25em .8em;
  margin-bottom: 1.3rem;
}
.hero-title {
  font-size: clamp(2.2rem, 6.6vw, 3.7rem);
  line-height: 1.04; font-weight: 800; letter-spacing: -.022em;
}
.hero-sub {
  margin-top: 1.15rem; font-size: clamp(1.05rem, 2.6vw, 1.24rem);
  color: #d6def0; max-width: 56ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; }
.hero .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .55); }
.hero .btn-primary:hover { background: #e9eefb; }

.hero-trust {
  list-style: none; padding: 0; display: flex; flex-wrap: wrap;
  margin-top: 2.5rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: #aebfe0;
}
.hero-trust li { padding: 0 1.1rem; border-left: 1px solid rgba(174,191,224,.4); }
.hero-trust li:first-child { padding-left: 0; border-left: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 660px; margin: 0 auto clamp(2.2rem, 4vw, 3.2rem); text-align: center; }
.eyebrow {
  display: inline-block; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; font-size: .74rem; color: var(--brand);
  margin-bottom: .7rem;
}
.eyebrow::before { content: "■ "; color: var(--brand); font-size: .7em; vertical-align: middle; }
.eyebrow-light { color: #9cc4f3; }
.eyebrow-light::before { color: var(--brand-400); }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
.section-lead { margin-top: .8rem; color: var(--muted); font-size: 1.05rem; }
.section-lead.light { color: #c4d2e8; }

/* ---------- Service cards (sharp, top accent bar) ---------- */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; }
.card {
  position: relative; background: #fff; padding: 1.7rem 1.5rem 1.8rem;
  transition: transform .16s ease, box-shadow .16s ease, z-index .16s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); z-index: 2; }
.card:hover::before { transform: scaleX(1); }
.card-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 1.1rem;
  background: var(--reflex); color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%); /* clipped corner */
}
.card-ic svg { width: 27px; height: 27px; fill: currentColor; }
.card h3 { font-size: 1.18rem; color: var(--ink); margin-bottom: .4rem; letter-spacing: -.01em; }
.card p { color: var(--muted); }

.card-accent::before { background: var(--emergency); transform: scaleX(1); }
.card-accent { background: linear-gradient(180deg, #fff, #fff5f5); }
.card-accent .card-ic { background: var(--emergency); }
.card-link { display: inline-block; margin-top: .9rem; font-weight: 800; color: var(--emergency); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }
.card-link:hover { color: var(--emergency-600); }

/* ---------- Gallery (sharp tiles) ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-inline: auto; }
.shot { position: relative; background: #fff; border: 1px solid var(--line); }
.shot-ph { aspect-ratio: 4 / 3; width: 100%; }
/* phone photos are portrait -> tall tiles avoid the squashed look.
   height:auto overrides the img's height attribute (a presentational hint);
   without it the fixed height wins and aspect-ratio is ignored -> stretched. */
.shot-img { aspect-ratio: 3 / 4; width: 100%; height: auto; object-fit: cover; object-position: center; }
.shot-ph {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(42,42,140,.05) 0 12px, transparent 12px 24px),
    linear-gradient(150deg, #e7ebf8, #d6def2);
}
.shot-ph svg { width: 44px; height: 44px; fill: var(--reflex); opacity: .5; }
.shot-badge {
  position: absolute; top: 0; left: 0;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: .4em .8em; color: #fff;
}
.badge-before { background: var(--ink); }
.badge-after  { background: var(--brand); }
.shot figcaption { padding: .75rem .9rem; font-weight: 700; color: var(--ink); font-size: .92rem; }
.shot figcaption em { color: var(--muted); font-style: normal; font-weight: 500; }

/* ---------- Before/after slider ---------- */
.ba-wrap { max-width: 760px; margin: 0 auto; }
.ba {
  position: relative; aspect-ratio: 4 / 3; width: 100%;
  border: 1px solid var(--line); overflow: hidden; background: #e7edf6;
  box-shadow: var(--shadow); user-select: none; touch-action: pan-y;
}
.ba:focus-within { box-shadow: var(--ring), var(--shadow); }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-clip { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }   /* left side = "Vorher" */
.ba-tag {
  position: absolute; top: 0; z-index: 3; color: #fff; padding: .42em .8em;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.ba-tag-l { left: 0; background: var(--ink); }
.ba-tag-r { right: 0; background: var(--brand); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4;
  width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(20,20,58,.12);
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; background: #fff; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
}
.ba-handle::before, .ba-handle::after { content: ""; border: 6px solid transparent; }
.ba-handle::before { border-right-color: var(--brand); }
.ba-handle::after  { border-left-color: var(--brand); }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent;
  cursor: ew-resize; z-index: 5; opacity: 0;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 100%; cursor: ew-resize; }
.ba-range::-moz-range-thumb { width: 46px; height: 999px; border: 0; cursor: ew-resize; }
.ba-wrap figcaption { text-align: center; margin-top: .85rem; font-weight: 700; color: var(--ink); font-size: .92rem; }
.ba-wrap figcaption em { color: var(--muted); font-style: normal; font-weight: 500; }

.sub-head {
  text-align: center; margin: 2.8rem 0 1.2rem;
  font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.review {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand);
  padding: 1.6rem 1.5rem;
}
.stars { color: #f5b301; letter-spacing: .12em; margin-bottom: .7rem; font-size: 1.05rem; }
.review blockquote { color: var(--ink); font-size: 1.06rem; }
.review figcaption { margin-top: 1rem; color: var(--muted); font-weight: 700; }
.ph-tag {
  display: inline-block; font-size: .66rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: #fff; background: var(--brand);
  padding: .18em .55em; margin-left: .4rem; vertical-align: middle;
}

/* ---------- Contact (reflex blue, diagonal top) ---------- */
.section-contact {
  background: linear-gradient(150deg, var(--reflex), var(--reflex-900));
  color: #fff;
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(var(--cut) * -1);
  padding-top: calc(clamp(3.2rem, 7vw, 5.5rem) + var(--cut));
}
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.section-contact .section-head { text-align: left; margin: 0; max-width: none; }
.contact-info h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.contact-phone {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: clamp(1.8rem, 6vw, 2.4rem); font-weight: 800; color: #fff;
  margin: 1.3rem 0 1.5rem; letter-spacing: -.01em;
}
.contact-phone:hover { color: #cfe0f6; text-decoration: none; }
.contact-phone .ic { color: var(--brand-400); }
.person { display: flex; align-items: center; gap: 1.3rem; margin: 1.8rem 0; }
.person img {
  width: 150px; height: 188px; flex: none; object-fit: cover; object-position: center top;
  border: 3px solid var(--brand-400); box-shadow: var(--shadow-lg);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}
.person figcaption { display: grid; gap: .25rem; }
.person figcaption strong { color: #fff; font-size: 1.35rem; letter-spacing: -.01em; }
.person figcaption span { color: #c4d2e8; font-size: .95rem; font-weight: 600; }
@media (max-width: 380px) {
  .person { gap: 1rem; }
  .person img { width: 120px; height: 150px; }
}

.contact-list { list-style: none; padding: 0; display: grid; gap: .7rem; }
.contact-list li { display: flex; align-items: center; gap: .7rem; }
.contact-list a { color: #e6eefb; }
.contact-list a:hover { color: #fff; }
.contact-list .ci {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  background: rgba(47,128,216,.28); color: #fff; font-size: 1rem;
}
.contact-area { margin-top: 1.5rem; color: #c4d2e8; }
.contact-area strong { color: #fff; }

.contact-form { background: #fff; color: var(--text); padding: 1.7rem; border-top: 4px solid var(--brand); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .35rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: .8em .9em; border: 1px solid var(--line); border-radius: 0;
  background: #fbfcff; transition: border-color .14s ease, box-shadow .14s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-400); box-shadow: var(--ring); background: #fff;
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-hint { margin-top: .8rem; font-size: .88rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c4d2e8; padding-top: 2.8rem; }
.footer-inner { display: grid; gap: 1.8rem; grid-template-columns: 1fr; padding-bottom: 1.8rem; }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-logo { background: #fff; padding: 7px 10px; display: inline-flex; line-height: 0; }
.footer-logo img { height: 48px; width: auto; mix-blend-mode: multiply; filter: brightness(1.34); }
.footer-brand p { font-weight: 700; color: #e6eefb; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.footer-col { display: grid; gap: .45rem; }
.footer-col a { color: #c4d2e8; }
.footer-col a:hover { color: #fff; }
.footer-imprint summary { cursor: pointer; font-weight: 800; color: #e6eefb; padding: .3rem 0; width: max-content; text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; }
.footer-imprint p { margin-top: .7rem; font-size: .92rem; line-height: 1.8; }
.footer-imprint .ph-tag { background: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.2rem; font-size: .85rem; color: #8b95b8; }

/* ---------- Mobile sticky call bar (full-width, sharp) ---------- */
.mobile-callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--brand); color: #fff; font-weight: 800; letter-spacing: .02em;
  padding: 1rem; border-top: 3px solid var(--brand-400);
}
.mobile-callbar:hover { text-decoration: none; }
.mobile-callbar .ic { width: 1.2em; height: 1.2em; }
body { padding-bottom: 64px; }   /* keep content clear of the fixed bar */

/* ---------- Animations ---------- */
/* hero entrance on load */
.hero-kicker, .hero-title, .hero-sub, .hero-cta, .hero-trust { animation: rise .7s both; }
.hero-title { animation-delay: .07s; }
.hero-sub   { animation-delay: .15s; }
.hero-cta   { animation-delay: .23s; }
.hero-trust { animation-delay: .31s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* scroll reveal — .reveal added by app.js only when motion is allowed (progressive) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.cards .card:nth-child(2), .gallery .shot:nth-child(2), .reviews .review:nth-child(2) { transition-delay: .07s; }
.cards .card:nth-child(3), .gallery .shot:nth-child(3), .reviews .review:nth-child(3) { transition-delay: .14s; }
.cards .card:nth-child(4), .gallery .shot:nth-child(4), .reviews .review:nth-child(4) { transition-delay: .21s; }
.cards .card:nth-child(5) { transition-delay: .28s; }

/* icon micro-motion on card hover */
.card-ic { transition: transform .22s ease; }
.card:hover .card-ic { transform: translateY(-3px) rotate(-4deg); }

/* slider handle: gentle one-time hint that it is draggable */
.ba-handle { animation: nudge 1.5s ease 1s 2; }
@keyframes nudge {
  0%, 100% { transform: translate(-50%, -50%); }
  35% { transform: translate(calc(-50% - 7px), -50%); }
  65% { transform: translate(calc(-50% + 7px), -50%); }
}

/* ---------- Extra motion (auto-disabled by the reduced-motion block below) ---------- */

/* reveal flavours: gallery tiles zoom up, reviews slide in from the side */
.gallery .shot.reveal { transform: translateY(22px) scale(.96); }
.gallery .shot.reveal.in { transform: none; }
.reviews .review.reveal { transform: translateX(-26px); }
.reviews .review.reveal.in { transform: none; }

/* gallery tile: zoom the photo on hover, nudge the corner badge */
.shot { overflow: hidden; }
.shot-img { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.shot:hover .shot-img { transform: scale(1.06); }
.shot-badge { transition: transform .2s ease; }
.shot:hover .shot-badge { transform: translateX(3px); }

/* primary buttons get a quick light sweep on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
}
.btn-primary:hover::after { left: 150%; }

/* phone icon rings when you hover any call action */
.btn-call:hover .ic, .header-call:hover .ic, .hero .btn-primary:hover .ic,
.contact-phone:hover .ic, .mobile-callbar:hover .ic { animation: ring .6s ease; transform-origin: 50% 10%; }
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-14deg); }
  40% { transform: rotate(11deg); }
  60% { transform: rotate(-7deg); }
  80% { transform: rotate(4deg); }
}

/* portrait reacts to hover */
.person img { transition: transform .3s ease, box-shadow .3s ease; }
.person:hover img { transform: translateY(-3px) scale(1.03); box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .65); }

/* review stars shimmer once as the card reveals */
.review.in .stars { animation: starpop .55s ease both; }
@keyframes starpop {
  from { opacity: 0; letter-spacing: .45em; }
  to   { opacity: 1; letter-spacing: .12em; }
}

/* hero: slow ambient drift of the diamond glow */
.hero-glow { animation: floaty 9s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(18px) rotate(8deg); }
}

/* top scroll-progress bar (width set by app.js) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300;
  background: linear-gradient(90deg, var(--brand-400), var(--brand));
  transition: width .12s linear; pointer-events: none;
}

/* ---------- Page-wide motion layer ---------- */

/* header logo reacts to hover */
.brand-logo { transition: transform .25s ease; }
.brand:hover .brand-logo { transform: scale(1.06) rotate(-2deg); }

/* hero water-drop watermark drifts opposite the glow */
.hero::after { animation: floaty2 11s ease-in-out infinite; }
@keyframes floaty2 {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-22px) rotate(-6deg); }
}

/* service-card link arrow slides on hover */
.card-link { transition: transform .18s ease; }
.card:hover .card-link, .card-link:hover { transform: translateX(4px); }

/* review cards lift like the service cards */
.review { transition: transform .16s ease, box-shadow .16s ease, border-left-color .16s ease; }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-left-color: var(--brand-400); }

/* contact rows slide + brighten on hover */
.contact-list li { transition: transform .18s ease; }
.contact-list li:hover { transform: translateX(4px); }
.contact-list .ci { transition: background .18s ease; }
.contact-list li:hover .ci { background: var(--brand); }

/* footer links + logo */
.footer-col a, .footer-imprint summary { transition: transform .18s ease, color .18s ease; }
.footer-col a:hover, .footer-imprint summary:hover { transform: translateX(4px); }
.footer-logo { transition: transform .25s ease; }
.footer-brand:hover .footer-logo { transform: scale(1.05) rotate(-2deg); }

/* mobile call bar: subtle attention pulse (mobile only) */
.mobile-callbar { animation: callpulse 2.6s ease-in-out infinite; }
@keyframes callpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 128, 216, 0); }
  50%      { box-shadow: 0 -6px 22px 0 rgba(47, 128, 216, .55); }
}

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .reviews { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-call { margin-left: 0; }
  .contact-grid { grid-template-columns: 1.05fr .95fr; align-items: start; gap: 3rem; }
  .mobile-callbar { display: none; }
  body { padding-bottom: 0; }
}
@media (min-width: 1140px) {
  .cards { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
