﻿/* Allgemeine Stile */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* Header */
#header {
    background: #fff;
    color: #555;
    padding: 0.5vw 0vw 2.3vw 16.5vw; /*oben, rechts, unten, links*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Helvetica, Arial, sans-serif;
    position: fixed;
    z-index: 1002;
    top: 0vw;
    left: 0vw;
    right: 0vw;
}

@media (min-width: 601px) {
    #header {
        transform-origin: center;
        transform: scaleX(0);
        opacity: 0;
        transition: transform 0.9s cubic-bezier(0.25, 0.8, 0.3, 1),
                    opacity 0.6s ease-out;
    }

    #header.header-visible {
        transform: scaleX(1);
        opacity: 1;
    }
}



#header .logo {
    display: flex;
    align-items: center;
    gap: 0vw;
}

#header .logo h1 {
    margin: 0;
    font-size: 1.5em;
    line-height: 2.3; /* Reduziert den Zeilenabstand */
}

.logo-img {
    width: 7vw;
    height: auto;
}

#header nav {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 5.5vw; /* Zusätzlicher Abstand vom Logo */
}

#header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2vw;
}

.subtext {
    font-size: clamp(10px, 0.9vw, 15px);
    color: #de800e; /* Dezente Farbe */
    margin-top: -0.15vw; /* Abstand nach oben reduzieren */
    line-height: 0.5vw; /* Reduziert den Zeilenabstand */
    font-weight: normal; /* Normalgewicht für den Text */
    font-family: Helvetica, Arial, sans-serif; /* Gleiche Schriftart wie der Header */
    font-style: italic; /* 🔸 macht den Text kursiv */
    margin-right: 0.5vw;
}

.header-button {
    text-decoration: none; 
    color: #fff; 
    background: #777;
    padding: 0.5vw 0.8vw;
    border-radius: 0.5em;
    font-size: 0.9em;
    transition: background 0.3s ease;
    display: inline-block;
    position: absolute;
       transition: background 0.3s ease, transform 0.2s ease; /* transform hinzugefügt */
    right: 16vw;
    border: none;
    cursor: pointer;
    font: inherit;
}

.header-button:hover {
    background: #999;
    transform: scale(1.05); 
}

.header-button:active {
    transform: scale(0.95);
}

main {
    padding: 0vw;
}

section {
    margin-bottom: 2.5vw;
}

section h2 {
    color: #0078d7;
}

.logo-link {
  display: flex;               /* wie vorher */
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: inherit;

  background: none;            /* Button-Defaults entfernen */
  border: none;
  padding: 0;
  margin: 0;

  cursor: pointer;
  font: inherit;               /* verhindert, dass Buttons Text kleiner machen */
}

.logo-link img {
  display: block;              /* verhindert seltsame Shrinks */
}


.logo-link .subtext {
  font-style: italic;
}


/*///////////////////////////////////////////////////////////////////////////////////////////////////////////  Hero Section */
/* Hero Section */
#hero-section {
    margin-top: 9.3vw;
    position: relative;
    text-align: center;
    width: 100%;
    margin-left: calc(-50vw + 50%);
}

