@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Confido Legal brand core (locked palette) ---- */
  --brand-ink:    #261C15;
  --brand-coral:  #FF7477;
  --brand-yellow: #FCFF6C;
  --brand-teal:   #B5D6D6;
  --brand-cyan:   #9CF6F6;

  /* ---- Warm neutral ramp (tints of brand ink) ---- */
  --ink-900: #261C15;
  --ink-800: #382C23;
  --ink-700: #4D3F34;
  --ink-600: #6B5C4F;
  --ink-500: #8A7B6D;
  --ink-400: #A89C8F;
  --ink-300: #C7BEB4;
  --ink-200: #E2DCD4;
  --ink-100: #EFEBE5;
  --ink-50:  #F6F3EF;
  --paper:   #FCFBF9;

  --cyan-bright: #9CF6F6;
  --cyan-soft:   #C2F9F9;
  --cyan-wash:   #E4FBFB;
  --teal-muted:  #B5D6D6;
  --teal-wash:   #EBF3F3;

  /* ---- Semantic surfaces / text ---- */
  --bg: var(--paper);
  --fg: var(--ink-800);
  --muted: var(--ink-50);
  --muted-foreground: var(--ink-600);
  --border: var(--ink-200);
  --primary: var(--ink-900);
  --primary-contrast: var(--paper);
  --surface-accent: var(--cyan-wash);
  --surface-accent-calm: var(--teal-wash);

  /* ---- Type ---- */
  --font-display: 'Space Grotesk', 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', 'Menlo', monospace;

  /* ---- Radius / shadow ---- */
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(38, 28, 21, 0.06), 0 1px 2px rgba(38, 28, 21, 0.04);
  --shadow-md: 0 6px 16px rgba(38, 28, 21, 0.08), 0 2px 4px rgba(38, 28, 21, 0.04);
  --shadow-focus: 0 0 0 3px rgba(156, 246, 246, 0.55);
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; margin: 0 auto; }
.row { display: flex; }
.center { align-items: center; }
.between { justify-content: space-between; }
.gap-sm { gap: .5rem; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-navy { color: var(--ink-900); }
.muted { color: var(--muted-foreground); }
.text-balance { text-wrap: balance; }
.font-mono { font-family: var(--font-mono); }

/* Header */
.site-header {
  position: fixed; inset: 0 auto auto 0; right: 0; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
  background: transparent;
}
.site-header .container { padding: 1rem 1.5rem; gap: .75rem; }
.site-header.scrolled { background: rgba(252,251,249,0.86); backdrop-filter: saturate(140%) blur(12px); box-shadow: 0 1px 0 var(--border); }

.brand { display: flex; align-items: center; gap: .625rem; }
.brand-mark { height: 26px; width: auto; display: block; }
.brand-word { display: flex; flex-direction: column; line-height: .95; }
.brand-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; color: var(--brand-ink); }

.menu-toggle { display: inline-flex; font-size: 1.1rem; line-height: 1; padding: .5rem .625rem; }
.nav { display: none; gap: 1.75rem; }
@media (min-width: 768px) { .nav { display: flex; } }
.nav-link { background: none; border: 0; padding: .25rem 0; color: var(--text-body, var(--ink-800)); cursor: pointer; font-weight: 500; font-size: .9rem; font-family: inherit; }
.nav-link:hover { color: var(--ink-900); }

.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--ink-900); padding: .375rem .625rem; border-radius: var(--radius-md); cursor: pointer; }
.btn-ghost:hover { background: var(--ink-50); }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 1rem; height: 1rem; }

/* Mobile menu behavior */
@media (max-width: 767.98px) {
  .site-header { position: fixed; }
  .site-header.open .nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    padding: .75rem 1.5rem calc(1rem + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: .5rem;
  }
  .nav-link { padding: .75rem .25rem; text-align: left; font-size: 1rem; }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: var(--bg); scroll-snap-align: start; }
.hero-inner { padding: 8rem 1.5rem; position: relative; z-index: 1; width: 100%; }
.hero-lockup { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.hero-mark { width: min(28%, 132px); height: auto; display: block; }
.hero-wordmark { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--tracking-tighter, -0.03em); font-size: clamp(2.25rem, 5vw, 3.5rem); color: var(--brand-ink); line-height: 1.05; text-align: center; margin: 0; }
.hero-tagline { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted-foreground); text-align: center; }
.hero-pattern { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(var(--ink-100) 1px, transparent 1px), linear-gradient(90deg, var(--ink-100) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%); }
.hero-gradient { position: absolute; left: 0; right: 0; bottom: 0; height: 8rem; background: linear-gradient(to top, var(--ink-50), transparent); }

/* Hero notice ("Störer") */
.hero-notice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  max-width: 620px;
  width: 100%;
  margin: 2rem auto 0;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-coral);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: box-shadow .2s var(--ease-standard, ease), transform .2s var(--ease-standard, ease);
}
.hero-notice:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hero-notice-badge {
  flex: none;
  margin-top: .15rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-900);
  background: rgba(255, 116, 119, .18);
  padding: .3rem .55rem;
  border-radius: 4px;
  white-space: nowrap;
}
.hero-notice-title { flex: 1 1 auto; font-size: .9rem; line-height: 1.5; color: var(--ink-800); }
.hero-notice-arrow { flex: none; font-family: var(--font-mono); font-size: 1rem; color: var(--ink-500); margin-top: .1rem; transition: transform .2s ease, color .2s ease; }
.hero-notice:hover .hero-notice-arrow { transform: translateX(3px); color: var(--ink-900); }

@media (max-width: 640px) {
  .hero-notice { flex-direction: column; gap: .5rem; padding: .9rem 1rem; margin-top: 1.5rem; }
  .hero-notice-arrow { display: none; }
}

