/* =====================================================
   Führwitz Medien – Redesign CSS (Homepage + Shared)
   ===================================================== */

@font-face {
  font-family: "BAUHS93";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/bauhs93.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: 100 700;
  src: url("../fonts/MaterialSymbolsRounded.woff2") format("woff2");
  font-display: swap;
}

/* ── CSS Variables ── */
:root {
  --teal: #00ADBC;
  --teal-deep: #007E8A;
  --orange: #ff6600;
  --orange-deep: #cc4f00;
  --grad: linear-gradient(115deg, var(--teal), var(--orange));

  --font-display: "BAUHS93", "Poppins", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;

  --paper: #F4F1E9;
  --paper-2: #ECE7DB;
  --ink: #14181A;
  --ink-soft: #5C6468;
  --line: rgba(20, 24, 26, .16);
  --line-2: rgba(20, 24, 26, .08);
  --maxw: 1240px;
  --rnd: 0 22px 0 0;
  --rnd-card: 26px 0 0 0;
  --hero-gradient:
    radial-gradient(44% 58% at 18% 18%, rgba(255, 102, 0, .92), transparent 68%),
    radial-gradient(48% 62% at 82% 16%, rgba(0, 173, 188, .88), transparent 70%),
    radial-gradient(54% 70% at 70% 88%, rgba(255, 102, 0, .5), transparent 72%),
    linear-gradient(130deg, #c95413 0%, #0a8f9c 34%, #15565e 64%, #ff6600 100%);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 30px); }
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
section { padding: clamp(72px, 11vw, 116px) 0; position: relative; }

/* ── Fixed Background ── */
.bg {
  position: fixed;
  inset: -15%;
  z-index: -3;
  background:
    radial-gradient(38% 48% at 16% 18%, rgba(0, 173, 188, .28), transparent 66%),
    radial-gradient(42% 52% at 86% 14%, rgba(255, 102, 0, .24), transparent 66%),
    radial-gradient(48% 58% at 66% 94%, rgba(0, 173, 188, .20), transparent 68%);
  background-size: 190% 190%;
  animation: flow 28s ease-in-out infinite;
}
@keyframes flow {
  0%, 100% { background-position: 0% 0%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

/* ── Typography ── */
h1, h2, h3, .disp { font-family: var(--font-display); font-weight: 800; letter-spacing: .005em; line-height: .96; }

.gradtext {
  background: linear-gradient(110deg, var(--teal), var(--orange), var(--teal));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
  display: inline;
}
@keyframes shimmer { to { background-position: 220% 0; } }

/* ── Animations ── */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise { to { transform: translateY(0); } }

/* ── Material Icons ── */
.mi {
  font-family: "Material Symbols Rounded";
  font-weight: 650;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 650, "GRAD" 0, "opsz" 24;
  user-select: none;
}

/* ── Buttons ── */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 14px 26px;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  position: relative;
  isolation: isolate;
  border-radius: var(--rnd);
  background: var(--grad);
  background-size: 140% 140%;
  transition: gap .3s, transform .3s, box-shadow .3s, background-position .5s;
  overflow: hidden;
  text-decoration: none;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  z-index: -1;
  transform: translateY(101%);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.btn:hover { gap: 1em; transform: translateY(-2px); box-shadow: 0 10px 26px -10px rgba(255, 102, 0, .6); }
.btn:hover::after { transform: translateY(0); }
.btn svg { width: 15px; height: 15px; transition: transform .3s; flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }

.btn.ghost {
  background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--grad) border-box;
  border: 2px solid transparent;
  color: var(--ink);
}
.btn.ghost span.t { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 600; }
.btn.ghost::after { background: var(--grad); }
.btn.ghost:hover span.t { -webkit-text-fill-color: #fff; }
.btn.ghost:hover { color: #fff; }

.btn.lite { background: #fff; color: var(--orange-deep); }
.btn.lite::after { background: var(--ink); }
.btn.lite:hover { color: #fff; }

/* ── Section background gradients ── */
#leistungen, #warum, #kontakt, #contact { position: relative; }
#leistungen::before, #warum::before, #kontakt::before, #contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-size: 200% 200%;
  clip-path: inset(0);
}
#leistungen::before {
  background:
    radial-gradient(45% 55% at 20% 25%, rgba(0, 173, 188, .42), transparent 72%),
    radial-gradient(50% 60% at 85% 80%, rgba(255, 102, 0, .40), transparent 72%);
  animation: flowA 30s ease-in-out infinite;
}
#warum::before {
  background:
    radial-gradient(48% 58% at 80% 22%, rgba(255, 102, 0, .42), transparent 72%),
    radial-gradient(52% 62% at 15% 85%, rgba(0, 173, 188, .42), transparent 72%);
  animation: flowB 34s ease-in-out infinite;
}
#kontakt::before, #contact::before {
  background:
    radial-gradient(50% 60% at 30% 80%, rgba(0, 173, 188, .40), transparent 72%),
    radial-gradient(46% 56% at 90% 20%, rgba(255, 102, 0, .38), transparent 72%);
  animation: flowA 28s ease-in-out infinite;
}
@keyframes flowA { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }
@keyframes flowB { 0%, 100% { background-position: 100% 0%; } 50% { background-position: 0% 100%; } }

/* ── Header / Nav ── */
header.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(244, 241, 233, .82);
  border-bottom: 1px solid var(--line);
}
header.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .logo-img { height: 34px; width: auto; }

nav.links { display: flex; gap: clamp(18px, 2.6vw, 34px); align-items: center; }
nav.links a {
  font-size: .97rem;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color .25s;
}
nav.links a:not(.btn):hover,
nav.links a.is-active:not(.btn) {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
nav.links .btn { color: #fff; padding: 11px 22px; }
nav.links .btn:hover { -webkit-text-fill-color: #fff; }

/* ── Burger ── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span { width: 26px; height: 3px; background: var(--ink); display: block; border-radius: 2px; }

/* ── Mobile Menu ── */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  position: fixed;
  inset: 0;
  z-index: 300;
  padding: clamp(62px, 10vw, 82px) clamp(22px, 6vw, 30px) clamp(22px, 6vw, 32px);
  overflow-y: auto;
  background: linear-gradient(150deg, #0a0d0e 0%, #0c2b30 55%, #3a1c08 100%);
}
.mobile-menu.open { display: flex; animation: mmIn .4s cubic-bezier(.16, 1, .3, 1); }
@keyframes mmIn { from { opacity: 0; } to { opacity: 1; } }

.mobile-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  padding: 6px;
}
.mm-logo { height: clamp(78px, 20vw, 112px); width: auto; margin-bottom: clamp(12px, 3vh, 24px); opacity: 0; animation: mmItem .5s .08s forwards; flex: 0 0 auto; }
.mm-links { display: flex; flex-direction: column; width: min(400px, 100%); margin: 0 auto; flex: 1 1 auto; justify-content: center; min-height: 0; }
.mm-links a {
  font-family: var(--font-display);
  font-size: clamp(1.72rem, 7.5vw, 2.35rem);
  color: var(--paper);
  padding: clamp(9px, 1.8vh, 14px) 0;
  border-bottom: 1px solid rgba(244, 241, 233, .12);
  display: flex;
  align-items: baseline;
  gap: 16px;
  opacity: 0;
  transform: translateX(-20px);
  animation: mmItem .55s forwards;
  transition: none;
}
.mm-links a:last-child { border-bottom: none; }
.mm-links a span { font-family: monospace; font-size: .9rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }
.mm-links a:nth-child(1) { animation-delay: .12s; }
.mm-links a:nth-child(2) { animation-delay: .18s; }
.mm-links a:nth-child(3) { animation-delay: .24s; }
.mm-links a:nth-child(4) { animation-delay: .30s; }
.mm-links a:nth-child(5) { animation-delay: .36s; }
.mm-links a:active { background: linear-gradient(90deg, rgba(0,173,188,.18), transparent); }
@keyframes mmItem { to { opacity: 1; transform: none; } }
@media (max-height: 720px) {
  .mobile-menu { padding-top: 54px; padding-bottom: 18px; }
  .mm-logo { height: clamp(62px, 16vh, 88px); margin-bottom: 8px; }
  .mm-links a { padding: 8px 0; font-size: clamp(1.55rem, 6.8vw, 2.05rem); }
  .mm-cta { min-height: 48px !important; padding: 13px 22px !important; margin-top: 12px !important; }
}
.mm-cta { margin-top: clamp(14px, 3vh, 28px); justify-content: center; opacity: 0; animation: mmItem .55s .38s forwards; min-height: 54px; padding: 15px 24px; font-size: 1rem; font-weight: 800; width: min(300px, 100%); align-self: center; flex: 0 0 auto; }

/* ── Hero ── */
.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  min-height: min(720px, calc(100svh - 74px));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.hero[data-theme="hero"] {
  background: var(--hero-gradient);
  background-size: 260% 260%;
  animation: heroFlow 8s ease infinite;
  justify-content: flex-start;
}
.hero[data-theme="hero"]::before,
.hero[data-theme="hero"]::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: .5;
  z-index: 0;
}
.hero[data-theme="hero"]::before {
  width: 55vw;
  height: 55vw;
  left: -10vw;
  top: -15vw;
  background: radial-gradient(circle, #2bb8c4, transparent 62%);
  animation: b1 16s ease-in-out infinite;
}
.hero[data-theme="hero"]::after {
  width: 50vw;
  height: 50vw;
  right: -12vw;
  bottom: -18vw;
  background: radial-gradient(circle, #e0731f, transparent 62%);
  animation: b2 18s ease-in-out infinite;
}
.hero > .container {
  position: relative;
  z-index: 3;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(30px, 5vw, 64px);
  padding-bottom: clamp(36px, 5vw, 70px);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-gradient);
  background-size: 260% 260%;
  animation: heroFlow 8s ease infinite;
}
@keyframes heroFlow {
  0% { background-position: 32% 46%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 32% 46%; }
}
.hero-blobs { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light; opacity: .5; }
.hero-blobs::before, .hero-blobs::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); }
.hero-blobs::before { width: 55vw; height: 55vw; left: -10vw; top: -15vw; background: radial-gradient(circle, #2bb8c4, transparent 62%); animation: b1 16s ease-in-out infinite; }
.hero-blobs::after { width: 50vw; height: 50vw; right: -12vw; bottom: -18vw; background: radial-gradient(circle, #e0731f, transparent 62%); animation: b2 18s ease-in-out infinite; }
@keyframes b1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(7vw, 5vw); } }
@keyframes b2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6vw, -4vw); } }
.hero-veil { position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 50% 38%, transparent 32%, rgba(10, 13, 14, .5) 100%); }
.hero-spot {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, .18), transparent 60%);
  transition: background .15s;
}
.hero .wrap {
  position: relative;
  z-index: 3;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(24px, 4.2vw, 56px);
  padding-bottom: clamp(28px, 4.6vw, 62px);
}
.hero-icon {
  width: clamp(42px, 4.2vw, 58px);
  margin: 0 auto clamp(6px, .8vw, 10px);
  display: grid;
  place-items: center;
  opacity: 0;
  animation: fadeUp .8s .05s forwards;
}
.hero-icon img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .3));
  animation: floaty 6s ease-in-out infinite;
}
.hero--home {
  min-height: min(660px, calc(100svh - 74px));
}
.hero--home .wrap {
  padding-top: clamp(22px, 4vw, 52px);
  padding-bottom: clamp(26px, 4.4vw, 58px);
}
.hero--home .hero-icon {
  width: clamp(46px, 4.6vw, 64px);
  margin-bottom: clamp(6px, .8vw, 10px);
}
.hero--home .hero-icon img {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .32));
}
.seo-hero .hero-icon,
.hero--contact-page .hero-icon {
  width: clamp(46px, 4.6vw, 64px);
  margin-bottom: clamp(6px, .8vw, 10px);
}
.seo-hero .hero-icon img,
.hero--contact-page .hero-icon img {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .32));
}
.hero h1 {
  font-size: clamp(2.9rem, 7.6vw, 7.1rem);
  max-width: 16ch;
  margin: 0 auto;
  color: #fff;
  text-shadow: 0 3px 30px rgba(0, 0, 0, .18);
}
.hero--subpage,
.seo-hero {
  min-height: min(650px, calc(100svh - 74px));
}
.hero--subpage h1 {
  font-size: clamp(2.65rem, 6.6vw, 6.1rem);
  max-width: 18ch;
}
.hero--subpage p.sub {
  max-width: 48ch;
}
.seo-hero h1 {
  font-size: clamp(2.55rem, 5.8vw, 5.35rem);
  max-width: 17ch;
}
.seo-hero p.sub { max-width: 52ch; }
.ln { display: block; overflow: hidden; background: transparent !important; border: 0 !important; box-shadow: none !important; outline: 0 !important; padding: 0 !important; }
.hero h1 span,
.hero h1 .ln,
.hero h1 .ln > span {
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  backdrop-filter: none !important;
}
.ln > span { display: block; transform: translateY(110%); animation: rise 1s cubic-bezier(.16, 1, .3, 1) forwards; }
.ln:nth-child(1) > span { animation-delay: .12s; }
.ln:nth-child(2) > span { animation-delay: .24s; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(105deg, #3fe0ee, #ffd0a3, #ff8a33, #3fe0ee);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}
.hero p.sub {
  max-width: 40ch;
  margin: clamp(12px, 1.7vw, 20px) auto 0;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: rgba(255, 255, 255, .95);
  font-weight: 500;
  opacity: 0;
  animation: fadeUp .9s .5s forwards;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: clamp(18px, 2.4vw, 28px);
  opacity: 0;
  animation: fadeUp .9s .64s forwards;
}
.hero .btn.ghost {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  backdrop-filter: blur(6px);
}
.hero .btn.ghost span.t { -webkit-text-fill-color: #fff; background: none; font-weight: 600; }
.hero .btn.ghost::after { display: none; }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, .95); color: var(--ink); }
.hero .btn.ghost:hover span.t { -webkit-text-fill-color: var(--ink); }

.intro-copy {
  width: min(860px, 100%);
  max-width: 860px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.75;
}
.intro-copy p + p { margin-top: 14px; }
.intro-copy strong { color: var(--ink); }

/* ── Marquee ── */
.marquee {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  background: rgba(10, 13, 14, .9);
  color: #fff;
  overflow: hidden;
  border-top: 3px solid #fff;
}
.marquee-track { display: flex; white-space: nowrap; animation: scrollmark 26s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.8rem); padding: 14px 0; display: flex; align-items: center; }
.marquee i { font-style: normal; margin: 0 clamp(16px, 3vw, 28px); color: var(--orange); }
@keyframes scrollmark { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ── Section Heads ── */
.sec-h {
  font-size: clamp(2rem, 5.4vw, 4rem);
  max-width: 18ch;
  margin-bottom: clamp(36px, 6vw, 54px);
  line-height: 1.04;
}

@media (min-width: 901px) {
  .wrap > .sec-h {
    width: min(860px, 100%);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }
  .wrap > .cards,
  .wrap > .faq-wrap,
  .wrap > .contact,
  .wrap > .seo-about {
    width: min(860px, 100%);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }
  .wrap > .about:not(.seo-about) {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Reveal ── */
.r { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.r.in { opacity: 1; transform: none; }

/* ── Cards (Leistungen + Warum) ── */
.cards { display: flex; flex-direction: column; align-items: center; max-width: 860px; margin: 0 auto; position: relative; }
.card {
  position: sticky;
  top: clamp(80px, 12vh, 110px);
  width: 100%;
  padding: 42px 46px 46px;
  border-radius: var(--rnd-card);
  background: var(--paper);
  box-shadow: 0 -1px 0 rgba(20, 24, 26, .08), 0 26px 50px -26px rgba(0, 0, 0, .5);
  overflow: hidden;
  isolation: isolate;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), opacity .7s, box-shadow .45s;
}
.card + .card { margin-top: 34px; }
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad);
  opacity: .10;
  transition: opacity .45s;
}
.card .k {
  font-family: var(--font-display);
  font-size: 1.2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
  display: inline-block;
}
.card h3 { font-size: clamp(1.6rem, 2.8vw, 2rem); margin-bottom: 10px; line-height: 1.05; }
.card p { color: var(--ink-soft); font-size: 1.06rem; max-width: 58ch; }

.card { opacity: 0; transform: translateY(90px) rotate(var(--rot, -.6deg)) scale(.96); }
.card:nth-child(even) { --rot: .6deg; }
.card.in { opacity: 1; transform: translateY(0) rotate(var(--rot, -.6deg)) scale(1); }
.card:hover { transform: translateY(-6px) rotate(0deg) scale(1.02); box-shadow: 0 34px 64px -26px rgba(0, 0, 0, .55); z-index: 20; }
.card:hover::before { opacity: 1; }
.card:hover h3, .card:hover p { color: #fff; }
.card:hover .k, .card:hover h3 .gradtext { -webkit-text-fill-color: #fff; animation: none; }

.cards .card:nth-child(1) { z-index: 1; }
.cards .card:nth-child(2) { z-index: 2; }
.cards .card:nth-child(3) { z-index: 3; }
.cards .card:nth-child(4) { z-index: 4; }
.cards .card:nth-child(5) { z-index: 5; }
.cards .card:nth-child(6) { z-index: 6; }
.cards .card:nth-child(7) { z-index: 7; }
.cards .card:nth-child(8) { z-index: 8; }

.leistungen-detail-section .wrap > .sec-h,
.leistungen-detail-section .wrap > .leistungen-cards {
  width: min(980px, 100%);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.leistungen-detail-section .wrap > .sec-h { margin-bottom: clamp(26px, 4vw, 42px); }
.leistungen-cards .card { padding: clamp(42px, 4.8vw, 64px); }
.leistungen-cards .card + .card { margin-top: clamp(28px, 3.4vw, 40px); }
.leistungen-cards .card h3 { font-size: clamp(2rem, 3.5vw, 2.85rem); max-width: 16ch; margin-bottom: 16px; }
.leistungen-cards .card p { max-width: 74ch; font-size: clamp(1.05rem, 1.4vw, 1.18rem); line-height: 1.78; }
.service-points {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--ink-soft);
}
.service-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  line-height: 1.55;
}
.service-points li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: .52em;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--grad);
}
.leistungen-cards .card:hover .service-points,
.leistungen-cards .card:hover .service-points li,
.leistungen-cards .card.is-active .service-points,
.leistungen-cards .card.is-active .service-points li { color: #fff; }
.leistungen-cards .card:hover .service-points li::before,
.leistungen-cards .card.is-active .service-points li::before { background: #fff; }
.cards .card:hover { z-index: 30; }

@media (hover: none) {
  .btn:hover,
  .hero-cta-primary:hover {
    gap: .6em;
    transform: none;
    box-shadow: none;
  }
  .btn:hover::after,
  .hero-cta-primary:hover::after { transform: translateY(101%); }
  .btn:hover svg { transform: none; }
  .btn.ghost:hover { color: var(--ink); }
  .btn.ghost:hover span.t { -webkit-text-fill-color: transparent; }
  .btn.lite:hover { color: var(--orange-deep); }
  .hero .btn.ghost:hover,
  .hero-cta-secondary:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
  }
  .hero .btn.ghost:hover span.t { -webkit-text-fill-color: #fff; }
  .card.is-active::before { opacity: 1; }
  .card.is-active h3, .card.is-active p { color: #fff; }
  .card.is-active .k, .card.is-active h3 .gradtext { -webkit-text-fill-color: #fff; animation: none; }
}

/* ── Referenzen ── */
#referenzen { color: var(--paper); overflow: hidden; background: #0a0d0e; }
.ref-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(42% 60% at 82% 18%, rgba(255, 102, 0, .5), transparent 70%),
    radial-gradient(46% 64% at 14% 86%, rgba(0, 173, 188, .55), transparent 70%),
    #0a0d0e;
  background-size: 180% 180%;
  animation: flow 24s ease-in-out infinite;
}
#referenzen .wrap { position: relative; z-index: 2; }
#referenzen .sec-h { color: var(--paper); }

.ref-marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 10px 0 4px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ref-track { display: flex; gap: 24px; width: max-content; animation: refscroll 36s linear infinite; }
.ref-track:hover { animation-play-state: paused; }
@keyframes refscroll { to { transform: translateX(-50%); } }

.ref-card {
  flex: 0 0 auto;
  width: min(300px, 80vw);
  background: #fff;
  border-radius: 24px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--ink);
  transition: .35s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 14px 40px -20px rgba(0,0,0,.5);
}
.ref-card:hover { transform: translateY(-8px); }
.ref-logo {
  height: 48px;
  display: flex;
  align-items: center;
  width: auto;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.ref-logo img { max-height: 48px; width: auto; object-fit: contain; }
.rl-fallback { font-family: var(--font-display); font-size: 1.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rc-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.rc-desc { font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }
.rc-go { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .9rem; color: var(--orange-deep); margin-top: auto; transition: .3s; }
.ref-card:hover .rc-go { gap: 1em; }

/* ── Depth Group (Referenzen → Lass uns sprechen) ── */
.depth-group { position: relative; z-index: 1; }

/* Hintergrund-Layer: sticky, bleibt im Viewport stehen */
.depth-bg {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Progressives Abdunkeln via --depth (gesetzt per JS) */
.depth-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: #05080a;
  opacity: calc(.45 * var(--depth, 0));
  transition: none;
}

/* Front-Layer: schiebt sich als Karte mit abgerundeter Oberkante darüber */
.depth-front {
  position: relative;
  z-index: 3;
  border-radius: 38px 38px 0 0;
  box-shadow: 0 -34px 70px -24px rgba(0,0,0,.55), 0 -2px 0 rgba(255,255,255,.06);
}

/* Feine Lichtkante oben */
.depth-front::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 38px;
  z-index: 8;
  pointer-events: none;
  border-radius: 38px 38px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent);
}

@media (max-width: 900px) {
  .depth-front { min-height: auto; padding-top: clamp(64px, 16vw, 96px); }
  .depth-bg { justify-content: flex-start; padding-top: clamp(64px, 14vw, 96px); }
}
@media (prefers-reduced-motion: reduce) {
  .depth-bg { position: relative; min-height: 0; }
  .depth-bg::after { opacity: 0; }
  .depth-front { box-shadow: none; border-radius: 0; }
  .depth-front::after { display: none; }
}

/* ── CTA Band ── */
.cband {
  color: #fff;
  background: linear-gradient(125deg, var(--teal), var(--orange), var(--teal-deep));
  background-size: 300% 300%;
  animation: meshMove 14s ease infinite;
  text-align: center;
  overflow: hidden;
  padding: clamp(72px, 11vw, 116px) 0;
}
@keyframes meshMove { 0% { background-position: 0 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.cband h2 { font-size: clamp(2.4rem, 8vw, 6rem); margin-bottom: 16px; line-height: 1.0; text-shadow: 0 2px 30px rgba(0,0,0,.12); }
.cband p { color: #fff; font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 44ch; margin: 0 auto 36px; line-height: 1.65; opacity: .95; }

/* ── About section (Warum page) ── */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
  margin-top: clamp(64px, 8vw, 96px);
}
.about-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 30px 0 0 0;
}
.about-img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--grad);
  z-index: 2;
}
.about-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
}
.about-txt h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.about-txt .tagline { color: var(--teal-deep); font-weight: 600; margin-bottom: 16px; font-size: 1.1rem; display: block; }
.about-txt p { color: var(--ink-soft); margin-bottom: 28px; font-size: 1.05rem; line-height: 1.7; }
.about-intro-section { padding-bottom: clamp(22px, 3.4vw, 42px); }
.about-competence { padding-top: 0; }
.about-competence .sec-h,
.about-competence .cards { width: min(960px, 100%); max-width: 960px; margin-left: auto; margin-right: auto; }
.about-competence .sec-h { margin-bottom: clamp(22px, 3.2vw, 34px); }
.about-competence .card { padding: clamp(40px, 4.3vw, 58px); }
.about-competence .card + .card { margin-top: clamp(24px, 3vw, 32px); }
.about-competence .card h3 { max-width: 18ch; font-size: clamp(1.75rem, 3.1vw, 2.35rem); }
.about-competence .card p { max-width: 72ch; font-size: clamp(1.04rem, 1.35vw, 1.14rem); line-height: 1.78; }

