/**
 * ============================================================================
 * Lumaia - AI Consulting | style.css
 * ============================================================================
 *
 * Designthema: Digitale Alchemie
 * Ästhetik:    Edel, elegant, mystisch-technologisch
 * Autor:       [Ihr Name/Ihre Agentur]
 * Version:     1.0
 *
 * ============================================================================
 * INHALTSVERZEICHNIS
 * ============================================================================
 *
 * 1.0  GRUNDLAGEN & GLOBALE STILE
 *      1.1  CSS Baseline (Normalize.css)
 *      1.2  Design Tokens (:root Variablen)
 *      1.3  Globale Body- & UI-Stile
 *      1.4  Benutzerdefinierter Scrollbalken
 *      1.5  Textauswahl-Stil
 *
 * 2.0  ZENTRALISIERTE KEYFRAME-ANIMATIONEN
 *      2.1  Preloader-Animationen
 *      2.2  Hero-Animationen
 *      2.3  Interaktions-Animationen
 *      2.4  Button-Animationen
 *
 * 3.0  GLOBALE KOMPONENTEN
 *      3.1  Preloader
 *      3.2  Header & Navigation
 *      3.3  Buttons & Allgemeine Steuerelemente
 *      3.4  Footer
 *
 * 4.0  SEKTIONSSPEZIFISCHE STILE
 *      4.1  Hero Section
 *      4.2  Angebote / Leistungen (#offers)
 *      4.3  Über Uns & Philosophie (#about, #philosophy)
 *      4.4  Testimonials (#testimonials)
 *      4.5  Kontaktformular (#contact)
 *
 * 5.0  RESPONSIVE ANPASSUNGEN (MEDIA QUERIES)
 *      5.1  Tablet (max-width: 1024px)
 *      5.2  Mobile (max-width: 768px)
 *
 * ============================================================================
 *
 * ARCHITEKTUR-PHILOSOPHIE:
 *
 * Das Designthema "Digitale Alchemie" erfordert eine Balance aus Eleganz,
 * Mystik und technologischer Präzision. Dieses Stylesheet wurde nach
 * folgenden Prinzipien entwickelt:
 *
 * - WARTBARKEIT: Durch die extensive Nutzung von CSS Custom Properties (Variablen)
 *   wird eine zentrale "Single Source of Truth" für Design-Entscheidungen
 *   (Farben, Abstände, Timings) geschaffen. Dies ermöglicht globale Änderungen
 *   mit minimalem Aufwand.
 *
 * - PERFORMANCE: Animationen und Übergänge werden bevorzugt über performante
 *   CSS-Eigenschaften wie `transform` und `opacity` realisiert, um die GPU-
 *   Beschleunigung der Browser zu nutzen und Layout-Recalculations zu vermeiden.
 *   Wo JavaScript zur Zustandsverwaltung (z.B. Scroll-Events) nötig ist,
 *   wird es lediglich zum Umschalten von CSS-Klassen verwendet, während die
 *   visuelle Darstellung rein in CSS verbleibt (Separation of Concerns).
 *
 * - KONSISTENZ & GRACEFUL DEGRADATION: Als Basis dient Normalize.css, um eine
 *   konsistente Darstellung über Browser hinweg zu gewährleisten, ohne nützliche
 *   Standard-Stile zu entfernen.[1, 2] Bei fortgeschrittenen Features wie
 *   dem Scrollbalken-Styling wird eine duale Spezifikation für WebKit- und
 *   Firefox-Browser implementiert, um eine maximale visuelle Konsistenz bei
 *   gleichzeitiger voller Funktionalität in allen modernen Browsern zu
 *   gewährleisten.[3]
 *
 * ============================================================================
 */


/* ==========================================================================
   1.0 GRUNDLAGEN & GLOBALE STILE
   ========================================================================== */

