/* ══════════════════════════════════════
   SonoVisto GmbH – Shared Stylesheet
══════════════════════════════════════ */

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

:root {
  --ink:        #1a1714;
  --paper:      #f5f0ea;
  --cream:      #ede7dc;
  --sand:       #c9b99a;
  --accent:     #47607a;
  --accent-lt:  #59748f;
  --accent-dk:  #354d61;
  --muted:      #6b6259;
  --rule:       rgba(26,23,20,.12);
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
}

/* ── Utilities ── */
.sr-only {
  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: -100%; left: 1rem;
  background: var(--accent); color: #fff;
  padding: .6rem 1.2rem; border-radius: 2px;
  font-size: .9rem; font-weight: 500;
  text-decoration: none; z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 1rem; }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* ─── HEADER ─── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 5vw;
  background: rgba(245,240,234,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.logo {
  font-family: var(--serif);
  font-size: 1.4rem; font-weight: 600;
  letter-spacing: .03em; color: var(--ink);
  text-decoration: none;
  display: flex; align-items: baseline; gap: .4rem;
}
.logo span { font-weight: 300; font-style: italic; font-size: 1rem; color: var(--muted); }

.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: .5rem; color: var(--ink);
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}

nav[role="navigation"] { display: flex; gap: 2rem; }
nav[role="navigation"] a {
  font-size: .82rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
nav[role="navigation"] a:hover,
nav[role="navigation"] a.active { color: var(--ink); border-bottom-color: var(--accent); }
nav[role="navigation"] a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ─── BUTTONS ─── */
.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent); color: #fff;
  padding: .85rem 2rem; border-radius: 2px;
  font-size: .85rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
  min-height: 44px; min-width: 44px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-dk); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }

/* ─── SHARED SECTION ─── */
section { padding: 6rem 5vw; }

.section-label {
  font-size: .72rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
  display: block;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300; line-height: 1.2; margin-bottom: 1.5rem;
}
h2 em { font-style: italic; color: var(--accent); }

/* ─── LEGAL PAGES ─── */
.legal-page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 8rem 5vw 6rem;
}

.legal-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; color: var(--muted);
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.legal-breadcrumb a { color: var(--accent); text-decoration: none; }
.legal-breadcrumb a:hover { text-decoration: underline; }
.legal-breadcrumb span { color: var(--sand); }

.legal-page-wrap h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300; line-height: 1.15;
  margin-bottom: 2.5rem;
  color: var(--ink);
}
.legal-page-wrap h1 em { font-style: italic; color: var(--accent); }

.legal-block h3 {
  font-family: var(--serif); font-size: 1.15rem;
  font-weight: 600; margin: 2.25rem 0 .6rem; color: var(--ink);
}
.legal-block h3:first-child { margin-top: 0; }
.legal-block p, .legal-block address {
  font-size: .92rem; color: var(--muted);
  font-weight: 300; line-height: 1.9; font-style: normal;
  margin-bottom: .5rem;
}
.legal-block a { color: var(--accent); text-decoration: underline; }
.legal-block a:hover { color: var(--accent-dk); }
.legal-block ul {
  padding-left: 1.5rem; font-size: .92rem;
  color: var(--muted); font-weight: 300; line-height: 1.9;
  margin-bottom: .5rem;
}
.legal-block ul li { margin-bottom: .3rem; }

.divider {
  display: flex; align-items: center; gap: 1.5rem; margin: 3rem 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.divider span { font-family: var(--serif); font-size: .9rem; font-style: italic; color: var(--sand); }

.ds-note {
  margin-top: 2.5rem; padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent-lt);
  background: rgba(89,116,143,.06);
  font-size: .88rem; color: var(--muted); line-height: 1.8;
}

/* ─── FOOTER ─── */
footer { background: var(--ink); color: var(--sand); padding: 2.5rem 5vw; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: flex-start; justify-content: space-between;
  max-width: 1100px; margin: 0 auto;
}
.footer-brand { font-family: var(--serif); font-size: 1rem; color: var(--paper); }
.footer-copy { font-size: .78rem; margin-top: .3rem; color: var(--sand); }
footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
footer nav a { color: var(--sand); text-decoration: none; font-size: .8rem; transition: color .2s; }
footer nav a:hover, footer nav a:focus-visible { color: var(--paper); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  nav[role="navigation"] {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(245,240,234,.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem 5vw; gap: 1.25rem;
    border-bottom: 1px solid var(--rule);
  }
  nav[role="navigation"].open { display: flex; }
}
