/* ============================================
   BB Schmiede — Stylesheet
   Felix Bleyl · 2026
   ============================================ */

/* --- Fonts (lokal, kein CDN) --- */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* --- Design Tokens (nur helles Theme) --- */
:root {
  --anthrazit: #1a1f2e;
  --anthrazit-tief: #12151f;   /* dunkle Flächen (Hero, Kontakt-Band, Footer) */
  --off-white: #fafaf7;
  --copper: #c87533;
  --ember: #e08b45;            /* helle Glut — Akzente auf dunklem Grund */
  --fg-on-dark: #f2f1ec;
  --fg-muted-on-dark: #9aa0ad;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Inter', -apple-system, system-ui, sans-serif;

  --bg: var(--off-white);
  --bg-elevated: #ffffff;
  --fg: var(--anthrazit);
  --fg-muted: #6b6f7a;
  --border: rgba(26, 31, 46, 0.1);
  --border-strong: rgba(26, 31, 46, 0.2);
  --card-bg: rgba(26, 31, 46, 0.025);
  --accent: var(--copper);
  --accent-soft: rgba(200, 117, 51, 0.12);
  --header-bg: rgba(250, 250, 247, 0.85);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }

::selection { background: var(--accent); color: var(--off-white); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1080px;
  padding-inline: 1.25rem;
  margin-inline: auto;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem;
  padding: 0.625rem 1rem; background: var(--accent); color: var(--off-white);
  border-radius: 4px; font-family: var(--font-mono); font-size: 0.875rem;
  z-index: 100; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* --- Site Header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 0;
}

.brand-mini {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.06em;
  display: inline-flex; align-items: center; gap: 0.4em;
  transition: opacity 0.2s;
}
.brand-mini:hover { opacity: 0.8; }
.brand-mini .bracket { color: var(--accent); font-weight: 400; }

.header-nav { display: flex; gap: 1.25rem; align-items: center; }
.header-nav a {
  font-family: var(--font-mono); font-size: 0.875rem;
  color: var(--fg-muted); transition: color 0.2s;
}
.header-nav a:hover { color: var(--accent); }

@media (max-width: 540px) {
  .header-nav a { display: none; }
}

/* --- Hero-Intro (Schmiede-Video, einmal pro Sitzung) --- */
.intro {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  /* Farbe des ersten Videoframes — sichtbar nur, bis das Video rendert */
  background: #dfdcd2;
  opacity: 1;
  transition: opacity 0.8s ease;
}
.intro.is-on { display: flex; }
.intro.is-fading { opacity: 0; pointer-events: none; }

/* Seite hinterm Overlay nicht scrollbar, solange das Intro läuft */
html[data-intro] body { overflow: hidden; }

.intro-video {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative; z-index: 1;
}

/* Unschärfe-Ebene fürs Hochformat: dasselbe Video, stark geblurrt als
   Vollbild-Hintergrund. Im Querformat aus (dort läuft das Video als cover). */
.intro-video-bg {
  display: none;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(28px);
  /* leicht aufgezogen, damit die ausgefransten Blur-Ränder außerhalb liegen */
  transform: scale(1.15);
}

/* Hochformat (Handy): cover würde das 16:9-Video seitlich so stark beschneiden,
   dass Logo und Text abgeschnitten wären → scharfes Video komplett einpassen,
   der Blur-Layer füllt den Bildschirm dahinter. */
@media (orientation: portrait) {
  .intro-video { object-fit: contain; }
  .intro-video-bg { display: block; }
}