/* ===== 1.1 CSS Baseline (Normalize.css) ===== */
/**
 * Anstelle eines aggressiven "Resets" (wie Eric Meyer's Reset), der alle
 * Browser-Standardstile entfernt und einen kompletten Neuaufbau erzwingt [4, 5],
 * wird hier Normalize.css v8.0.1 verwendet.
 *
 * BEGRÜNDUNG:
 * Normalize.css bewahrt nützliche Standardeinstellungen (z.B. für Überschriften
 * oder Formularelemente) und korrigiert gezielt bekannte Browser-Inkonsistenzen
 * und Bugs.[2, 6] Dies schafft eine verlässliche und konsistente Basis,
 * die besonders für funktionale Komponenten wie das Kontaktformular vorteilhaft ist,
 * ohne den Entwicklungsaufwand unnötig zu erhöhen. Es ist der moderne, pragmatische
 * Ansatz für Cross-Browser-Kompatibilität.[1]
 *
 * Quelle: https://necolas.github.io/normalize.css/ [7]
 */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em.75em.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}


/* ===== 1.2 Design Tokens (:root Variablen) ===== */
/**
 * Alle globalen Design-Parameter werden hier als CSS Custom Properties
 * zentralisiert. Dies schafft ein "Design Token System" und erhöht die
 * Wartbarkeit der gesamten Website drastisch. Eine Änderung an einer
 * dieser Variablen wirkt sich konsistent auf alle abhängigen Elemente aus.
 */
:root {
  /* Farbpalette */
  --gold: #E6B325;
  --dark: #0D0F1A;
  --accent-purple: #8A2BE2;
  --offwhite: #f8f9fa;
  --soft-blue: #e0e6f0;
  --white: #ffffff;
  --error-red: #dc3545;
  --success-green: #28a745;

  /* Typografie */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;

  /* Übergänge & Animationen */
  --transition-speed-fast: 0.2s;
  --transition-speed-normal: 0.4s;
  --transition-speed-slow: 0.6s;
  --timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout & Abstände */
  --container-width: 1200px;
  --container-padding: 2rem;
  --section-padding: 6rem 0;

  /* Z-Index Hierarchie */
  --z-index-preloader: 1000;
  --z-index-mobile-nav: 990;
  --z-index-header: 900;
  --z-index-content: 1;
  --z-index-background-elements: -1;
}


/* ===== 1.3 Globale Body- & UI-Stile ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Basis-Schriftgröße für REM-Berechnungen */
}

body {
  background-color: var(--dark);
  color: var(--soft-blue);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

/* Globale Übergänge für sanfte Interaktionen */
a,
button {
  transition: all var(--transition-speed-fast) var(--timing-function);
}

/* Weiche Schatten für Tiefe */
.soft-shadow {
  box-shadow: 0 8px 30px rgba(13, 15, 26, 0.2);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--offwhite);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1rem; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--white); }


/* ===== 1.4 Benutzerdefinierter Scrollbalken ===== */
/**
 * Implementierung eines benutzerdefinierten Scrollbalkens, der dem
 * Dark/Gold-Thema entspricht. Es wird eine duale Spezifikation verwendet,
 * um maximale Browser-Kompatibilität zu gewährleisten.[3, 8]
 *
 * - `scrollbar-color` & `scrollbar-width`: Standard-CSS für Firefox.[3]
 * - `::-webkit-scrollbar-*`: Ältere, aber notwendige Pseudo-Elemente für
 *   Chrome, Edge, Safari und andere WebKit-basierte Browser.[9]
 */

/* Standard-CSS für Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--dark);
}

/* Spezifisches Styling für WebKit-Browser */
body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: var(--dark);
}

body::-webkit-scrollbar-thumb {
  background-color: var(--gold);
  border-radius: 20px;
  border: 2px solid var(--dark);
}


/* ===== 1.5 Textauswahl-Stil ===== */
/**
 * Passt die Farbe von markiertem Text an das Branding an.
 * Das `::selection` Pseudo-Element erlaubt nur eine begrenzte Anzahl
 * von CSS-Eigenschaften.[10, 11]
 */
::selection {
  background-color: var(--gold);
  color: var(--dark);
  text-shadow: none;
}
::-moz-selection { /* Firefox-spezifischer Fallback */
  background-color: var(--gold);
  color: var(--dark);
  text-shadow: none;
}


/* ==========================================================================
   2.0 ZENTRALISIERTE KEYFRAME-ANIMATIONEN
   ========================================================================== */
