/*
  F&K Webdesign – Global Styles
  - Minimal, frosted-glass look
  - Responsive layout
  - Light/Dark via CSS variables
*/

:root {
  --bg: #0e0f12;
  /* Larger, blended gradients for seamless page-wide orange accents */
  --bg-gradient: 
    radial-gradient(1400px 1000px at 95% 5%, rgba(255,153,0,0.11), rgba(255,153,0,0) 58%),
    radial-gradient(1600px 1200px at 10% 90%, rgba(255,140,58,0.09), rgba(255,140,58,0) 60%),
    radial-gradient(1800px 1400px at 50% 40%, rgba(255,120,40,0.06), rgba(255,120,40,0) 64%);
  --text: #f3f3f3;
  --muted: #c9c9c9;
  --glass: rgba(20,20,24,0.55);
  --glass-border: rgba(255,153,0,0.15);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --primary-grad: linear-gradient(135deg, #0e0f12 0%, #0e0f12 100%);
  --accent: #ff8c3a;
  --transition: 220ms ease;
  --orange-glow: 0 0 20px rgba(255,153,0,0.3);
  /* FAQ sizing */
  --faq-collapsed: 100px; /* optimiert für längste Frage: "Kann ich später upgraden oder Funktionen ergänzen?" - 3 Zeilen */
  --faq-expanded: 200px; /* erhöht für längere Antworten */
  /* Offers normalized height so price/button are inside */
  --offer-height: 520px;
  /* Title gradients */
  --title-gradient: linear-gradient(90deg,
    #87ceeb 0%,
    #87ceeb 42%,
    #a3daf1 45%,
    #ffb266 55%,
    #ff8c3a 65%,
    #ff6b35 100%
  );
  /* Hero starts Orange earlier */
  --title-gradient-hero: linear-gradient(90deg,
    #87ceeb 0%,
    #87ceeb 30%,
    #a3daf1 34%,
    #ffb266 44%,
    #ff8c3a 58%,
    #ff6b35 100%
  );
}

* { box-sizing: border-box; }
html { 
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}
body { 
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-repeat: no-repeat, no-repeat, no-repeat;
  /* Fix the background to the viewport so accents flow across sections smoothly */
  background-attachment: fixed, fixed, fixed;
  /* Large sizes to avoid visible edges while scrolling on big screens */
  background-size: 1400px 1000px, 1600px 1200px, 1800px 1400px;
  background-position: 95% 5%, 10% 90%, 50% 40%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.site-footer {
  flex-shrink: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Offset for fixed header */
body { padding-top: 64px; }

/* Scroll margin for anchor links */
section[id] {
  scroll-margin-top: 80px;
}

/* Mobile: Angepasster Body-Padding und Scroll-Margin für kleineren Header */
@media (max-width: 768px) {
  body { 
    padding-top: 64px; /* Genaue Header-Höhe für korrekte Positionierung */
  }
  
  section[id] {
    scroll-margin-top: 74px; /* Angepasster Abstand auf Mobile */
  }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1200px, 92%); margin: 0 auto; max-width: 100%; }
.hero .container { overflow: visible; }
.offers .container { width: 100%; max-width: none; }
.section { padding: 40px 0; }
.section.hero { overflow: visible; }
.section-title {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 900;
  text-align: center;
  font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem);
  margin: 8px auto 36px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  line-height: 1.15;
  /* Full-spectrum gradient for section titles */
  background-image: var(--title-gradient);
  background-size: 100% 100%;
  background-position: 50% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: none;
}
.section-title.is-gradient-single { background-image: var(--title-gradient); }
.section-title.is-dominant-orange {
  background-image: var(--title-gradient);
}
.section-title.is-dominant-blue {
  background-image: var(--title-gradient);
}
.title-accent-orange { background: none; -webkit-text-fill-color: inherit; color: inherit; }
.section-title:hover { filter: brightness(1.05); }

@keyframes titleGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .section-title { animation: none; background-position: 50% 50%; }
}

@keyframes titleSlowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 60% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  width: 100%;
  overflow: visible;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0;
  width: 100%;
  max-width: min(1200px, 92%);
  margin: 0 auto;
  overflow: visible;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand { font-family: 'Roboto', sans-serif; letter-spacing: 0.4px; }
.hero .brand { font-size: 3.5rem; font-weight: 900; color: #ff8c3a; margin-bottom: 16px; }
/* Hero Title Animation - URSPRÜNGLICHE ANIMATIONEN WIEDERHERGESTELLT */
.hero-title {
  font-family: 'Roboto', sans-serif; font-size: 6rem; font-weight: 900;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  margin-bottom: 0;
  position: relative;
}

.title-line {
  display: block;
  background-image: var(--title-gradient-hero);
  background-size: 100% 100%; background-position: 50% 50%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  
  /* Initial state - hidden below viewport */
  opacity: 0;
  transform: translateY(100px);
  transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.title-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop animation - nur auf größeren Desktop-Geräten (nicht iPads) */
@media (min-width: 1025px) {
  .title-line-1.is-visible:not(.animation-completed) {
    animation: uniformBounce 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
               offsetLeft 1000ms cubic-bezier(0.4, 0, 0.2, 1) 500ms forwards;
  }

  .title-line-2.is-visible:not(.animation-completed) {
    animation: uniformBounce 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
               offsetRight 1000ms cubic-bezier(0.4, 0, 0.2, 1) 500ms forwards;
  }
}

/* Prevent animation from running multiple times */
.title-line.is-visible {
  animation-fill-mode: forwards;
}

@keyframes uniformBounce {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  70% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes offsetLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-30px); }
}

@keyframes offsetRight {
  from { transform: translateX(0); }
  to { transform: translateX(30px); }
}

/* Mobile Animation Keyframes - F&K von links, Webdesign von rechts */
@keyframes mobileSlideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mobileSlideInRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile-spezifische Animationen mit reduzierten Offsets */
@keyframes mobileOffsetLeft {
  from { transform: translateY(0) translateX(0); }
  to { transform: translateY(0) translateX(-15px); }
}

@keyframes mobileOffsetRight {
  from { transform: translateY(0) translateX(0); }
  to { transform: translateY(0) translateX(15px); }
}