.hero-container {
    position: relative;
    width: 100.4%;
    height: 37vw;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0vw;
    left: 0vw;
    right: 0vw;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

/* nur das erste Bild anpassen */
.hero-slide:first-child .hero-image {
  object-position: center 30%; /* x = Mitte, y = 30% nach unten verschoben */
}

/* Hero Text Container */
.hero-text-container {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    background-color: #555;
    color: white;
    padding: 1.5vw;
    border-radius: 0.5em;
    max-width: 35vw;
    padding-top: 0.5vw;
    padding-bottom: 2vw;
    z-index: 1;
    opacity: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Mehr erfahren Button */
.more-info-btn {
    position: relative;
    bottom: -1vw; /* Abstand vom unteren Rand */
    left: 0vw; /* Abstand vom linken Rand */
    padding: 0.7vw 0.6vw; /* Innenabstand für den Button */
    background-color: #ff8800; /* Orange Hintergrund */
    color: white; /* Weiße Schrift */
    border: none; /* Entfernt den Rahmen */
    border-radius: 0.5em; /* Abgerundete Ecken */
    font-size: 0.8vw; /* Schriftgröße */
    cursor: pointer; /* Zeigt einen Zeiger, wenn man mit der Maus darüber fährt */
    transition: background-color 0.3s ease; /* Sanfter Übergang beim Hover */
    z-index: 2; /* Damit der Button über dem Text liegt */
     text-decoration: none;
      /* WICHTIG: Beide Transitions eintragen */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.more-info-btn:hover {
    background-color: #af6005; /* Dunkleres Orange bei Hover */
    transform: scale(1.05); /* Button wird 5% größer */
}

.hero-pneumatik .more-info-btn {
    margin-top: -5.5vw; /* Reduziert zusätzlichen oberen Abstand */
}

.more-info-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 .15em .35em rgba(0,0,0,.2);
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////////////// Steuerstriche (Buttons) */
/* Steuerbuttons im Textcontainer */
.hero-controls {
    position: absolute;
    bottom: 1em;              /* vorher 10 → jetzt relativ zur Schriftgröße */
    left: 50%;                /* Zentriert */
    transform: translateX(-50%);
    display: flex;
    gap: 1em;                 /* Abstand zwischen Buttons, vorher 1x */
    z-index: 2;
}

.control-button {
    width: 2.3vw;          /* breiter */
    height: 0.25em;        /* dünner */
    background-color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0.2em;  /* optional: leichte Rundung, wirkt moderner */
}

.control-button:hover {
    background-color: #ff8800;
}

.control-button.active {
    background-color: #ff8800;
}


/*/////////////////////////////////////////////////////////////////////////////////////////////////////////// Bilder Pfeile */

.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2vw;       /* Größe der Pfeile */
  color: #555;          /* graue Farbe */
  background: none;     /* kein Hintergrund */
  border: none;
  cursor: pointer;
  z-index: 5;
  padding: 0;           /* kein zusätzlicher Abstand */
}

.hero-prev {
  left: 1vw;   /* Abstand vom linken Rand */
}

.hero-next {
  right: 1vw;  /* Abstand vom rechten Rand */
}

/* Hover-Farbe orange */
.hero-prev:hover,
.hero-next:hover {
  color: #ff8800;
 transform: translateY(-50%) scale(1.1); /* leicht größer */

}

.hero-prev:active,
.hero-next:active {
  transform: translateY(-50%) scale(0.9); /* kleiner beim Klick */
}

/* ///////////////////////////////////////////////////////////////////////////////////////////////////////////Text Styles */
.hero-text-container h3 {
    margin-top: 0.3em;
    margin-bottom: 0.5em;
    white-space: pre-line;
    font-size: clamp(1.2em, 1.7vw, 1.8em); /* min, dynamisch, max */

}

.hero-text-container p {
    margin: 0;
    font-size: 1em;            /* vorher  */
    line-height: 1.6;
    white-space: pre-line;
}

.hero-button {
    display: inline-block;
    margin-top: 1em;           /* vorher 1rm */
    padding: 0.5em 1em;        /* vorher 0.5em 1re */
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    border: 0.15em solid #fff; /* vorher 
    border-radius: 0.3em;      /* vorher */
    font-size: 1em;            /* vorher 1rm */
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-button:hover {
    background-color: #666;
    transform: scale(1.05);
}

  
  /*////////////////////////////////////////////////////////////////////////////////////////////////////////// Über uns Section */
/* --- ABOUT SECTION --- */
#about-section {
  background-color: #f9f9f9;
  padding: 2vw 10vw;
  color: #333;
  line-height: 1.6;
  text-align: center; /* Alles zentrieren */
}

#about-section h3 {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
}

.orange-text {
  color: #555;
  display: block;
  margin-bottom: -1.5vw; /* 🔸 mehr Abstand nach unten */
}

.subtitle {
  color: #555;
  display: block;
  font-size: 0.9em;
}

/* === Fenster für den Transform-Slider (kein Scrollbar) === */
.about-slider {
  position: relative;
  overflow-x: hidden;   /* statt scroll */
  overflow-y: hidden;
  width: 100%;
  margin: 2em 0 1em;
  padding: 0.3em 0;
  touch-action: pan-y;  /* Seite darf vertikal scrollen */
}

/* .about-scroll is not needed, remove the whole block */

/* === Band mit Karten (ein Track, bewegt per translate3d) === */
.about-track {
  display: inline-flex;        /* Breite = Summe der Karten */
  align-items: stretch;
  will-change: transform;
  cursor: grab;                /* fürs Drag-Feedback */
}
.about-track.is-dragging { cursor: grabbing; }

/* === Karten (Bubbles) === */
.about-bubble {
  flex: 0 0 clamp(15em, 28vw, 22.5em);
  background: #fff;
  border: 0.15vw solid #ff8800;
  border-radius: 1vw;
  padding: 2em;
  margin-right: 2em;           /* Abstand zwischen Karten */
  box-shadow: 0 1vw 0.8em rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 0;

  /* stabilere Schrift */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.about-bubble:last-child { margin-right: 0; }

/* Hover: leichtes „Anheben“ */
.about-bubble:hover {
  transform: translateY(-0.25em);
  box-shadow: 0 0.5em 1.125em rgba(0,0,0,0.12);
  z-index: 1;
}

/* Beim Drag: Hover-Translate ausschalten (Shadow bleibt) */
.about-track.is-dragging .about-bubble:hover {
  transform: none;
  box-shadow: 0 0.5em 1.125em rgba(0,0,0,0.12);
}

/* Während Drag keine Textauswahl */
.about-track.is-dragging .about-bubble,
.about-track.is-dragging .about-bubble * {
  user-select: none;
}

/* Bewegungsreduktion (optional; hier hat sie keinen Effekt auf transform) */
@media (prefers-reduced-motion: reduce) {
  /* kein auto-Scrolling hier; Autoplay steuerst du im JS */
}


/* --- Abschlusszitat --- */
.about-divider {
  margin: 3em auto;
  width: 40%;
  border: none;
  border-top: 1px solid #ccc;
}

.about-quote {
  text-align: center;
  font-size: 1.3rem;
  color: #ff8800;
  font-weight: 400;
  margin-top: 2em;
}

#page-title-slot {
    position: absolute;
    top: 6.75vw;      /* direkt unter der header-divider */
    left: 18.3vw;     /* bündig links */
    width: auto;
    z-index: 2000;
}

.page-title {
    position: relative;
    margin: 0;
    padding: 0;
    font-size: 0.55vw;
    color: #555;
    font-family: Arial, Helvetica, sans-serif;
}

/* Page Title Buttons */
.page-title-link {
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: inherit;
    transition: transform 0.2s ease;
}

.page-title-link:hover {
    transform: scale(1.05);
}

.page-title-link:active {
    transform: scale(0.95);
}

/* Container */
.page-searchbar {
    position: fixed;
    top: 7.5vw;
    right: 11vw;
    z-index: 2001;
}

.page-searchbar input {
    font-size: 0.75vw;
    padding: 0.25vw 2vw 0.25vw 0.4vw;
    width: 12vw;

    /* Mehr Hintergrund */
    background: #5555550c;
    backdrop-filter: blur(4px);
    border-radius: 0.3vw;

    border: none;
    outline: none;
    color: #333;

    transition: background 0.25s ease;
}


/* Placeholder */
.page-searchbar input::placeholder {
    font-size: 0.75vw;
    color: #999;
}

#search-btn {
    position: absolute;
    right: 0.5vw;
    top: 50%;                        /* Mitte des Input-Felds */
    transform: translateY(-50%);     /* exakt vertikal zentrieren */

    padding: 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
}


