/* Übersicht der Musterdesigns – Farben und Maße wie www.pfalz-multiservice.de */
:root {
  --gold: #DDBB4D; --gold-hover: #C9A83E; --gold-text: #D9B13A;
  --ink: #000; --ink-950: #0A0A0A; --ink-900: #121212; --ink-850: #191919; --ink-800: #1F1F1F; --ink-700: #2A2A2A; --ink-600: #3A3A3A;
  --white: #fff; --grey-200: #C7C7C7; --grey-400: #8A8A8A;
  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px; --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.22,.61,.36,1); --ease-out: cubic-bezier(.16,1,.3,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--grey-200); font: 400 1.0625rem/1.7 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--white); margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #000; padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: 14px 26px; background: var(--gold); color: #000; text-decoration: none;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em; border-radius: 2px; transition: background .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--gold-hover); transform: translateY(-1px); }
.btn i { font-style: normal; transition: transform .25s var(--ease); }
.btn:hover i { transform: translate(2px, -2px); }
.btn--sm { padding: 10px 18px; font-size: .875rem; }
.btn--lg { padding: 18px 34px; font-size: 1rem; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--ink-850); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.top__logo img { width: auto; height: 34px; }
.top__nav { display: flex; align-items: center; gap: 26px; font-size: .925rem; }
.top__nav > a:not(.btn) { text-decoration: none; color: var(--grey-200); transition: color .2s; }
.top__nav > a:not(.btn):hover { color: var(--gold-text); }

/* Einstieg */
.hero { padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(32px, 5vw, 56px); }
.eyebrow, .ex__branch { margin: 0 0 18px; color: var(--gold-text); font-size: .8125rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.75rem); letter-spacing: -0.04em; line-height: 1.02; }
.hero h1 span, .cta h2 span { color: var(--grey-400); }
.lead { max-width: 640px; margin: 26px 0 0; font-size: 1.125rem; }

/* Filter */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.filter button { font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; padding: 10px 18px; border-radius: 999px;
  background: transparent; color: var(--grey-200); border: 1px solid var(--ink-600); transition: border-color .2s, color .2s, background .2s; }
.filter button span { color: var(--grey-400); margin-left: 4px; font-variant-numeric: tabular-nums; }
.filter button:hover { border-color: var(--gold); color: var(--white); }
.filter button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: #000; }
.filter button[aria-selected="true"] span { color: rgba(0,0,0,.55); }

/* Gruppen */
.group { padding-top: clamp(48px, 7vw, 88px); }
.group[hidden] { display: none; }
.group__title { display: flex; align-items: baseline; gap: 18px; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.01em;
  padding-bottom: 18px; border-bottom: 1px solid var(--ink-800); }
.group__title span { color: var(--gold-text); font-size: .85rem; font-weight: 600; letter-spacing: .15em; font-variant-numeric: tabular-nums; }

/* Ein Musterdesign: großer Name links, animierter Bildschirm rechts (bei --rev gespiegelt) */
.ex { position: relative; isolation: isolate; overflow: hidden; }
.ex__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(72px, 9vw, 128px); }
.ex--rev .ex__text { order: 2; }

/* Kopfbild der Musterseite, dezent wie auf der Partnerseite: läuft von der Bildseite zur Textseite ins Schwarze aus */
.ex__bg { position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 72%; background: center / cover no-repeat;
  opacity: .34; filter: saturate(.85);
  -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0,0,0,.75) 35%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(270deg, #000 0%, rgba(0,0,0,.75) 35%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-composite: intersect;
  transform: scale(1.06); transition: transform 2.4s var(--ease-out), opacity 1.6s var(--ease-out); }
.ex--rev .ex__bg { right: auto; left: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.75) 35%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.75) 35%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); }
#elektriker .ex__bg { background-position: left center; }
.js .ex .ex__bg { opacity: 0; }
.js .ex.is-in .ex__bg { opacity: .34; transform: scale(1); }
.ex__name { font-size: clamp(2.4rem, 5.2vw, 4.5rem); letter-spacing: -0.045em; line-height: 1; }
.ex__desc { margin: 22px 0 0; max-width: 46ch; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; padding: 0; }
.tags li { font-size: .8125rem; padding: 6px 12px; border: 1px solid var(--ink-700); border-radius: 2px; color: var(--grey-200); }

