@font-face { font-family: 'Antenna'; src: url('../fonts/web/antenna-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Antenna'; src: url('../fonts/web/antenna-medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Antenna'; src: url('../fonts/web/antenna-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Antenna'; src: url('../fonts/web/antenna-black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

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

:root {
  --green: #559B2A;
  --green-dark: #1f8c54;
  --green-light: #4fd18e;
  --dark: #101C1E;
  --dark-card: #162029;
  --gray-100: #f4f6f8;
  --gray-200: #e2e7ec;
  --gray-300: #b0bbc9;
  --gray-400: #8a95a3;
  --white: #ffffff;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Antenna', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Navigation --- */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(15,25,35,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}

nav.scrolled { padding: 0.6rem 3rem; background: rgba(15,25,35,0.95); }

.nav-links { display: flex; gap: 2rem; list-style: none; position: relative; }
.nav-links a { color: var(--gray-400); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; cursor: pointer; }
.nav-links a:hover { color: var(--white); }

#nav-brand {
  font-size: 1.2rem; font-weight: 800; letter-spacing: 1px;
  color: var(--white); text-decoration: none;
  opacity: 0; transform: translateX(-10px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
nav.scrolled #nav-brand { opacity: 1; transform: none; pointer-events: auto; }
#nav-brand:hover { color: var(--green-light); }

/* --- CTA in Nav --- */

.nav-cta { background: var(--green); color: var(--white); padding: 0.6rem 1.5rem; border-radius: 8px; text-decoration: none; font-size: 0.875rem; font-weight: 600; transition: all 0.2s; }
.nav-cta:hover { background: var(--green-light); transform: translateY(-1px); }

/* --- Hero --- */

.hero { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; position: relative; overflow: hidden; padding: 6rem 3rem 4rem; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,25,35,0.85) 0%, rgba(15,25,35,0.6) 50%, rgba(15,25,35,0.85) 100%); z-index: 1; pointer-events: none; }

.hero-grid { position: absolute; inset: 0; opacity: 0.03; background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px); background-size: 60px 60px; z-index: 2; pointer-events: none; }

.hero-content { position: relative; z-index: 3; text-align: center; max-width: 900px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(76,175,80,0.1); border: 1px solid rgba(76,175,80,0.2); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.8rem; color: var(--green-light); margin-bottom: 2rem; font-weight: 500; }
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.hero h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; line-height: 1; letter-spacing: -3px; margin-bottom: 0.5rem; color: var(--white); }

.hero-subtitle { font-size: clamp(1.3rem, 3vw, 2rem); color: var(--green); text-align: center; margin-bottom: 2rem; font-weight: 500; letter-spacing: 2px; }

.hero p { font-size: 1.2rem; color: var(--gray-400); max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7; }

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-buttons .btn-primary { flex: 1; }
.btn-primary { background: var(--green); color: var(--white); padding: 1rem 2.5rem; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: all 0.25s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--green); color: var(--dark); transform: translateY(-2px); box-shadow: 0 10px 40px rgba(76,175,80,0.3); }

.btn-secondary { background: rgba(255,255,255,0.06); color: var(--white); padding: 1rem 2.5rem; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 1rem; border: 1px solid rgba(255,255,255,0.1); transition: all 0.25s; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.hero-stats { display: flex; justify-content: center; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 1.6rem; font-weight: 700; color: var(--green); display: inline; }
.hero-stat-label { font-size: 0.85rem; color: var(--gray-400); display: inline; }



/* --- Sections (generic) --- */

section { padding: 6rem 3rem; }

section[id] { scroll-margin-top: 72px; }

.section-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; color: var(--green); font-weight: 600; margin-bottom: 1rem; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--gray-400); max-width: 600px; line-height: 1.7; }
.gallery-header .section-subtitle, .brands-header .section-subtitle { margin: 0 auto; }

/* --- About --- */

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1200px; margin: 0 auto; align-items: center; }
.about-text h2 { text-align: left !important; }
.about-image img { width: 100%; border-radius: 16px; aspect-ratio: 4/5; object-fit: cover; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image img { aspect-ratio: 16/9; }
}

/* --- Services --- */

.services { background: var(--dark); }
.services-header { text-align: center; margin-bottom: 4rem; }
.services-header .section-subtitle { margin: 0 auto; }

.service-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.service-card { background: var(--dark-card); border: 1px solid rgba(255,255,255,0.06); border-radius: 20px; padding: 2.5rem; position: relative; overflow: hidden; transition: all 0.3s ease; }
.service-card:hover { border-color: rgba(76,175,80,0.3); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }

.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--green-light)); opacity: 0; transition: opacity 0.3s; }
.service-card:hover::before { opacity: 1; }

