/* Kfz-Meisterwerkstatt Weida — Premium Stylesheet 2026 */

:root {
  --bg-deep: #060910;
  --bg-elevated: #0b1018;
  --bg-card: #0f1826;
  --bg-soft: #f1f5fc;

  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-bright: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.38);
  --accent-soft: rgba(37, 99, 235, 0.1);

  --gold: #d4a853;
  --gold-soft: rgba(212, 168, 83, 0.12);

  --text: #edf2ff;
  --text-muted: rgba(237, 242, 255, 0.58);
  --text-subtle: rgba(237, 242, 255, 0.32);
  --text-dark: #0f172a;
  --text-dark-muted: #64748b;

  --line: rgba(255, 255, 255, 0.07);
  --line-medium: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(15, 23, 42, 0.09);
  --line-dark-medium: rgba(15, 23, 42, 0.16);

  --shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.055);
  --shadow-blue: 0 8px 48px rgba(37, 99, 235, 0.3);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --header-h: 76px;
  --container: min(1200px, calc(100% - 48px));
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-soft);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; vertical-align: middle; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* —— Page loader —— */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s var(--ease-out), visibility 0.55s;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pl-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.pl-mark {
  width: 68px; height: 68px;
  background: var(--accent);
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  animation: pl-pulse 0.9s var(--ease-out) infinite alternate;
}

@keyframes pl-pulse {
  to { transform: scale(1.07); box-shadow: 0 0 50px rgba(37, 99, 235, 0.55); }
}

.pl-bar {
  width: 130px; height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.pl-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 999px;
  animation: pl-fill 1.4s var(--ease-out) forwards;
}

@keyframes pl-fill {
  from { width: 0; }
  to { width: 100%; }
}

/* —— Skip link —— */
.skip-link {
  position: absolute;
  left: -9999px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px; top: 16px;
  width: auto; height: auto;
  padding: 12px 16px;
  background: #fff;
  z-index: 2000;
  border-radius: var(--radius-sm);
}

.container { width: var(--container); margin-inline: auto; }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(6, 9, 16, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  background: rgba(6, 9, 16, 0.96);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.logo-mark {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.06em;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
  transition: box-shadow 0.3s;
}

.logo:hover .logo-mark {
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.6);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.logo-text strong {
  font-size: clamp(1rem, 2.5vw, 1.08rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-desktop a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 13px;
  border-radius: 999px;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.nav-desktop a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile drawer */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  visibility: hidden;
}

.nav-mobile.is-open {
  pointer-events: auto;
  visibility: visible;
}

.nav-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.nav-mobile.is-open .nav-mobile-backdrop { opacity: 1; }

.nav-mobile-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(100%, 360px);
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--line);
  padding: 24px 22px 32px;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.nav-mobile.is-open .nav-mobile-panel { transform: translateX(0); }

.nav-mobile a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.nav-mobile a:active { background: rgba(255, 255, 255, 0.06); }

.nav-mobile-close {
  align-self: flex-end;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-mobile-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background 0.2s var(--ease-out), border-color 0.2s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.38), 0 2px 8px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.52), 0 4px 12px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-dark {
  background: #fff;
  border-color: var(--line-dark);
  color: var(--text-dark);
}

.btn-outline-dark:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.12);
}

.btn-block { width: 100%; }

/* —— Hero —— */
.hero {
  position: relative;
  background: var(--bg-deep);
  color: var(--text);
  padding: clamp(56px, 10vw, 120px) 0 clamp(72px, 12vw, 140px);
  overflow: hidden;
  isolation: isolate;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, transparent 70%);
  top: -300px; left: -250px;
  animation: orb-drift-1 18s ease-in-out infinite alternate;
}

.hero-orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, transparent 70%);
  bottom: -200px; right: -150px;
  animation: orb-drift-2 22s ease-in-out infinite alternate;
}

.hero-orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
  top: 40%; left: 55%;
  animation: orb-drift-3 14s ease-in-out infinite alternate;
}