/* SVG Icon */
.search-icon {
    width: 1vw;
    height: 1vw;
    stroke: #555;
    pointer-events: none;
        transition: transform 0.15s ease, stroke 0.15s ease;
}

/* Fokusfarbe für Icon */
.page-searchbar input:focus + #search-btn .search-icon {
    stroke: #de800e;
}

/* Hover: leicht größer + orange */
#search-btn:hover .search-icon {
    transform: scale(1.15);
}

/* Klick: kleiner gedrückt */
#search-btn:active .search-icon {
    transform: scale(0.9);
}

/* Header oben */
.search-results-header {
    text-align: center;
    margin-bottom: 0.8vw;
      padding-top: 0.8vw;
}

.search-results-header h4 {
    margin: 0;
    font-size: 1.6vw;     /* größer */
    font-weight: 700;       /* kräftiger */
    color: #de800e;         /* dein Orange */
    letter-spacing: 0.03vw; /* ganz leichte Eleganz */
}

/* Kleiner dezenter Strich */
.search-results-header .header-line {
    width: 6vw;
    height: 0.05vw;
    background: #ccc;
    margin: 0.4vw auto 0;
    border-radius: 10px;
}

.search-results-list {
    max-height: none;     /* war 18vw → WEG DAMIT */
    overflow: visible;    /* keine innere Scrollbar */
    padding-right: 0;
}

