/* =========================================================
   Farbpinsel Spandler · style.css
   Custom-Layer über Tailwind (Play CDN) — Design-Tokens,
   Komponenten-Klassen, Reveal-Animationen.
   ========================================================= */

:root {
  --color-anthrazit: #1F2937;
  --color-anthrazit-soft: #374151;
  --color-anthrazit-deep: #0B0F17;
  --color-signal: #F26A1F;
  --color-signal-hover: #D85A14;
  --color-signal-soft: #FBC9A6;
  --color-sand: #F7F4EF;
  --color-white: #FFFFFF;
  --color-ink: #0B0F17;
  --color-muted: #6B7280;

  --bg-page: var(--color-sand);
  --bg-surface: #FFFFFF;
  --bg-tinted: #FFFFFF;
  --text-primary: var(--color-ink);
  --text-secondary: #4B5563;
  --border-soft: rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 40px rgba(15, 23, 42, 0.07);

  --header-bg: rgba(247, 244, 239, 0.0);
  --header-bg-scrolled: rgba(247, 244, 239, 0.85);
  --header-border-scrolled: rgba(15, 23, 42, 0.08);

  --radius-card: 20px;
  --radius-pill: 999px;
}

[data-theme="dark"] {
  --bg-page: #0B0F17;
  --bg-surface: #131A26;
  --bg-tinted: #0F1620;
  --text-primary: #F7F4EF;
  --text-secondary: rgba(247, 244, 239, 0.72);
  --border-soft: rgba(247, 244, 239, 0.08);
  --shadow-soft: 0 12px 50px rgba(0, 0, 0, 0.45);

  --header-bg-scrolled: rgba(11, 15, 23, 0.85);
  --header-border-scrolled: rgba(247, 244, 239, 0.08);
}

/* -------- Base -------- */
html { scroll-behavior: smooth; }
body { background: var(--bg-page); color: var(--text-primary); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-anthrazit); color: #fff;
  padding: 0.75rem 1rem; border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* -------- Typography -------- */
.eyebrow {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-signal);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 0.5rem;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  max-width: 38rem;
  color: rgba(255,255,255,0.88);
}

.section-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.section-lead {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 42rem;
}

/* -------- Header -------- */
.header {
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  transition: background 0.3s ease, border-color 0.3s, backdrop-filter 0.3s;
}
.header.scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--header-border-scrolled);
  backdrop-filter: saturate(150%) blur(14px);
}

.nav-link {
  position: relative;
  color: var(--text-primary);
  transition: color 0.2s;
}
.header:not(.scrolled) .nav-link { color: #fff; }
.nav-link:hover, .nav-link:focus-visible { color: var(--color-signal); }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  height: 2px; width: 0; background: var(--color-signal);
  transition: width 0.25s;
}
.nav-link:hover::after, .nav-link:focus-visible::after { width: 100%; }

.theme-toggle, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.header:not(.scrolled) .theme-toggle,
.header:not(.scrolled) .menu-toggle { color: #fff; }
.theme-toggle:hover, .menu-toggle:hover {
  background: rgba(15, 23, 42, 0.06);
}
.header:not(.scrolled) .theme-toggle:hover,
.header:not(.scrolled) .menu-toggle:hover {
  background: rgba(255,255,255,0.12);
}

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Logo swap on dark mode */
[data-theme="dark"] .logo-default { display: none; }
[data-theme="dark"] .logo-light { display: block !important; }

/* Mobile nav */
.mobile-nav {
  background: var(--bg-page);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  animation: slideDown 0.25s ease;
}
.mobile-link {
  display: block;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  color: var(--text-primary);
}
.mobile-link:hover { background: rgba(31, 41, 55, 0.06); color: var(--color-signal); }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.15s, background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1rem; }

.btn-primary {
  background: var(--color-signal);
  color: #fff;
  box-shadow: 0 8px 30px rgba(242, 106, 31, 0.35);
}
.btn-primary:hover { background: var(--color-signal-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.5); }

/* -------- Hero -------- */
.hero { color: #fff; min-height: 100svh; }
.hero-video { filter: saturate(105%) contrast(105%); }
.hero-overlay {
  background:
    radial-gradient(120% 80% at 20% 100%, rgba(11,15,23,0.85) 0%, rgba(11,15,23,0.55) 35%, rgba(11,15,23,0.15) 70%, transparent 100%),
    linear-gradient(180deg, rgba(11,15,23,0.45) 0%, rgba(11,15,23,0.15) 30%, rgba(11,15,23,0.7) 100%);
}

.scroll-indicator {
  position: absolute; left: 50%; bottom: 1.5rem;
  width: 28px; height: 44px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 14px;
  transform: translateX(-50%);
  display: flex; justify-content: center; align-items: flex-start;
}
.scroll-indicator span {
  display: block;
  width: 3px; height: 8px; margin-top: 6px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

/* -------- Trust bar -------- */
.trust-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-soft);
}
.trust-item {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 0.4rem;
}
.trust-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800; font-size: 2.2rem;
  color: var(--color-signal); line-height: 1;
}
.trust-label {
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-secondary);
}

/* -------- Sections -------- */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }

.section-tinted { background: var(--bg-tinted); }
[data-theme="light"] .section-tinted,
:root .section-tinted { background: #FFFFFF; }
[data-theme="dark"] .section-tinted { background: #0F1620; }

.section-head { text-align: left; max-width: 48rem; margin-bottom: 3rem; }

/* -------- Service cards -------- */
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(242,106,31,0.04) 100%);
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 106, 31, 0.35);
  box-shadow: var(--shadow-soft);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(242, 106, 31, 0.12);
  color: var(--color-signal);
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem; line-height: 1.55;
}

/* -------- Übernahme/Werte -------- */
.value-item {
  display: flex; gap: 0.85rem; align-items: flex-start;
  font-size: 1rem; color: var(--text-secondary);
}
.value-dot {
  flex-shrink: 0;
  width: 10px; height: 10px; margin-top: 0.45rem;
  background: var(--color-signal);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(242, 106, 31, 0.18);
}
.value-item strong { color: var(--text-primary); }

.placeholder-tile {
  background:
    repeating-linear-gradient(45deg, rgba(31,41,55,0.04) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, rgba(242,106,31,0.06), rgba(31,41,55,0.04));
  border: 1px dashed rgba(31, 41, 55, 0.2);
}
[data-theme="dark"] .placeholder-tile {
  background:
    repeating-linear-gradient(45deg, rgba(247,244,239,0.04) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, rgba(242,106,31,0.08), rgba(247,244,239,0.04));
  border-color: rgba(247, 244, 239, 0.18);
}
[data-theme="dark"] .placeholder-tile .text-anthrazit\/40 { color: rgba(247,244,239,0.5); }

/* -------- Referenzen tiles -------- */
.ref-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(31,41,55,0.05) 0 14px, transparent 14px 28px),
    linear-gradient(140deg, #1F2937 0%, #374151 100%);
  display: flex; align-items: flex-end;
  padding: 1.25rem;
  cursor: pointer;
  transition: transform 0.3s;
}
.ref-tile::before {
  content: attr(data-tag);
  position: absolute; top: 1rem; left: 1rem;
  background: var(--color-signal); color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}
.ref-tile figcaption {
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 1.05rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.ref-tile:hover { transform: scale(1.02); }
.ref-tile-tall { aspect-ratio: 4 / 6.5; grid-row: span 2; }
.ref-tile-wide { aspect-ratio: 8 / 5; grid-column: span 2; }
@media (max-width: 767px) {
  .ref-tile-tall { aspect-ratio: 4 / 5; grid-row: auto; }
  .ref-tile-wide { aspect-ratio: 4 / 5; grid-column: auto; }
}

/* -------- Testimonials -------- */
.testimonial {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.testimonial::before {
  content: '"';
  position: absolute; top: 0.25rem; right: 1.25rem;
  font-family: 'Manrope', serif;
  font-size: 5rem; line-height: 1;
  color: var(--color-signal);
  opacity: 0.2;
}
.testimonial p { color: var(--text-primary); font-size: 1.05rem; line-height: 1.55; }
.testimonial footer { display: flex; align-items: center; gap: 0.85rem; }
.testimonial .avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--color-anthrazit); color: #fff;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.85rem;
}
.testimonial footer strong { display: block; color: var(--text-primary); font-weight: 600; }
.testimonial footer span { font-size: 0.85rem; color: var(--text-secondary); }
.testimonial-tag {
  position: absolute; bottom: 0.75rem; right: 0.75rem;
  background: rgba(31, 41, 55, 0.08);
  color: var(--text-secondary);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px;
}

/* -------- CTA cards -------- */
.cta-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1.75rem;
}
.cta-card-dark {
  background: linear-gradient(140deg, #1F2937 0%, #0B0F17 100%);
  color: #fff;
  border-color: rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.cta-card-dark::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 100% 0%, rgba(242,106,31,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800; font-size: 1.5rem;
  margin-top: 1rem;
}
.cta-card p { margin-top: 0.75rem; line-height: 1.55; opacity: 0.85; }
.cta-card-dark p { color: rgba(255,255,255,0.78); }

.cta-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(242,106,31,0.18);
  color: var(--color-signal);
}
.cta-icon-light {
  background: rgba(242,106,31,0.12);
}

/* -------- Form -------- */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; } }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label {
  font-family: 'Manrope', sans-serif;
  font-weight: 600; font-size: 0.85rem;
  color: var(--text-primary);
}
.form-row input, .form-row textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--bg-page);
  font: inherit;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--color-signal);
  box-shadow: 0 0 0 4px rgba(242, 106, 31, 0.15);
}
.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: #E11D48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.15);
}
.form-status { min-height: 1.5rem; font-size: 0.9rem; }
.form-status.success { color: #047857; font-weight: 600; }
.form-status.error { color: #B91C1C; font-weight: 600; }

/* -------- Footer -------- */
.footer {
  background: var(--color-anthrazit-deep);
  color: #fff;
}
.footer-h {
  font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-signal);
  margin-bottom: 1rem;
}
.footer-list { display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.95rem; color: rgba(255,255,255,0.78); }
.footer-list a:hover { color: var(--color-signal); }

/* -------- Reveal Animation -------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-indicator span { animation: none; }
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
}

/* -------- Utility overrides -------- */
.text-signal { color: var(--color-signal); }
