@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg:        #070A0F;
  --bg-mid:    #0D1520;
  --bg-card:   #0F1825;
  --gold:      #C9A96E;
  --gold-l:    #E8D5B0;
  --gold-d:    #A07840;
  --white:     #F5F0E8;
  --muted:     rgba(245,240,232,0.45);
  --border:    rgba(201,169,110,0.18);
  --nav-h:     72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; background: var(--bg); color: var(--white); font-family: 'DM Sans', sans-serif; font-weight: 300; scroll-behavior: smooth; }

/* ── BFSG / WCAG 2.1 AA — Globale Barrierefreiheit ── */

/* Skip-Link */
.skip-link {
  position: absolute; top: -999px; left: 0; z-index: 99999;
  background: #C9A96E; color: #070A0F;
  padding: 12px 24px; font-size: 14px; font-weight: bold;
  text-decoration: none; border-radius: 0 0 4px 0;
  font-family: 'DM Sans', sans-serif;
}
.skip-link:focus { top: 0; }

/* Sichtbarer Fokus-Ring für alle interaktiven Elemente */
:focus-visible {
  outline: 3px solid #C9A96E;
  outline-offset: 3px;
  border-radius: 2px;
}
/* Custom-Fokus für Buttons und Links im Design */
.btn:focus-visible, .nav-cta:focus-visible {
  outline: 3px solid #FFD700;
  outline-offset: 4px;
}

/* Bewegungsreduzierung (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-inner { animation: none !important; }
}

/* Hoher Kontrast-Modus (Windows) */
@media (forced-colors: active) {
  .btn-gold { forced-color-adjust: none; background: ButtonFace; color: ButtonText; border: 2px solid ButtonBorder; }
  .nav-cta  { forced-color-adjust: none; }
}

/* Barrierefreiheits-Button im Nav */
.nav-a11y-btn {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(201,169,110,0.55); text-decoration: none;
  border: 1px solid rgba(201,169,110,0.22);
  padding: 6px 14px; white-space: nowrap;
  transition: color .3s, border-color .3s;
  font-family: 'DM Sans', sans-serif;
}
.nav-a11y-btn:hover { color: var(--gold); border-color: rgba(201,169,110,0.55); }
@media (max-width: 900px) { .nav-a11y-btn { display: none; } }

/* ── CURSOR ── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%;
  will-change: transform;
}
.cursor-dot  { width: 6px;  height: 6px;  background: var(--gold); }
.cursor-ring { width: 32px; height: 32px; border: 1px solid rgba(201,169,110,0.5); transition: width .2s, height .2s; }
@media (max-width: 900px) { .cursor-dot, .cursor-ring { display: none; } }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  padding: 0 60px; justify-content: space-between;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled { background: rgba(7,10,15,0.88); backdrop-filter: blur(16px); border-color: var(--border); }
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 300; letter-spacing: 6px; text-transform: uppercase; color: var(--white); text-decoration: none; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .3s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; padding: 10px 24px; border: 1px solid var(--gold); color: var(--gold); text-decoration: none; transition: background .3s, color .3s; }
.nav-cta:hover { background: var(--gold); color: var(--bg); }

/* ── HERO ── */
.hero {
  position: relative; height: 100vh; min-height: 700px;
  display: flex; align-items: flex-end; padding-bottom: 80px;
  overflow: hidden;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(7,10,15,.2) 0%, rgba(7,10,15,0) 30%, rgba(7,10,15,0) 60%, rgba(7,10,15,.75) 88%, rgba(7,10,15,.95) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 60px; display: flex; flex-direction: column; gap: 28px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn { display: inline-block; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; padding: 14px 32px; text-decoration: none; transition: all .3s; font-family: 'DM Sans', sans-serif; font-weight: 400; }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-l); }
