/* ==========================================
   QUÁNVITA - Base Styles (Korrigiert v4)
   Mobile-First, Responsive Design
   ========================================== */

/* CSS-Variablen für konsistentes Design */
:root {
  --radius: 14px;
  
  /* Grundfarben */
  --bg: #0f1f4a;
  --card: #0c1b3e;
  --ink: #e8f1ff;
  --ink-soft: #cfe0ff;
  --line: rgba(255,255,255,.10);
  --link: #9ec3ff;
  
  /* Jade-Töne */
  --jade-soft: #89d5ca;
  --jade-muted: #6fc2b5;
  
  /* Layout */
  --gx: clamp(16px, 2.4vw, 24px);
  --hero-top: clamp(60px, 8vw, 80px);
}

/* ==========================================
   RESET & GRUNDLAYOUT
   ========================================== */

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

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  padding: clamp(16px, 2vw, 32px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================
   CONTAINER & CARDS
   ========================================== */

.container {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 var(--gx);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Hover-Effekt für Cards */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(137, 213, 202, 0.3);
}

/* Vertikaler Rhythmus - Abstand zwischen Sektionen */
.container > section,
.container > .card {
  margin-top: clamp(24px, 3.5vw, 48px);
}

.container > :first-child {
  margin-top: 0;
}

/* Mehr Abstand nach Hero-Section */
.hero {
  margin-bottom: clamp(48px, 6vw, 80px) !important;
}

/* ==========================================
   HERO SECTION
   Flexbox-basiertes Layout für zuverlässige Positionierung
   ========================================== */

.hero {
  position: relative;
  text-align: center;
  padding: var(--hero-top) clamp(20px, 4vw, 48px) clamp(48px, 6vw, 80px);
  background: linear-gradient(180deg, rgba(25,45,110,.95), rgba(10,25,65,.965));
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Hero hat keinen Hover-Effekt */
.hero:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.hero-logo {
  margin: 0 auto;
  max-width: clamp(200px, 35vw, 380px);
  height: auto;
}

/* Hero-Text am unteren Rand - VIEL mehr Abstand vom Logo */
.hero-bottom {
  margin-top: auto;
  padding-top: clamp(80px, 12vw, 140px);
}

/* Hero-Divider mit verstärktem Shimmer-Effekt */
.hero-divider{
  width: min(60%, 400px);
  height: 2px;  /* Dicker für bessere Sichtbarkeit */
  border: 0;
  margin: 0 auto clamp(6px, 0.9vw, 10px);
  background: linear-gradient(90deg, 
    transparent, 
    rgba(157,222,211,0.4), 
    transparent);
  position: relative;
  overflow: hidden;
}

/* Verstärkter Shimmer-Effekt */
.hero-divider::after {
  content: '';
  position: absolute;
  top: -2px;  /* Etwas größer als die Linie */
  left: -100%;
  width: 30%;  /* Schmalerer, hellerer Strahl */
  height: 6px;  /* Höher für Glow-Effekt */
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(200, 255, 245, 0.3) 20%,
    rgba(137, 213, 202, 1) 50%,  /* Volle Intensität in der Mitte */
    rgba(200, 255, 245, 0.3) 80%,
    transparent 100%);
  filter: blur(3px);  /* Nebel-Effekt */
  animation: shimmer 4s ease-in-out infinite;
  animation-delay: 1s;  /* Startet nach 1 Sekunde */
}

@keyframes shimmer {
  0% { 
    left: -50%; 
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% { 
    left: 150%; 
    opacity: 0;
  }
}

.hero .claim {
  margin: 0 0 clamp(12px, 1.5vw, 16px) 0;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  color: rgba(137, 213, 202, 0.7);
  line-height: 1.4;
}

.hero .micro-note {
  margin: 0;
  font-size: clamp(13px, 1.1vw, 15px);
  color: rgba(111, 194, 181, 0.6);
  opacity: 0.85;
}

/* ==========================================
   TYPOGRAFIE
   ========================================== */

h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.2;
  margin: 0 0 clamp(16px, 2vw, 24px) 0;
  color: var(--ink);
}

p {
  margin: 0 0 1em 0;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 1em 0;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
}

/* ==========================================
   GRID LAYOUTS - ALLE 2-SPALTIG
   Mobile-First: 1 Spalte, dann 2 Spalten ab Tablet
   ========================================== */

/* Standard 2-Spalten Grid für alle Sections */
.two-col-grid {
  display: grid;
  gap: clamp(20px, 2.5vw, 32px);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .two-col-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  
  /* Cards in Grid nehmen volle Höhe ein */
  .two-col-grid > .card,
  .two-col-grid > article {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
}

/* Bild-Container Styling */
.image-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Bild mit abgerundeten Ecken NUR OBEN - unten 90° Ecken */
.section-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: var(--radius) var(--radius) 0 0;
  object-fit: cover;
  flex-grow: 1;
}

/* ==========================================
   FORMULAR
   ========================================== */

.contact-form {
  display: block;
}

.contact-form label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-weight: 500;
}