/* Safari/iOS-spezifische Keyframes - sehr einfach */
@keyframes safariSimpleLeft {
  0% {
    opacity: 0;
    transform: translateY(50px) translateX(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(-15px);
  }
}

@keyframes safariSimpleRight {
  0% {
    opacity: 0;
    transform: translateY(50px) translateX(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(15px);
  }
}

/* Animation-Status-Klassen um Wiederholung zu verhindern */
.title-line.animation-completed {
  animation: none !important;
  -webkit-animation: none !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Mobile Animation-Status */
@media (max-width: 768px) {
  .title-line-1.animation-completed {
    transform: translateY(0) translateX(-15px) !important;
  }

  .title-line-2.animation-completed {
    transform: translateY(0) translateX(15px) !important;
  }
  
  /* Safari/iOS-spezifische Animation-Status */
  @supports (-webkit-touch-callout: none) {
    .title-line-1.animation-completed {
      transform: translateY(0) translateX(-15px) !important;
      opacity: 1 !important;
      animation: none !important;
      -webkit-animation: none !important;
    }

    .title-line-2.animation-completed {
      transform: translateY(0) translateX(15px) !important;
      opacity: 1 !important;
      animation: none !important;
      -webkit-animation: none !important;
    }
  }
}

/* Tablet/iPad - Keine Animation, direkt in Endposition */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Content Grid für iPad - Boxen untereinander */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* iPad im Querformat - Animation deaktivieren, Position beibehalten */
/* Abdeckt alle iPad-Modelle: Mini, Air, Pro 11", Pro 12.9" (bis 1366px Breite) */
@media (min-width: 769px) and (max-width: 1366px) and (orientation: landscape) {
  /* Animationen komplett deaktivieren für iPad im Querformat */
  .hero-title .title-line-1.is-visible,
  .hero-title .title-line-1.is-visible:not(.animation-completed),
  .hero-title .title-line-2.is-visible,
  .hero-title .title-line-2.is-visible:not(.animation-completed) {
    animation: none !important;
    -webkit-animation: none !important;
  }
  
  /* Direkt in Endposition setzen (ohne Animation) - Position wie nach Animation */
  .hero-title .title-line-1.is-visible {
    opacity: 1 !important;
    transform: translateY(0) translateX(-15px) !important;
  }

  .hero-title .title-line-2.is-visible {
    opacity: 1 !important;
    transform: translateY(0) translateX(15px) !important;
  }
  
  /* Auch für animation-completed Klassen */
  .title-line-1.animation-completed {
    transform: translateY(0) translateX(-15px) !important;
  }

  .title-line-2.animation-completed {
    transform: translateY(0) translateX(15px) !important;
  }
}

/* iPad Mini im Hochformat - h1 zentrieren, Versetzung beibehalten */
@media (width: 768px) and (orientation: portrait) {
  /* Hero Container auf Flexbox umstellen für Zentrierung */
  .hero .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Hero-Titel zentrieren für iPad Mini im Hochformat */
  .hero-title {
    order: 1;
    align-self: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 0 !important;
    margin-bottom: 20px !important;
  }
  
  /* Title-Lines: Versetzung beibehalten, aber Container zentriert */
  .hero-title .title-line {
    text-align: center !important;
  }
  
  /* Versetzung der Textzeilen zueinander beibehalten */
  .hero-title .title-line-1,
  .hero-title .title-line-1.is-visible,
  .hero-title .title-line-1.is-visible:not(.animation-completed),
  .hero-title .title-line-1.animation-completed {
    animation: none !important;
    -webkit-animation: none !important;
    transform: translateY(0) translateX(-15px) !important;
    opacity: 1 !important;
  }
  
  .hero-title .title-line-2,
  .hero-title .title-line-2.is-visible,
  .hero-title .title-line-2.is-visible:not(.animation-completed),
  .hero-title .title-line-2.animation-completed {
    animation: none !important;
    -webkit-animation: none !important;
    transform: translateY(0) translateX(15px) !important;
    opacity: 1 !important;
  }
}

/* iPad im Hochformat - Mobile-Layout verwenden */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  /* Hamburger-Button anzeigen für iPad im Hochformat */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(33, 30, 30, 0.95);
    border: 1px solid rgba(255, 153, 0, 0.5);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    margin: 0;
    position: relative;
    z-index: 1001;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    order: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 153, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    transition: all 0.2s ease;
  }
  
  .hamburger:hover {
    background: rgba(255, 153, 0, 0.1);
    border-color: rgba(255, 153, 0, 0.7);
    transform: scale(1.05);
  }
  
  .hamburger:active {
    transform: scale(0.95);
  }
  
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: all 0.3s ease;
    position: relative;
    pointer-events: none;
  }
  
  /* Hamburger Animation zu X */
  .hamburger.is-open span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    margin-left: -11px;
    margin-top: -1px;
  }
  
  .hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.is-open span:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    margin-left: -11px;
    margin-top: -1px;
  }
  
  /* Navigation Menü verstecken */
  .main-nav ul {
    display: none !important;
  }
  
  .hero .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Reihenfolge für Mobile: Titel, Tagline, Karussell, Button, Link */
  .hero-title {
    order: 1;
    align-self: flex-start;
    margin-left: 0 !important;
    padding-left: 10px;
    max-width: calc(100vw - 40px);
    overflow: visible;
    font-size: 4rem !important;
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  /* Titel-Position im Hochformat mit Versetzung (wie Desktop) - KEINE Animationen */
  .hero-title .title-line-1,
  .hero-title .title-line-1.is-visible,
  .hero-title .title-line-1.is-visible:not(.animation-completed),
  .hero-title .title-line-1.animation-completed {
    animation: none !important;
    -webkit-animation: none !important;
    transform: translateY(0) translateX(-15px) !important;
    opacity: 1 !important;
  }
  
  .hero-title .title-line-2,
  .hero-title .title-line-2.is-visible,
  .hero-title .title-line-2.is-visible:not(.animation-completed),
  .hero-title .title-line-2.animation-completed {
    animation: none !important;
    -webkit-animation: none !important;
    transform: translateY(0) translateX(15px) !important;
    opacity: 1 !important;
  }
  
  .hero .tagline {
    order: 2;
    text-align: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px !important;
    margin-bottom: 20px !important;
  }
  
  .hero-media {
    order: 3;
    width: 100%;
    margin-top: 0 !important;
    margin-bottom: 28px !important;
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  
  .hero-ctas {
    order: 4;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: center !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
  }
  
  .hero-info-link {
    order: 5;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: center !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
  }
  
  .hero {
    min-height: 90vh !important;
    padding-top: 3vh !important;
  }
  
  /* Hero Carousel angepasst */
  .hero-carousel {
    border-top: none !important;
    padding-top: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  
  .hero-slides {
    height: 300px;
    border-radius: 18px;
    overflow: hidden;
  }
  
  .hero-slide img {
    border-radius: 18px;
  }
  
  /* Hero-Titel zentrieren für iPad im Hochformat (Position wie nach Animation behalten) */
  .hero-title {
    align-self: center !important;
    margin-left: 0 !important;
    text-align: center !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Hero-Titel Container zentrieren */
  .hero .container {
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Title-Lines: Text zentrieren, aber Versetzung beibehalten */
  .hero-title .title-line {
    text-align: center !important;
    /* margin-left/right auto entfernt, damit translateX Versetzung funktioniert */
  }
  
  /* Warum F&K Sektion - Mobile-Layout für iPad im Hochformat */
  .section.why .section-title,
  .section.why h2.section-title,
  .section.why #why-heading {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }
  
  .section.why .container {
    text-align: center !important;
  }
  
  .stack-cards {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  /* Auf iPad im Hochformat: Original-Text ausblenden und Detail-Text standardmäßig zeigen */
  .card.glass {
    min-height: auto !important; /* Auto-Höhe für längeren Detail-Text */
  }
  
  .card.glass .original-text {
    display: none !important;
  }
  
  .card.glass .detailed-text {
    position: relative !important;
    top: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-20px) !important;
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s, visibility 0s 0.3s !important;
  }
  
  /* Wenn die Card sichtbar wird, Text einfliegen lassen */
  .card.glass.is-visible .detailed-text {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
  }
  
  /* Hover/Click-Effekte auf iPad im Hochformat deaktivieren */
  .card.glass:hover .detailed-text,
  .card.glass.clicked .detailed-text {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
  }
}

/* Desktop Animation-Status - nur für große Desktops */
@media (min-width: 1025px) {
  .title-line-1.animation-completed {
    transform: translateY(0) translateX(-30px) !important;
  }

  .title-line-2.animation-completed {
    transform: translateY(0) translateX(30px) !important;
  }
}

/* Mobile: Navigation standardmäßig versteckt */
@media (max-width: 1024px) {
  .main-nav ul { 
    display: none !important; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
  }
}
.btn-nav {
  display: inline-block; padding: 10px 14px; border-radius: 12px;
  background: transparent; border: 1px solid transparent; transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn-nav:hover { transform: translateY(-1px) scale(1.02); background: var(--glass); border-color: var(--glass-border); box-shadow: var(--orange-glow); }
.btn-nav.active { background: var(--glass); border-color: var(--glass-border); }

/* ========================================
   HAMBURGER BUTTON - URSPRÜNGLICHE ANIMATIONEN WIEDERHERGESTELLT
   ======================================== */

/* Desktop Navigation - Wiederhergestellt */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
}

/* Hamburger nur auf Mobile anzeigen */
.hamburger {
  display: none;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #ff8c3a;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}


/* Buttons */
.btn { display:inline-block; padding: 12px 18px; border-radius: 14px; border:1px solid rgba(255,153,0,0.15); transition: transform var(--transition), filter var(--transition), box-shadow var(--transition); background: transparent; color: var(--text); font-family: 'Roboto', sans-serif; font-weight: 500; }
/* Button für Kontaktformular - größerer Text */
.btn.cta {
  background: var(--primary-grad); 
  color:#fff; 
  box-shadow: var(--shadow); 
  border-color: rgba(255,153,0,0.15);
  font-size: 1.1rem;
  font-weight: 600;
}
.btn.ghost { background: transparent; border-color: rgba(255,153,0,0.15); }
.btn.small { padding: 10px 14px; font-size: 0.95rem; border-color: rgba(255,153,0,0.15); }
.btn:hover { transform: translateY(-1px) scale(1.01); filter: saturate(1.05); box-shadow: var(--orange-glow); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh; /* Vollbildhöhe für Hero-Sektion */
  display: flex;
  align-items: flex-start;
  padding-top: 15vh; /* Verschiebt Inhalt nach oben */
  overflow: visible;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 60px; /* Etwas niedriger für bessere Sichtbarkeit */
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.scroll-arrow {
  background: transparent;
  border: none; /* Kreis entfernt */
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.5s ease, visibility 0.5s ease, transform var(--transition);
  animation: bounceDown 2s infinite;
  padding: 10px; /* Padding für bessere Klickfläche */
  -webkit-tap-highlight-color: rgba(255, 153, 0, 0.2);
  touch-action: manipulation; /* Bessere Touch-Performance */
}

.scroll-arrow:hover {
  transform: scale(1.1);
}

.scroll-arrow span {
  width: 16px;
  height: 16px;
  border-right: 3px solid #ff8c3a;
  border-bottom: 3px solid #ff8c3a;
  transform: rotate(45deg);
  transition: border-color var(--transition);
}

.scroll-arrow:hover span {
  border-color: rgba(255, 153, 0, 1);
}

.scroll-arrow.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important; /* Animation stoppen wenn versteckt */
  transition: opacity 0.5s ease, visibility 0.5s ease !important;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Ensure hero content has proper z-index and readability */
.hero-text {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-media {
  position: relative;
  z-index: 10;
}

/* ========================================
   MOBILE OPTIMIZATION (Tablets & Phones)
   ======================================== */

@media (max-width: 768px) {
  /* ============================================
     MOBILE HEADER & HAMBURGER MENU
     ============================================ */
  
  /* Mobile: Keine Animation, aber Position beibehalten (wie Desktop) */
  .hero-title .title-line-1,
  .hero-title .title-line-1.is-visible,
  .hero-title .title-line-1.is-visible:not(.animation-completed),
  .hero-title .title-line-1.animation-completed {
    animation: none !important;
    -webkit-animation: none !important;
    transform: translateY(0) translateX(-15px) !important;
    opacity: 1 !important;
  }
  
  .hero-title .title-line-2,
  .hero-title .title-line-2.is-visible,
  .hero-title .title-line-2.is-visible:not(.animation-completed),
  .hero-title .title-line-2.animation-completed {
    animation: none !important;
    -webkit-animation: none !important;
    transform: translateY(0) translateX(15px) !important;
    opacity: 1 !important;
  }
  
  /* Verhindere horizontales Scrollen */
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  /* Smooth scrolling aktivieren & Hintergrundfarbe */
  html {
    scroll-behavior: smooth;
    background: var(--bg); /* Gleiche Hintergrundfarbe wie body */
  }
  
  /* Header sollte direkt am oberen Rand beginnen ohne gelben Balken */
  .site-header {
    margin-top: 0;
    padding-top: 0;
  }
  
  /* Desktop: Original Animation mit Offsets */
  .hero-title .title-line-1.is-visible:not(.animation-completed) {
    animation: uniformBounce 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
               offsetLeft 1000ms cubic-bezier(0.4, 0, 0.2, 1) 500ms forwards;
    -webkit-animation: uniformBounce 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
                      offsetLeft 1000ms cubic-bezier(0.4, 0, 0.2, 1) 500ms forwards;
  }
  
  .hero-title .title-line-2.is-visible:not(.animation-completed) {
    animation: uniformBounce 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
               offsetRight 1000ms cubic-bezier(0.4, 0, 0.2, 1) 500ms forwards;
    -webkit-animation: uniformBounce 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
                      offsetRight 1000ms cubic-bezier(0.4, 0, 0.2, 1) 500ms forwards;
  }
  
  /* Touch-Optimierung für Title-Lines auf echten Mobile-Geräten */
  .title-line {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
  }
  
  /* Weichere, runderere Gradienten für mobile Geräte - erweitert nach unten */
  body {
    background: var(--bg);
    background-image: 
      /* Gradient: Hintergrundfarbe statt orange - volle Deckung oben */
      radial-gradient(900px 1000px at 95% 5%, rgba(20,20,24,1.0), rgba(20,20,24,0.6) 40%, rgba(20,20,24,0) 70%),
      /* Gradient 2: runder und weicher mit sanfteren Übergängen - erweitert nach unten */
      radial-gradient(1000px 1100px at 10% 90%, rgba(255,140,58,0.12), rgba(255,140,58,0.03) 40%, rgba(255,140,58,0) 70%),
      /* Gradient 3: runder und weicher mit sanfteren Übergängen - erweitert nach unten */
      radial-gradient(1100px 1200px at 50% 40%, rgba(255,120,40,0.08), rgba(255,120,40,0.02) 40%, rgba(255,120,40,0) 70%);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-attachment: scroll, scroll, scroll;
    background-size: 900px 1000px, 1000px 1100px, 1100px 1200px;
    background-position: 95% 5%, 10% 90%, 50% 40%;
  }
  
  /* Sicherstellen dass alle Elemente über den Gradienten liegen */
  .hero-text,
  .hero-media,
  .hero-title,
  .hero .tagline,
  .hero-ctas,
  .hero-info-link,
  .hero-carousel,
  .section,
  .container,
  .card,
  .btn {
    position: relative;
    z-index: 1;
  }
  
  /* Verhindere Überlauf bei allen Elementen */
  *, *::before, *::after {
    box-sizing: border-box;
  }
  
  img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
  }
  
  /* Container und Grid-Systeme */
  .container, .grid-2, .gallery-track, .offers-track {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background: var(--glass); /* Transparenter Header wie vorher */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: none !important;
    border-bottom: 1px solid var(--glass-border);
    pointer-events: auto;
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    width: min(1200px, 92%);
    margin: 0 auto;
    box-sizing: border-box;
    pointer-events: auto;
  }
  
  /* Main-Nav Container - sicherstellen dass es klickbar ist */
  .main-nav {
    pointer-events: auto;
    position: relative;
    z-index: 1001;
  }
  
  /* Logo kleiner auf Mobile */
  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    order: 0; /* Logo links positionieren */
  }
  
  .logo img {
    width: 36px;
    height: 36px;
  }
  
  .brand {
    font-size: 1rem;
  }
  
  /* ============================================
HAMBURGER BUTTON - RECHTS POSITIONIERT
     ============================================ */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(33, 30, 30, 0.95);
    border: 1px solid rgba(255, 153, 0, 0.5);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    margin: 0;
    position: relative;
    z-index: 1001;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    order: 1; /* Hamburger rechts positionieren */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 153, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    transition: all 0.2s ease;
  }
  
  .hamburger:hover {
    background: rgba(255, 153, 0, 0.1);
    border-color: rgba(255, 153, 0, 0.7);
    transform: scale(1.05);
  }
  
  .hamburger:active {
    transform: scale(0.95);
  }
  
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: all 0.3s ease;
    position: relative;
    pointer-events: none; /* Spans sollen nicht klickbar sein, nur der Container */
  }
  
  /* Touch-Optimierung für echte Mobile-Geräte */
  .hamburger {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
  }
  
  /* Hamburger Animation zu X */
  .hamburger span:nth-child(1) {
    transform-origin: center center;
  }
  
  .hamburger span:nth-child(2) {
    transform-origin: center center;
  }
  
  .hamburger span:nth-child(3) {
    transform-origin: center center;
  }
  
  /* Wenn Menü offen ist: X-Form */
  .hamburger.is-open span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    margin-left: -11px;
    margin-top: -1px;
  }
  
  .hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.is-open span:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    margin-left: -11px;
    margin-top: -1px;
  }
  
  /* Keine Animation - Hamburger bleibt immer gleich */
  
  /* ============================================
     MOBILE NAVIGATION MENU - KOMPAKT
     ============================================ */
  
  /* Mobile Navigation - Komplett neu strukturiert */
  .main-nav ul {
    display: none !important;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  /* Menü ANZEIGEN wenn .is-open Klasse gesetzt */
  .main-nav ul.is-open {
    display: flex !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  
  /* List Items im Menü - klickbar machen */
  .main-nav ul li {
    pointer-events: auto !important;
    z-index: 1002 !important;
    position: relative !important;
  }
  
  /* Mobile Navigation Links - Kompaktes Design */
  .btn-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    background: rgba(33, 30, 30, 0.7) !important;
    border: 1px solid rgba(255, 153, 0, 0.2) !important;
    color: #ffffff !important;
    transition: all 0.2s ease !important;
    margin-bottom: 0 !important;
    line-height: 1.0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1002 !important;
    -webkit-tap-highlight-color: rgba(255, 153, 0, 0.2) !important;
    touch-action: manipulation !important;
    -webkit-user-select: none !important;
    user-select: none !important;
  }
  
  .btn-nav:hover,
  .btn-nav:active,
  .btn-nav.active {
    background: rgba(255, 153, 0, 0.15);
    border-color: rgba(255, 153, 0, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  
  .hero {
    min-height: 90vh; /* Etwas weniger Höhe auf mobilen Geräten */
    padding-top: 3vh; /* Minimales Padding - Überschrift nah am Header */
  }
  
  .hero-title {
    font-size: 4rem; /* Größer für bessere Raumausnutzung */
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .hero .tagline {
    margin-top: 16px !important;
    margin-bottom: 20px !important;
  }
  
  .hero-media {
    margin-top: 0 !important;
    margin-bottom: 28px !important;
  }
  
  .hero-ctas {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
  }
  
  .hero-info-link {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
  }
  
  /* Hero Container auf Mobile zu Flexbox Column */
  .hero .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
  }
  
  /* Reihenfolge für Mobile: Titel, Tagline, Karussell, Button, Link */
  .hero-title {
    order: 1;
    align-self: flex-start;
    margin-left: 20px;
    padding-left: 10px;
    max-width: calc(100vw - 40px);
    overflow: visible;
  }
  
  .hero .tagline {
    order: 2;
    text-align: center;
  }
  
  .hero-media {
    order: 3;
    width: 100%;
  }
  
  .hero-ctas {
    order: 4;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .hero-info-link {
    order: 5;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  /* Hero Carousel angepasst */
  .hero-carousel {
    border-top: none !important;
    padding-top: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  
  .hero-slides {
    height: 300px;
    border-radius: 18px;
    overflow: hidden;
  }
  
  .hero-slide img {
    border-radius: 18px;
  }
  
  .hero-prev, .hero-next {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .hero-prev {
    margin-left: 8px;
  }
  
  .hero-next {
    margin-right: 8px;
  }
  
  .hero-dots {
    bottom: 10px;
    gap: 4px;
  }
  
  .dot {
    width: 6px !important;
    height: 6px !important;
  }
  
  /* Überschreibe die allgemeine .dot Regel für mobile */
  .hero-dots .dot {
    width: 6px !important;
    height: 6px !important;
  }
  
  /* Scroll Indicator auf Mobile komplett ausblenden */
  .scroll-indicator {
    display: none !important;
  }
  
  .scroll-arrow {
    display: none !important;
  }
  
  .stack-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .card.glass {
    min-height: auto;
    padding: 18px;
  }
  
  .card.glass h3 {
    font-size: 1.2rem;
    margin-top: 0;
  }
  
  /* Deaktiviere Hover-Effekt auf mobilen Geräten für bessere Performance */
  .card.glass:hover .original-text {
    transform: none;
    opacity: 1;
  }
  
  .card.glass:hover .detailed-text {
    opacity: 0;
    transform: translateX(100%) translateY(-100%);
    visibility: hidden;
  }
  
  
  .card-icon {
    height: 180px;
  }
  
  /* Gallery Optimierungen */
  .gallery-carousel {
    padding: 10px 10px;
  }
  
  .gslide {
    height: 280px;
  }
  
  /* Galerie-Pfeile auf Mobile ausblenden */
  .gallery-arrow {
    display: none !important;
  }
  
  /* Lightbox-Pfeile auf Mobile - wie Hero-Carousel-Pfeile */
  .lightbox-prev,
  .lightbox-next {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: var(--glass) !important;
    border: 1px solid rgba(255,153,0,0.15) !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    box-shadow: var(--shadow) !important;
    z-index: 10001 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--text) !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
  }
  
  .lightbox-prev {
    left: 22px !important;
  }
  
  .lightbox-next {
    right: 22px !important;
  }
  
  .lightbox-prev:hover,
  .lightbox-next:hover {
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: var(--orange-glow) !important;
  }
  
  .lightbox-prev:active,
  .lightbox-next:active {
    transform: translateY(-50%) scale(0.95) !important;
    opacity: 0.9 !important;
  }
  
  /* Sicherstellen dass Lightbox über allem liegt - NUR wenn geöffnet */
  .lightbox.is-open {
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 50px 20px 40px !important;
  }
  
  .lightbox-image {
    z-index: 10000 !important;
    max-height: 80vh !important;
    width: auto !important;
    object-fit: contain !important;
  }
  
  /* Lightbox Close-Button auf Mobile - groß und gut erreichbar */
  .lightbox-close {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    color: #333 !important;
    cursor: pointer !important;
    z-index: 10002 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    -webkit-tap-highlight-color: transparent;
  }
  
  .lightbox-close:active {
    background: rgba(255, 153, 0, 0.9) !important;
    color: white !important;
    transform: scale(0.95);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }

/* Hero Container Layout - Desktop */
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: start;
  overflow: visible;
  padding-left: 40px; /* Extra Padding links für Animation */
  padding-right: 40px; /* Extra Padding rechts für Animation */
}

/* Hero Elemente Positionierung für Desktop Grid */
.hero-title {
  grid-column: 1;
  grid-row: 1;
}

.hero .tagline {
  grid-column: 1;
  grid-row: 2;
}

.hero-ctas {
  grid-column: 1;
  grid-row: 3;
}

.hero-info-link {
  grid-column: 1;
  grid-row: 4;
}

.hero-media {
  grid-column: 2;
  grid-row: 1 / 5;
  align-self: center;
}

.hero .tagline { 
  font-size: clamp(1.1rem, 1rem + 1vw, 1.6rem); 
  color: var(--muted); 
  margin: 10px 0 18px; 
  margin-left: -30px; 
  align-self: flex-start;
  max-width: calc(100vw - 60px);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Mobile: Zentrierung überschreibt Desktop-Styles */
@media (max-width: 768px) {
  .hero .tagline {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
    align-self: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

.hero-ctas { 
  display: flex; 
  gap: 12px;
  max-width: calc(100vw - 60px);
  margin-left: -30px;
  align-self: flex-start;
}
.hero-ctas .btn { order: 1; }

/* Mobile: Zentrierung für Hero-Buttons */
@media (max-width: 768px) {
  .hero-ctas {
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }
  
  /* Zusätzliche Zentrierung für den Button selbst */
  .hero-ctas .btn {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
}

/* Hero Info Link */
.hero-info-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  margin-left: -30px;
  align-self: flex-start;
  max-width: calc(100vw - 60px);
}

/* Mobile: Zentrierung für Hero-Info-Link */
@media (max-width: 768px) {
  .hero-info-link {
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
    position: relative;
  }
}

.info-triangle-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.info-triangle-btn:hover {
  transform: scale(1.1);
}

.info-triangle-btn[aria-expanded="true"] .info-triangle {
  transform: rotate(180deg);
}

.info-triangle {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--accent);
  transform: rotate(90deg);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.info-text {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.info-text:hover {
  color: #ffb266;
  transform: translateX(2px);
}

/* Dropdown Styling */
.info-dropdown {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  margin-top: 8px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 280px;
  z-index: 99999 !important; /* Sehr hoher z-index, damit es über allem liegt */
  display: none;
  animation: dropdownFadeIn 0.2s ease-out;
  pointer-events: auto !important; /* Sicherstellen, dass Klicks funktionieren */
}

.info-dropdown[style*="block"] {
  display: block !important;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-dropdown-item {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  margin-bottom: 4px;
  pointer-events: auto !important; /* Sicherstellen, dass alle Items klickbar sind */
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.info-dropdown-item:last-child {
  margin-bottom: 0;
}

.info-dropdown-item:hover {
  background: rgba(255, 153, 0, 0.1);
  color: var(--accent);
}

/* Positionierung für hero-info-link mit Dropdown */
.hero-info-link {
  position: relative !important;
  z-index: 99998 !important; /* Hoher z-index für Container */
  isolation: isolate; /* Erstellt neuen Stacking Context */
}

/* Hero-Section: Sicherstellen, dass Dropdown darüber liegt */
.hero {
  position: relative;
  z-index: 1;
}

/* Warum F&K Sektion: Niedrigerer z-index */
.section.why {
  position: relative;
  z-index: 0;
}

/* Responsive Anpassungen für Dropdown */
@media (max-width: 768px) {
  .hero-info-link {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  .info-dropdown {
    left: 50% !important;
    transform: translateX(-50%) !important;
    min-width: 90%;
    max-width: 320px;
    right: auto !important;
  }
  
  .info-dropdown-item {
    font-size: 0.85rem;
    padding: 12px 14px;
  }
}

/* (removed hero ribbon) */

/* Hero Carousel - Einfache Struktur */
.hero-carousel { 
  position: relative; 
  border-radius: 18px; 
  overflow: hidden; 
  background: var(--glass); 
  border: 1px solid rgba(255,153,0,0.15); 
  box-shadow: var(--shadow); 
  transition: transform var(--transition), box-shadow var(--transition); 
}
.hero-carousel:hover { 
  transform: scale(1.01); 
  box-shadow: var(--orange-glow); 
}

.hero-slides { 
  position: relative; 
  width: 100%; 
  height: 400px; 
}

.hero-slide { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  opacity: 0; 
  transition: opacity 0.5s ease-in-out; 
}

.hero-slide.active { 
  opacity: 1; 
}

.hero-slide img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

.hero-controls { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  width: 100%; 
  display: flex; 
  justify-content: space-between; 
  pointer-events: none; 
}

.hero-prev, .hero-next { 
  background: var(--glass); 
  border: 1px solid rgba(255,153,0,0.15); 
  border-radius: 50%; 
  width: 40px; 
  height: 40px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  cursor: pointer; 
  transition: var(--transition); 
  pointer-events: auto; 
  font-size: 20px; 
  color: var(--text); 
}

.hero-prev:hover, .hero-next:hover { 
  transform: scale(1.1); 
  box-shadow: var(--orange-glow); 
}

.hero-prev { 
  margin-left: 15px; 
}

.hero-next { 
  margin-right: 15px; 
}

.hero-dots { 
  position: absolute; 
  bottom: 15px; 
  left: 0; 
  right: 0; 
  display: flex; 
  gap: 8px; 
  justify-content: center; 
}

.dot { 
  width: 12px; 
  height: 12px; 
  border-radius: 50%; 
  background: rgba(255,255,255,0.4); 
  cursor: pointer; 
  transition: var(--transition); 
}

.dot.active { 
  background: var(--accent); 
}

.dot:hover { 
  background: rgba(255,153,0,0.8); 
}

  /* Stack cards (Warum F&K) - Horizontal Layout */
  .stack-cards { 
    position: relative; 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 24px; 
    overflow: visible; /* Nur für Animation der Cards */
  }
  
  /* Mobile: Vertikale Anordnung für bessere Lesbarkeit */
  @media (max-width: 768px) {
    .stack-cards {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    
    /* Auf Mobile: Original-Text ausblenden und Detail-Text standardmäßig zeigen */
    .card.glass {
      min-height: auto; /* Auto-Höhe für längeren Detail-Text auf Mobile */
    }
    
    .card.glass .original-text {
      display: none !important;
    }
    
    .card.glass .detailed-text {
      position: relative !important;
      top: 0 !important;
      opacity: 0;
      visibility: hidden;
      transform: translateX(-20px);
      transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s, visibility 0s 0.3s;
    }
    
    /* Wenn die Card sichtbar wird, Text einfliegen lassen */
    .card.glass.is-visible .detailed-text {
      opacity: 1;
      visibility: visible;
      transform: translateX(0);
    }
    
    /* Hover/Click-Effekte auf Mobile deaktivieren */
    .card.glass:hover .detailed-text,
    .card.glass.clicked .detailed-text {
      opacity: 1;
      visibility: visible;
      transform: translateX(0);
    }
    
  }
  
  /* Section Container für Warum F&K - stabiler Container */
  .section.why {
    overflow: visible; /* Erlaubt Card-Animation */
  }
  
  .section.why .container {
    overflow: visible; /* Erlaubt Card-Animation */
  }

.card.glass { 
  background: var(--glass); 
  border: 1px solid rgba(100, 200, 255, 0.4); /* Stärkerer blauer Rand */
  border-radius: 18px; 
  padding: 20px; /* Reduziertes Padding */
  min-height: 320px; /* Angepasst für längsten Text (Skalierbar & wartbar) */
  height: auto; /* Automatische Höhe basierend auf Inhalt */
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow), inset 0 0 40px rgba(100, 200, 255, 0.3); /* Starkes inneres blaues Leuchten */
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); 
  overflow: visible; /* Erlaubt Animation außerhalb der Card-Grenzen */
}

.card-content {
  position: relative;
  overflow: visible; /* Sichtbar machen für den Text */
}

.original-text {
  transition: transform 0.4s ease, opacity 0.3s ease;
  transform: translateY(0);
  opacity: 1;
}

.detailed-text {
  position: absolute; /* Nur diese Änderung für gleiche Position */
  top: 1.2em; /* Etwas nach unten versetzt für gleiche Position wie ursprünglicher Text */
  left: 0;
  width: 100%;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateX(100%) translateY(-100%); /* Von rechts UND von unten einfahren */
  visibility: hidden;
  margin: 0; /* Keine Margins */
  padding: 0; /* Kein Padding */
}

.card.glass:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow), inset 0 0 60px rgba(100, 200, 255, 0.5); /* Noch stärkeres blaues Leuchten beim Hover */
  border-color: rgba(100, 200, 255, 0.6); /* Stärkerer blauer Rand beim Hover */
  z-index: 5; /* Box über anderen Elementen beim Hover */
}

.card.glass:hover .original-text {
  transform: translateY(100%);
  opacity: 0;
}

.card.glass:hover .detailed-text {
  opacity: 1;
  transform: translateX(0) translateY(0); /* Zur normalen Position */
  visibility: visible;
}


.card.glass h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 12px;
  color: #64c8ff;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card.glass p {
  flex-grow: 1;
  margin-bottom: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Media Query für mittlere Bildschirmgrößen - verhindert Text-Overflow */
@media (max-width: 1200px) {
  /* Boxen etwas länger machen, damit Text nicht abgeschnitten wird */
  .card.glass {
    min-height: 450px; /* Erhöht von 320px auf 450px für mehr Platz */
  }
  
  /* Text-Elemente werden begrenzt, damit sie nicht über Box hinauslaufen */
  .card.glass p,
  .card.glass .original-text,
  .card.glass .detailed-text {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
  }
  
  /* detailed-text: Breite begrenzen, damit er nicht über Box hinausragt */
  .card.glass .detailed-text {
    width: 100%;
    left: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  .card.glass h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Wichtig: Box-Größe bleibt unverändert, nur Text wird begrenzt */
  /* overflow bleibt visible für Animation, aber Text wird durch word-wrap begrenzt */
}

.card-icon {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.stack { 
  position: relative; 
  transform: translateY(10px); 
  opacity: 0; 
  transition: transform 600ms ease, opacity 600ms ease; 
}

.stack.is-visible { 
  opacity: 1; 
  transform: translateY(0); 
}

/* Gallery carousel - Neu mit Platzhaltern */
.gallery-carousel { 
  position: relative; 
  border-radius: 18px; 
  overflow: hidden; 
  background: var(--glass); 
  border: 1px solid rgba(255,153,0,0.15); 
  box-shadow: var(--shadow); 
  max-width: 980px; 
  margin: 0 auto; 
  padding: 10px 20px;
}

.gallery-track { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
  will-change: transform; 
  overflow: visible; 
  position: relative;
}

.gslide { 
  flex: 0 0 calc(70% - 10px);
  min-width: calc(70% - 10px);
  height: 400px;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 260ms ease; 
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  border: 3px solid #000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #000;
}

.gallery-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gslide:hover .gallery-placeholder {
  border-color: var(--accent);
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(255,153,0,0.3), 0 0 15px rgba(255,153,0,0.2);
}

.gslide:hover .gallery-placeholder img {
  transform: scale(1.05);
}

.gslide.is-center { 
  /* Kein automatisches Vergrößern mehr */
  z-index: 1; 
}

.gslide:not(:hover) { 
  transition: transform 0ms ease, opacity 260ms ease; 
}
.gallery-arrow { position:absolute; top:50%; transform: translateY(-50%); background: transparent; border:none; width:32px; height:32px; display:grid; place-items:center; cursor:pointer; z-index:4; }
.gallery-arrow.prev { left: -24px; }
.gallery-arrow.next { right: -24px; }
.gallery-arrow::after { content: ''; width: 14px; height: 14px; display: inline-block; border-right: 2px solid rgba(255,153,0,0.9); border-bottom: 2px solid rgba(255,153,0,0.9); transition: transform var(--transition), border-color var(--transition); }
.gallery-arrow.prev::after { transform: rotate(135deg); }
.gallery-arrow.next::after { transform: rotate(315deg); }
.gallery-arrow:hover::after { border-color: rgba(255,153,0,1); }
.gallery-arrow.prev:hover::after { transform: rotate(135deg) scale(1.15); }
.gallery-arrow.next:hover::after { transform: rotate(315deg) scale(1.15); }
.gallery-cta { display:flex; justify-content:center; margin-top: 14px; }

@media (max-width: 980px) {
  .gslide { flex-basis: 84%; }
  .gallery-arrow.prev { left: 8px; }
  .gallery-arrow.next { right: 8px; }
}

/* Offers carousel */
.offers-carousel { position: relative; overflow: visible; padding: 40px 20px; max-width: 1200px; margin: 0 auto; }
.offers-carousel:hover .offers-track { animation-play-state: paused; }
.offers-track { display:flex; gap: 16px; overflow: visible; scroll-snap-type: x mandatory; padding-bottom: 2px; position: relative; justify-content: center; }
.offer-card { min-width: 280px; max-width: 280px; scroll-snap-align: start; padding: 20px 20px 88px; border-radius: 18px; background: var(--glass); border:1px solid rgba(255,153,0,0.15); box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); display:flex; flex-direction: column; height: var(--offer-height, 360px); box-sizing: border-box; position: relative; }
.offers-carousel:hover .offer-card { animation-play-state: paused; }
.offer-card:hover { transform: scale(1.01); box-shadow: var(--orange-glow); }
.offer-card h3 { font-family: 'Roboto', sans-serif; font-weight: 700; margin-top: 0; margin-bottom: 12px; }
.gradient-basic { background: linear-gradient(135deg, #87ceeb 0%, #87ceeb 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-standard { background: linear-gradient(135deg, #87ceeb 0%, #ffb366 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-premium { background: linear-gradient(135deg, #87ceeb 0%, #ff8c3a 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-ecommerce { background: linear-gradient(135deg, #87ceeb 0%, #ff6b35 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.offer-card p { margin-bottom: 16px; color: var(--muted); font-size: 0.95rem; }
.offer-features { list-style: none; padding: 0; margin: 0 0 20px; }
.offer-features li { padding: 6px 0; padding-left: 20px; position: relative; font-size: 0.9rem; }
.offer-features li:before { content: '✓'; position: absolute; left: 0; color: #ff8c3a; font-weight: bold; }
.offer-price { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 1.1rem; color: #ff8c3a; position: static; margin: 10px 0 0; }
/* Anchor CTA button to bottom-left of each offer card */
.offer-card .btn.cta.small { position: absolute; left: 20px; bottom: 20px; margin: 0; }

/* Spotlight layout */
.offers-spotlight { max-width: 980px; min-height: 340px; margin-bottom: 64px; }
.offers-spotlight .offers-track { gap: 0; }
.offers-spotlight .offer-card { position: absolute; left: 50%; transform: translateX(-50%) scale(0.9); opacity: 0; pointer-events: none; transition: transform 300ms ease, opacity 300ms ease, box-shadow var(--transition); height: var(--offer-height, 360px); background: #141418; border:1px solid rgba(255,153,0,0.2); padding: 20px 20px 32px; box-sizing: border-box; }
.offers-spotlight .offer-card.is-center { transform: translateX(-50%) scale(1.06); opacity: 1; z-index: 3; pointer-events: auto; }
.offers-spotlight .offer-card.is-left { transform: translateX(calc(-50% - 200px)) scale(0.92); opacity: 1; z-index: 2; pointer-events: auto; }
.offers-spotlight .offer-card.is-right { transform: translateX(calc(-50% + 200px)) scale(0.92); opacity: 1; z-index: 2; pointer-events: auto; }
.offers-spotlight .offer-card.is-right2 { transform: translateX(calc(-50% + 340px)) scale(0.86); opacity: 1; z-index: 1; pointer-events: auto; }
.offers-spotlight .offers-arrow { position:absolute; top: 50%; transform: translateY(-50%); background: transparent; border: none; width:32px; height:32px; display:grid; place-items:center; cursor:pointer; transition: var(--transition); z-index: 4; padding: 0; }
.offers-spotlight .offers-arrow::after { content: ''; width: 14px; height: 14px; display: inline-block; border-right: 2px solid rgba(255,153,0,0.9); border-bottom: 2px solid rgba(255,153,0,0.9); transition: border-color var(--transition), transform var(--transition); }
.offers-spotlight .offers-arrow.prev { left: -24px; }
.offers-spotlight .offers-arrow.prev::after { transform: rotate(135deg); }
.offers-spotlight .offers-arrow.next { right: -24px; }
.offers-spotlight .offers-arrow.next::after { transform: rotate(315deg); }
.offers-spotlight .offers-arrow:hover::after { border-color: rgba(255,153,0,1); }
.offers-spotlight .offers-arrow.prev:hover::after { transform: rotate(135deg) scale(1.15); }
.offers-spotlight .offers-arrow.next:hover::after { transform: rotate(315deg) scale(1.15); }

/* Wide offer box */
.offer-wide { 
  width: min(980px, 92%);
  margin: 18px auto 0;
  padding: 26px 24px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--glass);
  border: 1px solid rgba(255,153,0,0.15);
  box-shadow: var(--shadow);
}
.offer-wide:hover { transform: scale(1.01); box-shadow: var(--orange-glow); }
.offer-wide h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  margin: 0;
  font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2rem);
  background-image: linear-gradient(90deg, #ffb266, #ff8c3a, #ffd0a3);
  background-size: 200% auto;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: titleGradientShift 6s ease-in-out infinite;
}
.offer-wide p { margin: 2px 0 0; color: var(--muted); max-width: 780px; }
.offer-wide .btn.cta { margin-top: 10px; align-self: center; }

/* FAQ */
/* FAQ layout: 3 columns, 2 rows with equal-sized boxes */
.faq-grid { 
  display:grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 14px; 
  overflow: visible; /* Alle FAQ-Items sichtbar machen */
}
/* Clean single-box accordion: details is the card, summary is the header */
.faq-item {
  background: var(--glass);
  border: 1px solid rgba(255,153,0,0.15);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden; /* Behalte für saubere Abschneidung innerhalb der Items */
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), height 260ms ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: var(--faq-collapsed); /* feste Höhe für konsistente Boxgröße */
}
.faq-item:hover { transform: scale(1.01); box-shadow: var(--orange-glow); }
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start; /* Text oben ausrichten für mehrzeilige Fragen */
  gap: 10px;
  padding: 14px 56px 22px 28px; /* weniger Padding oben, mehr unten - Text höher positioniert */
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.3rem);
  background: transparent;
  border: 0;
  position: relative;
  height: var(--faq-collapsed); /* feste Höhe passend zur längsten Frage */
  flex: 0 0 auto;
  line-height: 1.3; /* optimierter Zeilenabstand */
  word-break: normal;
  overflow: hidden; /* Text nicht über Ränder hinaus */
  margin-top: 0;
  box-sizing: border-box; /* Padding in Höhe einrechnen */
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: '';
  width: 12px; height: 12px; /* normalized arrow size */
  border-right: 2px solid rgba(255,153,0,0.9);
  border-bottom: 2px solid rgba(255,153,0,0.9);
  display: inline-block;
  position: absolute;
  right: 18px;
  top: 14px; /* oben positioniert, passend zum neuen Padding */
  transform-origin: 50% 50%;
  transform: rotate(45deg);
  transition: transform var(--transition);
  line-height: 1;
  flex: 0 0 auto;
  will-change: transform;
}
.faq-item[open] > summary::after {
  transform: rotate(225deg);
}
.faq-item .answer {
  padding: 0 28px 24px 28px; /* consistent side spacing for long text, mehr padding */
  color: var(--muted);
  flex: 1 1 auto;
  overflow: auto; /* scroll inside, keep external size equal */
  opacity: 0;
  margin-top: 8px; /* mehr Abstand zwischen summary und answer */
  visibility: hidden;
  transition: opacity 220ms ease;
  line-height: 1.6; /* besserer Zeilenabstand für Antworten */
}
.faq-item[open] { height: var(--faq-expanded); }
.faq-item[open] .answer { opacity: 1; visibility: visible; animation: fadeSlide 260ms ease both; }
@keyframes fadeSlide { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); } }

/* Lightbox */
.lightbox { 
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.9); 
  display: none; 
  align-items: center; 
  justify-content: center; 
  padding: 20px; 
  z-index: 10000; /* Höchste z-index */
}
.lightbox.is-open { 
  display: flex; 
  animation: fadeIn 180ms ease both; 
}
.lightbox-image { 
  max-width: min(92vw, 1100px); 
  max-height: calc(86vh - 80px); 
  border-radius: 14px; 
  box-shadow: var(--shadow); 
  z-index: 10000; /* Noch höher als Lightbox */
}
.lightbox-close { position:absolute; top:18px; right:18px; background: #fff; border:0; border-radius: 999px; width:36px; height:36px; cursor:pointer; font-size: 20px; color: #333; z-index: 10002; }
.lightbox-prev, .lightbox-next { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  background: rgba(255,255,255,0.9); 
  border: 0; 
  border-radius: 50%; 
  width: 50px; 
  height: 50px; 
  cursor: pointer; 
  font-size: 24px; 
  color: #333; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  transition: all 0.3s ease; 
  z-index: 10001;
}
.lightbox-prev:hover, .lightbox-next:hover { 
  background: rgba(255,153,0,0.9); 
  color: white; 
  transform: translateY(-50%) scale(1.1); 
}
.lightbox-prev { left: calc(50% - 620px); }
.lightbox-next { right: calc(50% - 620px); }

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 1400px) {
  .lightbox-prev { left: 20px; }
  .lightbox-next { right: 20px; }
}
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

/* Contact Form Styles */
.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

.form-message.success {
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-message.loading {
  background-color: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn:disabled:hover {
  transform: none !important;
  filter: none !important;
}

/* About / Contact */
.about-content { max-width: 1000px; margin: 0 auto; }
.about-middle-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
  margin-bottom: 24px; 
}
.about-card { 
  background: var(--glass); 
  border:1px solid rgba(255,153,0,0.15); 
  border-radius: 18px; 
  padding: 32px 24px; 
  box-shadow: var(--shadow); 
  transition: transform var(--transition), box-shadow var(--transition); 
  margin-bottom: 24px;
}
.about-card:hover { transform: scale(1.01); box-shadow: var(--orange-glow); }
.about-card h2 { 
  font-family: 'Roboto', sans-serif; 
  font-weight: 700; 
  font-size: 1.4rem; 
  color: var(--accent); 
  margin-top: 0;
  margin-bottom: 16px; 
}

/* Spezifische Styles für mittlere drei Boxen */
.about-card.middle-box:hover { transform: scale(1.01); box-shadow: 0 0 20px rgba(100, 200, 255, 0.3); }
.about-card.middle-box h2 { 
  color: #64c8ff; 
  text-align: left;
  font-size: 1.5rem;
}
.about-card.middle-box { 
  text-align: left; 
}

/* Größere Überschriften für About-Cards */
.about-card h2 { 
  font-size: 1.8rem; 
}

/* Zentrierte oberste Box */
.about-card:first-child { 
  text-align: center; 
}

/* Sicherstellen dass mittlere Boxen linksbündig sind */
.about-card.middle-box { 
  text-align: left !important; 
}

/* Hero-ähnlicher Farbverlauf für About-Cards */
.gradient-about-hero {
  background: linear-gradient(90deg,
    #87ceeb 0%,
    #87ceeb 30%,
    #a3daf1 34%,
    #ffb266 44%,
    #ff8c3a 58%,
    #ff6b35 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-card p { 
  margin-bottom: 12px; 
  line-height: 1.6; 
  color: var(--text);
}
.about-card p:last-child { 
  margin-bottom: 0; 
}


.cta-card { 
  text-align: center; 
  background: linear-gradient(135deg, var(--glass) 0%, rgba(255,153,0,0.05) 100%);
}
.about-cta { 
  margin-top: 20px; 
}
.contact-panels { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items:start; }
.contact-info { display: flex; flex-direction: column; }
.contact-logo { 
  margin-top: 30px; 
  display: flex; 
  justify-content: flex-start; 
  align-items: center;
  padding: 0;
}
.contact-logo img { 
  width: 100%; 
  max-width: 200px; 
  height: auto; 
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
.contact-form form { display:grid; gap: 10px; }
.contact-form input, .contact-form textarea { width:100%; padding: 12px 14px; border-radius: 12px; border:1px solid rgba(255,153,0,0.15); background: rgba(30,30,34,0.6); color: var(--text); transition: box-shadow var(--transition); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; box-shadow: var(--orange-glow); }
.form-note { font-size: 0.9rem; color: var(--muted); }

/* Webpräsenz Page */
.webpraesenz-content { max-width: 1000px; margin: 0 auto; }

/* Content Grid für Desktop - Boxen nebeneinander */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.content-box {
  padding: 32px 28px;
}

.content-box h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--accent);
  line-height: 1.3;
}

.content-box h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.4;
}

/* Stats Section */
.stats-section { margin: 40px 0 80px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-card { text-align: center; padding: 20px 0 40px; margin-top: 0; }
.stat-number-container { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 20px; }
.stat-number { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: 4rem; color: var(--accent); line-height: 1; }
.stat-symbol { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: 4rem; color: var(--accent); line-height: 1; }
.stat-label { font-family: 'Roboto', sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--text); margin-bottom: 12px; line-height: 1.3; }
.stat-description { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }

/* Main Content Box */
.main-content-box { padding: 40px 32px; margin-bottom: 40px; margin-top: 0; }
.intro-quote { 
  font-family: 'Roboto', sans-serif; 
  font-weight: 600; 
  font-size: 1.2rem; 
  color: var(--accent); 
  font-style: italic; 
  margin-bottom: 24px; 
  line-height: 1.5;
  text-align: center;
}
.main-text { 
  font-size: 1.1rem; 
  line-height: 1.6; 
  margin-bottom: 12px; 
  color: var(--text);
}
.highlight-text { 
  font-family: 'Roboto', sans-serif; 
  font-weight: 700; 
  font-size: 1.2rem; 
  color: var(--accent); 
  text-align: center; 
  margin: 24px 0; 
  line-height: 1.5;
}
.benefits-list { 
  margin: 16px 0; 
  padding-left: 0; 
  list-style: none;
}
.benefits-list li { 
  font-size: 1rem; 
  line-height: 1.6; 
  margin-bottom: 10px; 
  color: var(--text);
  position: relative;
  padding-left: 28px;
}
.benefits-list li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  font-size: 1.4rem;
  position: absolute;
  left: 0;
  top: -2px;
}
.benefits-list li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-weight: 600;
}
.conclusion-text { 
  font-family: 'Roboto', sans-serif; 
  font-weight: 700; 
  font-size: 1.3rem; 
  color: var(--accent); 
  text-align: center; 
  margin-top: 32px; 
  line-height: 1.5;
  font-style: italic;
}

.webpraesenz-cta { margin-top: 40px; }
.cta-panel { text-align: center; padding: 32px 24px; }
.cta-panel h3 { font-family: 'Roboto', sans-serif; font-weight: 700; margin-top: 0; margin-bottom: 12px; font-size: 1.4rem; }
.cta-panel p { color: var(--muted); margin-bottom: 24px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-buttons .btn {
  font-size: 1rem;
  font-weight: 600;
}
.cta-buttons .btn.cta {
  font-size: 1rem;
  font-weight: 600;
  background: var(--glass) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-color: rgba(255,153,0,0.15) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow) !important;
}

/* Footer */
.site-footer { 
  background: var(--glass); 
  backdrop-filter: blur(8px);
  border-top: none !important;
}
.footer-inner { display:flex; align-items:center; justify-content: space-between; gap: 12px; padding: 16px 0; font-size: 0.95rem; }
.footer-link { margin-right: 12px; border: 1px solid rgba(255,153,0,0.15); padding: 6px 10px; border-radius: 8px; background: var(--glass); transition: var(--transition); }
.footer-link:hover { box-shadow: var(--orange-glow); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 800ms ease, transform 800ms ease; }
.reveal.is-visible { opacity:1; transform: none; }

/* Additional scroll animations */
.slide-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 700ms ease, transform 700ms ease; }
.slide-in-left.is-visible { opacity: 1; transform: translateX(0); }

.slide-in-right { opacity: 0; transform: translateX(30px); transition: opacity 700ms ease, transform 700ms ease; }
.slide-in-right.is-visible { opacity: 1; transform: translateX(0); }

.fade-in-scale { opacity: 0; transform: scale(0.9); transition: opacity 600ms ease, transform 600ms ease; }
.fade-in-scale.is-visible { opacity: 1; transform: scale(1); }

.bounce-in { 
  opacity: 0; 
  transform: translateY(60px); 
  transition: opacity 2500ms cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 2500ms cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}
.bounce-in.is-visible { 
  opacity: 1; 
  transform: translateY(0); 
}

/* FAQ specific - Sanfte Fade-In Animation */
.faq-item.bounce-in {
  opacity: 0;
  transform: translateY(20px); /* Leichte Bewegung von unten */
  transition: opacity 400ms ease, transform 400ms ease;
}

.faq-item.bounce-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Statische Seiten (Impressum, Datenschutz) - Inhalt sofort sichtbar */
.panel.bounce-in:not(.about-card) {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Gestaffelte Animation für FAQ-Items */
.faq-item.bounce-in:nth-child(1) { transition-delay: 0ms; }
.faq-item.bounce-in:nth-child(2) { transition-delay: 80ms; }
.faq-item.bounce-in:nth-child(3) { transition-delay: 160ms; }
.faq-item.bounce-in:nth-child(4) { transition-delay: 240ms; }
.faq-item.bounce-in:nth-child(5) { transition-delay: 320ms; }
.faq-item.bounce-in:nth-child(6) { transition-delay: 400ms; }

/* Specific animation for Warum F&K cards - slightly faster and more staggered */
.stack-cards .card.bounce-in {
  transition: opacity 2500ms cubic-bezier(0.23, 1, 0.32, 1), 
              transform 2500ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* Specific animation for About cards - Layout-Shift-frei mit Scale */
.about-card.bounce-in {
  opacity: 0 !important;
  transform: scale(0.8) !important;
  transition: opacity 2500ms cubic-bezier(0.23, 1, 0.32, 1), 
              transform 2500ms cubic-bezier(0.23, 1, 0.32, 1);
  /* Verhindere Layout-Shift: Card behält ihren Platz und ist klickbar */
  pointer-events: none !important;
}

.about-card.bounce-in.is-visible {
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
}

/* Simultaneous movement with different start times for Warum F&K cards */
.stack-cards .card:nth-child(1) { 
  transition-delay: 0ms; 
  transform: translateY(60px);
}
.stack-cards .card:nth-child(2) { 
  transition-delay: 100ms; 
  transform: translateY(60px);
}
.stack-cards .card:nth-child(3) { 
  transition-delay: 200ms; 
  transform: translateY(60px);
}

.stack-cards .card:nth-child(1).is-visible { 
  transform: translateY(0); 
}
.stack-cards .card:nth-child(2).is-visible { 
  transform: translateY(0); 
}
.stack-cards .card:nth-child(3).is-visible { 
  transform: translateY(0); 
}

/* Simultaneous movement with different start times for About cards */
.about-card.bounce-in:nth-child(1) { 
  transition-delay: 0ms; 
}
.about-card.bounce-in:nth-child(2) { 
  transition-delay: 100ms; 
}
.about-card.bounce-in:nth-child(3) { 
  transition-delay: 200ms; 
}
.about-card.bounce-in:nth-child(4) { 
  transition-delay: 300ms; 
}

/* Responsive */
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-middle-grid { grid-template-columns: repeat(2, 1fr); }
  /* Offers-Pfeile auf Tablets - komplett identisch zu Hero-Carousel-Pfeilen */
  .offers-spotlight .offers-arrow {
    background: var(--glass) !important;
    border: 1px solid rgba(255, 153, 0, 0.15) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    pointer-events: auto !important;
    font-size: 20px !important;
    color: var(--text) !important;
  }
  
  .offers-spotlight .offers-arrow.next::after {
    margin-left: -2px !important;
  }
  
  .offers-spotlight .offers-arrow:hover {
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: var(--orange-glow) !important;
  }
  
  .offers-spotlight .offers-arrow.prev { left: 8px; }
  .offers-spotlight .offers-arrow.next { right: 8px; }
  
  /* Offer Cards angepasst */
  .offer-card {
    min-width: 260px;
    max-width: 260px;
    padding: 18px 18px 80px;
  }
  
  .offer-card .btn.cta.small {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 16px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: calc(100% - 36px);
  }
  
  /* Gallery auf kleineren Tablets */
  .gslide {
    flex: 0 0 calc(80% - 10px);
    min-width: calc(80% - 10px);
    height: 350px;
  }
}
/* Smartphones - weitere Optimierungen */
@media (max-width: 720px) {
  /* Zusätzliche Sicherheit gegen horizontales Scrollen */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  /* HTML Hintergrundfarbe setzen */
  html {
    background: var(--bg);
  }
  
  /* Weichere, runderere Gradienten für Smartphones - erweitert nach unten */
  body {
    background-image: 
      /* Gradient 1: KEINE orange Farbe am oberen Rand - verschoben nach unten */
      radial-gradient(800px 900px at 95% 5%, rgba(20,20,24,1.0), rgba(20,20,24,0.6) 40%, rgba(20,20,24,0) 70%),
      /* Gradient 2: runder und weicher - erweitert nach unten */
      radial-gradient(900px 1000px at 10% 90%, rgba(255,140,58,0.11), rgba(255,140,58,0.03) 40%, rgba(255,140,58,0) 70%),
      /* Gradient 3: runder und weicher - erweitert nach unten */
      radial-gradient(1000px 1100px at 50% 40%, rgba(255,120,40,0.07), rgba(255,120,40,0.02) 40%, rgba(255,120,40,0) 70%);
    background-size: 800px 900px, 900px 1000px, 1000px 1100px;
  }
  
  .header-inner {
    padding: 10px 16px;
  }
  
  .logo {
    font-size: 0.9rem;
  }
  
  .logo img {
    width: 32px;
    height: 32px;
  }
  
  .brand {
    font-size: 0.95rem;
  }
  
  /* Menü bleibt auf voller Breite */
  
  body {
    padding-top: 60px;
  }
  
  /* Hero-Bereich */
  .hero-title {
    font-size: 3.5rem;
    align-items: flex-start;
    flex-direction: column; /* Vertikal übereinander */
    justify-content: flex-start;
    gap: 8px; /* Abstand zwischen F&K und Webdesign */
    margin-bottom: 18px;
  }
  
  .hero .tagline {
    margin-top: 14px !important;
    margin-bottom: 18px !important;
  }
  
  .hero-media {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
  }
  
  .hero-ctas {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
  }
  
  .hero-info-link {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
  }
  
  .hero-carousel {
    border-top: none !important;
    padding-top: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  
  .hero-slides {
    margin-top: 10px !important;
    border-radius: 18px;
    overflow: hidden;
  }
  
  .hero-slide img {
    border-radius: 18px;
  }
  
  .title-line {
    text-align: left;
    display: block; /* Block für vertikale Anordnung */
    white-space: nowrap; /* Verhindert Zeilenumbruch */
    max-width: 100%;
    overflow: visible;
  }
  
  /* Diese Animationen sind bereits oben definiert - Duplikat entfernt */
  
  /* Hero Container auf Mobile zu Flexbox Column */
  .hero .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
  }
  
  .hero-title {
    order: 1;
    align-self: flex-start;
    margin-left: 20px;
    padding-left: 10px;
    max-width: calc(100vw - 40px);
    overflow: visible;
  }
  
  .hero .tagline {
    order: 2;
    text-align: center;
  }
  
  .hero-media {
    order: 3;
    width: 100%;
  }
  
  .hero-ctas {
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .hero-info-link {
    order: 5;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .hero-ctas .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  .hero-slides {
    height: 250px;
  }
  
  /* Warum F&K Cards */
  .stack-cards {
    gap: 20px;
  }
  
  .card.glass {
    padding: 20px;
    min-height: auto; /* Auto-Höhe für längeren Detail-Text auf Mobile */
  }
  
  /* Auf Mobile: Original-Text ausblenden und Detail-Text standardmäßig zeigen */
  .card.glass .original-text {
    display: none !important;
  }
  
  .card.glass .detailed-text {
    position: relative !important;
    top: 0 !important;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s, visibility 0s 0.3s;
  }
  
  /* Wenn die Card sichtbar wird, Text einfliegen lassen */
  .card.glass.is-visible .detailed-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
  
  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-carousel {
    padding: 10px 5px;
  }
  
  .gslide {
    flex: 0 0 calc(90% - 10px);
    min-width: calc(90% - 10px);
    height: 250px;
  }
  
  /* Galerie-Pfeile auf Mobile ausblenden */
  .gallery-arrow {
    display: none !important;
  }
  
  /* Lightbox-Pfeile auf Mobile - wie Hero-Carousel-Pfeile */
  .lightbox-prev,
  .lightbox-next {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background: var(--glass) !important;
    border: 1px solid rgba(255,153,0,0.15) !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    box-shadow: var(--shadow) !important;
    z-index: 10001 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--text) !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
  }
  
  .lightbox-prev {
    left: 20px !important;
  }
  
  .lightbox-next {
    right: 20px !important;
  }
  
  .lightbox-prev:hover,
  .lightbox-next:hover {
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: var(--orange-glow) !important;
  }
  
  .lightbox-prev:active,
  .lightbox-next:active {
    transform: translateY(-50%) scale(0.95) !important;
    opacity: 0.9 !important;
  }
  
  /* Sicherstellen dass Lightbox über allem liegt - NUR wenn geöffnet */
  .lightbox.is-open {
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 50px 15px 30px !important;
  }
  
  .lightbox-image {
    z-index: 10000 !important;
    max-height: 78vh !important;
    width: auto !important;
    object-fit: contain !important;
  }
  
  /* Lightbox Close-Button auf Mobile - groß und gut erreichbar */
  .lightbox-close {
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    color: #333 !important;
    cursor: pointer !important;
    z-index: 10002 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    -webkit-tap-highlight-color: transparent;
  }
  
  .lightbox-close:active {
    background: rgba(255, 153, 0, 0.9) !important;
    color: white !important;
    transform: scale(0.95);
  }
  
  /* Offers */
  .offers-carousel {
    padding: 30px 10px;
  }
  
  .offer-card {
    min-width: 240px;
    max-width: 240px;
    padding: 16px 16px 75px;
  }
  
  .offer-card h3 {
    font-size: 1.2rem;
  }
  
  .offer-card p {
    font-size: 0.9rem;
  }
  
  .offer-features li {
    font-size: 0.85rem;
  }
  
  .offer-price {
    font-size: 1rem;
  }
  
  /* Offers-Pfeile auf Mobile - komplett identisch zu Hero-Carousel-Pfeilen */
  .offers-spotlight .offers-arrow {
    background: var(--glass) !important;
    border: 1px solid rgba(255, 153, 0, 0.15) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    pointer-events: auto !important;
    font-size: 20px !important;
    color: var(--text) !important;
  }
  
  .offers-spotlight .offers-arrow.next::after {
    margin-left: -2px !important;
  }
  
  .offers-spotlight .offers-arrow:active {
    transform: translateY(-50%) scale(0.95) !important;
    opacity: 0.9 !important;
  }
  
  /* Angebot anfragen Button auf Mobile - größerer Text und besser zentriert */
  .offer-card .btn.cta.small {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: calc(100% - 32px) !important;
  }
  
  .offers-spotlight .offers-arrow.prev { left: 5px; }
  .offers-spotlight .offers-arrow.next { right: 5px; }
  
  .offer-wide {
    padding: 20px 18px !important;
    text-align: center !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: calc(100% - 32px) !important;
    max-width: 92% !important;
    margin: 18px auto 0 !important;
  }
  
  .offer-wide h3 {
    font-size: 1.3rem !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  
  .offer-wide p {
    font-size: 0.95rem !important;
    text-align: center !important;
    width: 100% !important;
    margin: 2px auto 0 !important;
  }
  
  .offer-wide .btn.cta {
    align-self: center !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 10px auto 0 !important;
    width: auto !important;
    min-width: 200px !important;
    padding: 12px 18px !important;
  }
  
  /* Text innerhalb des Angebot-Buttons zentrieren */
  .offer-wide .btn.cta span,
  .offer-wide .btn.cta:before,
  .offer-wide .btn.cta:after {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  
  /* Zusätzliche Zentrierung für Button-Text */
  .offer-wide .btn.cta {
    line-height: 1.2 !important;
    vertical-align: middle !important;
  }
  
  .offer-wide .btn.cta * {
    text-align: center !important;
    vertical-align: middle !important;
  }
  
  /* FAQ - Mobile */
  .faq-grid { 
    grid-template-columns: 1fr; 
    overflow: visible !important; /* Alle FAQ-Items sichtbar machen */
  }
  
  .faq-item {
    height: auto;
    min-height: var(--faq-collapsed);
    overflow: hidden !important; /* Behalte für saubere Item-Darstellung */
  }
  
  .section.faq {
    overflow: visible !important; /* Alle FAQ-Items anzeigen */
  }
  
  .section.faq .container {
    overflow: visible !important; /* Alle FAQ-Items anzeigen */
  }
  
  .faq-item > summary {
    font-size: 1.05rem;
    padding: 22px 50px 22px 24px;
    min-height: auto;
    height: auto;
    line-height: 1.4;
  }
  
  .faq-item[open] {
    height: auto;
    min-height: var(--faq-expanded);
  }
  
  .faq-item .answer {
    padding: 0 24px 22px 24px;
    font-size: 0.9rem;
    margin-top: 8px;
    line-height: 1.6;
  }
  
  /* Contact */
  .contact-panels { grid-template-columns: 1fr; }
  
  .glass.panel {
    padding: 20px 18px;
  }
  
  .glass.panel h2 {
    font-size: 1.4rem;
  }
  
  /* Kontaktformular Labels sichtbar machen */
  .contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    margin-bottom: 8px;
  }
  
  .contact-logo {
    margin-top: 20px;
    justify-content: center;
  }
  
  .contact-logo img {
    max-width: 150px;
  }
  
  /* Stats (Webpräsenz page) */
  .stats-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 3rem; }
  .stat-symbol { font-size: 3rem; }
  .stat-card {
    padding: 15px 0 30px;
  }
  
  /* About */
  .about-middle-grid { grid-template-columns: 1fr; }
  .about-card { padding: 24px 20px; }
  .about-card h2 { font-size: 1.5rem; margin-top: 0; }
  .about-card.middle-box h2 { font-size: 1.3rem; }
  
  /* Webpräsenz page */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .content-box {
    padding: 24px 20px;
  }
  
  .main-content-box { padding: 24px 20px; }
  .intro-quote { font-size: 1.1rem; }
  .main-text { font-size: 1rem; }
  .highlight-text { font-size: 1.1rem; }
  .conclusion-text { font-size: 1.2rem; }
  .benefits-list {
    padding-left: 15px;
  }
  .benefits-list li {
    font-size: 1rem;
  }
  
  /* CTAs */
  .cta-buttons { 
    flex-direction: column; 
    align-items: center;
    gap: 10px;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .footer-inner nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .footer-link {
    margin-right: 0;
  }
  
  /* Section titles */
  .section-title {
    font-size: 2rem;
  }
  
  /* Container */
  .container {
    width: 95%;
  }
  
  /* Sections */
  .section {
    padding: 30px 0;
  }
  
  .section.hero {
    padding-top: 2vh;
  }
  
  /* Verbesserte Abstände */
  .section-title {
    margin-bottom: 28px;
  }
  
  /* Lightbox - Pfeile angepasst, Close-Button wird in größerem Breakpoint definiert */
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* Extra small devices (iPhone SE etc.) */
@media (max-width: 400px) {
  /* Sicherheit gegen horizontales Scrollen */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  /* HTML Hintergrundfarbe setzen */
  html {
    background: var(--bg);
  }
  
  /* Weichere, runderere Gradienten für sehr kleine Geräte - erweitert nach unten */
  body {
    background-image: 
      /* Gradient 1: Hintergrundfarbe statt orange - damit kein sichtbarer Rand */
      radial-gradient(700px 800px at 95% 5%, rgba(20,20,24,1.0), rgba(20,20,24,0.6) 40%, rgba(20,20,24,0) 70%),
      /* Gradient 2: runder und weicher - erweitert nach unten */
      radial-gradient(800px 900px at 10% 90%, rgba(255,140,58,0.10), rgba(255,140,58,0.03) 40%, rgba(255,140,58,0) 70%),
      /* Gradient 3: runder und weicher - erweitert nach unten */
      radial-gradient(900px 1000px at 50% 40%, rgba(255,120,40,0.07), rgba(255,120,40,0.02) 40%, rgba(255,120,40,0) 70%);
    background-size: 700px 800px, 800px 900px, 900px 1000px;
  }
  
  .header-inner {
    padding: 10px 12px;
  }
  
  /* Menü bleibt auf voller Breite auch auf sehr kleinen Screens */
  .main-nav ul {
    padding: 16px;
  }
  
  /* Hero */
  .hero-title {
    font-size: 3rem;
    margin-bottom: 16px;
  }
  
  .hero .tagline {
    font-size: 0.9rem;
    margin-top: 12px !important;
    margin-bottom: 16px !important;
  }
  
  .hero-media {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
  }
  
  .hero-ctas {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
  }
  
  .hero-info-link {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
  }
  
  /* Hero Container auf Mobile zu Flexbox Column */
  .hero .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
  }
  
  .hero-title {
    order: 1;
    align-self: flex-start;
    margin-left: 15px;
    padding-left: 8px;
    max-width: calc(100vw - 30px);
    overflow: visible;
  }
  
  .hero .tagline {
    order: 2;
    text-align: center;
  }
  
  .hero-media {
    order: 3;
  }
  
  .hero-ctas {
    order: 4;
  }
  
  .hero-info-link {
    order: 5;
  }
  
  .hero-carousel {
    border-top: none !important;
    padding-top: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  
  .hero-slides {
    height: 220px;
    margin-top: 8px !important;
    border-radius: 18px;
    overflow: hidden;
  }
  
  .hero-slide img {
    border-radius: 18px;
  }
  
  .hero-prev, .hero-next {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  /* Section titles */
  .section-title {
    font-size: 1.6rem;
  }
  
  /* Cards */
  .card.glass {
    padding: 16px;
  }
  
  .card.glass h3 {
    font-size: 1.1rem;
  }
  
  /* Gallery */
  .gslide {
    height: 220px;
  }
  
  /* Galerie-Pfeile auf Mobile ausblenden */
  .gallery-arrow {
    display: none !important;
  }
  
  /* Lightbox-Pfeile auf kleinen Mobile-Geräten - wie Hero-Carousel-Pfeile */
  .lightbox-prev,
  .lightbox-next {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    background: var(--glass) !important;
    border: 1px solid rgba(255,153,0,0.15) !important;
    border-radius: 50% !important;
    font-size: 15px !important;
    box-shadow: var(--shadow) !important;
    z-index: 10001 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--text) !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
  }
  
  .lightbox-prev {
    left: 18px !important;
  }
  
  .lightbox-next {
    right: 18px !important;
  }
  
  .lightbox-prev:hover,
  .lightbox-next:hover {
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: var(--orange-glow) !important;
  }
  
  .lightbox-prev:active,
  .lightbox-next:active {
    transform: translateY(-50%) scale(0.95) !important;
    opacity: 0.9 !important;
  }
  
  /* Sicherstellen dass Lightbox über allem liegt - NUR wenn geöffnet */
  .lightbox.is-open {
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 48px 10px 25px !important;
  }
  
  .lightbox-image {
    z-index: 10000 !important;
    max-height: 76vh !important;
    width: auto !important;
    object-fit: contain !important;
  }
  
  /* Lightbox Close-Button auf kleinen Mobile-Geräten - groß und gut erreichbar */
  .lightbox-close {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 22px !important;
    color: #333 !important;
    cursor: pointer !important;
    z-index: 10002 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    -webkit-tap-highlight-color: transparent;
  }
  
  .lightbox-close:active {
    background: rgba(255, 153, 0, 0.9) !important;
    color: white !important;
    transform: scale(0.95);
  }
  
  /* Offers */
  .offer-card {
    min-width: 220px;
    max-width: 220px;
    padding: 14px 14px 70px;
  }
  
  .offer-card h3 {
    font-size: 1.1rem;
  }
  
  .offer-card p,
  .offer-features li {
    font-size: 0.8rem;
  }
  
  .offer-card .btn.cta.small {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    padding: 11px 14px !important;
    font-size: 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: calc(100% - 28px) !important;
  }
  
  /* FAQ */
  .faq-item > summary {
    font-size: 0.95rem;
    padding: 20px 45px 20px 20px;
    line-height: 1.4;
  }
  
  .faq-item .answer {
    font-size: 0.85rem;
    padding: 0 20px 20px 20px;
    margin-top: 8px;
    line-height: 1.6;
  }
  
  /* Stats */
  .stat-number,
  .stat-symbol {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
  
  .stat-description {
    font-size: 0.85rem;
  }
  
  /* Buttons */
  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  /* Container */
  .container {
    width: 96%;
  }
  
  /* Glass panels */
  .glass.panel {
    padding: 18px 16px;
  }
  
  .glass.panel h2 {
    font-size: 1.2rem;
  }
  
  /* Header auf sehr kleinen Geräten */
  .header-inner {
    padding: 8px 0;
  }
  
  .logo {
    font-size: 0.9rem;
    gap: 8px;
  }
  
  .logo img {
    width: 32px;
    height: 32px;
  }
  
  .brand {
    font-size: 0.9rem;
  }
  
  /* Hamburger behält die Hauptgröße von 44x44px */
  
  /* Navigation positioning - entfernt, da jetzt zentriert */
  
  /* Body padding */
  body {
    padding-top: 56px;
  }
  
  /* Scroll indicator auf Mobile ausblenden */
  .scroll-indicator {
    display: none !important;
  }
  
  .scroll-arrow {
    display: none !important;
  }
}

/* Scroll Indicator auf Mobile komplett entfernen */
@media (max-width: 768px) {
  .scroll-indicator {
    display: none !important;
  }
  
  .scroll-arrow {
    display: none !important;
  }
}

/* Touch-optimierungen für alle mobilen Geräte */
@media (hover: none) and (pointer: coarse) {
  /* Klick-Funktionalität nur für größere Touch-Geräte (> 768px wie Tablets) */
  @media (min-width: 769px) {
    .card.glass.clicked .original-text {
      transform: translateY(100%);
      opacity: 0;
    }
    
    .card.glass.clicked .detailed-text {
      opacity: 1;
      transform: translateX(0) translateY(0);
      visibility: visible;
    }
    
    .card.glass.clicked {
      transform: scale(1.02);
      box-shadow: var(--shadow), inset 0 0 60px rgba(100, 200, 255, 0.5);
      border-color: rgba(100, 200, 255, 0.6);
      z-index: 5;
    }
    
  }
  
  /* Größere Touch-Ziele für bessere Bedienbarkeit */
  .btn,
  .btn-nav,
  .hamburger,
  .hero-prev,
  .hero-next,
  .gallery-arrow,
  .offers-arrow,
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    min-width: 44px;
    min-height: 44px;
  }
  
  /* FAQ: Summary als besseres Touch-Ziel */
  .faq-item > summary {
    min-height: 60px;
    cursor: pointer;
  }
  
  /* Verbesserte Tap-Feedback durch leichte Anpassung */
  .btn:active,
  .btn-nav:active,
  .hero-prev:active,
  .hero-next:active,
  .gallery-arrow:active,
  .offers-arrow:active {
    transform: scale(0.95);
    opacity: 0.9;
  }
}

/* ========================================
   DESKTOP - FAQ Container stabilisieren
   ======================================== */
@media (min-width: 769px) {
  /* FAQ Section Container für Desktop - sichtbar machen für alle 6 Items */
  .section.faq {
    overflow: visible !important; /* Alle FAQ-Items anzeigen */
  }
  
  .section.faq .container {
    overflow: visible !important; /* Alle FAQ-Items anzeigen */
  }
  
  .faq-grid {
    overflow: visible !important; /* Alle FAQ-Items anzeigen */
  }
  
  .faq-item {
    overflow: hidden !important; /* Behalte für saubere Item-Darstellung */
  }
}

/* ========================================
   DESKTOP - Hamburger ausblenden
   ======================================== */
@media (min-width: 1025px) {
  .hamburger {
    display: none !important;
  }
  
  .main-nav ul {
    display: flex !important;
    position: static;
    width: auto;
    height: auto;
    background: none;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    gap: 10px;
    transform: none;
    top: auto;
    left: auto;
    max-width: none;
    pointer-events: auto !important;
    z-index: 100 !important;
  }
  
  .main-nav ul li {
    pointer-events: auto !important;
    z-index: 100 !important;
  }
  
  .btn-nav {
    width: auto;
    padding: 10px 14px;
    font-size: inherit;
    font-weight: inherit;
    background: transparent;
    text-align: left;
    margin-bottom: 0;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 100 !important;
    position: relative;
  }
  
  /* Desktop Header Layout */
  .header-inner {
    justify-content: space-between;
  }
  
  .logo {
    order: 0;
  }
  
  .main-nav {
    order: 1;
  }
}