/* ── Kontakt Section ── */
#kontakt .wrap { position: relative; z-index: 1; }
.contact {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.contact h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 10px; }
.contact .lead { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 20px; }
.direct a { color: var(--teal-deep); font-weight: 600; font-size: 1.05rem; display: inline-block; padding: 6px 0; }

/* WordPress Contact Form */
.wp-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.wp-contact-form .full { grid-column: 1 / -1; }
.wp-contact-form > div:not(.full) > label,
.wp-contact-form .full > label {
  display: block;
  font-size: .82rem;
  color: var(--ink-soft);
  margin-bottom: 5px;
  font-weight: 500;
}
.wp-contact-form input[type="text"],
.wp-contact-form input[type="email"],
.wp-contact-form input[type="number"],
.wp-contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(20, 24, 26, .06);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink);
  outline: none;
  transition: border-color .25s, background .25s;
}
.wp-contact-form input:focus,
.wp-contact-form textarea:focus {
  border-color: var(--teal);
  background: rgba(0, 173, 188, .04);
}
.wp-contact-form textarea { min-height: 130px; resize: vertical; }
.wp-form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.wp-form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .88rem;
  color: var(--ink-soft);
  flex: 1;
  min-width: 200px;
}
.wp-form-check input { margin-top: 3px; accent-color: var(--teal); flex-shrink: 0; }
.wp-form-check a { color: var(--teal-deep); text-decoration: underline; }