.contact-form .form-group {
  margin-bottom: 1.2rem;
}

/* Formular-Reihe: 1 Spalte mobil, 2 Spalten ab 700px */
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

@media (min-width: 700px) {
  .contact-form .row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Input-Felder Styling */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  background: #0b1736;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 1rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

/* Focus-State für bessere UX */
input:focus,
textarea:focus,
select:focus {
  border-color: #6ea8ff;
  box-shadow: 0 0 0 3px rgba(110,168,255,.15);
}

/* Consent Checkbox - Flexbox für korrekte Ausrichtung */
.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 1.2rem 0;
}

.consent-row input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
  cursor: pointer;
}

.consent-row label {
  margin: 0;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Pflichtfeld-Hinweis mit mehr Abstand zum Button */
.form-note {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ==========================================
   VALIDIERUNG
   ========================================== */

.error-msg {
  display: none;
  color: #ffd3d3;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.error-msg.show {
  display: block;
}

.user-invalid {
  border-color: #ff8585 !important;
}

.success-banner {
  display: none;
  background: rgba(72,187,120,.15);
  border: 1px solid rgba(72,187,120,.45);
  color: #c9f7df;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.success-banner.show {
  display: block;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #2a5bff;
  color: #fff;
  border-color: rgba(255,255,255,.15);
}

.btn-primary:hover {
  background: #3d6aff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(42,91,255,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0 1rem 0;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer-note {
  text-align: center;
  padding: clamp(24px, 3vw, 40px) 0 clamp(80px, 10vw, 100px) 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-links {
  margin-bottom: 0.8rem;
}

.footer-links a {
  margin: 0 0.5rem;
}

/* ==========================================
   SCROLL-TO-TOP BUTTON
   ========================================== */

.scroll-top {
  position: fixed;
  right: clamp(16px, 2vw, 24px);
  bottom: clamp(16px, 2vw, 24px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
}

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

/* ==========================================
   SPRACHUMSCHALTER
   ========================================== */

.language-switcher {
  position: fixed;
  top: clamp(16px, 2vw, 24px);
  right: clamp(16px, 2vw, 24px);
  z-index: 200;
}

.language-switcher a {
  display: inline-block;
  padding: 10px 18px;
  background: rgba(12, 27, 62, 0.9);
  color: var(--jade-soft);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.language-switcher a:hover {
  background: rgba(12, 27, 62, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: var(--jade-soft);
}

/* ==========================================
   ACCESSIBILITY (Barrierefreiheit)
   ========================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: #fff;
  color: #0f1f4a;
  outline: 2px solid currentColor;
  z-index: 1000;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.job-title {
  color: var(--ink-soft);
  font-style: italic;
}

.micro-note {
  font-size: 0.85rem;
  color: var(--jade-muted);
}

/* ==========================================
   RESPONSIVE ANPASSUNGEN
   Mobile-spezifische Optimierungen
   ========================================== */

@media (max-width: 767px) {
  .hero {
    min-height: 450px;
  }
  
  /* Buttons nehmen volle Breite auf mobilen Geräten */
  .btn-row {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}