/* ============================================================
   RPM METALLBAU — Demo-Relaunch (webziger.de)
   Konzept: „Kompetenz im Metallbau" — Markenorange + Anthrazit + Stahl
   Palette & Schrift abgestimmt auf die Originalseite:
   Orange #FE6A00 · Anthrazit #2C2C2C · Weiß · Roboto (wie Original)
   ============================================================ */

:root {
  --ember: #FE6A00;
  --ember-bright: #FFA362;
  --ember-deep: #EC4805;
  --brass: #AEB4BB;      /* gebürsteter Stahl-Akzent (passend zum Metallbau) */
  --iron-950: #17171A;
  --iron-900: #232326;
  --iron-800: #2C2C2F;
  --ivory: #F4F5F6;
  --ink: #232326;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--iron-950);
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ember); color: #fff; }

/* dezente Korn-Textur über allem (Werkstatt-Patina) */
.grain::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- Typo-Helfer ---------- */
.eyebrow {
  font-family: "Roboto", sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ember-bright);
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember));
}
.light .eyebrow { color: var(--ember-deep); }
.light .eyebrow::before { background: linear-gradient(90deg, transparent, var(--ember-deep)); }

/* Markenrot als klarer Akzent — solide, kein KI-Gradient-Geflacker */
.ember-text { color: var(--ember); }
.light .ember-text { color: var(--ember-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .95rem 1.9rem;
  border-radius: 9999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(120deg, var(--ember-bright), var(--ember) 55%, var(--ember-deep));
  color: #ffffff;
  box-shadow: 0 10px 30px -8px rgba(254, 106, 0, .55), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(254, 106, 0, .75), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-ghost {
  border: 1px solid rgba(244, 245, 246, .28);
  color: var(--ivory);
  background: rgba(23, 23, 26, .35);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--ember); color: var(--ember-bright); transform: translateY(-2px); }
.light .btn-ghost { border-color: rgba(35, 35, 38, .25); color: var(--ink); background: rgba(255,255,255,.4); }
.light .btn-ghost:hover { border-color: var(--ember-deep); color: var(--ember-deep); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(23, 23, 26, .82);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(254, 106, 0, .16);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, .8);
}
.nav-link {
  position: relative;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244, 245, 246, .72);
  padding: .4rem 0;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--ember-bright), var(--ember));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--ivory); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(23, 23, 26, .97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: "Roboto", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ivory);
}
.mobile-menu a:hover { color: var(--ember-bright); }

/* ---------- Hero ---------- */
.hero-vignette {
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(23,23,26,.1) 0%, rgba(23,23,26,.65) 70%, rgba(23,23,26,.92) 100%),
    linear-gradient(180deg, rgba(23,23,26,.72) 0%, rgba(23,23,26,.25) 34%, rgba(23,23,26,.35) 62%, var(--iron-950) 100%);
}
.hero-headline { text-wrap: balance; }

/* Qualitäts-Siegel (statisch, wie ein gestempeltes Meister-Zeichen) */
.seal { transform-origin: center; }

.scroll-hint {
  width: 26px; height: 44px;
  border: 2px solid rgba(244,245,246,.4);
  border-radius: 999px;
  position: relative;
}
.scroll-hint::after {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 9px;
  margin-left: -2px;
  border-radius: 999px;
  background: var(--ember-bright);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- glühender Trenner ---------- */
.glow-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember-deep) 18%, var(--ember-bright) 50%, var(--ember-deep) 82%, transparent);
  box-shadow: 0 0 18px rgba(254, 106, 0, .55);
  transform: scaleX(0);
  transform-origin: center;
}

/* ---------- Sektionen ---------- */
.light { background: var(--ivory); color: var(--ink); }
.light-paper {
  background:
    radial-gradient(80% 60% at 12% 0%, rgba(254, 106, 0, .07), transparent 60%),
    var(--ivory);
}

