/* Global Site Styles (Mobile First Base) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html {
    overflow-x: hidden;
    width: 100%;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    flex: 1;
}

/* Global Header */
/* Header Base */
.site-header {
    background: var(--color-header-bg);
    /* Blau Gradient */
    padding: 0.8rem 0;
    /* Etwas kompakter */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #ff9f1c;
    /* Fallback */
    position: relative;
}

/* Animated Shine Gradient */
.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 5px;
    background: linear-gradient(45deg, #ffed4a, #ff9f1c, #ff5e00, #ff9f1c);
    background-size: 200% auto;
    animation: shine 3s linear infinite;
    z-index: 1001;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo - Responsive Fix */
.logo {
    color: #ffffff;
    font-weight: 800;
    font-size: clamp(1rem, 3.5vw, 1.5rem);
    /* WICHTIG: Kein Overflow */
    text-decoration: none;
    font-family: var(--font-primary, sans-serif);
    /* FIXED: Headline Font */
    text-transform: uppercase;
    line-height: 1.2;
    max-width: 70%;
    /* Platz für Navi lassen */
}

/* Navigation Container */
.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 700;
    /* FIXED: Bold */
    font-family: var(--font-primary, sans-serif);
    /* FIXED: Headline Font */
    text-transform: uppercase;
    /* FIXED: Uppercase */
    letter-spacing: 0.5px;
    transition: color 0.2s;
    white-space: nowrap;
    position: relative;
    font-size: 1rem;
}

.nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Dropdown Logic */
.has-dropdown {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    /* Zentriert unter Link */
    background: #fff;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1100;
}

.has-dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    font-family: var(--font-secondary, sans-serif);
    /* Standard Font for submenu is usually fine, but bold options below */
}

.dropdown-link:hover {
    background: #f1f5f9;
    color: var(--color-primary);
}

/* Right Group: Kontakt + Mini Links */
.nav-group-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Rechtsbündig */
    gap: 0.3rem;
    margin-left: 1rem;
}

.nav-button {
    background: #ffffff;
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.95rem;
    transition: transform 0.2s;
    font-family: var(--font-primary, sans-serif);
    /* Match Nav */
    text-transform: uppercase;
}

.nav-button:hover {
    transform: translateY(-2px);
}

