/**
 * M&M Autoreparatur - Custom CSS für Contao
 * Theme: LASR
 * Farben: Gelb #FFC600 | Blau #013969
 * 
 * Hauptfunktionen:
 * - Gelber Rand am oberen Seitenrand
 * - Blauer Navigationsbereich
 * - Hero-Bild Styling
 * - Responsive Design
 */

/* ============================================
   FARBVARIABLEN
   ============================================ */
:root {
  --mm-blau: #013969;
  --mm-gelb: #FFC600;
  --mm-blau-dunkel: #012547;
  --mm-gelb-dunkel: #E6B000;
  --mm-weiss: #FFFFFF;
  --mm-grau: #F5F5F5;
}


/* ============================================
   GELBER RAND OBEN (DOPPELTE HÖHE)
   ============================================ */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 16px; /* Verdoppelt von 8px auf 16px */
  background-color: var(--mm-gelb);
  z-index: 9999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Alternativer gelber Rand als oberer Container */
.yellow-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 16px; /* Verdoppelt von 8px auf 16px */
  background: linear-gradient(to right, var(--mm-gelb) 0%, var(--mm-gelb-dunkel) 100%);
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


/* ============================================
   BLAUER NAVIGATIONSBEREICH
   ============================================ */

/* Hauptnavigation Container */
header,
.header,
.site-header,
#header {
  position: fixed;
  top: 16px; /* Unterhalb des gelben Rands (verdoppelt) */
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--mm-blau); /* BLAU wie vorher */
  z-index: 9998;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border-top: none !important; /* Kein Border oben */
  outline: none !important;
  box-shadow: none 0 4px 12px rgba(0, 0, 0, 0.15) !important; /* Nur unten Schatten */
}

/* Navigation bei Scroll - Sticky Verhalten */
header.scrolled,
.header.scrolled {
  top: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  border-top: none !important;
}

/* Navigationsleiste Innenbereich */
.navbar,
.navigation,
.main-navigation {
  background-color: var(--mm-blau); /* BLAU */
  padding: 15px 0;
  border-bottom: none !important; /* KEIN Strich unter gesamter Navigation */
  border-top: none !important; /* Kein blauer Strich oben */
  outline: none !important;
}

/* Entferne alle möglichen Border/Outlines oben */
header::before,
.header::before,
.navbar::before,
.navigation::before,
.main-navigation::before {
  display: none !important;
  content: none !important;
  border: none !important;
}

/* Logo Container */
.logo-container,
.site-logo,
.navbar-brand {
  padding: 10px 20px;
}

.logo-container img,
.site-logo img {
  max-height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-container img:hover,
.site-logo img:hover {
  transform: scale(1.05);
}

/* Navigation Links - WEISS wie vorher */
nav a,
.nav-link,
.menu-item a,
.navigation a {
  color: var(--mm-weiss) !important; /* WEISS wie vorher */
  font-weight: 500;
  font-size: 16px;
  padding: 12px 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

/* Navigation Links - Gelber Unterstrich NUR für aktive Seite */
nav a::after,
.nav-link::after,
.menu-item a::after {
  content: '';
  position: absolute;
  bottom: -15px; /* Strich UNTER dem Link */
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--mm-gelb);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* Gelber Unterstrich NUR für aktive Seite */
nav a.active::after,
nav a.trail::after,
nav a[aria-current="page"]::after,
.nav-link.active::after,
.nav-link.current::after,
.menu-item.active > a::after,
.menu-item.trail > a::after,
.current-menu-item > a::after,
li.active > a::after,
li.trail > a::after {
  transform: scaleX(1) !important;
}

/* Hover-Effekt: Nur Farbwechsel, KEIN Unterstrich */
nav a:hover,
.nav-link:hover,
.menu-item a:hover {
  color: var(--mm-gelb) !important;
  background-color: rgba(255, 198, 0, 0.1);
}

/* Aktiver Menüpunkt - NUR gelber Text, KEIN Unterstrich */
nav a.active,
.nav-link.active,
.menu-item.active > a,
.current-menu-item > a,
li.active strong,
li.active > strong {
  color: var(--mm-gelb) !important;
  font-weight: 600;
}


/* ============================================
   HERO-BEREICH / SLIDER
   ============================================ */

/* Hero Section - Abstand für gelben Rand (16px) + Navigation (ca. 82px) */
.hero-section,
.slider-section,
.main-slider,
#hero,
.hero {
  margin-top: 98px; /* 16px gelber Rand + ca. 82px Navigation */
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

/* Hero Container */
.hero-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Hero Hintergrundbild */
.hero-background,
.hero-image,
.slider-item {
  position: relative;
  width: 100%;
  height: 600px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Dunkles Overlay über Hero-Bild */
.hero-background::before,
.hero-image::before,
.slider-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(1, 57, 105, 0.3) 0%,
    rgba(1, 57, 105, 0.6) 50%,
    rgba(1, 57, 105, 0.8) 100%
  );
  z-index: 1;
}

/* Hero Content über dem Overlay */
.hero-content,
.slider-content {
  position: relative;
  z-index: 2;
  color: var(--mm-weiss);
  padding: 80px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Überschrift */
.hero-content h1,
.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--mm-weiss);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  line-height: 1.2;
}

/* Hero Subtext */
.hero-content h2,
.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--mm-gelb);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--mm-weiss);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Hero Buttons */
.hero-button,
.btn-hero {
  display: inline-block;
  padding: 15px 40px;
  margin: 10px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.hero-button.primary,
.btn-hero.primary {
  background-color: var(--mm-gelb);
  color: var(--mm-blau);
  border-color: var(--mm-gelb);
}

.hero-button.primary:hover {
  background-color: var(--mm-gelb-dunkel);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 198, 0, 0.4);
}