.service-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(76,175,80,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; font-size: 1.5rem; }
.service-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card p { color: var(--gray-400); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }

.service-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.service-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--gray-200); }
.service-list li::before { content: '\2713'; color: var(--green); font-weight: 700; }

/* --- Brands / Partner --- */

.brands { background: var(--dark-card); border-top: 1px solid rgba(255,255,255,0.04); padding: 0 3rem; }
.brands-header { text-align: center; margin-bottom: 1rem; }

.brand-grid { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; max-width: 1000px; margin: 0 auto; }
.brand-item img { height: 100px; width: auto; object-fit: contain; opacity: 1; filter: brightness(1.2); transition: all 0.25s; }
.brand-item:hover img { filter: brightness(1.4) contrast(1.1); transform: scale(1.05); }

#schliesing-brand { background: white; border-radius: 8px; width: 200px; height: 70px; display: inline-flex; align-items: center; justify-content: center; }

#kubota-brand { background: white; border-radius: 8px; width: 200px; height: 70px; display: inline-flex; align-items: center; justify-content: center; }

/* --- Partner Slider (Fade-Carousel) --- */

.partner-slider { overflow: hidden; width: 100%; }
.partner-track { display: grid; width: min(1200px, 100%); margin-inline: auto; aspect-ratio: 16 / 9; }
.partner-slide {
  grid-area: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.8s ease; pointer-events: none;
}
.partner-slide.active { opacity: 1; pointer-events: auto; }
.partner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 768px) {
  .brands { padding-left: 0; padding-right: 0; }
  .brands-header { padding-inline: 1.5rem; }
  .partner-track { width: 100%; }
}

/* --- Marquee / Laufband (Gefixt für Safari, iOS & Chrome) --- */

.marquee { 
  overflow: hidden; 
  width: 100%; 
  background: var(--dark-card); 
  padding: 0.75rem 0; 
  /* Verhindert Rendering-Artefakte an den Rändern in Safari */
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* Ersetze diesen Block im CSS */
.marquee-track { 
  display: flex; 
  align-items: center; 
  width: max-content; 
  
  /* Safari Render-Fixes */
  will-change: transform; 
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  
  /* Wichtig: Animation explizit auf 'running' setzen */
  -webkit-animation: marquee-scroll 30s linear infinite running;
  animation: marquee-scroll 30s linear infinite running; 
}

/* Stoppt Animation bei Hover (optional, verbessert Usability) */
.marquee-track:hover {
  animation-play-state: paused;
  -webkit-animation-play-state: paused;
}

.marquee-item { 
  flex: 0 0 auto; 
  -webkit-flex-shrink: 0;
  flex-shrink: 0; 
  padding: 0 1.5rem; 
  line-height: 0; 
}

.marquee-item img { 
  height: 60px; 
  width: auto; 
  max-width: none;
  object-fit: contain; 
  display: block; 
  /* Verhindert Bild-Flackern beim Skalieren/Rendern in Safari */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@-webkit-keyframes marquee-scroll {
  0% { 
    -webkit-transform: translate3d(0, 0, 0); 
  }
  100% { 
    -webkit-transform: translate3d(-50%, 0, 0); 
  }
}

@keyframes marquee-scroll {
  0% { 
    transform: translate3d(0, 0, 0); 
  }
  100% { 
    transform: translate3d(-50%, 0, 0); 
  }
}

@media (max-width: 768px) {
  .marquee-item img { height: 44px; }
}

/* --- Footer --- */

footer { background: var(--dark-card); border-top: 1px solid rgba(255,255,255,0.06); padding: 4rem 3rem 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; max-width: 1200px; margin: 0 auto 3rem; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--green); margin-bottom: 1.25rem; font-weight: 600; }
.footer-col p, .footer-col a { color: var(--gray-400); font-size: 0.9rem; line-height: 2; text-decoration: none; display: block; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.06); color: var(--gray-400); font-size: 0.8rem; }

/* --- Gallery --- */

.gallery-section { background: var(--dark-card); border-top: 1px solid rgba(255,255,255,0.04); padding: 0 3rem; }
.gallery-header { text-align: center; margin-bottom: 1rem; }

.aktuell-single { display: flex; align-items: center; gap: 1rem; max-width: 1200px; margin: 0 auto; }
.aktuell-image-btn { flex: 1; min-width: 0; display: block; padding: 0; border: 1px solid rgba(255,255,255,0.06); border-radius: 20px; overflow: hidden; background: var(--dark-card); cursor: pointer; }
.aktuell-image-btn img { width: 100%; aspect-ratio: 9/4; object-fit: cover; display: block; }

