/* 
   ==========================================================================
   Variables & Theme Setup
   ========================================================================== 
*/
:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Colors - Monochrome Premium */
  --bg-color: #ffffff;
  --text-main: #0a0a0a;
  --text-muted: #666666;
  --border-color: #eaeaea;

  --bg-dark: #0a0a0a;
  --text-dark-main: #ffffff;
  --text-dark-muted: #a0a0a0;

  /* Primary Accent Color - Modern Dark Green (Forest Green) */
  --accent-color: #042f1f;
  /* Sehr tiefes, sattes Dunkelgrün */
  --accent-hover: #021c12;
  /* Noch dunklere Variante für den Hover-Effekt */

  /* For elements that should stand out gracefully */
  --accent-light: #f0fdf4;

  /* Layout */
  --max-width: 1200px;
  --section-padding: 120px 0;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 
   ==========================================================================
   Reset & Base Styles
   ========================================================================== 
*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  -webkit-hyphens: auto;
  hyphens: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5em;
  color: var(--text-main);
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* 
   ==========================================================================
   Typography Systems
   ========================================================================== 
*/
.hero-title {
  font-size: clamp(1.8rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* 
   ==========================================================================
   Components
   ========================================================================== 
*/
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 9999px;
  /* Pill shape */
  transition: all var(--transition-medium);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(30, 58, 138, 0.5);
  /* Blue-tinted shadow */
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--bg-dark);
  color: var(--text-dark-main);
}

.btn-outline {
  border-color: var(--border-color);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--bg-dark);
  background-color: var(--bg-dark);
  color: var(--text-dark-main);
}

/* Grids */
.grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 1024px) {
  .expertise-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Cards */
.card {
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: transparent;
  transition: transform var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--bg-dark);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  width: max-content;
}

/* 
   ==========================================================================
   Layout Sections
   ========================================================================== 
*/

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
  gap: 12px;
}

.logo img {
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-weight: 500;
  font-size: 0.95rem;
  /* Gleiche Schriftgröße wie Expertise & Leistungen */
  letter-spacing: -0.01em;
}

.logo-suffix {
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  /* Offset for navbar */
  overflow: hidden;

  /* Neues Architektur-Hintergrundbild mit weißem Overlay für edle Transparenz und garantierte Lesbarkeit der schwarzen Typografie */
  background: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.80)), url('hero-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Leichter Parallax-Effekt beim Scrollen */
}

/* Regionale Hero-Hintergründe (überschreiben das Standardbild, behalten Overlay & Parallax) */
.hero.hero-ffm {
  /* Bild deutlicher machen: Weniger weißes Overlay */
  background-image: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.80)), url('hero-ffm.jpg');
}

.hero.hero-of {
  /* Bild deutlicher machen: Weniger weißes Overlay */
  background-image: linear-gradient(rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.85)), url('hero-of.jpg');
}

.hero.hero-ha {
  /* Bild deutlicher machen: Weniger weißes Overlay, da sehr helles Bild */
  background-image: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.80)), url('hero-ha.jpg');
}

/* Um die Lesbarkeit bei weniger starken Overlays zu garantieren, einen soften weißen Textschatten hinterlegen */
.hero.hero-ha .hero-title,
.hero.hero-ha .hero-subtitle {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
}

/* Fix für den iOS Safari Hintergrund-Bug: Parallax auf Mobile deaktivieren */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}
.hero .hero-title,
.hero .hero-subtitle,
.hero .hero-description,
.hero.hero-ffm .hero-title,
.hero.hero-ffm .hero-subtitle,
.hero.hero-ffm .hero-description,
.hero.hero-of .hero-title,
.hero.hero-of .hero-subtitle,
.hero.hero-of .hero-description,
.hero.hero-ha .hero-title,
.hero.hero-ha .hero-subtitle,
.hero.hero-ha .hero-description {
  text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 10px rgba(255, 255, 255, 0.8);
}



/* Background Subtle Element simulating gravity/abstract */
.hero-bg-elem {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
}

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

.hero-subtitle {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  display: inline-block;
  border-radius: 20px;
}

.hero-subtitle strong {
  color: #ffffff !important;
  background-color: var(--text-main);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  margin-right: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  /* Hiermit erhalten wir die selbe optische Höhe wie der reine Text */
}

.hero-description {
  font-size: 1.5rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
}

