:root {
  --background: #FFFFFF;
  --foreground: #000000;
  --border: #E6E6E6;
  --secondary-bg: #FAFAFA;
  --muted-text: #333333; /* Erhöht auf 9.4:1 Kontrast für perfekte AAA-Lesbarkeit bei Fließtext */
  --muted-text-large: #444444; /* Erhöht auf 7:1 Kontrast für AAA-Lesbarkeit bei größeren Texten */
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Barrierefreier Fokus-Indikator (WCAG 2.4.13 AAA) - Sattes Rost-Orange mit elegantem, flüssigem CSS-Übergang */
* {
  transition: outline-color 0.15s var(--ease-out, ease-out), outline-offset 0.15s var(--ease-out, ease-out);
}

*:focus-visible {
  outline: 3px solid #963C1A !important;
  outline-offset: 3px !important;
}

/* Skiplink (WCAG 2.4.1 AAA) - reines Schwarz/Weiß */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  background: #000000;
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: top 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid #FFFFFF;
}

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

/* Utility Klassen (Tailwind-Äquivalente für absolute Autarkie) */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-16 { padding-top: 5.5rem; padding-bottom: 5.5rem; } /* Erhöht für mehr Schweizer Weißraum */
.py-20 { padding-top: 7rem; padding-bottom: 7rem; }
.py-32 { padding-top: 11rem; padding-bottom: 11rem; }
.border-b { border-bottom: 1px solid var(--border); }

/* Grid System */
.grid { display: grid; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-cols: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-12 { grid-template-cols: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
}

/* Flexbox & Spacing */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }

/* Typografie */
.font-sans { font-family: 'Inter', sans-serif; }
.font-serif { font-family: 'Playfair Display', Georgia, serif; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.75rem; } /* Größere, monumentale Headlines */
.text-5xl { font-size: 3.75rem; }
.text-6xl { font-size: 4.75rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.tracking-tight { letter-spacing: -0.02em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

.text-foreground { color: var(--foreground); }
.text-muted { color: var(--muted-text); }
.text-muted-large { color: var(--muted-text-large); }

/* Layout-Strukturen */
.relative { position: relative; }
.hero-section {
  padding-top: 13.5rem;
  padding-bottom: 13.5rem;
  background-color: #FFFFFF;
}
.hero-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
  }
}
.hero-text-col {
  display: flex;
  flex-direction: col;
  flex-direction: column;
}
.hero-title {
  font-size: 6.5rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #000000;
  margin-bottom: 3.5rem;
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}
.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  color: #000000;
  margin-bottom: 1.5rem;
}
.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--muted-text-large);
  margin-bottom: 3rem;
}
.hero-actions {
  display: flex;
  gap: 1.5rem;
}
.hero-img-col {
  display: flex;
  justify-content: center;
}
.hero-image-wrapper {
  width: 100%;
  max-width: 38rem;
  border: 1px solid var(--border);
  padding: 0.5rem;
  background-color: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.section {
  padding-top: 10.5rem;
  padding-bottom: 10.5rem;
}
@media (min-width: 1024px) {
  .section {
    padding-top: 14.5rem;
    padding-bottom: 14.5rem;
  }
}
.section-title {
  font-size: 4.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #000000;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}
.lead-text {
  font-size: 1.5rem;
  line-height: 1.5;
  color: #000000;
  font-weight: 500;
  margin-bottom: 2rem;
}
.body-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-text-large);
  margin-bottom: 2rem;
}
.section-number {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.1em;
}
.section-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
  }
}
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.z-10 { z-index: 10; }
.w-full { width: 100%; }
.h-16 { height: 4rem; }
.overflow-hidden { overflow: hidden; }
.rounded-lg { border-radius: 8px; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02); }

