/* STREAMING_CHUNK:Defining local fonts... */
/* ==========================================================================
   Medihelden – Styleguide & CSS Architecture
   ========================================================================== */

/* 1. Lokale Schriftarten (DSGVO-konform) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/montserrat-800.woff2') format('woff2');
}

/* STREAMING_CHUNK:Setting CSS variables... */
/* 2. Design Tokens / CSS Variablen */
:root {
  --color-dark: #1A1A1A;
  --color-berry: #8D2B55;
  --color-blazer: #E6E3E0;
  --color-white: #FFFFFF;
  --color-bg: #F8F9FA; 
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --border-radius: 6px;
  --box-shadow: 0 10px 30px rgba(26, 26, 26, 0.05);
  --box-shadow-hover: 0 15px 40px rgba(26, 26, 26, 0.1);
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* STREAMING_CHUNK:Applying resets and typography... */
/* 3. Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--color-dark);
}

/* 4. Typografie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin-bottom: 1.5rem; color: #4A4A4A; }
p:last-child { margin-bottom: 0; }

/* STREAMING_CHUNK:Structuring layout and grid... */
/* 5. Layout & Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.section-light { background-color: var(--color-bg); }
.section-white { background-color: var(--color-white); }
.section-dark { background-color: var(--color-dark); color: var(--color-white); }
.section-dark h1, .section-dark h2, .section-dark p { color: var(--color-white); }

.grid {
  display: grid;
  gap: 40px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

@media (min-width: 992px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* STREAMING_CHUNK:Styling buttons and cards... */
/* 6. UI Komponenten (Buttons, Cards) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-berry);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #702243;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-blazer);
  color: var(--color-dark);
}

.btn-secondary:hover {
  background-color: #D5D1CE;
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.card {
  background: var(--color-white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

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

/* STREAMING_CHUNK:Configuring header and navigation... */
/* 7. Header & Navigation */
.site-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Korrigiertes Padding, damit seitliche Ränder bestehen bleiben */
.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px; 
}

.logo img {
  height: 40px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  color: var(--color-dark);
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-berry);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-dark);
  transition: var(--transition);
}

/* STREAMING_CHUNK:Adding visibility modifiers... */
/* ==========================================================================
   Sichtbarkeit & CTA Fixes für Mobile/Desktop
   ========================================================================== */

/* Standard (Desktop): Mobile-Elemente ausblenden, Desktop-Elemente zeigen */
.show-on-mobile {
  display: none !important;
}

.hide-on-mobile {
  display: inline-flex !important;
}

/* Erzwingt weiße Schrift für alle CTA-Buttons in der Navigation (überschreibt Link-Styles) */
.main-nav a.btn,
.main-nav a.btn:hover,
.main-nav .btn-primary,
.main-nav .btn-primary:hover {
  color: var(--color-white) !important;
}

/* STREAMING_CHUNK:Adding mobile responsive rules... */
/* Mobile Breakpoint */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  
  .main-nav {
      display: none;
      position: absolute;
      top: 80px;
      left: 0;
      width: 100%;
      background: var(--color-white);
      box-shadow: 0 10px 10px rgba(0,0,0,0.05);
      padding: 20px;
  }
  
  .main-nav.active { display: block; }
  
  .main-nav ul {
      flex-direction: column;
      gap: 15px;
  }
  
  /* Logik für Desktop vs. Mobile CTA */
  .show-on-mobile {
      display: block !important;
      margin-top: 10px;
      width: 100%;
  }

  .hide-on-mobile {
      display: none !important;
  }
  
  .main-nav .btn { 
      width: 100%; 
      text-align: center;
  }
}

/* STREAMING_CHUNK:Styling hero and footer sections... */
/* 8. Spezifische Sektionen (Hero, Footer) */
.hero {
  padding: 60px 0 100px;
  overflow: hidden;
}

.hero-content {
  padding-right: 5%;
}

.hero-subline {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #4A4A4A;
}

.hero-image img {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.site-footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 60px 0 20px 0;
}

.footer-heading {
  color: var(--color-white);
  margin-bottom: 15px;
}

.footer-text {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  line-height: 2;
}

.footer-links-list a {
  color: #ccc;
  text-decoration: none;
}

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

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #888;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  filter: brightness(0) invert(1);
  height: 40px;
  margin-bottom: 20px;
}

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

/* STREAMING_CHUNK:Adding legal page styles... */
/* 9. Legal / Content Styles */
.legal-content {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-top: 2rem;
}

.legal-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-berry);
}

.legal-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: #4A4A4A;
}

.legal-content li {
  margin-bottom: 0.5rem;
}