/* ============================================================
   style.css — CyberPatrimonium
   ============================================================ */

/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  /* Brand */
  --navy-900: #06101b;
  --navy-800: #0b1d2e;
  --navy-700: #112236;
  --navy-600: #1a3351;
  --navy-500: #234672;
  --red-600:  #b81620;
  --red-500:  #e01b24;
  --red-400:  #ef3d45;

  /* Neutrals */
  --white:      #ffffff;
  --off-white:  #f7f8fa;
  --grey-100:   #eef0f3;
  --grey-200:   #dde1e7;
  --grey-300:   #c4cad4;
  --grey-400:   #8a97a8;
  --grey-500:   #5c6878;
  --grey-600:   #3d4a56;

  /* Text */
  --text-primary:     #0b1d2e;
  --text-secondary:   #3d4a56;
  --text-muted:       #5c6878;
  --text-light:       #e8edf2;
  --text-muted-light: #8a9ab0;
  --mid-grey:         #c4cad4;

  /* Surfaces */
  --surface:      #ffffff;
  --surface-alt:  #f7f8fa;
  --surface-dark: #0b1d2e;

  /* Borders & Shadows */
  --border:      #dde1e7;
  --border-dark: rgba(255,255,255,0.08);
  --shadow-sm:   0 1px 3px rgba(11,29,46,0.08), 0 1px 2px rgba(11,29,46,0.05);
  --shadow-md:   0 4px 16px rgba(11,29,46,0.08), 0 2px 8px rgba(11,29,46,0.05);
  --shadow-lg:   0 8px 40px rgba(11,29,46,0.12), 0 4px 16px rgba(11,29,46,0.07);
  --shadow-card: 0 2px 12px rgba(11,29,46,0.07), 0 1px 3px rgba(11,29,46,0.05);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 5vw, 2.5rem);
  --section-pad:   clamp(4rem, 8vw, 7rem);

  /* Border radius */
  --radius-sm:   0.375rem;
  --radius-md:   0.75rem;
  --radius-lg:   1.25rem;
  --radius-xl:   2rem;
  --radius-full: 9999px;

  /* Transitions */
  --tr-fast: 150ms ease;
  --tr-base: 250ms ease;
  --tr-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Header */
  --header-height: 4rem;
}

/* ── 2. RESET ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.625rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }

p { max-width: 68ch; }


/* ── 4. LAYOUT UTILS ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-pad);
  background: var(--surface);
}

.section-alt {
  background: var(--surface-alt);
}

.section-dark {
  position: relative;
  background: var(--navy-800);
  color: var(--text-light);
  overflow: hidden;
}

/* Geschichte Hintergrundbild */
.geschichte-bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.geschichte-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.section-dark .container {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header h2 {
  color: var(--text-primary);
}

.section-header-light h2 {
  color: var(--text-light);
}

.section-subtitle {
  margin-top: var(--sp-3);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin-inline: auto;
}

.section-dark .section-subtitle {
  color: var(--text-muted-light);
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-3);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-500);
}

/* ── 5. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background var(--tr-base), color var(--tr-base),
              transform var(--tr-fast), box-shadow var(--tr-base),
              border-color var(--tr-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid var(--red-500);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--red-500);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(224,27,36,0.3);
}

.btn-primary:hover {
  background: var(--red-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(224,27,36,0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text-light);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
}

.btn-wide {
  min-width: 280px;
}

.btn-full {
  width: 100%;
}

.btn-success {
  background: #18a058 !important;
  box-shadow: 0 4px 14px rgba(24,160,88,0.3) !important;
}

/* ── 6. HEADER / NAV ─────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  transition: background var(--tr-base), box-shadow var(--tr-base);
}

.site-header.is-scrolled {
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  background: rgba(11, 29, 46, 0.88);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  gap: var(--sp-6);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  text-decoration: none;
}

.nav-brand-logo {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
  -webkit-mask-image: radial-gradient(ellipse 88% 85% at 50% 50%, black 45%, transparent 85%);
  mask-image: radial-gradient(ellipse 88% 85% at 50% 50%, black 45%, transparent 85%);
}

.nav-brand-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-left: auto;
}

.nav-links a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
  transition: color var(--tr-fast), background var(--tr-fast);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 2px;
}

/* Featured nav link — höhere Spezifität als .nav-links a:hover (0-2-1 vs 0-3-1) */
.site-header .nav-links a.nav-link--featured {
  background: var(--red-500);
  color: var(--white);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
}