section.product {
    scroll-margin-top: 10vw;
}


/* Einzelnes Suchergebnis */
.search-item {
    padding: 0.5vw;
    border-bottom: 0.07vw solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.search-item:last-child {
    border-bottom: none;
}

/* Titel */
.search-item-title {
    font-size: 0.9vw;
    font-weight: bold;
    color: #fff !important;
}

/* Artikelnummer */
.search-item-number {
    font-size: 0.6vw;
    color: #fff !important;
}

/* Beschreibung */
.search-item-desc {
    font-size: 0.7vw;
    color: #fff !important;
       margin-top: 0.5vw;
}


/* Wenn keine Treffer */
.search-no-results {
    padding: 0.5vw;
    color: #fff;
    font-size: 0.7vw;
    text-align: center;
}

.search-results {
    position: fixed;
    top: 8.7vw;
    left: calc(100% - 38vw);
    width: 35vw;

    max-height: 25vw;
    overflow-y: auto;
    overflow-x: hidden;

    background: #555;
    border: 0.1vw solid #444;
    border-radius: 0.4vw;
    box-shadow: 0 0.5vw 1vw rgba(0,0,0,0.15);
    padding: 0.8vw;

    z-index: 102;

    opacity: 0;
    transform: translateY(-1vw) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;

    pointer-events: none;
}



.search-results.fade-in {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.search-results.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-1vw) scale(0.98);
}


.page-searchbar input:hover + #search-btn .search-icon {
    transform: scale(1.15);
}

.result-count {
    position: absolute;
    right: 1vw;
    top: 1vw;
    font-size: 0.7vw;
    color: #fff;
    opacity: 0.8;
}

