/* ==========================================================================
   Stark & Söhne – zentrales Stylesheet
   Mobile-first, keine externen Libraries.
   ========================================================================== */

/* Lokale Webfonts (variable Fonts, kein Abruf externer Server) ------------ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/playfair-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/playfair-display-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/playfair-display-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Farben */
  --color-bg: #111114;
  --color-bg-raised: #17171a;
  --color-bg-card: #1c1c1f;
  --color-border: #2a2a2e;
  --color-text: #e9e7e2;
  --color-text-muted: #a3a19c;
  --color-gold: #c8a951;
  --color-gold-light: #dcc276;
  --color-gold-dim: rgba(200, 169, 81, 0.14);

  /* Typografie */
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1140px;
  --section-pad: clamp(4rem, 10vw, 7.5rem);
  --radius: 6px;

  /* Übergänge */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset ------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--color-gold-light);
}

ul {
  list-style: none;
}

/* Typografie ------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}

p {
  color: var(--color-text-muted);
}

strong {
  color: var(--color-text);
  font-weight: 600;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 42em;
}

/* Layout-Helfer ---------------------------------------------------------- */

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
}

/* Leicht transluzent, damit der Cursor-Grid-Hintergrund durchscheint */
.section--raised {
  background: rgba(23, 23, 26, 0.88);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-head {
  max-width: 46em;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-head p {
  margin-top: 1rem;
}

/* Goldene Trennlinie */
.rule {
  height: 1px;
  border: 0;
  margin: 1.5rem 0;
  background: linear-gradient(90deg, var(--color-gold), transparent 70%);
  max-width: 120px;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
  /* Magic-Button-Effekte (werden per JS gesetzt) */
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-intensity: 0;
  --glow-radius: 130px;
  box-shadow: 0 0 calc(var(--glow-intensity) * 26px)
    rgba(200, 169, 81, calc(var(--glow-intensity) * 0.35));
}

/* Goldener Glow-Ring, der dem Cursor entlang der Button-Kante folgt */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background: radial-gradient(
    var(--glow-radius) circle at var(--glow-x) var(--glow-y),
    rgba(220, 194, 118, calc(var(--glow-intensity) * 0.9)) 0%,
    rgba(200, 169, 81, calc(var(--glow-intensity) * 0.45)) 30%,
    transparent 60%
  );
  border-radius: inherit;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.btn .magic-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(220, 194, 118, 1);
  box-shadow: 0 0 6px rgba(200, 169, 81, 0.6);
  pointer-events: none;
  z-index: 2;
}

.btn .magic-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(220, 194, 118, 0.4) 0%,
    rgba(200, 169, 81, 0.2) 30%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 3;
}

.btn-gold {
  background: var(--color-gold);
  color: #14120a;
}

.btn-gold:hover {
  background: var(--color-gold-light);
  color: #14120a;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-ghost:hover {
  background: var(--color-gold-dim);
  color: var(--color-gold-light);
}

/* Header / Navigation ---------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 17, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.brand span {
  color: var(--color-gold);
}

.brand:hover {
  color: var(--color-text);
}

.brand-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: none;
}

.footer-brand .brand-logo {
  height: 72px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg-raised);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 1.25rem 1.75rem;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.site-nav a:not(.btn) {
  display: block;
  padding: 0.6rem 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--color-gold);
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(5rem, 14vw, 10rem);
  overflow: hidden;
}

.hero::before {
  /* dezenter goldener Lichtschein */
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(200, 169, 81, 0.09), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 52em;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-gold);
}