.site-header .nav-links a.nav-link--featured:hover {
  background: var(--red-600);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  border-radius: var(--radius-sm);
  color: var(--white);
  flex-shrink: 0;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--tr-base), opacity var(--tr-fast);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 7. HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(140deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 20% at 8% 4%, rgba(255,255,255,0.07) 0%, transparent 100%),
    radial-gradient(ellipse 80% 60% at 65% 50%, rgba(224,27,36,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(26,51,81,0.6) 0%, transparent 60%);
  pointer-events: none;
}

/* Abstract decorative shapes */
.hero::after {
  content: '';
  position: absolute;
  right: -5%;
  top: 15%;
  width: min(520px, 55vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35,70,114,0.5) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-block: var(--sp-24);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-400);
  margin-bottom: var(--sp-5);
  text-decoration: none;
  transition: color var(--tr-fast);
}

.hero-eyebrow:hover {
  color: var(--red-500);
}

.hero-eyebrow:focus-visible {
  outline: 2px solid var(--red-400);
  outline-offset: 4px;
  border-radius: 2px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red-500);
  border-radius: 2px;
}

.hero-headline {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.08;
  max-width: 16ch;
}

.hero-headline strong {
  color: var(--red-400);
  font-weight: inherit;
}

.hero-subline {
  margin-top: var(--sp-6);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: rgba(232,237,242,0.78);
  max-width: 52ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-10);
}

/* Floating shield graphic */
.hero-badge {
  position: absolute;
  right: max(5%, calc((100% - var(--container-max)) / 2 + 4rem));
  bottom: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  animation: float 5s ease-in-out infinite;
}

.hero-badge-icon {
  width: 64px;
  height: 64px;
  color: rgba(224,27,36,0.7);
}

.hero-badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── 8. TRUST BAR ─────────────────────────────────────────── */
.trust-bar {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-block: var(--sp-6);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-3);
}

.trust-value {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.trust-label {
  font-size: 0.8125rem;
  color: var(--text-muted-light);
  letter-spacing: 0.02em;
}

/* Person card */
.person-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: box-shadow var(--tr-base), transform var(--tr-base);
}

.person-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.person-photo {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-full);
  object-fit: cover;
  object-position: center top;
  margin-inline: auto;
  margin-bottom: var(--sp-5);
  display: block;
  pointer-events: none;
  -webkit-touch-callout: none;
  user-select: none;
  border: 3px solid var(--grey-100);
}

.person-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.person-title {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: var(--sp-1);
  font-weight: 500;
}

.person-location {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
}

.person-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  background: #0a66c2;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--tr-fast), transform var(--tr-fast);
  text-decoration: none;
}

.person-linkedin:hover {
  background: #0461b0;
  transform: translateY(-1px);
}

.person-linkedin:focus-visible {
  outline: 2px solid #0a66c2;
  outline-offset: 3px;
}

.person-linkedin svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── 10. DIGITALE IDENTITÄT CARDS ─────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-5);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--tr-base), transform var(--tr-base), border-color var(--tr-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--grey-300);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(224,27,36,0.1), rgba(224,27,36,0.06));
  color: var(--red-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.015em;
}

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

/* ── 11. LEISTUNGEN (SERVICES) ────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
  margin-bottom: var(--sp-12);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--tr-base), transform var(--tr-base), border-color var(--tr-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-500), var(--red-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr-slow);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--grey-300);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--grey-100);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.015em;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: none;
}

.cta-center {
  text-align: center;
}

/* Cross-link to sister project (digitaleidentität.ch) */
.cross-link-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.75rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  border-radius: var(--radius-lg);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cross-link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(239,61,69,0.18), transparent 55%);
  pointer-events: none;
}

.cross-link-text {
  position: relative;
  min-width: 0;
}

.cross-link-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-400);
  margin-bottom: var(--sp-2);
  max-width: none;
}

.cross-link-text h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: var(--sp-3);
  line-height: 1.25;
}