/**
 * Alle @keyframes-Regeln sind hier zentral definiert. Dies schafft eine
 * "Animationsbibliothek" für die gesamte Website, was die Wiederverwendbarkeit
 * und Wartbarkeit verbessert.
 */

/* ===== 2.1 Preloader-Animationen ===== */
@keyframes pulse-logo {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.85;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* ===== 2.2 Hero-Animationen ===== */
@keyframes backgroundZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes shooting {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(300px);
  }
}

@keyframes tail {
  0% {
    width: 0;
  }
  30% {
    width: 100px;
  }
  100% {
    width: 0;
  }
}

@keyframes scroll-anim {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0;
    transform: translateY(20px);
  }
  51% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 2.3 Interaktions-Animationen ===== */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ===== 2.4 Button-Animationen ===== */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* ==========================================================================
   3.0 GLOBALE KOMPONENTEN
   ========================================================================== */

/* ===== 3.1 Preloader ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--z-index-preloader);
  opacity: 1;
  transition: opacity var(--transition-speed-slow) ease-in-out;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  width: 150px;
  height: auto;
  animation: pulse-logo 2.5s infinite ease-in-out;
}

.preloader-ripple-container {
  position: absolute;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-ripple {
  position: absolute;
  border: 2px solid var(--gold);
  border-radius: 50%;
  animation: ripple 2s infinite ease-out;
}

.preloader-ripple.ripple-2 {
  animation-delay: 1s; /* Gestaffelte Animation für den Sonar-Effekt [12] */
}


/* ===== 3.2 Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem var(--container-padding);
  z-index: var(--z-index-header);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform var(--transition-speed-normal) var(--timing-function);
  
  /* "Frosted Glass" / Glassmorphism-Effekt [13] */
  background-color: rgba(13, 15, 26, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Für Safari-Kompatibilität [14] */
  border-bottom: 1px solid rgba(224, 230, 240, 0.1);
}

/**
 * Der Header wird bei Scroll nach unten ausgeblendet. Dies wird durch JS
 * gesteuert, das die Klasse `.header--hidden` hinzufügt. Die Animation
 * selbst wird performant über `transform` in CSS realisiert.[15]
 */
.header--hidden {
  transform: translateY(-100%);
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
}

.nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.5rem;
}

.nav__link {
  color: var(--soft-blue);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.5rem;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-speed-fast) var(--timing-function);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hamburger-Menü für mobile Ansicht */
.hamburger-menu {
  display: none; /* Standardmäßig ausgeblendet, wird in Media Queries aktiviert */
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: var(--z-index-mobile-nav) + 1; /* Über dem mobilen Menü */
}

.hamburger-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--soft-blue);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition:.25s ease-in-out;
}

/* Die drei Striche des Hamburgers */
.hamburger-menu span:nth-child(1) { top: 0px; }
.hamburger-menu span:nth-child(2) { top: 9px; }
.hamburger-menu span:nth-child(3) { top: 18px; }

/* Transformation zum "X" bei aktivem Menü [16] */
.hamburger-menu.is-active span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.hamburger-menu.is-active span:nth-child(2) {
  opacity: 0;
  left: -30px;
}

.hamburger-menu.is-active span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}


/* ===== 3.3 Buttons & Allgemeine Steuerelemente ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid transparent;
  transition: all var(--transition-speed-normal) var(--timing-function);
}

.btn--primary {
  background-color: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.btn--primary:hover {
  background-color: transparent;
  color: var(--gold);
}

.btn--secondary {
  background-color: transparent;
  color: var(--soft-blue);
  border-color: var(--soft-blue);
}

.btn--secondary:hover {
  background-color: var(--soft-blue);
  color: var(--dark);
}


/* ===== 3.4 Footer ===== */
.footer {
  padding: 3rem var(--container-padding);
  background-color: #0A0C15; /* Etwas heller als der Haupt-Hintergrund */
  text-align: center;
  border-top: 1px solid rgba(224, 230, 240, 0.1);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
  color: rgba(224, 230, 240, 0.6);
}


/* ==========================================================================
   4.0 SEKTIONSSPEZIFISCHE STILE
   ========================================================================== */