.intro-skip {
  position: absolute; right: 1.25rem; bottom: 1.25rem;
  font-family: var(--font-mono); font-size: 0.8125rem;
  color: rgba(26, 31, 46, 0.65);
  padding: 0.5rem 0.875rem; border-radius: 4px;
  background: rgba(250, 250, 247, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: color 0.2s, background 0.2s;
}
.intro-skip:hover, .intro-skip:focus-visible {
  color: var(--copper);
  background: rgba(250, 250, 247, 0.85);
}

/* ============================================================
   Hero (dunkel) — Glut, Funken-Canvas, Korn, gestaffelter Reveal
   ============================================================ */
.funken-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero--dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 110%,
      rgba(200, 117, 51, 0.22), rgba(200, 117, 51, 0.07) 45%, transparent 72%),
    linear-gradient(180deg, var(--anthrazit-tief) 0%, var(--anthrazit) 100%);
  color: var(--fg-on-dark);
  text-align: center;
  /* fixed Header überlagert den Hero — Platz oben einrechnen */
  padding: calc(4rem + clamp(2.5rem, 8vh, 5rem)) 0 clamp(4.5rem, 11vh, 7.5rem);
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
}

/* feines Filmkorn über den dunklen Flächen */
.hero--dark::after, .kontakt-band::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

/* Basis-Logo-Regel (karte.html nutzt .hero-logo weiterhin) */
.hero-logo {
  width: clamp(180px, 28vw, 280px);
  height: auto;
  margin: 0 auto 2rem;
}

.hero--dark .hero-logo {
  width: clamp(120px, 16vw, 168px);
  margin: 0 auto 2.25rem;
  /* anthrazitfarbene Logo-Lettern auf dunklem Grund: invertieren,
     hue-rotate hält die Klammern kupfern */
  filter: invert(1) hue-rotate(180deg) drop-shadow(0 0 24px rgba(200, 117, 51, 0.25));
}

.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.8125rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-muted-on-dark);
  margin-bottom: 1.5rem;
}
.hero-eyebrow .bracket { color: var(--ember); letter-spacing: 0; }

.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.625rem, 7.5vw, 4.75rem);
  line-height: 1.02; letter-spacing: -0.015em;
  margin: 0 auto 1.75rem;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-title > span { display: block; }
.hero-title-accent {
  color: var(--ember);
  text-shadow: 0 0 42px rgba(224, 139, 69, 0.4);
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.65;
  color: var(--fg-muted-on-dark);
  max-width: 52ch; margin: 0 auto 2.5rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: clamp(2.75rem, 6vh, 4rem);
}

.hero-facts {
  display: flex; justify-content: center; gap: clamp(1.75rem, 5vw, 4rem);
  font-family: var(--font-mono);
  border-top: 1px solid rgba(250, 250, 247, 0.1);
  padding-top: 1.75rem;
  max-width: 640px; margin-inline: auto;
}
.hero-facts > div { display: flex; flex-direction: column; }
.hero-facts dt {
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-muted-on-dark);
  order: 2;
}
.hero-facts dd {
  font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 700;
  color: var(--ember);
  margin-bottom: 0.25rem;
}

/* gestaffelter Reveal: startet erst, wenn das Intro-Overlay weg ist
   (html[data-intro] wird von intro.js beim Ausblenden entfernt) */
.hero-reveal { opacity: 0; }
html:not([data-intro]) .hero-reveal {
  animation: hero-rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--hr, 0) * 95ms + 80ms);
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-Hinweis: pulsierende Linie am Hero-Fuß */
.hero-scroll {
  position: absolute; z-index: 1;
  left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  padding: 0.5rem 1rem;
}
.hero-scroll-line {
  display: block; width: 1px; height: 44px;
  background: linear-gradient(180deg, transparent, var(--ember));
  animation: scroll-puls 2.2s ease-in-out infinite;
}
@keyframes scroll-puls {
  0%, 100% { transform: scaleY(0.55); opacity: 0.4; transform-origin: top; }
  50%      { transform: scaleY(1); opacity: 1; transform-origin: top; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line { animation: none; }
}

/* --- CTAs --- */
.cta {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.9375rem;
  padding: 0.875rem 1.625rem;
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: 4px; letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease,
              box-shadow 0.2s ease, border-color 0.2s ease;
}
.cta:hover, .cta:focus-visible {
  background: var(--accent); color: var(--off-white);
  transform: translateY(-2px);
}
.cta svg { transition: transform 0.2s; }
.cta:hover svg { transform: translateX(3px); }

.cta--fill {
  background: var(--copper); color: var(--off-white);
  border-color: var(--copper);
  box-shadow: 0 8px 32px -12px rgba(200, 117, 51, 0.7);
}
.cta--fill:hover, .cta--fill:focus-visible {
  background: var(--ember); border-color: var(--ember);
  box-shadow: 0 12px 40px -12px rgba(224, 139, 69, 0.85);
}
.cta--ghost {
  border-color: rgba(250, 250, 247, 0.25); color: var(--fg-on-dark);
}
.cta--ghost:hover, .cta--ghost:focus-visible {
  background: rgba(250, 250, 247, 0.08);
  border-color: rgba(250, 250, 247, 0.5); color: var(--fg-on-dark);
}

/* --- Sections --- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.section-title {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  letter-spacing: 0.04em;
  text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem);
  color: var(--fg);
}
.section-title .bracket {
  color: var(--accent); font-weight: 400;
  margin: 0 0.75em; display: inline-block;
}

/* --- Leistungen --- */
.leistungen-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem;
  max-width: 880px; margin-inline: auto;
}
@media (min-width: 720px) {
  .leistungen-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
}