.cross-link-text p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted-light);
  max-width: 60ch;
}

.btn-ghost-dark {
  background: rgba(255,255,255,0.04);
  color: var(--text-light);
  border: 1.5px solid rgba(255,255,255,0.18);
  white-space: nowrap;
  position: relative;
}

.btn-ghost-dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(239,61,69,0.55);
  color: var(--white);
}

.btn-ghost-dark:focus-visible {
  outline: 2px solid var(--red-400);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .cross-link-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cross-link-cta {
    justify-self: start;
  }
}

/* ── 12. GESCHICHTE / STORY ───────────────────────────────── */
.story-text {
  font-size: clamp(1.05rem, 1.6vw, 1.1875rem);
  color: rgba(232,237,242,0.82);
  line-height: 1.8;
  max-width: none;
  margin-bottom: var(--sp-6);
}

/* Geschichte-Grid: Story links, Person-Card rechts */
.geschichte-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: var(--sp-12);
}

.geschichte-story {
  display: flex;
  flex-direction: column;
}

/* Zentrierter CTA unter dem Grid */
.story-cta {
  text-align: center;
  margin-top: var(--sp-4);
}

/* Phone-Reveal Button */
.phone-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.375rem 0.875rem;
  border: 1.5px solid var(--navy-500);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-600);
  background: transparent;
  cursor: pointer;
  transition: background var(--tr-fast), color var(--tr-fast), border-color var(--tr-fast);
  font-family: inherit;
}

.phone-reveal-btn:hover {
  background: var(--navy-600);
  color: var(--white);
  border-color: var(--navy-600);
}

.phone-reveal-btn:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 3px;
}

/* Person-Card auf dunklem Hintergrund */
.section-dark .person-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.section-dark .person-card:hover {
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.section-dark .person-name {
  color: var(--text-light);
}

.section-dark .person-title,
.section-dark .person-location {
  color: var(--text-muted-light);
}

.section-dark .person-photo {
  border-color: rgba(255, 255, 255, 0.15);
}

/* ── 13. KONTAKT ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

/* Contact info column */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding-top: var(--sp-2);
}

.contact-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}

.contact-detail {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--grey-100);
  color: var(--navy-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-1);
  max-width: none;
}

.contact-detail address,
.contact-email-link {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* email-reveal ersetzt span durch <a class="contact-email-link">
   direkte <a class="contact-email-link"> im HTML ebenfalls erfasst */
a.contact-email-link {
  display: inline-block;
  color: var(--navy-600);
  font-weight: 500;
  transition: color var(--tr-fast);
}

a.contact-email-link:hover {
  color: var(--red-500);
}

a.contact-email-link:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Zeeg booking widget */
.contact-widget-cell {
  position: relative;
  min-height: 320px;
}

.zeeg-embed {
  width: 100%;
  min-width: 0;
  height: 780px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* iOS Safari collapses iframes sized height:100% inside grid items.
   The Zeeg script sets height:100% inline — only !important wins. */
.zeeg-embed > iframe {
  width: 100% !important;
  height: 780px !important;
  border: 0 !important;
  display: block !important;
}

.zeeg-fallback {
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.zeeg-fallback[hidden] { display: none; }

.zeeg-fallback h3 {
  margin: 0 0 var(--sp-3);
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.zeeg-fallback p {
  margin: 0 0 var(--sp-6);
  max-width: 44ch;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── 14. FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--navy-900);
  color: var(--text-light);
  padding-block: var(--sp-12) var(--sp-8);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.5fr) auto;
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: var(--sp-10);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
}

.footer-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: none;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted-light);
  margin-top: var(--sp-2);
  max-width: 40ch;
}

/* Sister projects in footer */
.footer-sister {
  min-width: 0;
}

.footer-sister-headline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  margin-bottom: var(--sp-4);
}

.footer-sister-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer-sister-item a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  transition: border-color var(--tr-fast), background var(--tr-fast);
}

.footer-sister-item a:hover,
.footer-sister-item a:focus-visible {
  border-color: rgba(239,61,69,0.5);
  background: rgba(239,61,69,0.06);
  outline: none;
}

.footer-sister-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: -0.01em;
}

.footer-sister-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted-light);
  margin-top: 2px;
  line-height: 1.45;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
}