.btn-outline { border: 1px solid rgba(245,240,232,0.35); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: rgba(7,10,15,0.8); border: 1px solid var(--border); color: var(--white); }
.btn-dark:hover { border-color: var(--gold); color: var(--gold); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--bg-mid); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; align-items: stretch;
}
.stat { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 20px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 42px; font-weight: 300; color: var(--gold); letter-spacing: 2px; }
.stat-label { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ── SECTIONS ── */
section { padding: 100px 60px; }
.section-eyebrow { font-size: 10px; letter-spacing: 5px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.section-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(36px, 4vw, 60px); line-height: 1.1; color: var(--white); }
.section-title em { font-style: italic; color: var(--gold); }
.section-sub { font-size: 16px; line-height: 1.8; color: var(--muted); margin-top: 20px; max-width: 560px; }

/* ── INTRO STRIP ── */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.intro-quote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(22px, 2.5vw, 32px); font-weight: 300; line-height: 1.5; color: var(--gold-l); border-left: 2px solid var(--gold); padding-left: 32px; }

/* ── SERVICES GRID ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 60px; }
.svc {
  position: relative; display: block; padding: 48px 40px;
  background: var(--bg-card); text-decoration: none; overflow: hidden;
  border: 1px solid var(--border); transition: border-color .3s;
}
.svc::after { content: ''; position: absolute; inset: 0; background: var(--bg-mid); transform: translateY(101%); transition: transform .5s cubic-bezier(.4,0,.2,1); z-index: 0; }
.svc:hover::after { transform: translateY(0); }
.svc:hover { border-color: var(--gold-d); }
.svc > * { position: relative; z-index: 1; }
.svc-icon { font-size: 28px; margin-bottom: 24px; opacity: .8; }
.svc h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; color: var(--white); margin-bottom: 12px; }
.svc p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.svc-arrow { display: inline-block; margin-top: 24px; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); opacity: 0; transition: opacity .3s; }
.svc:hover .svc-arrow { opacity: 1; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual {
  position: relative; aspect-ratio: 3/4; background: var(--bg-card);
  border: 1px solid var(--border); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.about-mono { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 260px; font-weight: 300; color: var(--gold); opacity: .06; line-height: 1; }
.about-badge {
  position: absolute; bottom: 32px; right: 32px;
  background: var(--bg); border: 1px solid var(--border); padding: 16px 24px;
  display: flex; flex-direction: column; align-items: flex-end;
}
.about-badge-num { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 300; color: var(--gold); }
.about-badge-text { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.about-text { display: flex; flex-direction: column; gap: 32px; }
.about-text p { font-size: 16px; line-height: 1.85; color: var(--muted); }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.feature-list li::before { content: '◆'; color: var(--gold); font-size: 8px; margin-top: 5px; flex-shrink: 0; }

/* ── PROCESS ── */
.process-section { background: var(--bg-mid); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 60px; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 24px; left: 12.5%; right: 12.5%; height: 1px; background: linear-gradient(to right, transparent, var(--gold-d), var(--gold), var(--gold-d), transparent); }
.step { padding: 0 32px; text-align: center; }
.step-num { width: 48px; height: 48px; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--gold); background: var(--bg-mid); position: relative; z-index: 1; }
.step h4 { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 400; color: var(--white); margin-bottom: 12px; }
.step p { font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--bg-mid) 0%, #0A1428 50%, var(--bg-mid) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 120px 60px;
}
.cta-section .section-title { font-size: clamp(40px, 5vw, 72px); }

/* ── PRODUCTS ── */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border); padding: 48px 40px;
  display: flex; flex-direction: column; gap: 16px; transition: border-color .3s;
}
.product-card:hover { border-color: var(--gold-d); }
.product-card.featured { border-color: var(--gold-d); background: linear-gradient(135deg, var(--bg-card) 0%, #131E30 100%); }
.product-label { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); }
.product-name { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 300; color: var(--white); }
.product-desc { font-size: 14px; line-height: 1.7; color: var(--muted); flex: 1; }
.product-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.product-features li { font-size: 13px; color: var(--muted); display: flex; gap: 10px; }
.product-features li::before { content: '◆'; color: var(--gold); font-size: 7px; margin-top: 4px; flex-shrink: 0; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-item { display: flex; flex-direction: column; gap: 6px; }
.contact-item-label { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); }
.contact-item-val { font-size: 16px; color: var(--white); }
.contact-item-val a { color: var(--white); text-decoration: none; transition: color .3s; }
.contact-item-val a:hover { color: var(--gold); }

/* ── FOOTER ── */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 48px 60px; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap;
}
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 300; letter-spacing: 5px; text-transform: uppercase; color: var(--white); }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 32px; }
.footer-links a { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 12px; color: rgba(245,240,232,0.3); }