.card {
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
  position: relative;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.card-icon {
  width: 40px; height: 40px;
  color: var(--accent);
  margin-bottom: 1.25rem;
  stroke-width: 1.5;
}

.card-title {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1.0625rem; letter-spacing: 0.01em;
  margin-bottom: 0.875rem; color: var(--fg);
}

.card-text {
  font-size: 0.9375rem; color: var(--fg-muted);
  line-height: 1.65;
}

/* --- Über --- */
.about {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem;
  max-width: 880px; margin-inline: auto; align-items: start;
}
@media (min-width: 760px) {
  .about { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 4rem; }
}

.about-text, .about-meta, .card { min-width: 0; }

.about-text p {
  font-size: 1.0625rem; line-height: 1.7;
  color: var(--fg); max-width: 60ch;
}
.about-text p + p { margin-top: 1rem; }
.about-text p strong { color: var(--accent); font-weight: 500; }

.about-meta {
  font-family: var(--font-mono); font-size: 0.875rem;
  padding: 1.75rem; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 6px;
  line-height: 1.5;
}
.about-meta dt {
  color: var(--accent); font-size: 0.8125rem;
  margin-bottom: 0.25rem; letter-spacing: 0.02em;
}
.about-meta dt::before { content: '// '; opacity: 0.55; }
.about-meta dd { color: var(--fg); margin-bottom: 1.125rem; }
.about-meta dd:last-child { margin-bottom: 0; }

/* --- Kontakt --- */
.contact {
  text-align: center; max-width: 600px; margin-inline: auto;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.375rem, 3.5vw, 2rem);
  color: var(--accent); margin-bottom: 1.75rem;
  position: relative; padding-bottom: 6px;
  letter-spacing: -0.01em;
}
.contact-email::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s ease;
}
.contact-email:hover::after, .contact-email:focus-visible::after {
  transform: scaleX(1); transform-origin: left;
}

.contact-meta {
  color: var(--fg-muted); font-size: 0.9375rem; line-height: 1.7;
  overflow-wrap: break-word; text-wrap: pretty;
}

/* --- Site Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  padding: 2rem 0;
  font-family: var(--font-mono); font-size: 0.8125rem;
  color: var(--fg-muted);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a:hover { color: var(--accent); }

/* --- Fade-In Animation --- */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* --- Legal Pages --- */
.legal {
  max-width: 720px; margin-inline: auto;
  padding: 3rem 0 4rem;
}
.legal h1 {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2rem; letter-spacing: 0.02em;
}
.legal h2 {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1rem;
  margin-top: 2.5rem; margin-bottom: 0.875rem;
  color: var(--accent); letter-spacing: 0.02em;
}
.legal p, .legal address {
  margin-bottom: 1rem; line-height: 1.7;
  color: var(--fg); font-style: normal;
}
.legal ul { list-style: none; padding-left: 1.125rem; margin-bottom: 1rem; }
.legal ul li { position: relative; margin-bottom: 0.5rem; line-height: 1.7; }
.legal ul li::before {
  content: '·'; color: var(--accent);
  position: absolute; left: -1rem; font-weight: bold;
}
.legal a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
  word-break: break-word;
}
.legal a:hover { text-decoration-thickness: 2px; }
.legal code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: var(--card-bg); padding: 2px 6px; border-radius: 3px;
}
.legal .placeholder {
  background: var(--accent-soft); padding: 2px 8px; border-radius: 3px;
  font-family: var(--font-mono); font-size: 0.9em; color: var(--accent);
}