.form-msg-success {
  text-align: center;
  padding: 40px 20px;
}
.form-msg-success .success-icon { font-size: 3.5rem; color: var(--teal); margin-bottom: 16px; }
.form-msg-success p { font-size: 1rem; color: var(--ink-soft); }
.form-msg-error {
  grid-column: 1 / -1;
  color: #c62828;
  background: rgba(198, 40, 40, .08);
  border: 1px solid rgba(198, 40, 40, .22);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .9rem;
}

/* ── Footer ── */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(30px, 4vw, 46px) 0 clamp(18px, 2.4vw, 28px);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: var(--grad);
}
.foot-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
footer .foot-top a:has(.foot-logo) { display: inline-flex; align-items: center; width: 92px; height: 92px; line-height: 0; }
footer .foot-logo { width: 92px !important; height: 92px !important; max-width: 92px !important; max-height: 92px !important; display: block; object-fit: contain; }

.beratung-question-section { padding-bottom: clamp(42px, 6vw, 72px); }
.beratung-question-cards { width: min(900px, 100%); max-width: 900px; margin: 0 auto; }
.beratung-question-cards .card { padding: clamp(34px, 4vw, 52px); }
.beratung-question-cards .card h3 { font-size: clamp(1.65rem, 3vw, 2.25rem); max-width: 20ch; margin-bottom: 12px; }
.beratung-question-cards .card p { max-width: 64ch; font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.72; }
.beratung-question-grid {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 18px);
}
.beratung-question-card {
  min-height: 210px;
  padding: clamp(20px, 2.3vw, 28px);
  border-radius: var(--rnd-card);
  background: rgba(244, 241, 233, .92);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px -34px rgba(0, 0, 0, .42);
}
.beratung-question-card span {
  display: inline-flex;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.beratung-question-card h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.12; margin-bottom: 10px; }