/* ===== 4.1 Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Wichtig für den Zoom- und Sternschnuppen-Effekt */
  padding: 0 var(--container-padding);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1620052594938-d21a486d354b?q=80&w=1932&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  z-index: var(--z-index-background-elements);
  animation: backgroundZoom 40s infinite alternate ease-in-out;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 15, 26, 0.7); /* Dunkles Overlay */
  z-index: var(--z-index-background-elements);
}

.hero__content {
  position: relative;
  z-index: var(--z-index-content);
  max-width: 800px;
}

.hero h1 {
  font-size: 4.5rem;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero.subtitle {
  font-size: 1.5rem;
  color: var(--gold);
  margin-top: -1rem;
  margin-bottom: 2rem;
  font-family: var(--font-body);
  font-weight: 300;
}

/* Sternschnuppen-Effekt [17] */
.shooting-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotateZ(-45deg); /* Container wird gedreht, Sterne fliegen horizontal */
  z-index: var(--z-index-content) - 1;
}

.star {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 2px;
  background: linear-gradient(-45deg, var(--gold), rgba(0, 0, 0, 0));
  border-radius: 999px;
  filter: drop-shadow(0 0 6px var(--gold));
  animation: tail 3s ease-in-out infinite,
             shooting 3s ease-in-out infinite;
}

/* Position und Delays für einzelne Sterne */
.star:nth-child(1) { top: 20%; left: -50%; animation-delay: 0s; }
.star:nth-child(2) { top: 60%; left: -30%; animation-delay: 1.4s; }
.star:nth-child(3) { top: 80%; left: -70%; animation-delay: 2.1s; }
.star:nth-child(4) { top: 40%; left: -40%; animation-delay: 3.5s; animation-duration: 2.5s; }
.star:nth-child(5) { top: 10%; left: -60%; animation-delay: 5.2s; animation-duration: 3.5s; }

/* Scroll-Down-Pfeil */
.scroll-down-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 24px;
  height: 24px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateX(-50%) rotate(-45deg);
  animation: scroll-anim 2s infinite;
  z-index: var(--z-index-content);
}


/* ===== 4.2 Angebote / Leistungen (#offers) ===== */
#offers {
  background-color: var(--offwhite);
  padding: var(--section-padding);
}

#offers h2 {
  color: var(--dark);
  text-align: center;
  margin-bottom: 4rem;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.offer-card {
  background-color: var(--white);
  color: var(--dark);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-speed-normal) var(--timing-function),
              box-shadow var(--transition-speed-normal) var(--timing-function);
}

.offer-card:hover {
  transform: translateY(-10px); /* "Lift"-Effekt */
  box-shadow: 0 20px 40px rgba(13, 15, 26, 0.15);
}

/* Animierter Rand-Effekt bei Hover */
.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  background: linear-gradient(45deg, var(--gold), var(--accent-purple)) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-speed-normal) var(--timing-function);
}

.offer-card:hover::before {
  opacity: 1;
}

.offer-card__icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--gold), var(--accent-purple));
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem auto;
  font-size: 2rem; /* Für Icon-Fonts */
}

.offer-card h3 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.offer-card p {
  color: #555;
  font-size: 0.95rem;
}


/* ===== 4.3 Über Uns & Philosophie (#about, #philosophy) ===== */
#about, #philosophy {
  padding: var(--section-padding);
  max-width: var(--container-width);
  margin: 0 auto;
}

.about-content,.philosophy-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

#about img, #philosophy img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}


/* ===== 4.4 Testimonials (#testimonials) ===== */
#testimonials {
  padding: var(--section-padding);
  background-color: #0A0C15;
}

#testimonials h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.testimonial-card {
  padding: 2.5rem;
  border-radius: 10px;
  
  /* Wiederverwendung des Glassmorphism-Stils */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  /* Für Fade-In-Animation beim Scrollen */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-speed-slow) var(--timing-function),
              transform var(--transition-speed-slow) var(--timing-function);
}

/* Klasse wird per JS (IntersectionObserver) hinzugefügt, wenn Element sichtbar wird */
.testimonial-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card blockquote {
  margin: 0 0 1.5rem 0;
  font-style: italic;
  font-size: 1.1rem;
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--gold);
}


/* ===== 4.5 Kontaktformular (#contact) ===== */
#contact {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