/* Sections General */
.section {
  padding: var(--section-padding);
}

.section-header {
  margin-bottom: 4rem;
  max-width: 600px;
}

/* Audio Section (FFH Radiospot) */
.audio-section {
  background-color: var(--bg-hover);
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
}

.audio-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.audio-player-wrapper {
  width: 100%;
  max-width: 600px;
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: box-shadow var(--transition-fast);
}

.audio-player-wrapper:hover {
  box-shadow: var(--shadow-md);
}

.styled-audio {
  width: 100%;
  outline: none;
}

/* Dark Section - Leistungen */
.dark-section {
  background-color: var(--bg-dark);
  color: var(--text-dark-main);
}

.dark-section .section-title,
.dark-section .section-lead,
.dark-section h3 {
  color: var(--text-dark-main);
}

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

.dark-card {
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.03);
}

.feature-list {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-grow: 1;
  /* Füllt den Platz nach unten auf, damit die Trennlinie fixiert bleibt */
}

/* Erzwinge einheitliche Höhe für die Einleitungstexte in den Info-Karten, um den Strich auf gleicher Höhe zu halten */
.leistungen-grid .card p {
  min-height: 4.5rem;
}

.feature-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  color: var(--text-dark-main);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✓";
  margin-right: 0.75rem;
  color: var(--text-dark-main);
  font-weight: 700;
}

/* Qualitäts-Sektion (Zwei Kästen) */
.vdiv-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-color);
}

.quality-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .quality-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quality-card {
  align-items: flex-start;
  text-align: left;
  /* Box-Styling analog zu normalen Cards */
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-color);
  transition: transform var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.quality-card:hover {
  transform: translateY(-5px);
  border-color: var(--text-main);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.1);
}

.quality-text {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 3rem;
}

.quality-logo-wrapper {
  margin-top: auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.quality-logo-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Feedback-Sektion (Kundenstimmen) */
.feedback-section {
  padding: 6rem 0;
  background-color: var(--bg-color);
  overflow: hidden;
  /* Verhindert horizontales Scrollen auf Body-Ebene */
}

.feedback-section .section-header {
  text-align: left;
  margin-bottom: 4rem;
}

.feedback-slider {
  position: relative;
  width: 100%;
  max-width: 1000px;
  /* Begrenzt die maximale Breite des Sliders für bessere Lesbarkeit auf großen Bildschirmen */
  margin: 0 auto;
}

.feedback-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2rem;
  /* Platz für Scrollbar/Schatten */
  scrollbar-width: none;
  /* Firefox */
}

.feedback-track::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.feedback-card {
  flex: 0 0 100%;
  /* Jede Card nimmt auf Mobile 100% Breite ein */
  scroll-snap-align: center;
  padding: 3rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.feedback-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.1);
  border-color: var(--text-main);
}

@media (min-width: 768px) {
  .feedback-card {
    flex: 0 0 calc(50% - 1rem);
    /* Auf Desktop 2 Cards nebeneinander (50% minus halber Gap) */
  }
}

.feedback-stars {
  color: #FFA500;
  /* Orange/Gold für Sterne */
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.2rem;
}

.feedback-quote {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 2rem;
  flex-grow: 1;
  /* Schiebt Autor nach unten, falls Zitate unterschiedlich lang sind */
}

.feedback-author {
  font-weight: 700;
  color: var(--text-main);
}

.feedback-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Slider Pagination Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.dot.active {
  background-color: var(--text-main);
  transform: scale(1.2);
}

/* Footer */
.footer {
  padding: 6rem 0 2rem;
  background-color: var(--bg-color);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
  }
}

.footer h3,
.footer h4 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.875rem;
}

/* 
   ==========================================================================
   Animations
   ========================================================================== 
*/
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for grid items */
.grid .fade-up:nth-child(1) {
  transition-delay: 0.0s;
}

.grid .fade-up:nth-child(2) {
  transition-delay: 0.1s;
}

.grid .fade-up:nth-child(3) {
  transition-delay: 0.2s;
}

.grid .fade-up:nth-child(4) {
  transition-delay: 0.3s;
}

/* 
   ==========================================================================
   KPI Section
   ========================================================================== 
*/
.kpi-section {
  padding: 6rem 0;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
}

.kpi-grid {
  grid-template-columns: 1fr;
  text-align: center;
  gap: 4rem 2rem;
}