/* Bühne mit Browser und Smartphone */
.ex__stage { position: relative; display: block; padding: 0 9% 9% 0; text-decoration: none; perspective: 1600px; }
.ex--rev .ex__stage { padding: 0 0 9% 9%; }
.browser { position: relative; background: #111; border: 1px solid var(--ink-700); border-radius: 10px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02);
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .5s var(--ease-out), border-color .3s; }
.ex__stage:hover .browser, .ex__stage:focus-visible .browser { border-color: rgba(221,187,77,.45); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1a1a1a; border-bottom: 1px solid #262626; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.browser__bar span { flex: 1; margin-left: 10px; padding: 3px 12px; border-radius: 6px; background: #0e0e0e; color: var(--grey-400);
  font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-900); }

/* Lange Seitenaufnahme fährt langsam von oben nach unten und zurück */
.scroll img { width: 100%; will-change: transform; }
.scroll.is-on img { animation: pageScroll 26s cubic-bezier(.45,0,.55,1) infinite alternate; }
.ex__stage:hover .scroll.is-on img { animation-duration: 12s; }
@keyframes pageScroll { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(-83.33%); } }

/* Mehrseitige Designs: Unterseiten wechseln sich ab */
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0;
  transform: scale(1.03); transition: opacity .9s var(--ease), transform 4.5s linear; }
.slides img.is-current { opacity: 1; transform: scale(1); }
.slides:not(.is-run) img:first-child { opacity: 1; transform: none; }
.slides__label { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,.72);
  color: var(--white); font-size: .75rem; font-weight: 500; letter-spacing: .02em; backdrop-filter: blur(6px); }
.slides__label b { color: var(--gold-text); font-weight: 600; margin-right: 6px; }

.phone { position: absolute; right: 0; bottom: 0; width: 24%; aspect-ratio: 390 / 844; border-radius: clamp(14px, 2.2vw, 28px); overflow: hidden;
  background: #000; border: clamp(3px, .45vw, 6px) solid #1c1c1c; box-shadow: 0 30px 60px -20px rgba(0,0,0,.95), 0 0 0 1px #2a2a2a;
  transform: translateY(var(--py, 0px)); transition: transform .6s var(--ease-out); }
.ex--rev .phone { right: auto; left: 0; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Einblenden beim Scrollen */
.js .ex__text, .js .ex__stage { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .ex__stage { transition-delay: .12s; }
.js .ex.is-in .ex__text, .js .ex.is-in .ex__stage { opacity: 1; transform: none; }

/* Abschluss */
.cta { padding-block: clamp(80px, 12vw, 160px); text-align: center; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 4.25rem); letter-spacing: -0.04em; line-height: 1.05; }
.cta .lead { margin-inline: auto; margin-bottom: 36px; }
.foot { border-top: 1px solid var(--ink-850); padding-block: 32px; font-size: .875rem; color: var(--grey-400); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.foot p { margin: 0; max-width: 640px; }
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--grey-200); text-decoration: none; }
.foot a:hover { color: var(--gold-text); }

@media (max-width: 900px) {
  .ex__in { grid-template-columns: 1fr; gap: 36px; }
  .ex__bg, .ex--rev .ex__bg { left: 0; right: 0; width: 100%; bottom: auto; height: 70%;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 45%, transparent 100%); }
  .ex--rev .ex__text { order: 0; }
  .ex__stage, .ex--rev .ex__stage { padding: 0 8% 10% 0; }
  .ex--rev .phone { left: auto; right: 0; }
  .top__nav > a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .browser__bar { height: 28px; }
  .browser__bar span { font-size: .6875rem; }
  .top__logo img { height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll.is-on img { animation: none; }
  .slides img { transition: none; }
  .js .ex__text, .js .ex__stage { opacity: 1; transform: none; transition: none; }
  .ex__bg, .js .ex .ex__bg { opacity: .34; transform: none; transition: none; }
  .browser, .phone { transform: none !important; }
}