.beratung-question-card p { color: var(--ink-soft); font-size: .96rem; line-height: 1.62; margin: 0; }
.beratung-speak-section { padding-top: clamp(48px, 7vw, 84px); overflow: hidden; }
.beratung-speak-panel { width: min(960px, 100%); margin: 0 auto; }
.beratung-speak-panel.r:not(.in) { transform: translateY(72px); }
.beratung-speak-panel .section-headline { justify-content: center; text-align: center; }
.beratung-speak-panel .section-title { font-size: clamp(2.4rem, 6vw, 4.8rem); justify-content: center; }
.beratung-speak-panel .contact-layout { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.beratung-speak-panel .contact-layout > div { max-width: 100%; }
@media (max-width: 900px) {
  .beratung-question-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .beratung-question-grid { grid-template-columns: 1fr; }
  .beratung-question-card { min-height: auto; }
}
footer > .wrap > div:first-child p { color: rgba(244, 241, 233, .6); max-width: 32ch; margin-top: 12px; font-size: .92rem; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot-cols h4 { font-family: var(--font-display); font-size: 1rem; color: rgba(244, 241, 233, .5); margin-bottom: 12px; letter-spacing: .02em; }
.foot-cols a { display: block; color: var(--paper); font-size: .94rem; padding: 3px 0; transition: color .2s; }
.foot-cols a:hover { color: var(--teal); }
.foot-regions {
  font-size: .8rem;
  color: rgba(244, 241, 233, .38);
  border-top: 1px solid rgba(244, 241, 233, .1);
  padding-top: 18px;
  line-height: 2.2;
}
.foot-regions a { color: inherit; transition: color .2s; }
.foot-regions a:hover { color: var(--teal); }
.foot-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: rgba(244, 241, 233, .38);
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Legal Pages ── */
.legal-page {
  padding: clamp(48px, 7vw, 80px) 0;
}
.legal-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 30px);
}
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 10px;
}
.legal-subline {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.legal-section:last-child { margin-bottom: 0; border-bottom: none; }
.legal-section h2 { font-size: 1.4rem; line-height: 1.3; margin: 0 0 10px; font-family: var(--font-body); font-weight: 700; }
.legal-section p { margin: 0 0 10px; font-size: 1rem; line-height: 1.8; color: var(--ink-soft); }
.legal-section a { text-decoration: underline; text-underline-offset: 3px; word-break: break-word; color: var(--teal-deep); }

.page-content {
  max-width: 900px;
  margin: 0 auto;
  color: var(--ink-soft);
  line-height: 1.8;
}
.page-content > * + * { margin-top: 1em; }
.page-content h2,
.page-content h3 { color: var(--ink); line-height: 1.12; margin-top: 1.4em; }
.page-content a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ── 404 ── */
.page-404 { text-align: center; padding: clamp(80px, 12vw, 140px) 0; }
.page-404 h1 { font-size: clamp(4rem, 15vw, 10rem); line-height: 1; margin-bottom: 12px; }
.page-404 p { color: var(--ink-soft); font-size: 1.15rem; margin-bottom: 28px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  nav.links { gap: clamp(12px, 2vw, 22px); }
  nav.links a { font-size: .9rem; }
  .about { grid-template-columns: 1fr; }
  .about-img { max-width: 340px; margin: 0 auto; aspect-ratio: 1; }
  .contact { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .wp-contact-form { grid-template-columns: 1fr; }
  .wp-contact-form .full { grid-column: 1; }
  .wp-form-foot { grid-column: 1; }
}

@media (max-width: 768px) {
  nav.links { display: none; }
  .burger { display: flex; }
  header.nav .wrap { height: 64px; }

  .hero { min-height: calc(100svh - 64px); }
  .hero--home { min-height: calc(100svh - 64px); }
  .hero--subpage,
  .seo-hero { min-height: min(600px, calc(100svh - 64px)); }
  .hero .wrap {
    padding-top: clamp(16px, 4vw, 30px);
    padding-bottom: clamp(18px, 5vw, 34px);
  }
  .hero > .container {
    padding-top: clamp(16px, 4vw, 30px);
    padding-bottom: clamp(18px, 5vw, 34px);
  }
  .hero h1 { font-size: clamp(2.05rem, 8.2vw, 3.35rem); }
  .seo-hero h1 { font-size: clamp(1.95rem, 7.7vw, 3.05rem); }
  .hero-icon { width: clamp(40px, 11vw, 56px); margin-bottom: 6px; }
  .hero--home .hero-icon { width: clamp(42px, 12vw, 60px); margin-bottom: 6px; }
  .seo-hero .hero-icon,
  .hero--contact-page .hero-icon { width: clamp(42px, 12vw, 60px); margin-bottom: 6px; }
  .hero-logo { height: clamp(118px, 30vw, 168px); }
  .hero p.sub,
  .hero-sub { font-size: clamp(1rem, 3.7vw, 1.12rem); line-height: 1.45; }
  .hero-bullets { margin-bottom: 16px; }
  .hero-badge { padding: 6px 10px; font-size: .76rem; }
  .hero-cta { flex-direction: column; align-items: center; margin-top: 14px; gap: 10px; }
  .hero-cta .btn { width: 100%; max-width: 286px; justify-content: center; padding: 12px 18px; }
  .hero-cta-row { margin-top: 4px; }
  .hero-scroll-cue { margin-top: 12px; }

  .sec-h { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .card { padding: 28px 24px 30px; }
  .card h3 { font-size: clamp(1.3rem, 5vw, 1.6rem); }
  .leistungen-cards .card {
    position: sticky;
    top: 78px;
    max-height: calc(100svh - 92px);
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 24px 20px 26px;
  }
  .leistungen-cards .card::-webkit-scrollbar { display: none; }
  .leistungen-cards .card h3 {
    max-width: none;
    font-size: clamp(1.45rem, 6.7vw, 2rem);
    line-height: 1.06;
    margin-bottom: 10px;
  }
  .leistungen-cards .card p {
    max-width: none;
    font-size: .94rem;
    line-height: 1.48;
  }
  .service-points {
    gap: 7px;
    margin-top: 14px;
  }
  .service-points li {
    font-size: .9rem;
    line-height: 1.36;
  }

  .ref-card { width: clamp(200px, 80vw, 290px); }

  .foot-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .foot-cols { grid-template-columns: 1fr; gap: 16px; }
  .foot-top { gap: 20px; }
  .foot-bot { font-size: .76rem; }
  .wp-contact-form { grid-template-columns: 1fr; }
}

@media (max-width: 420px), (max-height: 680px) {
  .hero .wrap,
  .hero > .container {
    padding-top: 14px;
    padding-bottom: 18px;
  }
  .hero-icon,
  .hero--home .hero-icon,
  .seo-hero .hero-icon,
  .hero--contact-page .hero-icon {
    width: clamp(34px, 10vw, 48px);
    margin-bottom: 5px;
  }
  .hero h1,
  .seo-hero h1,
  .hero--subpage h1 {
    font-size: clamp(1.82rem, 7.4vw, 2.75rem);
    line-height: 1.02;
  }
  .hero p.sub,
  .hero-sub {
    margin-top: 8px;
    font-size: .96rem;
    line-height: 1.38;
  }
  .hero-cta {
    margin-top: 12px;
    gap: 8px;
  }
  .hero-cta .btn {
    min-height: 42px;
    padding: 11px 16px;
  }
}

@media (max-height: 760px) and (min-width: 769px) {
  .hero,
  .hero--home,
  .hero--subpage,
  .seo-hero {
    min-height: calc(100svh - 74px);
  }
  .hero > .container,
  .hero .wrap {
    padding-top: 18px;
    padding-bottom: 24px;
  }
  .hero-icon { width: clamp(52px, 5.4vw, 74px); margin-bottom: 6px; }
  .hero--home .hero-icon { width: clamp(56px, 5.8vw, 82px); }
  .seo-hero .hero-icon,
  .hero--contact-page .hero-icon { width: clamp(56px, 5.8vw, 82px); }
  .hero-logo { height: clamp(110px, 10vw, 140px); }
  .hero h1,
  .hero-title { font-size: clamp(2rem, 4.4vw, 4.1rem); }
  .hero p.sub,
  .hero-sub { margin-top: 9px; line-height: 1.38; }
  .hero-cta { margin-top: 14px; }
  .hero-bullets { margin-bottom: 14px; }
  .hero-scroll-cue { display: none; }
}

@media (max-height: 680px) and (min-width: 769px) {
  .hero > .container,
  .hero .wrap {
    padding-top: 12px;
    padding-bottom: 18px;
  }
  .hero-icon,
  .hero--home .hero-icon,
  .seo-hero .hero-icon,
  .hero--contact-page .hero-icon {
    width: clamp(42px, 4.8vw, 62px);
    margin-bottom: 5px;
  }
  .hero h1,
  .hero-title,
  .seo-hero h1,
  .hero--subpage h1 {
    font-size: clamp(1.85rem, 4vw, 3.45rem);
    line-height: 1.02;
  }
  .hero p.sub,
  .hero-sub {
    margin-top: 8px;
    font-size: .95rem;
    line-height: 1.34;
  }
  .hero-cta {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =====================================================
   SEO-Seiten & andere Templates – Kompatibilitätsstyles
   ===================================================== */

/* Container-Klasse (alt) */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 30px); }

/* Altes Hero-Grid Layout */
.hero-grid { display: block; width: 100%; }
.hero-content { max-width: 860px; margin: 0 auto; }

/* Hero Kicker */
.hero-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-bottom: 16px;
}
.hero-kicker .badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  font-size: .78rem;
}

/* Hero Title */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.4vw, 26px);
  justify-content: center;
  max-width: min(1120px, 100%);
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 1.06;
  color: #fff;
  margin-bottom: 16px;
  font-family: var(--font-display);
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.hero h1.hero-title { max-width: min(1120px, 100%); }
.hero-logo {
  height: clamp(150px, 16vw, 220px);
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.3));
  animation: floaty 6s ease-in-out infinite;
}
.hero-title-text { display: block; }
.accent {
  background: linear-gradient(105deg, #3fe0ee, #ffd0a3, #ff8a33);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Sub */
.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: rgba(255,255,255,.9);
  max-width: 54ch;
  margin: 0 auto 20px;
  line-height: 1.65;
}

/* Hero Badges */
.hero-bullets { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 24px; }
.hero-badge {
  font-size: .82rem;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(8px);
}
.hero-badge .mi { font-size: 16px; }

/* Hero CTA Row */
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 14px 26px;
  color: #fff;
  cursor: pointer;
  border: none;
  position: relative;
  isolation: isolate;
  border-radius: var(--rnd);
  background: var(--grad);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .3s, box-shadow .3s;
  overflow: hidden;
  text-decoration: none;
}
.hero-cta-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  z-index: -1;
  transform: translateY(101%);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.hero-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -10px rgba(255,102,0,.6); }