@media (max-width: 1023px) {
  .aktuell-image-btn img { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .gallery-section { padding-left: 0; padding-right: 0; }
  .gallery-header { padding-inline: 1.5rem; }
  .aktuell-single { flex-direction: column; align-items: stretch; }
  .aktuell-image-btn img { aspect-ratio: 4/3; }
}

/* --- Lightbox (Aktuelles) --- */

.lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(10,16,20,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; animation: lb-fade 0.25s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

#lb-img { max-width: 94vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 32px 80px rgba(0,0,0,0.6); background: var(--dark-card); animation: lb-in 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

.lb-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: var(--white); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 3; }
.lb-close:hover { background: var(--green); border-color: var(--green); transform: rotate(90deg); }

.lb-bar { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; background: rgba(15,25,35,0.78); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 0.6rem 0.75rem; border-radius: 999px; max-width: calc(100vw - 2rem); }
.lb-share { padding: 0.6rem 1.4rem; border-radius: 999px; font-size: 0.875rem; flex-shrink: 0; }

@media (max-width: 768px) {
  #lb-img { max-height: 68vh; border-radius: 10px; }
  .lb-bar { bottom: 1rem; }
}

/* --- Fade-up Animation --- */

.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- Desktop Nav --- */

@media (min-width: 769px) {
  #nav-toggle { display: none !important; }
  nav { justify-content: space-between; }
  .nav-links { display:flex !important; gap:2rem !important; position:relative !important; opacity:1 !important; visibility:visible !important; flex-direction:row !important; align-items:center !important; }
}

/* --- Mobile --- */

/* --- Modal --- */

.modal-overlay {
  position: fixed; inset: 0; z-index: 9999; background: rgba(15,25,35,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: none; align-items: center; justify-content: center; padding: 2rem; pointer-events: none;
}
.modal-overlay.is-open { display: flex; pointer-events: auto; }

.modal-box { position: relative; background: var(--dark-card); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 3rem 3rem 2.5rem; max-width: 480px; width: 100%; text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,0.5); animation: modal-in 0.3s cubic-bezier(0.16,1,0.3,1); }
@keyframes modal-in { from { opacity:0; transform:translateY(20px) scale(0.97); } to { opacity:1; transform:translateY(0) scale(1); } }

.modal-box h3 { font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: 1rem; letter-spacing: -0.5px; }
.modal-box p { color: var(--gray-400); font-size: 1rem; line-height: 1.6; margin-bottom: 2rem; }

#modal-close { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); color: var(--gray-400); padding: 0.7rem 3rem; border-radius: 10px; cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: all 0.2s; }
#modal-close:hover { background: var(--green); color: var(--white); border-color: var(--green); transform: translateY(-1px); box-shadow: 0 8px 32px rgba(76,175,80,0.25); }

@media (max-width: 768px) {
  .modal-box { padding: 2rem 1.5rem; border-radius: 16px; }
  .modal-box h3 { font-size: 1.4rem; }

  #nav-toggle { display: flex; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; background: transparent; border: none; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
  #nav-toggle span { display: block; width: 100%; height: 3px; background: var(--white); border-radius: 2px; transition: all 0.3s ease-in-out; }
  #nav-toggle.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  #nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  #nav-toggle.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .nav-links { position: fixed; top: 56px; left: 0; right: 0; background: var(--dark-card); padding: 1rem 2rem 2rem; box-shadow: 0 4px 24px rgba(0,0,0,0.4); z-index: 99; flex-direction: column; gap: 0.75rem; display: none; opacity: 0; transform: translateY(-16px) scale(0.98); }
  .nav-links.is-open { display: flex !important; opacity: 1 !important; transform: translateY(0) scale(1) !important; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: auto; }
  .nav-links.is-open > li { width: 100%; display: block !important; }

  section { padding: 4rem 1.5rem; }
  .hero { padding: 6rem 1.5rem 3rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .service-cards { grid-template-columns: 1fr; }
  .brand-grid { gap: 1rem; }
  .brand-item { width: 90px; height: 48px; font-size: 0.7rem; }
  footer { padding: 3rem 1.5rem 2rem; }
}

/* --- Contact Form Modal --- */

.contact-form-box { text-align: left; max-width: 520px; padding: 3rem 2.5rem 2.5rem; }
.contact-form-box h3 { margin-bottom: 0.5rem; }
.contact-form-box > p { margin-bottom: 1.75rem; font-size: 0.95rem; }

.cf-close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: var(--gray-400); font-size: 1rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.cf-close:hover { background: rgba(255,255,255,0.12); color: var(--white); transform: rotate(90deg); }

.cf-field { margin-bottom: 1.25rem; }
.cf-field label { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-300); margin-bottom: 0.5rem; }

.cf-field input, .cf-field textarea {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  padding: 0.85rem 1rem; color: var(--white); font-family: inherit; font-size: 1rem; line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.cf-field textarea { resize: vertical; min-height: 140px; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--gray-400); opacity: 0.7; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--green-light); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 3px rgba(79,209,142,0.15); }