@keyframes orb-drift-1 {
  to { transform: translate(60px, 80px) scale(1.1); }
}
@keyframes orb-drift-2 {
  to { transform: translate(-50px, -70px) scale(0.9); }
}
@keyframes orb-drift-3 {
  to { transform: translate(30px, -40px) scale(1.15); }
}

/* Grain texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 150px;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.6;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 60px);
  align-items: center;
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 5vw + 1rem, 5.2rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.h1-break { display: block; }
.h1-accent { color: var(--accent-bright); }

.hero-lead {
  margin: 0 0 30px;
  font-size: clamp(1rem, 1vw + 0.9rem, 1.18rem);
  color: var(--text-muted);
  max-width: 36ch;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, background 0.2s;
}

.trust-pill:hover {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.08);
}

.trust-pill-mark {
  display: inline-block;
  margin-right: 7px;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #fff;
  background: #c62828;
}

/* Hero image + floating badges */
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
}

.hero-visual-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-visual-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease-out;
}

.hero-visual:hover .hero-visual-inner img {
  transform: scale(1.03);
}

/* Floating info cards on image */
.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 9, 16, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  animation: badge-float 4s ease-in-out infinite alternate;
}

.hero-badge-gtue {
  top: -16px;
  left: 20px;
  animation-delay: 0s;
}

.hero-badge-rating {
  bottom: -16px;
  right: 20px;
  animation-delay: 1.5s;
}

@keyframes badge-float {
  from { transform: translateY(0px); }
  to { transform: translateY(-8px); }
}

.badge-icon-gtue {
  background: #c62828;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 8px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.badge-icon-star {
  font-size: 1.3rem;
  color: #f5b000;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.badge-info { display: flex; flex-direction: column; }

.badge-info strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.badge-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* —— Stats band —— */
.stats-band {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: clamp(28px, 5vw, 48px) clamp(16px, 3vw, 32px);
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.stat-item:hover { background: rgba(37, 99, 235, 0.04); }

.stat-item:nth-child(even) { border-right: none; }

@media (min-width: 768px) {
  .stat-item { border-bottom: none; }
  .stat-item:nth-child(even) { border-right: 1px solid var(--line); }
  .stat-item:last-child { border-right: none; }
}

.stat-num {
  display: block;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 20%, rgba(255, 255, 255, 0.55));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* —— Marquee —— */
.marquee-wrap {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
  user-select: none;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mtag {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  padding: 0 30px;
  letter-spacing: 0.01em;
}

.msep {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  opacity: 0.5;
}

/* —— Sections —— */
.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 5vw, 56px);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 12px;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 999px;
  flex-shrink: 0;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.5rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
}

.section-desc {
  margin: 0;
  color: var(--text-dark-muted);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.08rem);
  line-height: 1.7;
}

/* —— Dark band sections —— */
.section-dark {
  background: linear-gradient(180deg, #0c1120 0%, var(--bg-deep) 100%);
  color: var(--text);
}

.section-dark .section-kicker { color: var(--accent-bright); }
.section-dark .section-kicker::before { background: var(--accent-bright); }
.section-dark .section-title { color: var(--text); }
.section-dark .section-desc { color: var(--text-muted); }

/* —— Cards grid —— */
.grid-3 {
  display: grid;
  gap: clamp(16px, 2.5vw, 22px);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 30px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, var(--line-dark-medium), transparent 60%) border-box;
  border: 1px solid transparent;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(15, 20, 30, 0.12);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, rgba(37, 99, 235, 0.55) 0%, rgba(37, 99, 235, 0.15) 50%, transparent 100%) border-box;
}

.card-num {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.card-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.06));
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: background 0.3s, box-shadow 0.3s;
}

.card:hover .card-icon {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.08));
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-dark-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.section-dark .card {
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(145deg, var(--line-medium), transparent 60%) border-box;
  box-shadow: none;
}