/* 
   ==========================================================================
   Team Section
   ========================================================================== 
*/
.team-section {
  background-color: var(--bg-color);
}

.team-grid {
  grid-template-columns: 1fr;
  gap: 3rem 2rem;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  padding: 0;
  border: none;
  background: transparent;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: none;
  border-color: transparent;
}

.team-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  background-color: #f5f5f5;
  /* Platzhalter-Farbe, falls ein Bild lädt */
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.team-image.carmen {
  /* Bild etwa 10% nach oben skalieren und dann den Fokuspunkt nach unten setzen, um oben mehr Platz zu schaffen */
  object-position: 50% 15%;
}

.team-image.graciela {
  /* Bild noch weiter heranzoomen, für noch engeren Kopf-Ausschnitt */
  transform: scale(1.5);
  /* Fokus auf 10% von oben setzen: Kopf rutscht im Rahmen nach unten, mehr Platz oben */
  transform-origin: center 10%;
}

.team-card:hover .team-image {
  transform: scale(1.05);
  /* Leichter Zoom-Effekt beim Hover über die Karte */
}

/* Spezifischer Hover-Effekt für das ohnehin gezoomte Bild */
.team-card:hover .team-image.graciela {
  transform: scale(1.55);
}

.team-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.kpi-number-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.kpi-number,
.kpi-plus {
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.kpi-plus {
  color: var(--text-muted);
  /* Subtler plus sign */
  margin-left: 2px;
}

.kpi-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

/* 
   ==========================================================================
   Contact Form Section
   ========================================================================== 
*/
.contact-section {
  background-color: #fafafa;
  border-top: 1px solid var(--border-color);
  padding: 8rem 0;
}

.contact-container {
  display: grid;
  gap: 4rem;
  max-width: 1000px;
}

@media (min-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contact-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.contact-header p {
  font-size: 1.125rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: var(--bg-color);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

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

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background-color: #fafafa;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-main);
  background-color: var(--bg-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.submit-btn {
  width: 100%;
  font-size: 1.125rem;
  padding: 1rem;
}

/* Mock Captcha */
.mock-captcha {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  padding: 1rem;
  border-radius: 3px;
  justify-content: space-between;
  margin-top: 1rem;
}

.mock-captcha input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  cursor: pointer;
}

.mock-captcha label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0;
  cursor: pointer;
  flex-grow: 1;
}

.captcha-logo {
  height: 30px;
  opacity: 0.8;
}

/* Multi-Step Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: #ffffff;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.visible .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 0;
}

.modal-content {
  padding: 40px;
  overflow-y: auto;
  position: relative;
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-step h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.step-desc {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .options-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.radio-option {
  position: relative;
  cursor: pointer;
}

.radio-option input {
  position: absolute;
  opacity: 0;
}

.radio-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 2px solid #eaeaea;
  border-radius: 12px;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.2s ease;
  min-height: 60px;
  text-align: center;
  background: #fff;
}

.radio-option:hover .radio-card {
  border-color: #d0d0d0;
  background: #fdfdfd;
}

.radio-option input:checked+.radio-card {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.upload-grid {
  display: grid;
  gap: 1.5rem;
}

.upload-item {
  display: flex;
  flex-direction: column;
}

.file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1rem;
  border: 2px dashed #ccc;
  border-radius: 8px;
  cursor: pointer;
  color: var(--primary);
  font-weight: 500;
  transition: all 0.2s ease;
  background: #fafafa;
}

.file-upload-btn:hover {
  border-color: var(--primary);
  background: #fff;
}

.file-upload-input {
  display: none;
}

.file-name {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.input-grid {
  display: grid;
  gap: 1rem;
}

.input-grid input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.input-grid input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.privacy-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.privacy-note a {
  color: var(--text-main);
}

.form-success,
.form-error {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.form-success.active,
.form-error.active {
  display: block;
}

.form-success svg,
.form-error svg {
  margin-bottom: 1rem;
}

.form-success h2 {
  color: var(--primary);
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -150%;
  left: 0;
  width: 100%;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.cookie-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-content a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-content {
    max-width: 60%;
  }
  .cookie-actions {
    flex-shrink: 0;
  }
}
/* Verhindert harte Silbentrennung bei den riesigen Hero-Überschriften */
.hero-title, .hero-subtitle {
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

