/* ==========================================================================
   fabianwernet.de – Stylesheet
   Look: bodenständig-premium, Werkstatt-Ästhetik. Dunkel + Gelb (#f4c70f).
   Mobile-first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   FONTS – komplett lokal, keine externen Requests.
   HEADLINE: Wunsch-Font ist "Eveleth" (lizenzpflichtig). Aktiver Ersatz:
   "Alfa Slab One" (SIL OFL), selbst gehostet aus /assets/fonts.
   Wenn Eveleth lizenziert ist:
     1. Webfont-Dateien nach /assets/fonts legen
     2. @font-face hier eintragen:
        @font-face {
          font-family: "Eveleth";
          src: url("../assets/fonts/eveleth-clean.woff2") format("woff2");
          font-display: swap;
        }
     3. Unten --font-headline auf "Eveleth" umstellen.
   -------------------------------------------------------------------------- */

/* latin: deckt Deutsch inkl. Umlaute, ß und „Anführungszeichen" ab */
@font-face {
  font-family: "Alfa Slab One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/alfa-slab-one-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;
}
/* latin-ext: Reserve für Sonderzeichen */
@font-face {
  font-family: "Alfa Slab One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/alfa-slab-one-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-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-headline: "Alfa Slab One", "Rockwell", "Roboto Slab", serif; /* <- hier auf "Eveleth" umstellen */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #121210;          /* fast schwarz, leicht warm */
  --bg-alt: #1a1a16;      /* Sektions-Wechsel */
  --card: #21211c;
  --card-border: #32322a;
  --text: #eceade;
  --text-muted: #a7a496;
  --accent: #f4c70f;      /* Signalgelb */
  --accent-dark: #c7a20a;
  --on-accent: #171512;
  --whatsapp: #25d366;

  --radius: 10px;
  --container: 68rem;
}

/* ---------- Reset & Basics ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  /* dezente Werkstatt-Textur: feines Rauschen per Gradient, kein Bild = keine Ladezeit */
  background-image:
    radial-gradient(ellipse at 50% -20%, rgba(244, 199, 15, 0.06), transparent 60%);
}

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

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

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-headline);
  font-weight: 400; /* Alfa Slab One hat nur ein Gewicht */
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 8vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.55rem, 5.5vw, 2.5rem); margin-bottom: 1rem; text-transform: uppercase; }
h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--accent); }

.accent { color: var(--accent); }

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

p { max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 0 var(--accent-dark);
}
.btn-primary:hover { background: #ffd51f; }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover { background: rgba(244, 199, 15, 0.1); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #06240f;
  box-shadow: 0 4px 0 #1a9e4b;
}
.btn-whatsapp:hover { background: #33e276; }

.btn-big { padding: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.85rem; min-height: 44px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 18, 16, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.7rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-headline);
  font-size: clamp(0.85rem, 3.4vw, 1.1rem);
  white-space: nowrap;
  color: #fff; /* Wortmarke in Weiß */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%; /* weiche Kreiskante, dunkler Bildrand faellt auf dunklem Header nicht auf */
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 12vh, 8rem) 0;
  text-align: left;
}
.hero .container { position: relative; z-index: 1; }

/* Original-Logo-Render (assets/logo-render.jpg) als Deko rechts im Hero.
   Der dunkle Bildhintergrund wird per radialer Maske weich in den
   Seitenhintergrund überblendet. Fehlt die Datei, bleibt das Element leer. */
.hero-visual { display: none; }

@media (min-width: 60rem) {
  .hero-visual {
    display: block;
    position: absolute;
    top: 50%;
    right: -6rem;
    transform: translateY(-54%);
    width: 36rem;
    height: 36rem;
    background: url("../assets/logo-render.webp") center / cover no-repeat;
    -webkit-mask-image: radial-gradient(circle, #000 32%, transparent 66%);
    mask-image: radial-gradient(circle, #000 32%, transparent 66%);
    opacity: 0.85;
    pointer-events: none;
  }
}
.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  color: var(--text-muted);
}
.hero-name {
  margin-top: 1.1rem;
  font-size: 1.05rem;
}
.hero-name strong { color: var(--accent); }
.hero-cta { margin-top: 2rem; padding-bottom: clamp(3.5rem, 9vh, 6rem); }
.tagline {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Warnband-Streifen als Werkstatt-Akzent */
.stripe {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 18px,
    var(--bg) 18px 36px
  );
  opacity: 0.85;
}

/* ---------- Sektionen ---------- */
.section {
  padding-block: clamp(3.5rem, 9vh, 6.5rem);
  scroll-margin-top: 3.5rem; /* Anker landen nicht unterm Sticky-Header */
}
.section-alt { background: var(--bg-alt); }

.section-intro {
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  font-size: 1.1rem;
}
.section-note {
  margin-top: 2.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  max-width: 40ch;
}

.center { text-align: center; margin-top: 2.5rem; }

/* ---------- Cards (Probleme & Zitate) ---------- */
.cards {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
}
.card p { color: var(--text-muted); }
.card-num {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  color: var(--card-border);
  margin-bottom: 0.5rem;
}

/* Referenzen unter den Zitaten */
.references {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
}
.references-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.references-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.references-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
}