/* ── SCROLL REVEAL ── */
.r { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.r.v { opacity: 1; transform: translateY(0); }

/* ── TICKER ── */
.ticker-wrap { overflow: hidden; border-top: 1px solid var(--border); background: rgba(201,169,110,0.04); height: 44px; display: flex; align-items: center; }
.ticker-inner { display: flex; animation: ticker 30s linear infinite; white-space: nowrap; }
.ticker-inner span { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: rgba(201,169,110,0.6); padding: 0 40px; }

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes path-draw { to { stroke-dashoffset: 0; } }

/* ── FLIP LINK (aus FlipLinks.tsx) ── */
.flip-link {
  position: relative; display: inline-block; overflow: hidden;
  cursor: pointer; text-decoration: none;
  line-height: 1;
}
.flip-link .fl-top, .flip-link .fl-bot { display: flex; }
.flip-link .fl-top span, .flip-link .fl-bot span {
  display: inline-block;
  transition: transform 0.28s ease;
}
.flip-link .fl-bot {
  position: absolute; inset: 0; pointer-events: none;
}
.flip-link .fl-bot span { transform: translateY(110%); color: var(--gold); }
.flip-link:hover .fl-top span { transform: translateY(-110%); }
.flip-link:hover .fl-bot span { transform: translateY(0); }

/* ── 3D SERVICE FLIP CARDS (aus FlipCard.tsx) ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 60px; }
.svc-flip {
  display: block; text-decoration: none;
  height: 340px; perspective: 1200px;
}
.svc-flip-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(.4,0,.2,1);
}
.svc-flip:hover .svc-flip-inner { transform: rotateY(180deg); }
.svc-flip-front, .svc-flip-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 48px 40px;
  background: #131E30;
  border: 1px solid rgba(201,169,110,0.28);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.svc-flip-front::after {
  content: ''; position: absolute; inset: 0;
  background: var(--bg-mid); transform: translateY(101%);
  transition: transform 0s; z-index: 0;
}
.svc-flip-back {
  transform: rotateY(180deg);
  background: #0D1A2A;
  border-color: rgba(201,169,110,0.45);
  justify-content: space-between;
}
.svc-flip-front > * { position: relative; z-index: 1; }
.svc-flip-back h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 22px;
  font-weight: 400; color: var(--gold); margin-bottom: 24px;
}
.svc-flip-back ul { list-style: none; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.svc-flip-back ul li {
  font-size: 13px; color: var(--muted); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.svc-flip-back ul li::before { content: '◆'; color: var(--gold); font-size: 7px; margin-top: 4px; flex-shrink: 0; }
.svc-flip-back .svc-cta {
  display: inline-block; margin-top: 28px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid rgba(201,169,110,0.35);
  padding-bottom: 4px; transition: border-color .3s;
  align-self: flex-start;
}
.svc-flip-back:hover .svc-cta { border-color: var(--gold); }

/* ── CTA SECTION CANVAS ── */
.cta-section {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 120px 60px;
}
.cta-section > * { position: relative; z-index: 2; }
#cta-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 0.55; pointer-events: none;
}

/* ── PAGE HERO (subpages) ── */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px); padding-bottom: 80px; padding-left: 60px; padding-right: 60px;
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--border); position: relative; overflow: hidden;
}
.page-hero-mono { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); font-family: 'Cormorant Garamond', serif; font-size: 300px; font-weight: 300; color: var(--gold); opacity: .04; pointer-events: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  section { padding: 72px 24px; }
  .hero-content { padding: 0 24px; }
  .intro, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .products-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid::before { display: none; }
  footer { flex-direction: column; gap: 24px; padding: 40px 24px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; text-align: center; box-sizing: border-box; }
  .page-hero-mono { display: none; }
  /* FlipCards auf Mobile: kein 3D Flip — direkt Back-Inhalt zeigen */
  .svc-flip { height: auto; perspective: none; }
  .svc-flip-inner { transform: none !important; transform-style: flat; }
  .svc-flip-front { display: none; }
  .svc-flip-back { position: static; transform: none; padding: 36px 28px; }
}