.cf-error { display: none; color: #ff8a8a; font-size: 0.8rem; margin-top: 0.4rem; }
.cf-field.has-error .cf-error { display: block; }
.cf-field.has-error input, .cf-field.has-error textarea { border-color: #e05c5c; box-shadow: 0 0 0 3px rgba(224,92,92,0.12); }

/* Honeypot (Anti-Spam): für Menschen unsichtbar, fängt Bots ab */
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Formular-Fehler (serverseitig, z. B. SMTP-Fehler) */
.cf-form-error { color: #ff8a8a; font-size: 0.9rem; line-height: 1.4; margin-bottom: 1rem; background: rgba(224,92,92,0.1); border: 1px solid rgba(224,92,92,0.3); border-radius: 8px; padding: 0.75rem 1rem; }
.cf-form-error[hidden] { display: none; }

.cf-submit { width: 100%; padding: 1rem; font-size: 1rem; margin-top: 0.25rem; }

.cf-success { text-align: center; padding: 1rem 0 0.5rem; }
.cf-success-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(79,209,142,0.12); border: 1px solid rgba(79,209,142,0.3); color: var(--green-light); font-size: 1.8rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.cf-success h3 { margin-bottom: 0.75rem; }
.cf-success p { margin-bottom: 2rem; }

@media (max-width: 768px) {
  .contact-form-box { padding: 2.5rem 1.5rem 2rem; border-radius: 16px; }
  .cf-field input, .cf-field textarea { font-size: 16px; }
}

/* --- Impressum-Modal --- */

.impressum-box { text-align: left; max-width: 560px; padding: 2.25rem 2rem 1.75rem; max-height: min(85vh, 720px); overflow-y: auto; }
.impressum-box h3 { margin-bottom: 0.75rem; }

.imp-section { margin-bottom: 0.75rem; padding: 0; }
.imp-section:last-child { margin-bottom: 0; }
.imp-section h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green-light); margin-bottom: 0.3rem; }
.imp-section p { color: var(--gray-300); font-size: 0.9rem; line-height: 1.5; margin: 0; }

.impressum-box a { color: var(--green-light); text-decoration: none; transition: opacity 0.2s; }
.impressum-box a:hover { opacity: 0.8; text-decoration: underline; }

@media (max-width: 768px) {
  .impressum-box { padding: 2rem 1.25rem 1.5rem; border-radius: 16px; max-height: 85vh; }
}

/* --- AGB-Modal --- */

.agb-box { text-align: left; max-width: 560px; padding: 2.25rem 2rem 1.75rem; max-height: min(85vh, 720px); overflow-y: auto; }
.agb-box h3 { margin-bottom: 0.5rem; }

.agb-subtitle { color: var(--gray-400); font-size: 0.95rem; line-height: 1.5; margin-bottom: 1.25rem; }

.agb-section { margin-bottom: 0.9rem; padding: 0; }
.agb-section:last-child { margin-bottom: 0; }
.agb-section h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green-light); margin-bottom: 0.35rem; }
.agb-section p { color: var(--gray-300); font-size: 0.9rem; line-height: 1.55; margin: 0 0 0.6rem; }
.agb-section p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .agb-box { padding: 2rem 1.25rem 1.5rem; border-radius: 16px; max-height: 85vh; }
}

/* --- Datenschutz-Modal --- */

.datenschutz-box { text-align: left; max-width: 560px; padding: 2.25rem 2rem 1.75rem; max-height: min(85vh, 720px); overflow-y: auto; }
.datenschutz-box h3 { margin-bottom: 0.5rem; }

.ds-subtitle { color: var(--gray-400); font-size: 0.95rem; line-height: 1.5; margin-bottom: 1.25rem; }

.ds-section { margin-bottom: 0.9rem; padding: 0; }
.ds-section:last-child { margin-bottom: 0; }
.ds-section h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green-light); margin-bottom: 0.35rem; }
.ds-section p { color: var(--gray-300); font-size: 0.9rem; line-height: 1.55; margin: 0 0 0.6rem; }
.ds-section p:last-child { margin-bottom: 0; }

.datenschutz-box a { color: var(--green-light); text-decoration: none; transition: opacity 0.2s; }
.datenschutz-box a:hover { opacity: 0.8; text-decoration: underline; }

@media (max-width: 768px) {
  .datenschutz-box { padding: 2rem 1.25rem 1.5rem; border-radius: 16px; max-height: 85vh; }
}