.section-dark .card:hover {
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(145deg, rgba(37, 99, 235, 0.5) 0%, rgba(37, 99, 235, 0.12) 60%, transparent 100%) border-box;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.section-dark .card h3 { color: var(--text); }
.section-dark .card p { color: var(--text-muted); }
.section-dark .card-num { color: rgba(237, 242, 255, 0.25); }
.section-dark .card-icon {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-bright);
}

/* —— Split / About —— */
.split {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.about-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 5 / 4;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 6s ease-out;
}

.about-visual:hover img { transform: scale(1.04); }

#ueber-uns .about-visual {
  aspect-ratio: 16 / 9;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.checklist li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--text-dark-muted);
  font-weight: 500;
  font-size: 0.97rem;
}

.checklist svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

.section-dark .checklist li { color: var(--text-muted); }
.section-dark .checklist svg { color: var(--accent-bright); }

/* —— Benefits —— */
.benefits-grid {
  display: grid;
  gap: clamp(16px, 2vw, 20px);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); } }

.benefit {
  padding: 26px 22px;
  border-radius: var(--radius-md);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, var(--line-dark-medium), transparent 60%) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
}

.benefit:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(15, 20, 30, 0.1);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, rgba(37, 99, 235, 0.45) 0%, rgba(37, 99, 235, 0.1) 60%, transparent 100%) border-box;
}

.benefit strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 9px;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.benefit p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-dark-muted);
  line-height: 1.6;
}

/* —— Projects —— */
.projects {
  display: grid;
  gap: clamp(18px, 2.5vw, 24px);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) { .projects { grid-template-columns: repeat(3, 1fr); } }

.project {
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, var(--line-dark-medium), transparent 60%) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(15, 20, 30, 0.13);
}

.project figure { margin: 0; aspect-ratio: 16 / 11; overflow: hidden; }

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.project:hover img { transform: scale(1.05); }

.project figcaption { padding: 18px 20px 22px; }

.project figcaption strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.project figcaption span {
  font-size: 0.88rem;
  color: var(--text-dark-muted);
}

/* —— Testimonials —— */
.testimonials {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }

.quote {
  position: relative;
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  overflow: hidden;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
  background:
    linear-gradient(rgba(255,255,255,0.04), rgba(255,255,255,0.04)) padding-box,
    linear-gradient(145deg, rgba(255,255,255,0.1), transparent 60%) border-box;
  border: 1px solid transparent;
}

.quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  background:
    linear-gradient(rgba(255,255,255,0.06), rgba(255,255,255,0.06)) padding-box,
    linear-gradient(145deg, rgba(37, 99, 235, 0.5), rgba(37, 99, 235, 0.1) 60%, transparent) border-box;
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: -10px; left: 14px;
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  font-family: Georgia, serif;
  pointer-events: none;
}

.quote-stars {
  color: #f5b000;
  letter-spacing: 2px;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.quote p {
  margin: 0;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.quote footer {
  margin: 0; padding: 0;
  background: none;
  border: 0;
  position: relative;
  z-index: 1;
}

.quote cite {
  font-style: normal;
  font-weight: 800;
  color: var(--text);
  font-size: 0.88rem;
}

/* —— Location —— */
.location-block {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.location-figure {
  margin: 0 auto clamp(24px, 4vw, 32px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 520px);
  background: linear-gradient(145deg, #1a222c, #0e1318);
}

.location-figure img { width: 100%; height: 100%; object-fit: cover; }

.location-note {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 0.5vw + 0.9rem, 1.05rem);
}

/* —— Contact —— */
.contact-wrap {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

@media (min-width: 900px) {
  .contact-wrap { grid-template-columns: 0.95fr 1.05fr; align-items: start; }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  color: var(--text);
}

.contact-card h3 { margin: 0 0 8px; font-size: 1.22rem; letter-spacing: -0.02em; }
.contact-card p { margin: 0 0 20px; color: var(--text-muted); font-size: 0.95rem; }

.contact-list { list-style: none; padding: 0; margin: 0; }

.contact-list li {
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding-bottom: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.2s, color 0.2s;
}

.contact-list a:hover { border-color: var(--accent-bright); color: #fff; }

.contact-list .contact-note {
  color: rgba(237, 242, 255, 0.85);
  font-weight: 500;
  line-height: 1.6;
}

.form-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-soft);
}

.form-grid { display: grid; gap: 16px; }

@media (min-width: 560px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }

label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 8px;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}

input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark-medium);
  font: inherit;
  background: #fafbfd;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

textarea { min-height: 140px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
  background: #fff;
}

.form-hint {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--text-dark-muted);
}