/* Kategorie-Zeile */
.result-category {
    font-size:1.2vw;
    font-weight: bold;
    color: #fff;
    padding: 0.4vw 0;
    margin-top: 0.6vw;
    border-bottom: 0.07vw solid #777;

    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* Pfeil */
.cat-arrow {
    font-size: 0.75vw;
    transition: transform 0.3s ease;
}

/* Pfeil gedreht */
.result-category.collapsed .cat-arrow {
    transform: rotate(180deg);
}

/* Grundzustand: zu */
.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

/* eingeklappter Zustand */
.category-content.collapsed {
    max-height: 0 !important;
}

/* expanded: JS sets max-height dynamically during the transition */
.category-content.open {
    overflow: hidden;
}

.search-results::-webkit-scrollbar {
    width: 0.4vw;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: #777;
    border-radius: 1vw;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #999;
}


/* Kategorie-Zeile Hover */
.result-category:hover {
    background: rgba(255,255,255,0.06);   /* leichter Glow */
    transform: scale(1.01);               /* minimal größer */
    transition: background 0.2s ease, transform 0.2s ease;
}

/* Klick-Effekt */
.result-category:active {
    transform: scale(0.98);
}

/* Pfeil Hover → Farbe + Scale */
.result-category:hover .cat-arrow {
    transform: scale(1.2);
}

/* Pfeil aktiv */
.result-category:active .cat-arrow {
    transform: scale(0.9);
}

/* Pfeil gedreht (bleibt bestehen bei .collapsed) */
.result-category.collapsed .cat-arrow {
    transform: rotate(180deg) scale(1);  /* drehen, nicht vergrößern */                   
}

.search-item-link {
    display: inline-block;
    background: none;
    border: none;
    margin-top: 0.4vw;
    font-size: 0.65vw;
    color: #de800e;
    cursor: pointer;              /* ⬅ Zeigt Zeigefinger an */
    transition: color 0.2s ease, transform 0.2s ease;
}

.search-item-link:hover {
    color: #ff9c32;
    transform: translateX(0.2vw);
}

.search-item-link:active {
    transform: translateX(0.1vw) scale(0.98);
}


.search-item-title,
.search-item-number,
.search-item-desc {
    cursor: default !important;   /* Kein Handcursor */
}


/* ABER: Der Container und der Link sollen klickbar sein */
.search-item {
    pointer-events: auto;
}

.search-item-link {
    pointer-events: auto;
}



.header-divider {
    position: fixed;
    top: 6.6vw; /* exakt unter deinem fixierten Header */
    left: 51vw;
    transform: translateX(-50%); /* exakt horizontal zentrieren */
    width: 0vw; /* Startbreite für die Animation */
    height: 0.008vw;
    border: none;
    border-top: 0vw solid #555;
    background: #555; /* Optional, für saubere Darstellung */
    z-index: 1000; 
    animation: expandLine 1s ease-out forwards;
}

@keyframes expandLine {
    0% {
        width: 0; /* Anfangszustand: keine Breite */
    }
    100% {
        width: 75%; /* Endzustand: volle Breite */
    }
}




/* ///////////////////////////////////////////////////////////////////////////////////////////////////////////
/* === DROPDOWN NAVIGATION (komplett) ===
/* /////////////////////////////////////////////////////////////////////////////////////////////////////////*/

/* Container des Dropdowns */
.dropdown {
  position: relative;
  /* wichtig, damit nichts abgeschnitten wird */
  overflow: visible;
}

/* Trigger-Button */
.dropdown-button {
  text-decoration: none;
  font-weight: bold;
  color: #555;
  cursor: pointer;

  display: inline-block;              
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover → leicht größer */
.dropdown-button:hover {
  transform: scale(1.07);
}

/* Klick → leicht kleiner */
.dropdown-button:active {
  transform: scale(0.95);
}


/* Menübox */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -18vw;                  /* deine Ausrichtung */
  min-width: 60vw;              /* deine Breite */
  background: #555;
  border: 0;
  border-radius: .5em;
  box-shadow: 0 4vw 6vw rgba(0,0,0,.1);
  z-index: 3000;

  /* Layout */
  display: flex;
  flex-wrap: wrap;

  /* Sichtbarkeit (per Klick über .active) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;

  /* langes Menü: scrollbar statt Abschneiden */
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: visible;
}

/* Dropdown sichtbar, wenn .active am Container hängt */
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Flex-Spacer: sorgt unabhängig vom Content für „Bodenluft“ */
.dropdown-menu::after {
  content: "";
  display: block;
  flex: 0 0 100%;               /* neue Zeile über volle Breite */
  pointer-events: none;
}

/* Spalten-Elemente */
.dropdown-menu li {
  width: 30%;                    /* 3 Spalten */
  margin: 0;
  padding-left: 3vw;             /* leichter Innenabstand statt margin-left auf Items */
  padding-top: 1.5vw;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.section-heading {
  all: unset;                 /* Entfernt Button-Styles, macht ihn wie <a> */
  display: block;
  margin: 0 0 .8vw 0;
  padding: 0;
  font-weight: bold;
  font-size: 1.2vw;
  color: #de800e !important;
  text-align: left;
  cursor: pointer;

  /* Wenn du willst, kannst du Hover/Klick-Effekte hinzufügen */
  transition: transform .15s ease;
}

.section-heading:hover {
  transform: scale(1.04);
}

.section-heading:active {
  transform: scale(0.95);
}


/* Produktlisten-Container */
.product-list {
  display: block;
  margin: 0;
  padding: 0;
}

/* Produktlinks → jetzt für a UND button */
.dropdown-menu .product-list a,
.dropdown-menu .product-list button {
  all: unset;                   /* macht Buttons wie Links */
  display: block;
  position: relative;
  margin: .4vw 0;
  padding-left: 1.2vw;
  color: #fff !important;
  font-size: 0.9rem;
  cursor: pointer;
    font-weight: bold;
}

/* Pfeil vor Produktlinks → jetzt auch bei button */
.product-list a::before,
.product-list button::before {
  content: "→";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 0.8vw;
  color: #de800e;
}

/* Beschreibung ausblenden */
.dropdown-menu .section-description { display: none; }

/* Hover */
.dropdown-menu .product-list a:hover,
.dropdown-menu .product-list button:hover {
  background: transparent;
  padding-left: 1.5vw; /* sanft nach rechts */
}

/* Alte Offsets neutralisieren */
.dropdown-menu .section-heading,
.dropdown-menu .product-list a,
.dropdown-menu .product-list button {
  margin-left: 0 !important;
  left: 0 !important;
  top: 0 !important;
}


nav > ul > li > button {
  all: unset;
  cursor: pointer;
  font-weight: bold;
  color: #555;
  transition: transform 0.2s ease;
}

nav > ul > li > button:hover {
  transform: scale(1.07);   /* wie PRODUKTE */
}

nav > ul > li > button:active {
  transform: scale(0.95);   /* Klick-Effekt */
}


  /* /////////////////////////////////////////////////////////////////////////////////////////////////////////// === WUSSTEN SIE SCHON? SECTION === */

#didyouknow-section {
    padding: 1.5vw 0vw;
    background-color: #ffffff;
}

.didyouknow-container {    
    margin-left: 10vw;          /* Stattdessen linksbündig mit Abstand */
    text-align: center;
    margin-top: -2vw;
}

#didyouknow-section h2 {
    font-size: 3em;
    color: #555555;
    margin-bottom: 0vw;
    margin-right: 11vw;
}