.hero .lead {
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Trust-Leiste ----------------------------------------------------------- */

.trust-bar {
  border-block: 1px solid var(--color-border);
  background: rgba(23, 23, 26, 0.88);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.trust-item {
  padding: 1.75rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.trust-item:last-child {
  border-bottom: 0;
}

.trust-value {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.2;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

/* Karten & Grids --------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
}

.card .card-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

a.card-block {
  display: block;
  color: inherit;
}

a.card-block:hover {
  color: inherit;
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  color: var(--color-gold);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

/* Nummerierte Blöcke (USPs, Prozess) ------------------------------------ */

.num-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.num-item:last-child {
  border-bottom: 0;
}

.num-badge {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  padding-top: 0.2rem;
  min-width: 2.2rem;
}

.num-item h3 {
  margin-bottom: 0.5rem;
}

/* Problem/Lösung --------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.panel {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
}

/* Glare-Hover (CSS-Portierung der React-Bits-Komponente "GlareHover"):
   ein warmer Lichtstreif zieht beim Hovern diagonal über die Kachel */
.card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    -30deg,
    hsla(0, 0%, 0%, 0) 60%,
    rgba(255, 245, 220, 0.14) 70%,
    hsla(0, 0%, 0%, 0),
    hsla(0, 0%, 0%, 0) 100%
  );
  background-size: 300% 300%, 100% 100%;
  background-repeat: no-repeat;
  background-position: -100% -100%, 0 0;
  transition: background-position 800ms ease;
  pointer-events: none;
}

.card:hover::before,
.panel:hover::before {
  background-position: 100% 100%, 0 0;
}

.panel--problem {
  border-left: 3px solid #6b6b70;
}

.panel--solution {
  border-left: 3px solid var(--color-gold);
}

.panel h3 {
  margin-bottom: 1rem;
}

.panel ul {
  display: grid;
  gap: 0.65rem;
}

.panel li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.75rem;
  height: 1px;
  background: var(--color-gold);
}

/* Leistungs-Detailblöcke ------------------------------------------------- */

.service-block {
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
  border-bottom: 1px solid var(--color-border);
}

.service-block:last-child {
  border-bottom: 0;
}

.service-block h3 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 1rem;
}

.service-block p + p {
  margin-top: 1rem;
}

.service-block ul {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.service-block li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.service-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.75rem;
  height: 1px;
  background: var(--color-gold);
}

/* CTA-Sektion ------------------------------------------------------------ */

.cta-section {
  text-align: center;
  background: rgba(23, 23, 26, 0.88);
  border-top: 1px solid var(--color-border);
}

.cta-section h2 {
  max-width: 22em;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 38em;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

/* Kontakt ---------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact-list {
  display: grid;
  gap: 1.5rem;
}

.contact-list dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}

.contact-list dd {
  color: var(--color-text-muted);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.form-field input {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease);
}

.form-field input:focus {
  outline: none;
  border-color: var(--color-gold);
}

/* Honeypot-Feld: für Menschen unsichtbar, Bots füllen es aus */
.form-field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.25rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.form-status {
  font-size: 0.95rem;
  color: var(--color-gold);
  min-height: 1.5em;
}

.form-status--error {
  color: #d98a7a;
}

/* Rechtstexte ------------------------------------------------------------ */

.legal h2 {
  font-size: 1.4rem;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}

.legal h3 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal p + p {
  margin-top: 0.75rem;
}

.legal .todo {
  color: var(--color-gold);
  font-style: italic;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-raised);
  padding-top: clamp(3rem, 7vw, 4.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 28em;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-bottom ul {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom a {
  color: var(--color-text-muted);
}

.footer-bottom a:hover {
  color: var(--color-gold);
}

/* Cursor-Grid-Hintergrund ------------------------------------------------ */

.cursor-grid-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Scroll-Animationen ----------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card::before,
  .panel::before {
    transition: none;
  }
}

/* Tablet ------------------------------------------------------------------ */

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

  .trust-item {
    border-bottom: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Desktop ----------------------------------------------------------------- */

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: static;
    background: none;
    border: 0;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 1.75rem;
    margin-bottom: 0;
  }

  .site-nav a:not(.btn) {
    padding: 0.25rem 0;
    font-size: 0.9rem;
  }

  .nav-cta {
    padding: 0.6rem 1.3rem;
    font-size: 0.85rem;
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-item {
    border-bottom: 0 !important;
    border-right: 1px solid var(--color-border);
  }

  .trust-item:last-child {
    border-right: 0;
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 2fr 3fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