.quote { border-left: 4px solid var(--accent); }
.quote p { font-style: italic; }
.quote footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  font-style: normal;
}

/* ---------- Schritte (Auftrags-Check) ---------- */
.steps {
  display: grid;
  gap: 1.6rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
}
.step-num {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  color: var(--on-accent);
  background: var(--accent);
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 0 var(--accent-dark);
}
.step h3 { color: var(--text); }
.step p { color: var(--text-muted); }

/* ---------- Selbst-Check (Quiz) ---------- */
.quiz {
  max-width: 36rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.8rem;
}
.quiz-step {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.quiz-bar {
  height: 8px;
  background: var(--card-border);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.quiz-question {
  margin-top: 1.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  min-height: 3.2em; /* verhindert Springen bei unterschiedlich langen Fragen */
}
.quiz-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.btn-quiz {
  justify-content: center;
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--card-border);
}
.btn-quiz:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.quiz-result { text-align: center; padding-top: 0.4rem; }
.quiz-score {
  font-family: var(--font-headline);
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  color: var(--accent);
  line-height: 1;
}
.quiz-verdict {
  margin-top: 0.8rem;
  color: var(--text);
  text-transform: uppercase;
  font-size: 1.25rem;
}
.quiz-text {
  color: var(--text-muted);
  margin: 0.8rem auto 1.4rem;
  max-width: 44ch;
}
.quiz-restart {
  display: block;
  margin: 0.4rem auto 0;
  padding: 0.8rem 1rem; /* Tippziel >= 44px */
  background: none;
  border: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.quiz-restart:hover { color: var(--accent); }
.quiz-noscript { color: var(--text-muted); margin-top: 1rem; }
.quiz-noscript a { color: var(--accent); }

/* ---------- Über mich ---------- */
.about-grid {
  display: grid;
  gap: 2.2rem;
}
.about-img {
  width: 100%;
  max-width: 22rem;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}
.about-text p + p { margin-top: 1rem; }
.signature {
  margin-top: 1.4rem !important;
  font-family: var(--font-headline);
  color: var(--accent);
  font-size: 1.1rem;
  text-transform: uppercase;
}

/* ---------- CTA / Formular ---------- */
.cta-section {
  border-top: 1px solid var(--card-border);
  text-align: center;
}
.cta-section .section-intro { margin-inline: auto; }
.cta-section h2, .cta-section p { text-wrap: balance; }

.email-alt {
  margin: 1.4rem auto 0;
  color: var(--text-muted);
}
.email-alt a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  padding-block: 0.7rem; /* Tippziel >= 44px */
}
.email-alt a:hover { text-decoration: underline; }

.or-divider {
  margin: 2.4rem auto 1.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.contact-form {
  max-width: 30rem;
  margin-inline: auto;
  text-align: left;
  display: grid;
  gap: 1.1rem;
}
.form-row { display: grid; gap: 0.35rem; }
.form-row label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.contact-form .btn { justify-self: start; }
.form-hint { font-size: 0.85rem; color: var(--text-muted); }

.wa-icon { flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding-block: 1.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-right: 1.2rem;
  display: inline-block;
  padding-block: 0.8rem; /* Tippziel >= 44px */
}
.site-footer a:hover { color: var(--accent); }

/* ---------- Rechtstexte (Impressum/Datenschutz) ---------- */
.legal-page { padding-block: 3rem 4rem; }
.legal-page h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.35rem; margin-top: 2.6rem; }
.legal-page h3 {
  font-size: 1.05rem;
  margin-top: 1.8rem;
  color: var(--text);
}
.legal-page p { margin-top: 0.8rem; color: var(--text-muted); }
.legal-page p strong { color: var(--text); }
.legal-page ul {
  margin: 0.8rem 0 0 1.25rem;
  color: var(--text-muted);
}
.legal-page li + li { margin-top: 0.5rem; }
.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: break-word;
}
.legal-source {
  margin-top: 2.5rem;
  font-size: 0.9rem;
}
.back-link,
.legal-page a.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.back-link:hover { text-decoration: underline; }

/* ---------- Scroll-Animationen ----------
   Ohne JS bleibt alles sichtbar: Die Ausblendung greift nur,
   wenn js/main.js dem <html> die Klasse "js" gibt. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}

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

/* ---------- Desktop ---------- */
@media (min-width: 45rem) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .step { grid-template-columns: 1fr; }
  .step-num { margin-bottom: 0.8rem; }
  .about-grid {
    grid-template-columns: 2fr 3fr;
    align-items: center;
    gap: 3.5rem;
  }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .site-footer a:last-child { margin-right: 0; }
}