.hero-cta-primary:hover::after { transform: translateY(0); }
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 14px 26px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--rnd);
  background: rgba(255,255,255,.12);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background .25s;
}
.hero-cta-secondary:hover { background: rgba(255,255,255,.92); color: var(--ink); }

/* Hero Scroll Cue */
.hero-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: none;
  margin-top: 20px;
  animation: floaty 2s ease-in-out infinite;
}
.hero-scroll-cue .mi { font-size: 22px; }

/* Section Card */
.section-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  box-shadow: none;
  position: relative;
  overflow: visible;
  isolation: isolate;
}
.section-card::before { display: none; }
.section-card .hero-content { max-width: 900px; text-align: center; }
.section-card .hero-title { color: var(--ink); text-shadow: none; justify-content: center; }
.section-card .hero-sub { color: var(--ink-soft); }
.section-card .hero-kicker { color: var(--ink-soft); }
.section-card .hero-kicker .badge {
  background: rgba(0,173,188,.1);
  border-color: rgba(0,173,188,.28);
  color: var(--teal-deep);
}

/* Section Headline */
.section-headline { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: clamp(16px, 3vw, 24px); flex-wrap: wrap; }
.section-kicker { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.section-title { font-size: clamp(1.2rem, 3vw, 1.8rem); display: flex; align-items: center; gap: 10px; font-family: var(--font-display); line-height: 1.1; }
.section-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex-shrink: 0; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(0,173,188,.35); } 50% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(0,173,188,0); } }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card {
  border-radius: var(--rnd-card);
  padding: clamp(18px, 2.2vw, 24px);
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(16px);
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s, border-color .35s;
}
.service-card:hover,
.about-card:hover,
.skill-card:hover,
.tool-card:hover,
.spine-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,102,0,.35);
  box-shadow: 0 28px 58px -34px rgba(0,0,0,.55);
}
.service-title-row { display: flex; align-items: center; gap: 10px; }
.service-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.service-ic .mi { font-size: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.service-title { font-size: .95rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.service-list { list-style: none; padding: 0; margin: 4px 0 0; font-size: .85rem; color: var(--ink-soft); }
.service-list li { display: flex; gap: 6px; margin-bottom: 4px; line-height: 1.5; }
.service-list li::before { content: "▹"; font-size: .7rem; color: var(--teal); margin-top: 3px; flex-shrink: 0; }
.service-card p { margin: 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.6; }

/* About grid */
.about-grid { display: grid; grid-template-columns: 1.3fr 0.8fr; gap: 16px; align-items: stretch; }
.about-card {
  border-radius: var(--rnd-card);
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--paper);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px -34px rgba(0,0,0,.32);
}
.about-photo-card { display: flex; align-items: flex-end; justify-content: center; }
.about-photo-img { width: 100%; height: auto; max-height: 480px; object-fit: contain; object-position: center bottom; }
.about-cta-row { margin-top: 16px; }

/* Contact Layout (SEO pages) */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; }
.section-card .contact-layout {
  width: min(860px, 100%);
  max-width: 860px;
  margin: 0 auto;
  grid-template-columns: 1fr;
  justify-items: center;
}
.section-card .contact-layout > div {
  width: 100%;
}
.section-card .section-headline {
  width: min(860px, 100%);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  text-align: center;
}
.contact-wrapper {
  width: min(860px, 100%);
  max-width: 860px;
  margin: 0 auto;
}
.contact-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,173,188,.1);
  border: 1px solid rgba(0,173,188,.3);
  font-size: .85rem;
  color: var(--teal-deep);
  margin: 0 auto 14px;
  text-align: center;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 860px;
  margin: 10px auto 0;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: block; font-size: .8rem; color: var(--ink-soft); margin-bottom: 4px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,.7);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--ink);
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--teal); }
.contact-form textarea { min-height: 110px; resize: vertical; }
.form-foot {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.form-check { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; color: var(--ink-soft); flex: 1; min-width: 220px; }
.form-check input { margin-top: 2px; accent-color: var(--teal); }
.form-check a { color: var(--teal-deep); text-decoration: underline; }
.contact-submit { justify-self: flex-end; }
#kontakt .section-card[data-reveal="left"],
#kontakt .section-card[data-reveal="right"] {
  transform: translateY(20px);
}
#kontakt .section-card[data-reveal].is-visible {
  transform: none;
}