/* —— CTA strip —— */
.cta-strip {
  position: relative;
  background: linear-gradient(135deg, #0a1528 0%, var(--bg-deep) 50%, #0c1120 100%);
  color: var(--text);
  padding: clamp(60px, 10vw, 96px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.cta-strip::before {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 65%);
  left: -200px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.cta-strip::after {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 65%);
  right: -100px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.cta-strip .split { gap: 24px; position: relative; z-index: 1; }

.cta-strip .section-title {
  color: var(--text);
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 3vw + 1rem, 2.9rem);
}

.cta-strip p { margin: 0; color: var(--text-muted); font-size: 1.05rem; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

@media (min-width: 900px) { .cta-actions { justify-content: flex-end; } }

/* —— Reveal animations —— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* —— Legal pages —— */
.legal-page {
  padding: calc(var(--header-h) + 40px) 0 72px;
  min-height: 100vh;
}

.legal-page .container { max-width: 760px; }
.legal-page h1 { font-size: clamp(1.75rem, 2vw + 1rem, 2.2rem); margin-bottom: 12px; }
.legal-muted { color: var(--text-dark-muted); margin-bottom: 32px; }
.legal-page h2 { font-size: 1.2rem; margin-top: 32px; margin-bottom: 12px; }
.legal-page p, .legal-page li { color: var(--text-dark-muted); }
.legal-page ul { padding-left: 1.2rem; }

.ph {
  background: rgba(37, 99, 235, 0.1);
  border: 1px dashed rgba(37, 99, 235, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  color: var(--text-dark);
}

/* —— Footer —— */
body > footer {
  background: #040710;
  color: #dce4f2;
  padding: 56px 0 0;
  border-top: 1px solid rgba(37, 99, 235, 0.15);
}

.footer-inner {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(220, 228, 242, 0.08);
}

.footer-brand .logo-mark {
  width: 42px; height: 42px;
  border-radius: 11px;
  font-size: 1.2rem;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.footer-brand p {
  margin: 0;
  line-height: 1.7;
  color: rgba(220, 228, 242, 0.65);
  font-size: 0.92rem;
}

.footer-brand a {
  color: rgba(220, 228, 242, 0.65);
  text-decoration: none;
  border-bottom: 1px solid rgba(220, 228, 242, 0.2);
  transition: color 0.2s, border-color 0.2s;
}

.footer-brand a:hover {
  color: #fff;
  border-color: var(--accent-bright);
}

.footer-col strong {
  display: block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(220, 228, 242, 0.45);
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: rgba(220, 228, 242, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 9px;
  transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding: 16px 0;
  width: 100%;
}

.footer-bottom .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.footer-powered {
  font-size: 0.88rem;
  color: rgba(220, 228, 242, 0.5);
  padding-right: 35px;
}

.footer-powered .wowobot-link {
  color: #22b8e0 !important;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.footer-powered .wowobot-link:hover {
  color: #4dd4f7 !important;
  text-decoration: underline;
}

/* —— Responsive nav —— */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 380px) {
  :root { --container: min(1200px, calc(100% - 24px)); }
  .hero-actions .btn { width: 100%; }
}

/* Safe areas iPhone */
@supports (padding: max(0px)) {
  .site-header .container, .container {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}