@media (max-width: 767.98px) {
  .hero-inner { padding-top: 6rem; padding-bottom: 5rem; }
}

/* Sections */
.section { padding: 6rem 0; background: var(--bg); scroll-snap-align: start; }
.section-muted { background: var(--ink-50); }
.section-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.015em; text-align: center; margin: 0 0 3.5rem; color: var(--ink-900); }
@media (max-width: 767.98px) {
  .section { padding: 3.5rem 0; }
  .section-title { margin-bottom: 2rem; }
}

/* Cards / Grid */
.grid { display: grid; }
.cards-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.gap-lg { gap: 1.5rem; }

.card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; transition: border-color .2s var(--ease-standard, ease), box-shadow .2s var(--ease-standard, ease), transform .2s var(--ease-standard, ease); }
.card:hover { border-color: var(--brand-cyan); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon { width: 3rem; height: 3rem; border-radius: var(--radius-md); background: var(--surface-accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card-icon img { width: 1.6rem; height: 1.6rem; object-fit: contain; display: block; filter: grayscale(1) contrast(.85) brightness(.55) sepia(.15); }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: .25rem 0 .5rem; color: var(--ink-900); letter-spacing: -0.01em; }
.card-text { color: var(--muted-foreground); line-height: 1.6; font-size: .95rem; }
.card-text a { color: var(--ink-900); text-decoration: underline; text-decoration-color: var(--brand-cyan); text-underline-offset: 2px; text-decoration-thickness: 2px; }
.card-text a:hover { color: var(--ink-700); }

/* Status */
.status-card { background: var(--paper); border: 1.5px solid var(--brand-cyan); border-radius: var(--radius-lg); padding: 3rem 2.5rem; text-align: center; box-shadow: var(--shadow-sm); }
.status-icon-wrap { display: flex; justify-content: center; margin-bottom: 1rem; }
.status-icon { width: 4rem; height: 4rem; border-radius: var(--radius-md); background: var(--surface-accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.status-icon img { width: 2.75rem; height: 2.75rem; object-fit: contain; display: block; filter: grayscale(1) contrast(.85) brightness(.55) sepia(.15); }
.status-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 600; letter-spacing: -0.015em; margin: 1rem 0 .5rem; color: var(--ink-900); }
.status-message { font-family: var(--font-mono); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-900); background: var(--brand-yellow); display: inline-block; padding: .3rem .75rem; border-radius: var(--radius-md); font-weight: 500; margin: 0 0 1rem; }
.status-desc { color: var(--muted-foreground); line-height: 1.7; }
@media (max-width: 767.98px) {
  .status-card { padding: 2rem 1.25rem; }
  .status-icon { width: 3.25rem; height: 3.25rem; }
  .status-message { font-size: .8rem; }
}

/* Imprint */
.imprint-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
@media (min-width: 640px) { .imprint-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .imprint-grid { padding: 3rem; } }
.imprint-block {}
.imprint-label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; color: var(--muted-foreground); margin: 0 0 .35rem; font-weight: 500; }
.imprint-value { font-size: 1rem; color: var(--ink-900); line-height: 1.6; margin: 0; }

/* Footer */
.site-footer { background: var(--ink-900); color: var(--paper); padding: 3rem 0; }
.site-footer .muted { color: var(--ink-300); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .02em; }
@supports(padding:max(0px)) {
  .site-footer { padding-bottom: max(3rem, calc(2rem + env(safe-area-inset-bottom))); }
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px);} to{ opacity:1; transform:none;} }
@keyframes fadeIn { from { opacity: 0;} to{ opacity:1;} }

.animate-on-view { opacity: 0; }
.animate-on-view.in-view.fade-in-up { animation: fadeInUp .7s cubic-bezier(0.16,1,0.3,1) forwards; }
.animate-on-view.in-view.fade-in { animation: fadeIn .8s ease-out forwards; }
.stagger-1 { animation-delay: .1s; }
.stagger-2 { animation-delay: .2s; }
.stagger-3 { animation-delay: .3s; }
.stagger-4 { animation-delay: .4s; }
.stagger-5 { animation-delay: .5s; }
.stagger-6 { animation-delay: .6s; }

/* Utilities */
.text-navy { color: var(--ink-900); }
.text-primary { color: var(--primary); }
.text-center { text-align: center; }

/* Headings default to display font */
h1, h2, h3, h4 { font-family: var(--font-display); }

/* Compact hero (deep-link pages) */
.hero-compact { min-height: auto; }
.hero-compact .hero-inner { padding-top: 7.5rem; padding-bottom: 4rem; }
.hero-lead {
  max-width: 40rem;
  margin: 1.25rem auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-align: center;
  text-wrap: balance;
}
.card-icon svg { width: 1.6rem; height: 1.6rem; color: var(--ink-700); display: block; }

.btn-solid, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-solid {
  background: var(--ink-900);
  color: var(--paper);
  border: 1px solid var(--ink-900);
}
.btn-solid:hover { background: var(--ink-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--brand-cyan); background: var(--paper); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 1.5rem 0 0; }
.contact-address { margin: 1.5rem 0 0; color: var(--ink-900); line-height: 1.7; }
.contact-address-label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; color: var(--muted-foreground); margin: 0 0 .35rem; font-weight: 500; }

@media (max-width: 767.98px) {
  .hero-compact .hero-inner { padding-top: 6rem; padding-bottom: 3rem; }
  .contact-actions { flex-direction: column; }
  .contact-actions .btn-solid, .contact-actions .btn-outline { width: 100%; }
}

/* Focus styles & motion preferences */
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