/* Shared old-template components in the new visual language */
.glass-card,
.highlight-box,
.skill-card,
.tool-card {
  border-radius: var(--rnd-card);
  padding: clamp(18px, 2.4vw, 26px);
  background: rgba(244,241,233,.9);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px -34px rgba(0,0,0,.32);
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s, border-color .35s;
}
.glass-card p,
.about-card p,
.skill-card p,
.tool-card p,
.highlight-box p { color: var(--ink-soft); line-height: 1.75; margin: 0 0 12px; }
.highlight-box { margin-top: 18px; background: linear-gradient(115deg, rgba(0,173,188,.12), rgba(255,102,0,.12)); }
.process-list,
.skill-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
}
.process-list li,
.skill-list li {
  display: flex;
  gap: 8px;
  line-height: 1.55;
}
.process-list li::before,
.skill-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: .55em;
  border-radius: 50%;
  background: var(--grad);
  flex: 0 0 auto;
}
.about-main-grid,
.skills-grid,
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.skills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about-main-grid .about-card:first-child { grid-row: span 2; }
.about-lead,
.skill-copy { color: var(--ink-soft); line-height: 1.75; }
.tool-card strong { display: block; margin-bottom: 8px; color: var(--ink); }

.faq-wrap { display: grid; gap: 10px; }
.faq-item {
  border-radius: var(--rnd-card);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font: 700 1rem/1.35 var(--font-body);
}
.faq-icon { display: inline-flex; transition: transform .25s; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer-inner { padding: 0 20px 18px; color: var(--ink-soft); line-height: 1.7; }

.services-spine-section { overflow: hidden; }
.spine-intro { color: var(--ink-soft); max-width: 66ch; margin: 0 0 28px; line-height: 1.75; }
.spine-grid {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: clamp(16px, 4vw, 34px);
}
.spine {
  position: absolute;
  left: 37px;
  width: 4px;
  min-height: 100%;
  border-radius: 999px;
  background: rgba(20,24,26,.12);
}
.spine-fill {
  width: 100%;
  height: 0;
  border-radius: inherit;
  background: var(--grad);
}
.spine-steps { grid-column: 1 / -1; display: grid; gap: 22px; }
.spine-step {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: clamp(16px, 4vw, 34px);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.spine-step.is-visible { opacity: 1; transform: none; }
.spine-node {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2px solid var(--line);
  font: 800 1rem/1 var(--font-display);
  color: var(--orange-deep);
  box-shadow: 0 12px 30px -22px rgba(0,0,0,.5);
  z-index: 2;
}
.spine-step.is-active .spine-node { background: var(--grad); color: #fff; border-color: transparent; }
.spine-card {
  border-radius: var(--rnd-card);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 24px 54px -36px rgba(0,0,0,.45);
}
.spine-card-top,
.spine-card-foot,
.spine-chips { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spine-card-top { margin-bottom: 16px; }
.spine-card-ic {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--rnd);
  background: linear-gradient(115deg, rgba(0,173,188,.14), rgba(255,102,0,.14));
}
.spine-card-ic .mi { color: var(--orange-deep); }
.spine-card-sub,
.spine-note { color: var(--ink-soft); font-size: .86rem; }
.spine-card-title { font-size: clamp(1.35rem, 3vw, 2rem); margin-top: 2px; }
.spine-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--rnd);
  background: rgba(255,255,255,.5);
  color: var(--ink-soft);
  font-size: .88rem;
}
.spine-card-foot { justify-content: space-between; margin-top: 18px; }
.spine-mini-cta {
  border: 0;
  background: transparent;
  color: var(--orange-deep);
  font: 700 .9rem/1 var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.projects-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.projects-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 8px 2px 16px;
}
.project-card {
  flex: 0 0 min(330px, 84vw);
  scroll-snap-align: start;
  border-radius: var(--rnd-card);
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  color: var(--ink);
  box-shadow: 0 18px 42px -30px rgba(0,0,0,.45);
}
.project-logo-wrap { height: 54px; display: flex; align-items: center; margin-bottom: 18px; }
.project-logo { max-height: 54px; width: auto; object-fit: contain; }
.project-name { font-weight: 800; margin-bottom: 8px; }
.project-review { color: var(--ink-soft); font-size: .92rem; line-height: 1.6; }
.project-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 16px; color: var(--ink-soft); font-size: .78rem; }
.project-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--orange-deep); font-weight: 700; }