.legal-mini-links {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.legal-mini-links a {
    color: inherit;
    text-decoration: none;
}

.legal-mini-links a:hover {
    text-decoration: underline;
    color: #fff;
}

/* Mobile Menu */
.nav-toggle,
.nav-icon {
    display: none;
}

@media (max-width: 950px) {

    /* Früherer Breakpoint für sicherheit */
    .header-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .logo {
        max-width: 80%;
    }

    .nav-icon {
        display: block;
        cursor: pointer;
    }

    .nav-icon span {
        display: block;
        width: 28px;
        height: 3px;
        background: #fff;
        margin: 6px 0;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-header-bg);
        /* Nutzt Header Farbe */
        flex-direction: column;
        align-items: flex-start;
        /* Links bündig mobil */
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-toggle:checked~.main-nav {
        transform: translateY(0);
    }

    /* Mobile Dropdown */
    .has-dropdown,
    .nav-group-right {
        width: 100%;
        align-items: flex-start;
        margin: 0;
    }

    .submenu {
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 1rem;
        min-width: unset;
    }

    .dropdown-link {
        color: rgba(255, 255, 255, 0.8);
        padding: 0.5rem 0;
    }

    .dropdown-link:hover {
        background: transparent;
        color: #fff;
    }

    .legal-mini-links {
        margin-top: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Global Footer */
.site-footer {
    background: var(--color-footer-bg);
    color: #cbd5e1;
    padding: 4rem 0 0 0;
    position: relative;
    border-top: 3px solid #ff9f1c;
}

.site-footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -5px;
    height: 5px;
    background: linear-gradient(45deg, #ffed4a, #ff9f1c, #ff5e00, #ff9f1c);
    background-size: 200% auto;
    animation: shine 3s linear infinite;
    z-index: 1001;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-logo {
    color: #fff;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: #fff;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}
/* Global Header Widget */
/* HEADER VARIABLES */
.site-header {
  --header-height: 90px; /* Etwas höher für bessere Optik */
  --header-bg: #810F15; /* Friedrich Red */
  --text-color: #ffffff;
  --dropdown-bg: #0F172A; /* Dark Dropdown */
  
  background: var(--header-bg);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 9999; /* Maximaler Z-Index */
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  font-family: 'Manrope', sans-serif;
  color: var(--text-color);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
  max-width: 1400px; /* Breiterer Container */
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  z-index: 1002;
}

.brand-logo {
  height: 64px; /* Größer */
  width: auto;
  object-fit: contain;
}

/* NAVIGATION (Desktop Default) */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Links Level 1 */
.nav-link {
  color: #ffffff !important; /* Force White */
  text-decoration: none;
  font-weight: 800; /* Extra Bold */
  text-transform: uppercase;
  font-size: 1.05rem; /* Größer */
  padding: 10px 14px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
  opacity: 1;
}

.home-icon {
  font-size: 1.5rem;
}

/* Trennstrich (Pipe) */
.nav-link:not(.home-icon):not(.btn-header-cta)::before {
  content: '|';
  color: rgba(255,255,255,0.3);
  margin-right: 14px;
  font-weight: 300;
  display: inline-block;
}
.home-icon + .nav-link::before { display: block; } /* Pipe nach Home */

/* DROPDOWN LOGIC (Desktop Hover) */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%; /* Full Height für Hover Area */
}

/* Submenu Styles - BULLETPROOF */
.submenu {
  position: absolute;
  top: 100%; /* Unter Header */
  left: 0;
  background-color: #0F172A !important; /* Force Dark Blue Background */
  min-width: 240px;
  padding: 12px 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  border-top: 3px solid #FFD700; /* Gold Border Oben als Akzent */
  
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  
  flex-direction: column;
  display: flex;
  z-index: 10000;
}

.has-dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 12px 24px;
  color: #CBD5E1 !important; /* Hellgrau Text */
  text-decoration: none;
  font-size: 0.95rem; /* Größer */
  font-weight: 700;
  transition: all 0.15s ease;
  text-transform: uppercase;
  background-color: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-link:hover {
  background-color: rgba(255,255,255,0.1) !important;
  color: #ffffff !important; /* Weiß bei Hover */
  padding-left: 28px; /* Slide Effect */
}

.dropdown-link:last-child { border-bottom: none; }

/* CTA Button */
.btn-header-cta {
  background: rgba(255,255,255,0.15);
  color: #fff !important;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.4);
  margin-left: 24px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-header-cta:hover {
  background: #fff;
  color: #810F15 !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* MOBILE NAV TOGGLE */
.nav-toggle { display: none; }
.nav-icon { display: none; }

/* ============================================
   MOBILE STYLES (< 1100px)
   ============================================ */
@media (max-width: 1100px) {
  
  .header-inner {
    position: relative; /* Wichtig für absolute Positionierung des Icons */
  }

  .nav-icon {
    display: block !important; /* Kein Flex mehr, reiner Block */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 20000;
    
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
  }
  
  /* Die 3 Striche - HART POSITIONIERT */
  .nav-icon span {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Horizontal zentriert */
    
    height: 3px; 
    width: 28px; /* Breite erzwingen */
    background-color: #ffffff !important;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: 0.3s;
  }

  /* Position der 3 Striche */
  .nav-icon span:nth-child(1) { top: 14px; }
  .nav-icon span:nth-child(2) { top: 22px; }
  .nav-icon span:nth-child(3) { top: 30px; }

  /* Animation beim Klick (X) */
  .nav-toggle:checked ~ .nav-icon span:nth-child(1) { 
    top: 22px; 
    transform: translateX(-50%) rotate(45deg); 
  }
  .nav-toggle:checked ~ .nav-icon span:nth-child(2) { 
    opacity: 0; 
  }
  .nav-toggle:checked ~ .nav-icon span:nth-child(3) { 
    top: 22px; 
    transform: translateX(-50%) rotate(-45deg); 
  }



  .main-nav {
    position: fixed;
    top: 90px; /* unter header */
    left: 0; right: 0; bottom: 0;
    width: 100%;
    background: #0F172A; /* Dark BG Mobile */
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }

  .nav-toggle:checked ~ .main-nav {
    transform: translateX(0);
  }

  .nav-link, .nav-item {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: block;
    color: #fff !important;
  }
  
  .nav-link::before { display: none !important; }

  .submenu {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    box-shadow: none;
    background: #1E293B !important; /* Lighter Dark Blue for Contrast */
    min-width: 100%;
    padding: 0;
    border-top: none;
    margin-bottom: 1px;
  }
  
  .dropdown-link {
    font-size: 1rem;
    padding-left: 40px;
    color: rgba(255,255,255,0.8) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .btn-header-cta {
    margin: 30px 24px;
    width: auto;
    display: table;
    text-align: center;
    background: #810F15;
    border-color: #810F15;
  }
}
/* Global Footer Widget */
/* FOOTER STYLES */
.site-footer {
  --color-footer-bg: #0F172A; /* Deep Carbon */
  --color-footer-text: #CBD5E1; /* Light Gray */
  --font-primary: 'Manrope', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  font-family: var(--font-secondary);
  position: relative;
  margin-top: auto;
  padding-top: 0;
}

.footer-top-border {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #810F15 0%, #F59E0B 50%, #810F15 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile First */
  gap: 40px;
  padding: 30px 24px;
}

/* TABLET & DESKTOP */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* Spalten sollen volle Breite nutzen */
.footer-col {
  width: 100%;
}

.footer-col h3, .footer-col h4 {
  font-family: var(--font-primary);
  color: #fff;
  margin: 0 0 24px 0;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.footer-title {
  font-weight: 800;
  margin-bottom: 8px !important;
  font-size: 1.5rem !important;
}

.footer-slogan {
  font-style: italic;
  opacity: 0.7;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.footer-address {
  font-style: normal;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 12px;
}

.footer-list a {
  color: var(--color-footer-text);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-list a:hover {
  color: #fff;
  transform: translateX(4px);
  text-decoration: underline;
  text-decoration-color: #810F15;
}

.footer-copyright {
  border-top: none;
  padding: 12px 16px;
  font-size: 0.85rem;
  background: #810F15; /* Dunkles Rot */
  color: #ffffff;      /* Weißer Text */
  text-align: center;
  font-weight: 600;
}

.footer-copyright p {
  margin: 0;
  opacity: 1;
}

.powered-by {
  margin-top: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.powered-by a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

.powered-by a:hover {
  border-bottom-style: solid;
  opacity: 1;
}