.back-home {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-mono); font-size: 0.875rem;
  color: var(--fg-muted); margin-bottom: 2rem;
  transition: color 0.2s, transform 0.2s;
}
.back-home:hover { color: var(--accent); transform: translateX(-3px); }

/* --- NFC-Visitenkarte (karte.html) --- */
.vcard-body {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100vh; padding: 3rem 1.25rem;
}
.vcard { width: 100%; max-width: 360px; text-align: center; }

.vcard-logo {
  width: clamp(150px, 48vw, 200px);
  margin: 0 auto 1.5rem;
}
.vcard-name {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 1.5rem; color: var(--fg); letter-spacing: -0.01em;
  margin-bottom: 2.25rem;
}
.vcard-role {
  font-family: var(--font-mono); font-size: 0.875rem;
  color: var(--fg-muted); margin-top: 0.35rem; margin-bottom: 2.25rem;
}
.vcard-role .bracket { color: var(--accent); }

.vcard-actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* Konzept 2: 2-Spalten-Grid für die schnellen Kontaktwege */
.vc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.vcard-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.9375rem;
  padding: 0.95rem 1.25rem; border-radius: 6px;
  border: 1px solid var(--border-strong); color: var(--fg);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}
.vcard-btn svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.vcard-btn:hover, .vcard-btn:focus-visible {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px);
}

.vcard-btn--primary {
  background: var(--accent); border-color: var(--accent); color: var(--off-white);
}
.vcard-btn--primary svg { color: var(--off-white); }
.vcard-btn--primary:hover, .vcard-btn--primary:focus-visible {
  background: #b3672c; border-color: #b3672c; color: var(--off-white);
}

.vcard-foot {
  font-family: var(--font-mono); font-size: 0.8125rem;
  color: var(--fg-muted); margin-top: 2rem; letter-spacing: 0.06em;
}

/* --- Tempero-Highlight-Karte --- */
.vcard-tempero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  margin-top: 1.25rem; padding: 0.95rem 1.1rem;
  border-radius: var(--border-radius-lg, 12px);
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.vcard-tempero:hover, .vcard-tempero:focus-visible {
  transform: translateY(-2px);
  background: rgba(200, 117, 51, 0.2);
  box-shadow: 0 6px 22px -10px rgba(200, 117, 51, 0.7);
}
.vt-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent); color: var(--off-white);
  display: flex; align-items: center; justify-content: center;
}
.vt-icon svg { width: 23px; height: 23px; }
.vt-text { display: flex; flex-direction: column; flex: 1; min-width: 0; text-align: left; }
.vt-name { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: var(--accent); letter-spacing: 0.02em; }
.vt-sub { font-size: 0.76rem; color: var(--fg-muted); margin-top: 1px; }
.vt-arrow { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); transition: transform 0.2s ease; }
.vcard-tempero:hover .vt-arrow { transform: translateX(4px); }

/* Kupfer-Shimmer (Licht auf poliertem Metall) */
.vt-shine {
  position: absolute; top: 0; left: 0; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 200, 140, 0.3), transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: vt-shimmer 5s ease-in-out infinite 1.8s;
  pointer-events: none;
}
@keyframes vt-shimmer {
  0% { transform: translateX(-160%) skewX(-18deg); }
  32%, 100% { transform: translateX(330%) skewX(-18deg); }
}