/* ---------- Stats ---------- */
.stat-num {
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2.4rem; }
.timeline-rail {
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: rgba(244, 245, 246, .12);
}
.timeline-fill {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--ember-bright), var(--ember) 60%, var(--ember-deep));
  box-shadow: 0 0 16px rgba(254, 106, 0, .8);
  transform: scaleY(0);
  transform-origin: top;
}
.timeline-item { position: relative; padding-bottom: 2.6rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.4rem; top: 4px;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--iron-900);
  border: 2px solid var(--ember);
  box-shadow: 0 0 14px rgba(254, 106, 0, .65);
}
.timeline-dot::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 999px;
  background: var(--ember-bright);
}
.timeline-year {
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
}

/* ---------- Prozess-Steps ---------- */
.step-card {
  position: relative;
  border-radius: 1.4rem;
  background: #fff;
  border: 1px solid rgba(35, 35, 38, .08);
  box-shadow: 0 20px 50px -30px rgba(35, 35, 38, .35);
  padding: 2rem 1.8rem 1.8rem;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: 0 32px 60px -30px rgba(236, 72, 5, .45); }
.step-num {
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  background: linear-gradient(160deg, var(--ember-bright), var(--ember-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.step-card ul { margin-top: 1rem; display: grid; gap: .55rem; }
.step-card li {
  position: relative;
  padding-left: 1.35rem;
  font-size: .92rem;
  line-height: 1.55;
  color: rgba(35, 35, 38, .78);
}
.step-card li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: .55rem; height: 2px;
  background: var(--ember);
}

/* ---------- Leistungsspektrum-Karten ---------- */
.svc-card {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  background: var(--iron-800);
  aspect-ratio: 4 / 3.4;
  isolation: isolate;
  cursor: pointer;
}
.svc-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .6, .2, 1), filter .5s ease;
  filter: saturate(.92) contrast(1.02);
}
.svc-card:hover img { transform: scale(1.07); filter: saturate(1.05); }
.svc-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(23,23,26,0) 30%, rgba(23,23,26,.55) 62%, rgba(23,23,26,.92) 100%);
  z-index: 1;
}
.svc-card .svc-label {
  position: absolute;
  left: 1.15rem; right: 1.15rem; bottom: 1.05rem;
  z-index: 2;
}
.svc-card .svc-title {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: #fff;
}
.svc-card .svc-sub {
  font-size: .8rem;
  color: rgba(244, 245, 246, .72);
  margin-top: .2rem;
  line-height: 1.45;
}
.svc-card .svc-ring {
  position: absolute; inset: 0;
  border-radius: 1.2rem;
  border: 1px solid rgba(244, 245, 246, .1);
  z-index: 3;
  pointer-events: none;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.svc-card:hover .svc-ring {
  border-color: rgba(254, 106, 0, .65);
  box-shadow: inset 0 0 0 1px rgba(254, 106, 0, .35), 0 12px 40px -12px rgba(254, 106, 0, .35);
}

/* ---------- Werkstoff-Chips ---------- */
.material-chip {
  border-radius: 1.2rem;
  padding: 1.6rem 1.4rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 245, 246, .12);
  transition: transform .3s ease, box-shadow .3s ease;
}
.material-chip:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -24px rgba(0,0,0,.9); }
.material-chip h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
}
.mat-stahl { background: linear-gradient(150deg, #3c3f45, #191a1d 60%, #2a2d33); }
.mat-edelstahl { background: linear-gradient(150deg, #aeb4bb, #6b7078 45%, #cfd4d9 90%); color: #16181c; }
.mat-aluminium { background: linear-gradient(150deg, #9aa0a8, #565b62 45%, #b7bcc3 92%); color: #16181c; }
.mat-glas { background: linear-gradient(150deg, #3f5a63, #1f333a 55%, #5b818c 95%); }
.material-chip .mat-sheen {
  position: absolute;
  inset: -60% auto auto -30%;
  width: 60%; height: 220%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  transition: transform .7s ease;
}
.material-chip:hover .mat-sheen { transform: rotate(24deg) translateX(320%); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(244, 245, 246, .82);
  white-space: nowrap;
}
.marquee-item .spark-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--ember);
  box-shadow: 0 0 12px rgba(254, 106, 0, .9);
}

/* ---------- Galerie ---------- */
.masonry { columns: 2; column-gap: 1rem; }
@media (min-width: 768px) { .masonry { columns: 3; } }
@media (min-width: 1200px) { .masonry { columns: 4; } }
.masonry a {
  display: block;
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: .9rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(244, 245, 246, .08);
}
.masonry img {
  width: 100%;
  display: block;
  transition: transform .7s cubic-bezier(.2,.6,.2,1), filter .4s ease;
  filter: saturate(.95);
}
.masonry a:hover img { transform: scale(1.05); filter: saturate(1.08); }
.masonry a::after {
  content: "+";
  position: absolute;
  right: .7rem; bottom: .6rem;
  width: 1.9rem; height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(140deg, var(--ember-bright), var(--ember));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.masonry a:hover::after { opacity: 1; transform: translateY(0); }

.video-frame {
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(254, 106, 0, .25);
  box-shadow: 0 30px 80px -30px rgba(254, 106, 0, .35), 0 20px 60px -20px rgba(0,0,0,.8);
  position: relative;
}
.video-frame video { display: block; width: 100%; }

/* ---------- Referenzen ---------- */
.ref-item {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(35, 35, 38, .12);
  transition: padding-left .25s ease;
}
.ref-item:hover { padding-left: .5rem; }
.ref-index {
  font-family: "Roboto", sans-serif;
  font-size: .72rem;
  color: var(--ember-deep);
  letter-spacing: .1em;
}
.ref-name {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  color: var(--ink);
  transition: color .2s ease;
}
.ref-item:hover .ref-name { color: var(--ember-deep); }

/* ---------- Kontakt ---------- */
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(244, 245, 246, .1);
}
.contact-row:last-child { border-bottom: none; }
.contact-ico {
  flex: none;
  width: 2.6rem; height: 2.6rem;
  border-radius: .9rem;
  display: grid;
  place-items: center;
  background: rgba(254, 106, 0, .12);
  border: 1px solid rgba(254, 106, 0, .3);
  color: var(--ember-bright);
}

.map-shell {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(244, 245, 246, .12);
  min-height: 300px;
  background: var(--iron-800);
}
.map-shell iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; filter: grayscale(.2) contrast(1.05); }
.map-cover {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
  background:
    radial-gradient(90% 90% at 50% 20%, rgba(254, 106, 0, .12), transparent 60%),
    linear-gradient(180deg, rgba(23, 23, 26, .92), rgba(23, 23, 26, .96));
}

.field {
  width: 100%;
  border-radius: .9rem;
  background: rgba(244, 245, 246, .05);
  border: 1px solid rgba(244, 245, 246, .16);
  color: var(--ivory);
  padding: .85rem 1.1rem;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field::placeholder { color: rgba(244, 245, 246, .38); }
.field:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(254, 106, 0, .18);
  background: rgba(244, 245, 246, .08);
}

/* ---------- Karriere: Job-Cards, Benefits, Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: "Roboto", sans-serif;
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(35, 35, 38, .18);
  color: rgba(35, 35, 38, .6);
  white-space: nowrap;
}
.job-card {
  position: relative;
  border-radius: 1.4rem;
  background: #fff;
  border: 1px solid rgba(35, 35, 38, .08);
  box-shadow: 0 20px 50px -30px rgba(35, 35, 38, .35);
  padding: 1.9rem 1.8rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.job-card:hover {
  transform: translateY(-5px);
  border-color: rgba(254, 106, 0, .45);
  box-shadow: 0 30px 60px -28px rgba(236, 72, 5, .5);
}
.job-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ember-bright), var(--ember-deep));
  opacity: 0;
  transition: opacity .3s ease;
}
.job-card:hover::before { opacity: 1; }
.job-title {
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.15;
}
.job-card ul { margin-top: .9rem; display: grid; gap: .45rem; }
.job-card li {
  position: relative;
  padding-left: 1.3rem;
  font-size: .9rem;
  line-height: 1.5;
  color: rgba(35, 35, 38, .72);
}
.job-card li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: .55rem; height: 2px;
  background: var(--ember);
}
.apply-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.2rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--ember-deep);
  transition: gap .2s ease, color .2s ease;
}
.apply-link:hover { gap: .8rem; color: var(--ember); }

.benefit-card {
  border-radius: 1.3rem;
  background: #fff;
  border: 1px solid rgba(35, 35, 38, .08);
  padding: 1.7rem 1.5rem;
  box-shadow: 0 16px 40px -28px rgba(35, 35, 38, .3);
  transition: transform .3s ease, box-shadow .3s ease;
}
.benefit-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -26px rgba(236, 72, 5, .4); }
.benefit-ico {
  width: 3rem; height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(254, 106, 0, .16), rgba(236, 72, 5, .08));
  border: 1px solid rgba(236, 72, 5, .25);
  color: var(--ember-deep);
}
.benefit-card h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  margin-top: 1rem;
}
.benefit-card p { margin-top: .45rem; font-size: .9rem; line-height: 1.55; color: rgba(35, 35, 38, .68); }

.check-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.check-item .check-dot {
  flex: none;
  width: 1.5rem; height: 1.5rem;
  margin-top: .1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(254, 106, 0, .14);
  border: 1px solid rgba(254, 106, 0, .4);
  color: var(--ember-bright);
}

select.field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FE6A00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 1rem;
  padding-right: 2.6rem;
}
select.field option { background: var(--iron-900); color: var(--ivory); }

.photo-frame {
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(244, 245, 246, .12);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  position: relative;
}
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.light .photo-frame { border-color: rgba(35, 35, 38, .1); box-shadow: 0 30px 70px -34px rgba(35, 35, 38, .45); }

/* ---------- Reveals (JS setzt is-in / GSAP übernimmt wenn geladen) ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.6,.2,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal], .no-motion [data-reveal] { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer-link { color: rgba(244,245,246,.55); transition: color .2s ease; font-size: .85rem; }
.footer-link:hover { color: var(--ember-bright); }

/* to-top */
.to-top {
  position: fixed;
  right: 1.2rem; bottom: 1.2rem;
  z-index: 90;
  width: 3rem; height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--ember-bright), var(--ember-deep));
  color: #ffffff;
  box-shadow: 0 14px 30px -10px rgba(254, 106, 0, .6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* Demo-Hinweis-Badge */
.demo-pill {
  font-family: "Roboto", sans-serif;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 1px dashed rgba(254, 106, 0, .55);
  color: var(--ember-bright);
}

@media (prefers-reduced-motion: reduce) {
  .material-chip .mat-sheen { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ============================================================
   Persönliche Handschrift + Messing-Details + UX-Feinschliff
   ============================================================ */

/* Handschriftliche Signatur / Notizen (persönlicher Touch statt Stock-Optik) */
.handwrite {
  font-family: "Caveat", cursive;
  line-height: 1;
}
.signature {
  font-family: "Caveat", cursive;
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  line-height: .9;
  color: var(--ivory);
}
.light .signature { color: var(--ink); }
.signature-underline {
  display: block;
  width: 8.5rem; height: 10px;
  margin-top: .1rem;
  color: var(--brass);
}
.hand-note {
  font-family: "Caveat", cursive;
  font-size: 1.55rem;
  color: var(--brass);
  transform: rotate(-4deg);
  display: inline-block;
}

/* zarte Messing-Haarlinie — greift die Armaturen der echten Bäder auf */
.brass-rule {
  width: 3.2rem; height: 2px;
  background: linear-gradient(90deg, var(--brass), transparent);
  border-radius: 2px;
}

/* Siegel-Ring in Messing statt kühlem Grau (warmer, hochwertiger) */
.seal text { fill: rgba(174, 180, 187, .8) !important; }

/* UX: klare, konsistente Fokus-Zustände (Tastatur-Bedienung) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--ember-bright);
  outline-offset: 3px;
  border-radius: 6px;
}
.light a:focus-visible,
.light button:focus-visible,
.light input:focus-visible,
.light textarea:focus-visible,
.light select:focus-visible { outline-color: var(--ember-deep); }

/* ============================================================
   Trust-Siegel im Hero — echte Zertifikats-/Partner-Logos
   auf weißen „zertifiziert durch"-Kacheln
   ============================================================ */
.trust-strip__label {
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(244, 245, 246, .5);
  margin-bottom: .75rem;
}
.trust-badges { display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; }
.logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.15rem;
  padding: 0 1.05rem;
  background: #fff;
  border-radius: .7rem;
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.logo-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(254, 106, 0, .4); }
.logo-tile img { width: auto; display: block; }
.logo-tile.t-tuv img  { height: 1.05rem; }   /* TÜV-NORD-Wortmarke (breit) */
.logo-tile.t-renz img { height: 2.2rem; }     /* Renz-Hexagon (hoch) */
.logo-tile .ce { display: inline-flex; align-items: center; gap: .55rem; }
.logo-tile .ce svg { height: 1.55rem; width: auto; color: #16181c; }
.logo-tile .ce b {
  font: 700 .92rem/1 "Roboto", sans-serif;
  color: #16181c; letter-spacing: .01em;
}
.logo-tile .partner {
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1;
}
.logo-tile .partner b {
  font: 700 1.02rem/1 "Roboto", sans-serif;
  color: #16181c; letter-spacing: .02em;
}
.logo-tile .partner small {
  font: 500 .56rem/1 "Roboto", sans-serif;
  letter-spacing: .12em; text-transform: uppercase;
  color: #6b6f76; margin-top: 3px;
}
@media (max-width: 480px) {
  .logo-tile { height: 2.8rem; padding: 0 .85rem; }
  .logo-tile.t-renz img { height: 1.95rem; }
}

/* ============================================================
   Leistungen-Dropdown (Nav)
   ============================================================ */
.nav-item { position: relative; display: flex; align-items: center; }
.has-dropdown > .nav-link { display: inline-flex; align-items: center; gap: .32rem; cursor: pointer; }
.has-dropdown > .nav-link .caret { transition: transform .25s ease; }
.has-dropdown:hover > .nav-link .caret,
.has-dropdown:focus-within > .nav-link .caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 460px; max-width: 90vw; background: #fff; border-radius: 1rem;
  border: 1px solid rgba(35, 35, 38, .08);
  box-shadow: 0 34px 70px -34px rgba(0,0,0,.55);
  padding: .6rem; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease; z-index: 120;
}
.nav-dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(10px);
}
.nav-dropdown a { display: flex; flex-direction: column; gap: 1px; padding: .62rem .8rem; border-radius: .65rem; color: var(--ink); transition: background .18s ease, color .18s ease; }
.nav-dropdown a b { font-family: "Roboto", sans-serif; font-size: .9rem; font-weight: 700; }
.nav-dropdown a span { font-size: .76rem; color: rgba(35,35,38,.55); }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: rgba(254,106,0,.08); color: var(--ember-deep); }
.nav-dropdown a:hover span, .nav-dropdown a:focus-visible span { color: var(--ember-deep); }
.nav-dropdown__all { border-bottom: 1px solid rgba(35,35,38,.08); margin-bottom: .4rem; padding-bottom: .5rem; }
.nav-dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .3rem; }

/* Mobile: Leistungen-Accordion */
.m-toggle { display: inline-flex; align-items: center; gap: .4rem; background: none; border: none; cursor: pointer; font-family: "Roboto", sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--ivory); }
.m-toggle .caret { transition: transform .25s ease; }
.m-toggle.open .caret { transform: rotate(180deg); }
.m-sub { display: flex; flex-direction: column; align-items: center; gap: .6rem; max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.m-sub.open { max-height: 60vh; margin-top: .3rem; }
.m-sub a { font-size: 1.05rem !important; color: rgba(244,245,246,.7) !important; }

/* ============================================================
   Zertifikate — Kachel-Grid (ersetzt Marquee)
   ============================================================ */
.cert-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .cert-grid { grid-template-columns: repeat(3, 1fr); } }

.cert-tile {
  display: block;
  background: #fff; border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.55);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  isolation: isolate;
}
.cert-tile:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -14px rgba(254,106,0,.45); }
.cert-tile__cover {
  display: block;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  background: #f4f5f6;
  position: relative;
}
.cert-tile__cover img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform .6s cubic-bezier(.2,.6,.2,1);
}
.cert-tile:hover .cert-tile__cover img { transform: scale(1.06); }
.cert-tile__badge {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(23,23,26,.82); backdrop-filter: blur(6px);
  color: var(--ivory); font: 600 .62rem/1 "Roboto", sans-serif; letter-spacing: .04em;
  padding: .38rem .6rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
}
.cert-tile__badge svg { width: .8rem; height: .8rem; flex: none; }
.cert-tile__caption { padding: 1.1rem 1.2rem 1.3rem; }
.cert-tile__name { font: 700 .98rem/1.3 "Roboto", sans-serif; color: #16181c; }
.cert-tile__issuer { font: 500 .78rem/1.3 "Roboto", sans-serif; color: #6b6f76; margin-top: .3rem; display: flex; align-items: center; gap: .4rem; }
.cert-tile__issuer .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--ember); flex: none; }

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-family: "Roboto", sans-serif; font-weight: 600; font-size: .74rem; letter-spacing: .04em; color: rgba(244,245,246,.5); }
.breadcrumb a { color: rgba(244,245,246,.7); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--ember-bright); }
.breadcrumb .sep { color: rgba(244,245,246,.3); }
.breadcrumb [aria-current="page"] { color: var(--ivory); }
.light .breadcrumb, .light .breadcrumb a { color: rgba(35,35,38,.55); }
.light .breadcrumb a:hover { color: var(--ember-deep); }
.light .breadcrumb [aria-current="page"] { color: var(--ink); }