#didyouknow-section p {
    font-size: 1.1em;
    line-height: 2;
    color: #333;
    margin-left: 19vw;
    max-width: 40vw;
    text-align: center;
}

html {
  scroll-behavior: smooth;
}

.btn-mehr {
  display: inline-block;
  padding: 0.5vw 0.6vw;
  font-size: 0.8vw;
  background-color: #ff8800;
  color: #fff;
  border: none;                 /* wichtig, wie bei Button */
  text-decoration: none;
  border-radius: 0.5vw;
  font-weight: 500;
  margin-right: 11.5vw;
  margin-top: 1vw;
  cursor: pointer;              /* damit es wie ein Button wirkt */
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-mehr:hover {
  background-color: #af6005;
  transform: scale(1.05);
}

.btn-mehr:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 .15em .35em rgba(0,0,0,.2);
}


#didyouknow-section {
  position: relative;
  overflow: visible;
}

.footer-email-link {
  all: unset;
  cursor: pointer;
  color: #fff;           /* weiß */
  font-size: 0.8vw;
  font-family: inherit;
  transition: transform 0.15s ease;
}

.footer-email-link:hover {
  transform: scale(1.03);   /* kleiner Hover-Zoom wie Footer-Links */
}

.footer-email-link:active {
  transform: scale(0.92);   /* Klick-Effekt */
}


/* === COOKIE OVERLAY === */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.cookie-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* === COOKIE BOX === */
.cookie-box {
  background: #fff;
  padding: 2.5em;
  border-radius: 1em;
  box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.25);
  max-width: 38em;
  width: 90%;
  text-align: left;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
  font-family: system-ui, sans-serif;
}

.cookie-overlay.visible .cookie-box:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

.cookie-box.hidden {
  display: none;
}

.cookie-box h2 {
  margin-top: 0;
  color: #222;
  text-align: center;
}

.cookie-box p,
.cookie-intro {
  color: #444;
  line-height: 1.5;
  margin-bottom: 1em;
  text-align: center;
}

/* === BUTTONS === */
.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 1.5em;
}

.cookie-buttons button {
  padding: 0.7em 1.5em;
  border: none;
  border-radius: 0.5em;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s, transform 0.2s;
}

.cookie-buttons button:hover {
  transform: scale(1.05);
}

#accept-cookies, #save-settings {
  background-color: #4caf50;
  color: white;
}
#accept-cookies:hover, #save-settings:hover {
  background-color: #43a047;
}

#decline-cookies {
  background-color: #ccc;
  color: black;
}
#decline-cookies:hover {
  background-color: #b3b3b3;
}

#open-settings, #back-to-main {
  background-color: #ccc;
  color: black;
}
#open-settings:hover, #back-to-main:hover {
  background-color: #b3b3b3;
}

/* === LINKS === */
.cookie-links {
  font-size: 0.9em;
  margin-top: 1.2em;
  color: #666;
  display: flex;
  justify-content: center;
  gap: 0.5em;
}
.cookie-links a {
  color: #555;
  text-decoration: none;
}
.cookie-links a:hover {
  text-decoration: underline;
}