.footer-nav a {
  font-size: 0.9375rem;
  color: var(--text-muted-light);
  transition: color var(--tr-fast);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-nav a:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--grey-500);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--sp-6);
  max-width: none;
}

/* ── 15. SCROLL ANIMATIONS ────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--tr-slow), transform var(--tr-slow);
}

.animate-on-scroll.delay-1 { transition-delay: 0.08s; }
.animate-on-scroll.delay-2 { transition-delay: 0.16s; }
.animate-on-scroll.delay-3 { transition-delay: 0.24s; }
.animate-on-scroll.delay-4 { transition-delay: 0.32s; }

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 16. SKIP LINK ────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: var(--sp-3) var(--sp-5);
  background: var(--red-500);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: top var(--tr-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* ── 17. SCROLL MARGIN (nav clearance) ────────────────────── */
[id] {
  -webkit-scroll-margin-top: calc(var(--header-height) + 1.5rem);
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

/* ── 18. LEGAL PAGES ──────────────────────────────────────── */
.legal-hero {
  background: var(--navy-800);
  padding-block: calc(var(--header-height) + 4rem) var(--sp-16);
  color: var(--text-light);
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-body {
  padding-block: var(--sp-16);
}

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-4);
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 1.0625rem;
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  color: var(--text-primary);
}

/* JS-injizierte address-Elemente auf Legal-Seiten */
.legal-content address {
  margin-bottom: var(--sp-4);
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: normal;
}

.legal-content p {
  margin-bottom: var(--sp-4);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: none;
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-4);
}

.legal-content ul li {
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
  line-height: 1.65;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--red-500);
  margin-top: var(--sp-10);
  padding: var(--sp-3) var(--sp-5);
  border: 1.5px solid var(--red-500);
  border-radius: var(--radius-full);
  transition: background var(--tr-fast), color var(--tr-fast);
  text-decoration: none;
}

.legal-back:hover {
  background: var(--red-500);
  color: var(--white);
}

.legal-back:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 3px;
}

/* ── 19. RESPONSIVE — TABLET ──────────────────────────────── */
@media (max-width: 1024px) {
  .geschichte-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    max-width: 480px;
  }

  .section-dark .person-card {
    max-width: 360px;
    margin-inline: auto;
  }

  .trust-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 20. RESPONSIVE — MOBILE ──────────────────────────────── */
@media (max-width: 640px) {
  /* Disable backdrop-filter on mobile nav to prevent iOS Safari z-index trap */
  .site-header.is-scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--navy-800);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--navy-800);
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-4) var(--container-pad) var(--sp-6);
    gap: var(--sp-1);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--tr-base), opacity var(--tr-base);
    z-index: 99;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-md);
    font-size: 1rem;
  }

  .site-header .nav-links a.nav-link--featured {
    text-align: center;
    margin-top: var(--sp-2);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-badge {
    display: none;
  }

  .trust-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item {
    border-right: 1px solid rgba(255,255,255,0.06);
  }

  .trust-item:nth-child(even) {
    border-right: none;
  }

  .cards-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .btn-wide {
    min-width: 0;
    width: 100%;
  }

  .footer-grid {
    flex-direction: column;
    gap: var(--sp-6);
  }

  .zeeg-embed { min-width: 0; width: 100%; }
}

/* ── 21. RESPONSIVE — LANDSCAPE PHONE ────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-top: calc(var(--header-height) + var(--sp-8));
    padding-bottom: var(--sp-8);
    min-height: auto;
  }

  .hero-headline {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  .hero-subline {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: row;
  }
}

/* ── 22. SCROLL-TO-TOP BUTTON ─────────────────────────────── */
.scroll-top {
  display: none; /* hidden on desktop */
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: var(--red-600);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  pointer-events: none;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: var(--red-500);
  outline: none;
}

/* Show only on tablet and phone */
@media (max-width: 1024px) {
  .scroll-top {
    display: flex;
  }
}

/* ── 23. ACCESSIBILITY ────────────────────────────────────────  */
:focus-visible {
  outline: 3px solid var(--red-500);
  outline-offset: 3px;
}

/* ── 24. REDUCED MOTION ───────────────────────────────────── */
@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;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}