.hero-button.secondary,
.btn-hero.secondary {
  background-color: transparent;
  color: var(--mm-weiss);
  border-color: var(--mm-weiss);
}

.hero-button.secondary:hover {
  background-color: var(--mm-weiss);
  color: var(--mm-blau);
}


/* ============================================
   MOBILE NAVIGATION
   ============================================ */

/* Hamburger Menu Button */
.mobile-menu-toggle,
.navbar-toggler,
.hamburger {
  display: none;
  background-color: transparent;
  border: 2px solid var(--mm-gelb); /* GELB wie vorher */
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span,
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--mm-gelb); /* GELB wie vorher */
  margin: 5px 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: rgba(255, 198, 0, 0.1);
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-content h1,
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-content h2,
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  nav a,
  .nav-link {
    padding: 10px 15px;
    font-size: 15px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Gelber Rand auch auf Mobile verdoppelt */
  body::before,
  .yellow-top-bar {
    height: 10px; /* Verdoppelt von 5px auf 10px */
  }
  
  /* Header anpassen */
  header,
  .header {
    top: 10px; /* Unter dem gelben Rand */
  }
  
  /* Mobile Menu Button anzeigen */
  .mobile-menu-toggle,
  .navbar-toggler {
    display: block;
  }
  
  /* Navigation verstecken, bis Menu geöffnet */
  nav,
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--mm-blau); /* BLAU wie vorher */
    flex-direction: column;
    padding: 20px 0;
  }
  
  nav.active,
  .main-navigation.active {
    display: flex;
  }
  
  nav a,
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 198, 0, 0.2); /* Gelber Trenner wie vorher */
  }
  
  /* Hero anpassen */
  .hero-section,
  .slider-section {
    margin-top: 75px; /* 10px Rand + ca. 65px Navigation */
  }
  
  .hero-background,
  .hero-image {
    height: 450px;
  }
  
  .hero-content {
    padding: 40px 20px;
  }
  
  .hero-content h1,
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-content h2,
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-button,
  .btn-hero {
    padding: 12px 30px;
    font-size: 16px;
    display: block;
    margin: 10px auto;
    max-width: 280px;
  }
}

/* Kleine Mobile Geräte */
@media (max-width: 480px) {
  .hero-content h1,
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-content h2,
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-background,
  .hero-image {
    height: 350px;
  }
  
  .logo-container img,
  .site-logo img {
    max-height: 45px;
  }
}


/* ============================================
   CLOCK/UHR WIDGET ENTFERNEN
   ============================================ */

/* Verstecke alle Clock/Uhr Elemente */
.clock,
.Clock,
#clock,
#Clock,
[class*="clock"],
[class*="Clock"],
[id*="clock"],
[id*="Clock"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Verstecke spezifische Uhr-Widgets */
.widget-clock,
.time-widget,
.digital-clock,
.clock-widget {
  display: none !important;
}


/* ============================================
   ZUSÄTZLICHE UTILITY CLASSES
   ============================================ */

/* Blauer Hintergrund */
.bg-blue {
  background-color: var(--mm-blau) !important;
}

/* Gelber Hintergrund */
.bg-yellow {
  background-color: var(--mm-gelb) !important;
}

/* Gelber Text */
.text-yellow {
  color: var(--mm-gelb) !important;
}

/* Blauer Text */
.text-blue {
  color: var(--mm-blau) !important;
}

/* Gelber Border */
.border-yellow {
  border-color: var(--mm-gelb) !important;
}

/* Blauer Border */
.border-blue {
  border-color: var(--mm-blau) !important;
}


/* ============================================
   CONTAO LASR THEME SPEZIFISCHE ANPASSUNGEN
   ============================================ */

/* LASR Theme Header Override - BLAU */
.lasr-header,
.mod_navigation {
  background-color: var(--mm-blau) !important; /* BLAU */
  border-bottom: none !important; /* KEIN Strich unter gesamter Navigation */
  border-top: none !important; /* Kein Border oben */
}

/* LASR Navigation Links - WEISS wie vorher */
.lasr-header a,
.mod_navigation a {
  color: var(--mm-weiss) !important; /* WEISS wie vorher */
}

.lasr-header a:hover,
.mod_navigation a:hover {
  color: var(--mm-gelb) !important;
}

/* LASR Slider/Hero - Angepasster Abstand */
.ce_sliderStart,
.slider-wrapper {
  margin-top: 98px; /* 16px Rand + ca. 82px Navigation */
}

/* LASR Content Elemente */
.ce_text,
.ce_image,
.mod_article {
  position: relative;
  z-index: 1;
}

/* LASR Content Elemente - Yellow background with pattern overlay */
main,
.main,
#main,
body > .inside {
  background-color: #FFC600;
  position: relative;
}

/* Overlay with 80% opacity over yellow background */
main::before,
.main::before,
#main::before,
body > .inside::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../00-img-fav-logo-heros-overlay-zerti/bg-overlay.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

/* Ensure content stays above overlay */
main > *,
.main > *,
#main > *,
body > .inside > * {
  position: relative;
  z-index: 1;
}

/* Overlay NUR auf Content-Bereichen NACH dem Hero */
.mod_article:not(.article--hero) {
  position: relative;
  z-index: 1;
}

.mod_article:not(.article--hero)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/files/03_logo-hero______thk/bg-overlay.png');
  background-repeat: repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

/* Explizit KEIN Overlay auf Hero-Elementen */
.article--hero::before,
.ce_hero::before,
#hero::before,
.hero::before,
.hero-section::before {
  display: none !important;
  background-image: none !important;
}


/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  body::before,
  .yellow-top-bar,
  header,
  .header,
  nav,
  .navigation {
    display: none;
  }
  
  .hero-section,
  .slider-section {
    margin-top: 0;
  }
}