/* Hintergründe & Farben */
.bg-white { background-color: #FFFFFF; }
.bg-black { background-color: #000000; }
.bg-secondary { background-color: var(--secondary-bg); }
.bg-light { background-color: var(--secondary-bg); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Scroll Reveal Basis-Klassen (Progressive Enhancement) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Hero Fade-In Animation */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-fade-in {
  animation: heroFadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  will-change: opacity, transform;
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

.h-12 { height: 3rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.bg-transparent { background-color: transparent; }

/* Buttons & Links - Reines Schwarz/Weiß-Design für Schweizer Klarheit */
.btn-primary {
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #000000;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #000000;
}

.btn-secondary {
  background-color: transparent;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-secondary:hover {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.link-underline {
  text-decoration: none;
  border-bottom: 2px solid #000000;
  font-weight: 700;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.link-underline:hover {
  color: #595959;
  border-color: #595959;
}

/* Header & Nav - Reines Schwarz/Weiß mit dicker Unterstreichung bei Hover */
.nav-link {
  text-decoration: none;
  color: #000000;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover {
  color: #FFFFFF;
  background-color: #000000;
}

/* Lists */
ul[role="list"] {
  list-style: none;
}

/* Blockquote */
blockquote {
  border-left: 4px solid #000000;
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--foreground);
}

/* Links in Rechtstexten (Impressum, Datenschutz) - minimalistischer Hover-Effekt */
.legal-link {
  color: #000000;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.2s cubic-bezier(0.23, 1, 0.32, 1), text-decoration-thickness 0.2s;
}

.legal-link:hover {
  opacity: 0.7;
  text-decoration-thickness: 2px;
}

/* ==========================================
   DRUCKOPTIMIERUNG (Print CSS - WCAG 2.2 AAA)
   ========================================== */
@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html, body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 12pt !important;
    line-height: 1.5 !important;
  }

  /* Header, Navigation, Footer-Links und Buttons ausblenden */
  .header, .desktop-nav, .mobile-menu-btn, .mobile-nav, 
  .btn, .btn-primary, .btn-secondary, .hero-actions,
  .footer-links-col, .mobile-lang-switcher, .lang-switcher-item {
    display: none !important;
  }

  /* Layout-Resets für perfekten, ununterbrochenen Druckfluss */
  .section, .hero-section {
    padding: 2rem 0 !important;
    margin: 0 !important;
    page-break-inside: avoid;
  }

  .container, .hero-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .grid-2, .hero-grid {
    display: block !important;
  }

  /* Headlines & Textoptimierung */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
    color: #000000 !important;
  }

  h1 { font-size: 24pt !important; margin-bottom: 1.5rem !important; }
  h2 { font-size: 18pt !important; margin-top: 2rem !important; margin-bottom: 1rem !important; }
  h3 { font-size: 14pt !important; margin-top: 1.5rem !important; margin-bottom: 0.5rem !important; }

  p, li {
    orphans: 3;
    widows: 3;
    font-size: 11pt !important;
  }

  /* Links druckfreundlich darstellen */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt !important;
    color: #333333 !important;
  }

  /* Interne Ankerlinks oder Javascript-Links nicht mit URL drucken */
  a[href^="#"]::after, a[href^="javascript:"]::after {
    content: "" !important;
  }

  /* Trennlinien dezent halten */
  .section-divider, hr {
    border-top: 1px solid #666666 !important;
    margin: 2rem 0 !important;
  }
}

/* ========================================================
   BARRIEREFREIER "NACH OBEN" (SCROLL TO TOP) BUTTON
   ======================================================== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #000000;
  width: 3rem;
  height: 3rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1), 
              visibility 0.25s cubic-bezier(0.23, 1, 0.32, 1), 
              transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
              background-color 0.2s,
              color 0.2s,
              border-color 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #000000;
}

.scroll-to-top:active {
  transform: scale(0.95);
}

/* Tastatur-Fokus-Indikator */
.scroll-to-top:focus-visible {
  outline: 2px solid #963C1A;
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media print {
  .scroll-to-top {
    display: none !important;
  }
}