#contact::before { /* Hintergrund-Stilelement */
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.1), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: var(--z-index-background-elements);
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 10px;
  z-index: var(--z-index-content);
  position: relative;

  /* Wiederverwendung des Glassmorphism-Stils */
  background: rgba(13, 15, 26, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#contact h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  position: relative;
  margin-bottom: 2.5rem;
}

.form-input {
  width: 100%;
  padding: 1rem 0 0.5rem 0;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid rgba(224, 230, 240, 0.3);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-speed-fast);
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: rgba(224, 230, 240, 0.7);
  pointer-events: none; /* Wichtig, damit Klicks zum Input durchgehen */
  transition: all var(--transition-speed-fast) var(--timing-function);
}

/**
 * "Floating Label"-Effekt mit reinem CSS.[18, 19]
 * Wenn der Input fokussiert ist ODER nicht mehr den Placeholder anzeigt
 * (d.h. Inhalt hat), wird das Label nach oben verschoben und verkleinert.
 * Die HTML-Struktur muss <input> vor <label> haben.
 */
.form-input:focus +.form-label,
.form-input:not(:placeholder-shown) +.form-label {
  top: -0.75rem;
  left: 0;
  font-size: 0.8rem;
  color: var(--gold);
}

.form-input:focus {
  border-bottom-color: var(--gold);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

/* Button mit Lade-, Erfolgs- und Fehlerzuständen */
.submit-btn {
  width: 100%;
  position: relative;
}

.submit-btn.btn-text {
  transition: opacity var(--transition-speed-fast);
}

.submit-btn.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--dark);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  opacity: 0;
  transition: opacity var(--transition-speed-fast);
}

/* Ladezustand [20] */
.submit-btn.is-loading.btn-text {
  opacity: 0;
}

.submit-btn.is-loading.spinner {
  opacity: 1;
}

.submit-btn.is-loading {
  pointer-events: none;
  background-color: var(--gold);
}

/* Erfolgszustand */
.submit-btn.is-success {
  background-color: var(--success-green);
  border-color: var(--success-green);
  pointer-events: none;
}

/* Fehlerzustand */
.submit-btn.is-error {
  background-color: var(--error-red);
  border-color: var(--error-red);
}


/* ==========================================================================
   5.0 RESPONSIVE ANPASSUNGEN (MEDIA QUERIES)
   ========================================================================== */
/**
 * Es wird ein "Desktop-First"-Ansatz verfolgt. Die Stile werden für
 * kleinere Bildschirme mit `max-width` Media Queries überschrieben.
 * Dies stellt sicher, dass die voll funktionsfähige Desktop-Version die Basis
 * bildet und für mobile Geräte schrittweise angepasst wird.
 */

/* ===== 5.1 Tablet (max-width: 1024px) ===== */
@media (max-width: 1024px) {
  html {
    font-size: 15px; /* Leichte Anpassung der Basis-Schriftgröße */
  }

 .hero h1 {
    font-size: 3.5rem;
  }

 .hero.subtitle {
    font-size: 1.3rem;
  }

 .about-content,.philosophy-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

 .about-content img {
    grid-row: 1; /* Bild nach oben verschieben */
    margin-bottom: 2rem;
  }
}


/* ===== 5.2 Mobile (max-width: 768px) ===== */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  :root {
    --section-padding: 4rem 0;
    --container-padding: 1.5rem;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  /* Mobile Navigation */
 .header.nav__list--desktop {
    display: none; /* Desktop-Navigation ausblenden */
  }
  
 .nav__list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-speed-normal) var(--timing-function);
    z-index: var(--z-index-mobile-nav);
  }

 .nav__list.is-active {
    transform: translateX(0);
  }

 .nav__link {
    font-size: 1.5rem;
  }

 .hamburger-menu {
    display: block; /* Hamburger-Icon anzeigen */
  }

  /* Hero Section Anpassungen */
 .hero h1 {
    font-size: 2.8rem;
  }
 .hero.subtitle {
    font-size: 1.1rem;
  }

  /* Grid-Layouts auf eine Spalte reduzieren */
 .offers-grid,
 .testimonials-grid {
    grid-template-columns: 1fr;
  }

 .contact-container {
    padding: 2rem;
  }
}