/* ============================================
   NAVIGATION BORDER FIX - ALLE BORDER-TOP ENTFERNEN
   ============================================ */
header,
.header,
.site-header,
#header,
.navbar,
.navigation,
.main-navigation,
nav,
.lasr-header,
.mod_navigation,
header *,
.header *,
nav * {
  border-top: 0 !important;
  border-top-width: 0 !important;
  border-top-style: none !important;
  border-top-color: transparent !important;
}


/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus States für Tastatur-Navigation */
a:focus,
button:focus,
.nav-link:focus {
  outline: 3px solid var(--mm-gelb);
  outline-offset: 2px;
}

/* Skip to Content Link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background-color: var(--mm-gelb);
  color: var(--mm-blau);
  padding: 10px 20px;
  z-index: 10000;
  font-weight: 600;
}

.skip-to-content:focus {
  top: 10px;
}


/* ============================================
   ELEMENT-BLUE / ELEMENT-BLAU
   ============================================ */

/* Blaues Element mit vertikalem Verlauf (oben #013969) */
.element-blue,
.element-blau {
  /* Fallback Vollfarbe */
  background-color: #013969;
  /* Verlauf von oben nach unten */
  background-image: linear-gradient(
    to bottom,
    #013969 0%,
    var(--mm-blau, #013969) 60%,
    var(--mm-blau-dunkel, #012547) 100%
  );
}

/* ============================================
   CARD ANPASSUNGEN
   ============================================ */

/* Links in Cards zentrieren */
.card__link { /* Container */
  text-align: center !important;
}

.card__link > a { /* Anchor */
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/* Fallback für alte Card-Strukturen */
.card a,
.ce_text a,
.card .more,
.card-link {
  text-align: center;
  display: block;
}


/* ============================================
   LOGO GRÖßENANPASSUNG
   ============================================ */

/* Logo-Größe steuern */
.logo img {
  width: 400px !important;  /* ÄNDERN SIE DIESEN WERT FÜR DIE BREITE */
  height: auto !important;  /* Höhe automatisch proportional */
  max-width: 100% !important;
}

/* Alternative: Feste Höhe setzen (auskommentiert) */
/* 
.logo img {
  width: auto !important;
  height: 60px !important;
}
*/

/* Logo Responsive für Tablets */
@media (max-width: 1024px) {
  .logo img {
    width: 180px !important;
  }
}

/* Logo Responsive für Mobile */
@media (max-width: 768px) {
  .logo img {
    width: 150px !important;
  }
}

@media (max-width: 480px) {
  .logo img {
    width: 120px !important;
  }
}

.mini-hero {
    background-color: #f4f4f4; /* Oder deine Farbe */
    padding: 40px;
    border-radius: 5px;
    height: 100%; /* Damit es so hoch ist wie das Bild links */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Text vertikal mittig */
}

/* ============================================
   BILDUNTERSCHRIFTEN GELB (SICHTBAR)
   ============================================ */
.content-gallery figcaption {
  color: #FFC600 !important;
}

/* ============================================
   BUTTON GELB MIT BLAUER SCHRIFT
   ============================================ */
.content-hyperlink a,
.btn--primary a,
.btn a {
  background-color: #FFC600 !important;
  color: #013969 !important; /* Dunkelblaue Schrift */
  border-color: #FFC600 !important;
  font-weight: 700 !important; /* Fett */
}

/* Hover-Effekt */
.content-hyperlink a:hover,
.btn--primary a:hover,
.btn a:hover {
  background-color: #E6B000 !important; /* Dunkler Gelb */
  color: #013969 !important;
  border-color: #E6B000 !important;
}