/* --- Entrance: gestaffelter Reveal beim Öffnen --- */
@keyframes vc-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes vc-pop  { from { opacity: 0; transform: translateY(14px) scale(0.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
.vcard-logo { animation: vc-pop 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.vcard-name { animation: vc-rise 0.6s ease both 0.2s; }
.vcard-actions > .vcard-btn { animation: vc-rise 0.55s ease both 0.3s; }
.vc-grid .vcard-btn { animation: vc-rise 0.5s ease both; }
.vc-grid .vcard-btn:nth-child(1) { animation-delay: 0.42s; }
.vc-grid .vcard-btn:nth-child(2) { animation-delay: 0.50s; }
.vc-grid .vcard-btn:nth-child(3) { animation-delay: 0.58s; }
.vc-grid .vcard-btn:nth-child(4) { animation-delay: 0.66s; }
.vcard-tempero { animation: vc-pop 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.82s; }
.vcard-foot { animation: vc-rise 0.6s ease both 1s; }

@media (prefers-reduced-motion: reduce) {
  .vcard-logo, .vcard-name, .vcard-actions .vcard-btn, .vcard-tempero, .vcard-foot { animation: none; }
  .vt-shine { display: none; }
}

/* ============================================================
   Startseiten-Redesign 2026-07 — Header, Marquee, Sektionen,
   Prozess, Terminal, Kontakt-Band, dunkler Footer
   ============================================================ */

/* --- Header über dunklem Hero: fixed + transparent, nach dem
       Scrollen heller Balken (Klasse .is-scrolled via main.js) --- */
.site-header--index {
  position: fixed; left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header--index .brand-mini { color: var(--fg-on-dark); }
.site-header--index .header-nav a { color: var(--fg-muted-on-dark); }
.site-header--index .header-nav a:hover { color: var(--ember); }
.site-header--index .header-nav a.header-cta {
  border: 1px solid rgba(224, 139, 69, 0.5);
  border-radius: 4px; padding: 0.375rem 0.875rem;
  color: var(--ember);
}
.site-header--index .header-nav a.header-cta:hover {
  background: var(--copper); border-color: var(--copper);
  color: var(--off-white);
}

.site-header--index.is-scrolled {
  background: var(--header-bg);
  border-bottom-color: var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-header--index.is-scrolled .brand-mini { color: var(--fg); }
.site-header--index.is-scrolled .header-nav a { color: var(--fg-muted); }
.site-header--index.is-scrolled .header-nav a:hover { color: var(--accent); }
.site-header--index.is-scrolled .header-nav a.header-cta {
  color: var(--accent); border-color: rgba(200, 117, 51, 0.5);
}
.site-header--index.is-scrolled .header-nav a.header-cta:hover {
  background: var(--copper); border-color: var(--copper);
  color: var(--off-white);
}

@media (max-width: 540px) {
  /* Kontakt-Pille auf dem Handy behalten, nur die Textlinks ausblenden */
  .site-header--index .header-nav a.header-cta { display: inline-block; }
}

/* --- Marquee --- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 0.875rem 0;
}
.marquee-track {
  display: flex; align-items: center;
  width: max-content;
  font-family: var(--font-mono); font-size: 0.8125rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-muted);
  animation: marquee-lauf 30s linear infinite;
}
/* Abstand als margin statt flex-gap: so ist die halbe Trackbreite exakt
   eine Wortfolge und die -50%-Schleife läuft nahtlos */
.marquee-track > span { white-space: nowrap; margin-right: 2.75rem; }
.marquee-track .bracket { color: var(--accent); opacity: 0.7; letter-spacing: 0; }
@keyframes marquee-lauf {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* --- Sektions-Köpfe (Eyebrow + große Überschrift, linksbündig) --- */
.section-head { margin-bottom: clamp(2.75rem, 6vw, 4.5rem); }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 0.8125rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.section-eyebrow .bracket { color: var(--accent); letter-spacing: 0; }
.section-eyebrow--dark { color: var(--fg-muted-on-dark); }
.section-eyebrow--dark .bracket { color: var(--ember); }

.section-heading {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  line-height: 1.06; letter-spacing: -0.01em;
  color: var(--fg);
}

.section--alt { background: #f2f1ea; }

/* --- Glutpunkt: der Schlusspunkt jeder großen Überschrift glüht kupfern,
       wie ein frisch geschmiedetes Werkstück, das noch Restwärme hält --- */
.glut-dot {
  color: var(--copper);
  text-shadow: 0 0 18px rgba(200, 117, 51, 0.55);
}
.kontakt-band .glut-dot, .hero--dark .glut-dot {
  color: var(--ember);
  text-shadow: 0 0 26px rgba(224, 139, 69, 0.65);
}
/* --- Karten-Upgrade --- */
.card { border-radius: 10px; padding: 2.25rem; overflow: hidden; }
.card:hover {
  border-color: rgba(200, 117, 51, 0.45);
  box-shadow: 0 18px 48px -24px rgba(200, 117, 51, 0.35);
}
.card-num {
  position: absolute; top: 1rem; right: 1.375rem;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 3.25rem; line-height: 1;
  color: var(--accent); opacity: 0.13;
  pointer-events: none;
}
.card-tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.5rem; padding: 0;
}
.card-tags li {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.625rem;
  border: 1px solid rgba(200, 117, 51, 0.35); border-radius: 3px;
  color: var(--fg-muted);
  background: var(--accent-soft);
}

/* --- Prozess (Arbeitsweise) --- */
.prozess {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem;
  counter-reset: schritt;
}
@media (min-width: 640px) {
  .prozess { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
}
@media (min-width: 980px) {
  .prozess { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
}
.prozess-schritt {
  border-top: 1px solid var(--border-strong);
  padding-top: 1.25rem;
  position: relative;
}
.prozess-schritt::before {
  content: ''; position: absolute; top: -1px; left: 0;
  width: 2.5rem; height: 1px; background: var(--accent);
}
.prozess-num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.875rem; color: var(--accent);
  display: block; margin-bottom: 0.875rem;
}
.prozess-titel {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1.0625rem; margin-bottom: 0.625rem; color: var(--fg);
}
.prozess-text { font-size: 0.9375rem; line-height: 1.65; color: var(--fg-muted); }

/* --- Über: Zitat + Terminal-Karte --- */
.about-quote {
  margin-top: 1.5rem;
  padding: 0.25rem 0 0.25rem 1.125rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-mono); font-size: 0.9375rem;
  line-height: 1.7; color: var(--fg);
}

.terminal {
  background: var(--anthrazit-tief);
  border-radius: 10px;
  border: 1px solid rgba(250, 250, 247, 0.08);
  box-shadow: 0 32px 64px -32px rgba(18, 21, 31, 0.5);
  overflow: hidden;
  font-family: var(--font-mono);
}
.terminal-bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(250, 250, 247, 0.04);
  border-bottom: 1px solid rgba(250, 250, 247, 0.07);
}
.t-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(250, 250, 247, 0.16);
}
.t-dot:first-child { background: rgba(224, 139, 69, 0.75); }
.terminal-title {
  margin-left: 0.625rem;
  font-size: 0.75rem; color: var(--fg-muted-on-dark); letter-spacing: 0.04em;
}
.terminal-body {
  padding: 1.25rem 1.25rem 1.375rem;
  font-size: 0.8125rem; line-height: 1.9;
  color: var(--fg-on-dark);
}
.t-prompt { color: var(--ember); font-weight: 700; }
.t-out { color: var(--fg-muted-on-dark); padding-left: 1.05rem; }
.t-cursor {
  display: inline-block; width: 0.55em; height: 1em;
  background: var(--ember); vertical-align: text-bottom;
  animation: cursor-blink 1.1s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .t-cursor { animation: none; }
}

/* --- Kontakt-Band (dunkel, mit Funken) --- */
.kontakt-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 50% 115%,
      rgba(200, 117, 51, 0.24), rgba(200, 117, 51, 0.07) 45%, transparent 72%),
    linear-gradient(180deg, var(--anthrazit) 0%, var(--anthrazit-tief) 100%);
  color: var(--fg-on-dark);
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}
.kontakt-inner {
  position: relative; z-index: 1;
  text-align: center;
}
.kontakt-heading {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.06; letter-spacing: -0.01em;
  color: var(--fg-on-dark);
  margin-bottom: 2.25rem;
}
.kontakt-band .contact-email {
  color: var(--ember);
  text-shadow: 0 0 36px rgba(224, 139, 69, 0.35);
}
.kontakt-band .contact-email::after { background: var(--ember); }
.kontakt-band .contact-meta { color: var(--fg-muted-on-dark); }

/* --- Dunkler Footer --- */
.site-footer--dark {
  background: var(--anthrazit-tief);
  border-top: 1px solid rgba(250, 250, 247, 0.08);
  margin-top: 0;
  color: var(--fg-muted-on-dark);
}
.site-footer--dark .footer-inner { color: var(--fg-muted-on-dark); }
.site-footer--dark .footer-links a:hover { color: var(--ember); }
.footer-mark { letter-spacing: 0.1em; }
.footer-mark .bracket { color: var(--ember); }

@media (max-width: 640px) {
  .site-footer--dark .footer-inner {
    flex-direction: column; align-items: center; gap: 0.875rem;
    text-align: center;
  }
}

/* --- Referenzen --- */
.ref-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem;
  max-width: 880px; margin-inline: auto;
}
@media (min-width: 720px) {
  .ref-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
}

.ref-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1.75rem;
  display: flex; flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.ref-card:hover {
  border-color: rgba(200, 117, 51, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 18px 48px -24px rgba(200, 117, 51, 0.35);
}

/* stilisierte Produkt-Mockups (kein Screenshot — veraltet nie) */
.ref-visual {
  background:
    radial-gradient(ellipse 90% 80% at 50% 110%, rgba(200, 117, 51, 0.16), transparent 70%),
    var(--anthrazit-tief);
  border-radius: 8px;
  padding: 1.75rem 1.5rem 0;
  margin-bottom: 1.5rem;
  min-height: 200px;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}

.mock-line {
  display: block; height: 7px; border-radius: 4px;
  background: rgba(250, 250, 247, 0.22);
}
.mock-line--dim { background: rgba(250, 250, 247, 0.1); margin-top: 5px; }

/* Browser-Fenster (Tempero) */
.mock-browser {
  width: 100%; max-width: 300px;
  background: #1e2333;
  border: 1px solid rgba(250, 250, 247, 0.1);
  border-radius: 8px 8px 0 0; border-bottom: none;
  box-shadow: 0 -12px 40px -18px rgba(0, 0, 0, 0.6);
}
.mock-browser-bar {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.625rem;
  border-bottom: 1px solid rgba(250, 250, 247, 0.08);
}
.mock-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(250, 250, 247, 0.18);
}
.mock-url {
  font-family: var(--font-mono); font-size: 0.5625rem;
  color: var(--fg-muted-on-dark);
  background: rgba(250, 250, 247, 0.06);
  border-radius: 999px; padding: 0.1rem 0.5rem; margin-left: 0.375rem;
}
.mock-browser-body {
  display: flex; gap: 0.75rem; padding: 0.875rem 0.75rem 1.25rem;
}
.mock-side {
  flex: 0 0 30%; display: flex; flex-direction: column; gap: 0.55rem;
  border-right: 1px solid rgba(250, 250, 247, 0.08);
  padding-right: 0.625rem;
}
.mock-main { flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.mock-task { display: flex; align-items: center; gap: 0.45rem; }
.mock-task .mock-line { flex-grow: 0; }
.mock-check {
  flex-shrink: 0;
  width: 10px; height: 10px; border-radius: 3px;
  border: 1.5px solid rgba(250, 250, 247, 0.3);
}
.mock-check--done {
  background: var(--copper); border-color: var(--copper);
}

/* Phone (Schwatzer LNW) */
.mock-phone {
  width: 150px;
  background: #1e2333;
  border: 1px solid rgba(250, 250, 247, 0.12);
  border-radius: 18px 18px 0 0; border-bottom: none;
  padding: 0.5rem 0.5rem 0;
  box-shadow: 0 -12px 40px -18px rgba(0, 0, 0, 0.6);
}
.mock-phone-screen {
  background: rgba(250, 250, 247, 0.04);
  border-radius: 11px 11px 0 0;
  padding: 0.75rem 0.625rem 1rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.mock-phone-head {
  display: flex; align-items: center; gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(250, 250, 247, 0.08);
}
.mock-appicon {
  flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 5px;
  background: #2e7d32;
  color: #fff; font-family: var(--font-mono); font-weight: 700;
  font-size: 0.5rem; line-height: 20px; text-align: center;
  letter-spacing: 0;
}
.mock-row { display: flex; flex-direction: column; }
.mock-btn {
  height: 20px; border-radius: 5px;
  background: var(--copper); opacity: 0.85;
  margin-top: 0.125rem;
}

.ref-meta {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.ref-title {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1.1875rem; color: var(--fg);
  margin-bottom: 0.75rem;
}
.ref-text {
  font-size: 0.9375rem; line-height: 1.65; color: var(--fg-muted);
  flex-grow: 1;
}
.ref-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-mono); font-size: 0.875rem;
  color: var(--accent); margin-top: 1.25rem;
  transition: color 0.2s;
}
.ref-link:hover { color: var(--ember); }
.ref-link:hover svg { transform: translate(2px, -2px); }
.ref-link svg { transition: transform 0.2s; }
.ref-link--intern { color: var(--fg-muted); cursor: default; }

/* --- NFC-Visitenkarte im dunklen Glut-Look (karte.html) --- */
.vcard-body--dark {
  position: relative;
  background:
    radial-gradient(ellipse 100% 55% at 50% 112%,
      rgba(200, 117, 51, 0.24), rgba(200, 117, 51, 0.07) 45%, transparent 72%),
    linear-gradient(180deg, var(--anthrazit-tief) 0%, var(--anthrazit) 100%);
  color: var(--fg-on-dark);
}
/* Filmkorn wie im Hero, fix über dem Viewport */
.vcard-body--dark::after {
  content: ''; position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}
.vcard-funken { position: fixed; }
.vcard-body--dark .vcard {
  position: relative; z-index: 1;
  will-change: transform;   /* 3D-Tilt via karte-fx.js */
}

.vcard-body--dark .vcard-logo {
  filter: invert(1) hue-rotate(180deg) drop-shadow(0 0 24px rgba(200, 117, 51, 0.25));
}
.vcard-body--dark .vcard-name { color: var(--fg-on-dark); }

.vcard-body--dark .vcard-btn {
  border-color: rgba(250, 250, 247, 0.16);
  color: var(--fg-on-dark);
  background: rgba(250, 250, 247, 0.03);
}
.vcard-body--dark .vcard-btn svg { color: var(--ember); }
.vcard-body--dark .vcard-btn:hover, .vcard-body--dark .vcard-btn:focus-visible {
  border-color: var(--ember); color: var(--ember);
  background: rgba(250, 250, 247, 0.06);
}
.vcard-body--dark .vcard-btn--primary {
  background: var(--copper); border-color: var(--copper); color: var(--off-white);
  box-shadow: 0 12px 40px -14px rgba(200, 117, 51, 0.8);
}
.vcard-body--dark .vcard-btn--primary svg { color: var(--off-white); }
.vcard-body--dark .vcard-btn--primary:hover, .vcard-body--dark .vcard-btn--primary:focus-visible {
  background: var(--ember); border-color: var(--ember); color: var(--off-white);
}

.vcard-body--dark .vcard-tempero {
  background: rgba(200, 117, 51, 0.1);
  border-color: rgba(224, 139, 69, 0.55);
}
.vcard-body--dark .vcard-tempero:hover, .vcard-body--dark .vcard-tempero:focus-visible {
  background: rgba(200, 117, 51, 0.18);
}
.vcard-body--dark .vt-name { color: var(--ember); }
.vcard-body--dark .vt-sub { color: var(--fg-muted-on-dark); }

.vcard-body--dark .vcard-foot {
  color: var(--fg-muted-on-dark);
  letter-spacing: 0.1em;
}
.vcard-body--dark .vcard-foot .bracket { color: var(--ember); }