/* === CATEGORIES === */
.cookie-category {
  border: 1px solid #ddd;
  border-radius: 0.6em;
  margin: 1em 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cookie-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9em 1em;
  cursor: pointer;
  background: #f9f9f9;
}

.cookie-name {
  font-weight: 500;
  color: #333;
}

.cookie-right {
  display: flex;
  align-items: center;
  gap: 1em;
}

/* === Toggle Switch === */
.cookie-right input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 2.5em;
  height: 1.3em;
  background: #ccc;
  border-radius: 1em;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.3s ease;
}

.cookie-right input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 0.15em;
  left: 0.15em;
  width: 1em;
  height: 1em;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 0.1em 0.2em rgba(0,0,0,0.2);
}

.cookie-right input[type="checkbox"]:checked {
  background: #4caf50;
}

.cookie-right input[type="checkbox"]:checked::before {
  transform: translateX(1.2em);
}

/* === Beschreibung & Pfeil === */
.cookie-description {
  background: #fff;
  padding: 0 1em;
  color: #555;
  font-size: 0.95em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.cookie-category.open .cookie-description {
  padding: 0.8em 1em;
  opacity: 1;
}

.arrow {
  transition: transform 0.3s ease;
  font-size: 1.8em;
  color: #666;
  line-height: 1;
  user-select: none;
}

.arrow.rotated {
  transform: rotate(180deg);
}

.always-active {
  color: #4caf50;
  font-weight: 600;
}

  /* /////////////////////////////////////////////////////////////////////////////////////////////////////////// === MEDIA === */

/* === Responsive Anpassung für Cookie-Overlay === */
@media (max-width: 900px) {
  .cookie-box {
    width: 85%;
    padding: 1.8em;
    font-size: 0.95em;
  }

  .cookie-buttons {
    flex-direction: column;
    gap: 0.8em;
  }

  .cookie-buttons button {
    width: 100%;
    font-size: 1em;
  }
}

@media (max-width: 600px) {
  .cookie-box {
    width: 90%;
    padding: 1.5em;
    font-size: 0.9em;
  }

  /* Cookie-Links wieder horizontal! */
  .cookie-links {
    flex-direction: row !important;
    justify-content: center;
    gap: 1.2em;
    flex-wrap: nowrap; /* verhindert umbrechen */
  }

  .cookie-links a {
    white-space: nowrap;
    font-size: 0.9em;
  }

}

.cookie-row {
  transition: background 0.2s ease, transform 0.15s ease;
}

.cookie-row:hover {
  background: rgba(255, 255, 255, 0.08); /* leichter Hover-Hintergrund */
  transform: translateX(3px); /* kleine Slide-Animation */
  cursor: pointer;
}


/* ///////////////////////////////////////////////////////////////////////////////////////////////////////////
/* === MEDIA HANDY -> mobile.css === */
/* /////////////////////////////////////////////////////////////////////////////////////////////////////////// */

/* Nur am Desktop (ab 601px) Mobile-Elemente ausblenden */
@media (min-width: 601px) {

    /* Alles Mobile ausblenden */
    #burger-menu,
    #mobile-menu,
    #mobile-menu-overlay,
    #mobile-hero,
    .didyouknow-mobile-modern {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Speziell: der mobile "Mehr erfahren" Button */
    .mobile-only {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    #about-mobile {
    display: none !important;
}

    footer {
        display: block !important;
    }

    #footer-new {
        display: none !important;
    }

#mobile-header {
    display: none !important;
}

#mobile-scroll-hero {
   display: none !important;
}



}

@media (max-width: 1500px) {
    .header-divider {
        top: 5.8vw;          /* sitzt garantiert direkt unter dem Header */
        left: 50%;
        transform: translateX(-50%);
        width: 75vw;         /* feste Breite → leichter sichtbar */
        height: 0.1vw;      /* etwas dicker zum Testen */
        background: #555;
        z-index: 2000;       /* über dem Header, aber unter Page-Title */
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: none;
    }

    .header-button {
    right: 10vw;
}

.page-searchbar {
    top: 6.9vw;
}

#page-title-slot {
    top: 6.4vw;
}




}

@media (max-width: 1250px) {

#header {
    padding-left: 11vw;
}

.page-searchbar {
    top: 6.7vw;
}

#page-title-slot {
    top: 6.6vw;
}

#search-btn {
    top: 65%;
}



}