/* Data-reveal */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s ease-out; }
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal].is-visible { opacity: 1; transform: translateX(0) translateY(0); }

/* Responsive SEO */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-main-grid,
  .skills-grid,
  .tools-grid { grid-template-columns: 1fr; }
  .about-main-grid .about-card:first-child { grid-row: auto; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .spine-grid,
  .spine-step { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .spine { left: 23px; }
  .spine-node { width: 44px; height: 44px; font-size: .88rem; }
  .spine-card-foot { align-items: flex-start; flex-direction: column; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .full { grid-column: 1; }
  .form-foot {
    grid-column: 1;
    justify-content: center;
  }
  .form-check {
    min-width: 0;
    width: 100%;
  }
  .contact-submit {
    width: 100%;
    justify-content: center;
  }
  .hero-title { gap: 12px; font-size: clamp(1.95rem, 8.6vw, 3.2rem); }
  .hero-logo { height: clamp(118px, 30vw, 168px); }
}

/* Touch devices: prevent sticky hover states on buttons */
@media (hover: none) {
  .btn:hover,
  .hero-cta-primary:hover,
  button.hero-cta-primary:hover,
  .contact-submit:hover {
    gap: .6em !important;
    transform: none !important;
    box-shadow: none !important;
  }
  .btn:hover::after,
  .hero-cta-primary:hover::after,
  button.hero-cta-primary:hover::after,
  .contact-submit:hover::after {
    transform: translateY(101%) !important;
  }
  .btn:hover svg { transform: none !important; }
  .btn.ghost:hover { color: var(--ink) !important; }
  .btn.ghost:hover span.t { -webkit-text-fill-color: transparent !important; }
  .btn.lite:hover { color: var(--orange-deep) !important; }
  .hero .btn.ghost:hover,
  .hero-cta-secondary:hover {
    background: rgba(255, 255, 255, .14) !important;
    color: #fff !important;
  }
  .hero .btn.ghost:hover span.t { -webkit-text-fill-color: #fff !important; }
}