/* ============================================================
   Rechtstexte (Impressum & Datenschutz)
   ============================================================ */
.legal-content { max-width: 42rem; }
.legal-content h2 {
  font-family: "Roboto", sans-serif; font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15;
  margin-top: 3rem; color: var(--ink);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: "Roboto", sans-serif; font-weight: 700;
  font-size: 1.15rem; line-height: 1.3;
  margin-top: 2.2rem; margin-bottom: .2rem; color: var(--ink);
}
.legal-content p { margin-top: 1rem; font-size: .95rem; line-height: 1.7; color: rgba(35,35,38,.75); }
.legal-content a { color: var(--ember-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--ember); }
.legal-content ul { margin-top: 1rem; display: grid; gap: .5rem; padding-left: 1.3rem; }
.legal-content li { font-size: .95rem; line-height: 1.6; color: rgba(35,35,38,.75); list-style: disc; }
.legal-content hr { margin: 2.6rem 0; border: none; border-top: 1px solid rgba(35,35,38,.12); }
.legal-content .legal-updated { margin-top: 3rem; font-size: .8rem; color: rgba(35,35,38,.45); }

/* ============================================================
   Bewertungen — Google-Badge & Review-Karten
   ============================================================ */
.google-badge {
  display: inline-flex; align-items: center; gap: .85rem;
  background: #fff; border-radius: 1rem;
  padding: .85rem 1.3rem;
  border: 1px solid rgba(35,35,38,.08);
  box-shadow: 0 14px 34px -18px rgba(35,35,38,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.google-badge:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -18px rgba(35,35,38,.45); }
.google-badge__g { width: 2rem; height: 2rem; flex: none; }
.google-badge__body { display: flex; flex-direction: column; gap: .1rem; line-height: 1; }
.google-badge__stars { color: #FBBC05; font-size: 1rem; letter-spacing: .1em; }
.google-badge__label { font: 700 .82rem/1 "Roboto", sans-serif; color: var(--ink); margin-top: .3rem; }

.review-card {
  border-radius: 1.4rem;
  background: #fff;
  border: 1px solid rgba(35, 35, 38, .08);
  box-shadow: 0 20px 50px -30px rgba(35, 35, 38, .35);
  padding: 1.9rem 1.8rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.review-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -28px rgba(35,35,38,.28); }
.review-card__stars { color: #FBBC05; font-size: 1.05rem; letter-spacing: .12em; }
.review-card__text { margin-top: .9rem; font-size: .95rem; line-height: 1.65; color: rgba(35,35,38,.78); }
.review-card__author { margin-top: 1.3rem; display: flex; flex-direction: column; gap: .15rem; }
.review-card__name { font: 700 .92rem/1.2 "Roboto", sans-serif; color: var(--ink); }
.review-card__meta { font-size: .78rem; color: rgba(35,35,38,.5); }

.webziger-credit { display: inline-flex; align-items: center; gap: .5rem; opacity: .82; transition: opacity .2s ease; }
.webziger-credit:hover { opacity: 1; }
.webziger-credit span { font-size: .75rem; color: rgba(245, 243, 240, .45); white-space: nowrap; }
.webziger-credit img { height: 17px; width: auto; display: block; }
