/* Basis: CSS-Variablen & Farbsystem */
:root {
  --wbg: #fcf8e2;
  --dark-bg: #ffffff;
  --dark-border: #cccccc;
  --dark-glow: #ff69b4; /* helles pink */
  --dark-opacity-low: 0.2;
  --dark-opacity-mid: 0.6;
  --dark-opacity-high: 1;
  --textareabg:rgba(255, 255, 255, 0.293)0;
  --textareafg:black;
  --bgm:rgba(184, 240, 240, 0.541)0;
    --kbtn: rgb(30, 134, 127);
    --firsth2: 4
    2px 2px 0 rgb(255, 0, 0),
    -2px 2px 0 black,
    2px -2px 0 black,
    -2px -2px 0 black,
    0 0 5px yellow,
    0 0 10px rgb(255, 47, 0);
    --bg: #ffffff;
    --fg: #0f172a;           /* Slate-900 */
    --f: #4e2424;           /* Slate-900 */
    --muted: #475569;        /* Slate-600 */
    --border: #9cc0ef;       /* Slate-200 */
    --primary: #2563eb;      /* Blue-600 */
    --primary-contrast: #ffffff;
    --card: #5861e4a1;
    --shadow: 0 4px 16px rgba(0,0,0,.07);
    --white: #b8f0f0;
    --light-grey: #edf0f1;
    --violet: #655be1;
    --dark-violet: #5146e1;
    --black: #010203;
  }
  .container.header-inner, .site-header {
    
  --bgm:rgba(184, 240, 240, 0)0;
    position: relative;
    padding: 20px;
    z-index: 10;
    border-radius: 0px;
    background: transparent; /* wirklich transparent */
    border: none; /* keine Umrandung */
    box-shadow: none; /* kein Schatten */
    
    color: #f0f0f000; /* Textfarbe bleibt sichtbar */
  }

  
  
  .dark {
    --dark-bg: #1a1a1a;
    --dark-border: #444444;
    --dark-glow: #8a2be2; /* dunkles violett */
    --dark-opacity-low: 0.2;
    --dark-opacity-mid: 0.6;
    --dark-opacity-high: 1;
    --f: #ffffff;
    --kbtn: rgba(20, 86, 91, 0.13);
  --wbg: #270401;
  --textareafg: white;
  --firsth2: 
    2px 2px 0 rgb(255, 0, 0),
  -2px 2px 0 black,
  2px -2px 0 black,
  -2px -2px 0 black,
  0 0 5px yellow,
  0 0 10px rgb(255, 47, 0);
    --bgm: #150e29;
    --bg: #150e29df;
    --fg: #e5e7eb;           /* Gray-200 */
    --muted: #a3a3a3;        /* Gray-400 */
    --border: #006aff;       /* Gray-l800 */
    --primary: #60a5fa;      /* Blue-300 */
    --primary-contrast: #0b1220;
    --card: #0f172a;
    --white: #150e29df;
    --light-grey: #edf0f1;
    --violet: #655be1;
    --dark-violet: #5146e1;
    --black: #21232a;
  --textareabg:rgba(1, 32, 32, 0.541)0;
  }

  
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; overflow-x: hidden;  }
  body {
    margin: 0;
    z-index: 1;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, sans-serif;
    background: var(--bg);
    background-color: var(--wbg);
    background-size: cover;          /* skaliert das Bild, damit es die Seite füllt */
    background-position: center;     /* zentriert das Bild */
    background-repeat: no-repeat; 
    color: var(--fg);
    line-height: 0;
    overflow-x: hidden; 
  }

.brand {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 10px;
    z-index: 2 !important;
    display: block;        /* wichtig: block, damit Kinder richtig umbrechen */
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.brand .name {
    display: block;        /* Name in eigener Zeile */
    font-size: clamp(16px, 2.5vw, 32px);
}

.brand .contact {
    display: block;        /* Kontakt in nächster Zeile */
    font-size: clamp(12px, 2vw, 20px);
    font-weight: normal;
    margin-top: 2px;       /* optional Abstand */
}

  
  /* Accessibility */
  .skip-link {
    position: absolute; left: -9999px; top: auto;
  }
  .skip-link:focus {
    left: 1rem; top: 1rem; z-index: 1000;
    background: var(--primary); color: var(--primary-contrast);
    padding: .5rem .75rem; border-radius: .5rem; text-decoration: none;
  }
  
  /* Layout Helfer */
  .container {
    max-width: 1100px;
    margin: 0 auto;
  }
  
  /* Header / Toolbar */
  .site-header {
    position: sticky; top: 0; z-index: 100;
    background: transparent;
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(180%) blur(2px);
  }
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    height: 64px;
    gap: .75rem;
  }


  /* ==============================
   Bewerbungsformular
============================== */
.bewerbung-form {
  z-index: 500;
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.bewerbung-form h1 {
  z-index: 500;
  font-family: "Archivo Black", sans-serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

fieldset {
  z-index: 500;

  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  background: var(--bg);
}

legend {
  color: #000;
  z-index: 10;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0 0.5rem;
}

label {
  display: block;
  margin: 0.6rem 0 0.3rem;
  font-weight: 500;
}

input, textarea, select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--card-bg);
  color: var(--text);
  transition: border 0.2s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  outline: none;
}

/* Checkbox */
input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

/* Datei-Upload */
input[type="file"] {
  padding: 0.3rem;
  background: var(--bg);
}

/* Button */
button.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

button.btn:hover {
  background: var(--primary-hover);
}

/* ==============================
   Responsives Verhalten
============================== */
@media (max-width: 600px) {
  .bewerbung-form {
    padding: 1.2rem;
  }

  button.btn {
    font-size: 0.95rem;
    padding: 0.7rem;
  }
}


  .brand {
    z-index: 20;
    font-weight: 800;
    letter-spacing: .2px;
    text-decoration: none;
    color: var(--fg);
  }

  .icon-btn {
    appearance: none;
    border: 1px solid var(--border);
    background: transparent;
    padding: 0.3rem 0.5rem;   /* minimaler Klickbereich */
    border-radius: 0.6rem;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;      /* nur so groß wie Inhalt */
    align-items: center;
    justify-content: center;
    width: auto;               /* passt sich Inhalt an */
    height: auto;              /* passt sich Inhalt an */
    min-height: 50px;
    line-height: 1;
    position: absolute;        /* oben rechts positionieren */
    top: 10px;
    right: 10px;
  }
  .icon-btn:focus-visible,
  .btn:focus-visible,
  .link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }
  
  /* Navigation */
  .site-nav {
    justify-self: center;

  }
  .site-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 1rem;
  }
  .site-nav a {
    text-decoration: none;
    color: var(--muted);
    padding: .4rem .5rem;
    border-radius: .5rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }

  .site-nav a:hover {
    background: var(--primary);
    color: var(--primary-contrast);
    transform: scale(2);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2); /* leichter Schatten für „heben“ Effekt */
  }
  /* Mobile Nav */
  #navToggle { display: none; }
  .first {
    width: 100%;
    display: flex;
    top: 50%;
    flex-direction: column;    /* Überschriften untereinander */
    align-items: center;       /* horizontal zentrieren */
    justify-content: center; /* von oben beginnen */
    justify-self: center;
    gap: 10px;                 /* Abstand zwischen h1, h2, h3 */
  }
  
.buttonHolder {
  display: flex;
  justify-content: center;
  align-items: center;
}

    svg{
      position: absolute;
    }

    .electric{
      padding: 20px 50px;
      border-radius: 100px;
      cursor: pointer;
      background-color: var(--kbtn);
      border: 2px solid rgb(125, 140, 255);
      color: white;
      position: relative;
      filter: blur(0px);
    }
    
    #electric2{
      position: absolute;
      top: 0;
      left: 0;
      filter: blur(1px);
      background-color: rgba(106, 123, 252, 0.414);
      border: 2px solid rgb(125, 140, 255);
      color:  rgb(182, 191, 255);
      /* display: none; */
      z-index: -1;
    }
   
    @keyframes dash {
    to {
    stroke-dashoffset: 0;
    }
    }
  
    .yellow{
      width: 110%;
      stroke-dasharray: 300;
      stroke-dashoffset: 1000;
      animation: dash 1s linear;
      animation-iteration-count: infinite;
      animation-direction: alternate-reverse;


    }

    .blue{
      width: 110%;
      stroke-dasharray: 400;
      stroke-dashoffset: 1000;
      animation: dash 1.2s linear;
      animation-iteration-count: infinite;
      animation-direction: alternate-reverse;
     
    }

    #y1{
      top: -115%;
      left: -5%;
      filter: blur(.5px);

    }

    #y2{
      width: 120%;
      left: -10%;
      top: -155%;
      filter: brightness(1);
    }

    #b1{
      left: -5%;
      top: -125%;
      /* filter: blur(.5px) */
    }

    #b2{
      left: -10%;
      top: -165%;
      width: 120%
      /* filter: blur(.5px) */
    }

    @keyframes dot1 {
      from{
        bottom: 0%;
        left: 10%;
        opacity: 1;
      }
      to{
        bottom: -30%;
        left: 0%;
        opacity: 0;
      }
    }
    @keyframes dot2 {
      from{
        top: 0%;
        left: 30%;
        opacity: 1;
      }
      to{
        top: -30%;
        left: 40%;
        opacity: 0;
      }
    }

    @keyframes dot3 {
      from{
        top: 0%;
        left: 80%;
        opacity: 1;
      }
      to{
        top: -30%;
        left: 80%;
        opacity: 0;
      }
    }
    @keyframes dot4 {
      from{
        bottom: 20%;
        left: 100%;
        opacity: 1;
      }
      to{
        bottom: 30%;
        left: 120%;
        opacity: 0;
      }
    }

    .part{
      content: ' ';
      width: 3px;
      height: 3px;
      border-radius: 5px;
      background-color: rgb(183, 226, 255);
      z-index: 2;
      position: absolute;
      filter: blur(1px);
      display: none;
    }

    #part1{
      animation: dot1;
      transform-origin: center;
      animation-duration: 1.5s;
      animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
      animation-iteration-count: infinite;
    }
    #part2{
      animation: dot2;
      transform-origin: center;
      animation-duration: 1.6s;
      animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
      animation-iteration-count: infinite;
    }
    #part3{
      animation: dot3;
      transform-origin: center;
      animation-duration: 1.5s;
      animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
      animation-iteration-count: infinite;
    }

    #part4{
      animation: dot4;
      transform-origin: center;
      animation-duration: 1.5s;
      animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
      animation-iteration-count: infinite;
    }

    .buttonHolder{
      width: max-content;
      max-height: 20px;
    }

    .hide{
      opacity: 0;
    }
   
    #electric:hover + .hide{
      opacity: 1 ;
    }
    #electric:hover  .hide{
      opacity: 1 ;
    }


    .electric:hover  .part{
      display: flex;
    }


  .first h1 {
    position: relative;
    font-family: "Caveat", sans-serif;
    font-size: 100px;
    top: 50%;
    color: #150b0b;
    text-align: center;
    text-shadow:
        2px 2px 0 rgb(255, 0, 0),
        -2px 2px 0 black,
        2px -2px 0 black,
        -2px -2px 0 black,
        0 0 5px yellow,
        0 0 10px rgb(255, 47, 0);
  }
  
  .first h2 {
    position: relative;
    top: 80%;
    font-family: "Caveat", sans-serif;
    font-size: 60px;
    color: #150b0b;
    text-shadow: var(--firsth2);
    z-index: 40;
    text-align: center;
  }
  
  .first h3 {
    position: relative;
    font-size: 2.5rem;
    z-index: 5;
    color: var(--f);
    max-width: 50ch;
    line-height: 1.4;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.718);
  }
  
.card a, p {
  color: var(--fg);
}  
  .text-img-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .ich-img-container {
    position: relative;
    overflow: hidden; /* sorgt dafür, dass nichts aus dem Container rausläuft */
    display: inline-block;
  }
  
  .ich-img {
    max-width: 300px;
    height: auto;
    border-radius: 1rem;
    transition: transform 0.7s ease, box-shadow 0.3s ease;
    transform-origin: center center; /* Zoom von der Bildmitte */
    z-index: 20;
  }
  
  .ich-img:hover {
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7),
                0 0 40px rgba(255, 111, 0, 0.5),
                0 0 60px rgba(255, 111, 0, 0.3);
  }

  .ImpressumText {
    z-index: 900;
  }
  
  
  .social-icons {
    display: flex;
    gap: 1rem;
    justify-content: start;
    align-items: start;
    overflow: visible; /* wichtig, damit Hover nicht blockiert */
  }
  
  .facebook-img, .instagram-img {
    max-width: 10%;
    height: auto;
    border-radius: 0.9rem;
    z-index: 3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* zeigt an, dass man klicken kann */
  }
  
  .facebook-img:hover, .instagram-img:hover {
    transform: scale(1.5); /* 1.8 kann zu groß sein */
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7),
                0 0 40px rgba(255, 111, 0, 0.5),
                0 0 60px rgba(255, 111, 0, 0.3);
  }
  
 
 
  .logo-img {
    display: block;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
  
    /* Leuchtender Umriss um die Kontur */
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.6));
  
    /* Pulsierende Animation */
    animation: pulseLogo 3s ease-in-out infinite;
  }
  
  @keyframes pulseLogo {
    0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.8;
      filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.6));
    }
    50% {
      transform: translate(-50%, -50%) scale(1.01);
      opacity: 1;
      filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.7));
    }
    100% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.8;
      filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.6));
    }
  }


/* POPUP OVERLAY */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* POPUP CONTENT */
.popup-content {
    background: var(--bg);
    border-radius: 1rem;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 900px;      /* Desktop-Breite */
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff5555;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* HEADER */
.popup-header {
    text-align: center;
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

/* BODY */
.popup-body {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
}

/* LINKS TEXT */
.left-text {
    flex: 1 1 50%;          /* Desktop: 50% Text */
    max-width: 50%;
    line-height: 1.4;
    font-size: 1rem;
    color: var(--bg);
    -webkit-text-stroke: 1px rgba(255, 0, 0, 0.718); /* schwarzer Rand */
    overflow-wrap: break-word;
}

/* RECHTES BILD */
.right-image {
    flex: 1 1 45%;          /* Desktop: 45% Bild */
    max-width: 45%;
    display: flex;           /* Flexbox aktivieren */
    justify-content: center; /* horizontal zentrieren */
    align-items: center;     /* vertikal zentrieren */
}
.right-image img {
    max-width: 90%;
    height: auto;
    justify-self: center;
    justify-content: center;
    justify-items: center;
    border-radius: 1rem;
}

/* THUMBNAILS */
.popup-thumbnails {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}
.popup-thumbnails .thumb {
    width: 50px;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: transform 0.2s;
}
.popup-thumbnails .thumb:hover {
    transform: scale(1.2);
}

/* NAVIGATION */
.popup-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}
.popup-nav button {
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
}

/* MEDIA QUERY für Handys */
@media (max-width: 768px) {
    .popup-body {
        flex-direction: column; /* Text + Bild untereinander */
    }
    .left-text, .right-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .right-image img {
        width: 90%; /* etwas kleiner als volle Breite */
        max-width: none;
    }
}


  @media (max-width: 900px) {
    .first h1 {
        font-size: 10vw; /* 10% der Bildschirmbreite */
        line-height: 1.1;
        text-align: center;
      }
      
      .first h2 {
        font-size: 10vw;  /* 5% der Bildschirmbreite */
        line-height: 1.2;
        text-align: center;
      }
      .first h3 {
        font-size: 10vw;  /* 5% der Bildschirmbreite */
        line-height: 1.2;
        text-align: center;
      }
    .logo-img {
        max-width: 100%;  
    }
    .first h3 {
      font-size: 1.5rem;
    }
    .header-inner {
      grid-template-columns: auto auto 1fr auto;
    }
    #navToggle { display: inline-block; }
    .site-nav {
      position: absolute;
      left: 0; right: 0; top: 64px;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      display: none;
    }
    .site-nav.open { display: block; }
    .site-nav ul {
      flex-direction: column;
      gap: 0;
    }
    .site-nav a {
      display: block;
      padding: .9rem 1rem;
      border-radius: 0;
      border-top: 1px solid var(--border);
    }
  }
  
  /* Hero */
  .hero {
    padding: 3rem 0 2rem;
  }
  .hero h1 {
    margin: 0 0 .3rem 0;
    font-size: clamp(1.8rem, 2.5vw + 1rem, 3rem);
  }
  .hero p { color: var(--muted); max-width: 60ch; }
  
  /* Buttons & Links */
  .btn {
    display: inline-block;
    background: var(--primary);
    color: var(--primary-contrast);
    text-decoration: none;
    padding: .7rem 1rem;
    border: 0;
    transition: transform 0.3s ease; /* weicher Übergang */
    border-radius: .7rem;
    box-shadow: var(--shadow);
    cursor: pointer;
  }
  .btn:hover { 
    filter: brightness(1.05); 
    transform: scale(2.05); /* 5% größer */
    }
  .btn-ghost {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border);
  }
  .link {
    color: var(--primary);
    text-decoration: none;
  }
  .link:hover { text-decoration: underline; }
  
  /* Karten/Grid */
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 1rem;
    padding: 20px;
    justify-content: center; /* Grid horizontal zentrieren */
    padding-bottom: 5rem;
  }
  
  .card {
    position: relative; /* ← das ist entscheidend */
    z-index: 10;
    line-height: 1;
    background: var(--card);
    border: 1px solid transparent;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: #ffffff;
  }
  
  .card::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid hsl(200, 100%, 70%);
    border-radius: inherit;
    filter: url(#turbulent-displace);
    mix-blend-mode: screen; /* hellt auf */
    animation: lightningFlash 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 20;
  }
  
  @keyframes lightningFlash {
    0%, 90%, 100% { opacity: var(--light-opacity-low); border-color: var(--dark-border); }
    45%           { opacity: var(--light-opacity-high); border-color: var(--dark-glow); }
    55%           { opacity: var(--light-opacity-mid); border-color: var(--dark-border); }
  }
  
  .card h2 { margin-top: 0; }
  
  /* Footer */
  .site-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
  }
  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem 1.2rem;
  }
  .site-footer .link { color: var(--muted); }
  .site-footer .link:hover { color: var(--fg); }
  
  .cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card, #fff);
    border: 1px solid var(--border, #ddd);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cookie-inner {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow, 0 4px 8px rgba(0,0,0,0.1));
    padding: 1rem;
    display: grid;
    gap: 0.8rem;
  }
  
  .cookie-inner p,
  .cookie-banner a.link {
    margin: 0;
    line-height: 1.4;
    text-align: center;
    color: var(--fg, #000);
    font-size: clamp(0.8rem, 1.2vw, 1rem); /* passt sich an Bildschirmbreite an */
  }
  
  .cookie-inner .actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center; /* Buttons mittig */
  }
  
  .cookie-inner .actions button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: clamp(0.7rem, 1vw, 1rem);
    transition: background 0.3s ease, transform 0.2s ease;
  }
  
  .cookie-inner .actions button:hover {
    transform: scale(1.05);
  }

  
  /* Responsives Grid */
  @media (max-width: 900px) {
    .grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
  }
  
  /* Bevorzugte Reduktion von Animationen */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
  }
  


  /* RESET/BASIC STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */


ul {
  list-style: none;
}
  
/* MAIN STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.navv {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: fixed;
    top: 50px; /* Abstand vom oberen Rand, z.B. 30px */
    display:block;
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%); /* genau zentrieren */
    padding-bottom: 20px;
    border-radius: 0 0 25px 25px; /* unten abgerundet */
  }
.navv [type="checkbox"] {
    margin: 0;
    padding: 0;
    justify-content: center;
    justify-self: center;
    box-sizing: border-box;
  position: absolute;
}

.navv [type="checkbox"] + label {
  position: relative;
  margin: 0;
  z-index: 1000; 
  padding: 0;
  box-sizing: border-box;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 1;
  background: var(--bg);
  border-radius: 50%;
  border-bottom: 3px outset #006affac;
  transform: translateY(-50%);
  transition: all 0.2s ease; /* weicher Übergang */
}

.navv [type="checkbox"] {
  position: absolute;
  opacity: 0;       /* unsichtbar */
  pointer-events: none; /* nicht anklickbar, Label übernimmt */
}


.navv [type="checkbox"] + label:hover {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid #475569; /* kompletter Kreis */

}

.menu li {
  position: absolute;
  top: -25px;
  left: 50%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transform: translateX(-50%);
  transition: all 0.4s;
}

.menu li:nth-child(1) {
  transition-delay: 0.2s;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.menu li:nth-child(2) {
  transition-delay: 0.15s;
}

.menu li:nth-child(3) {
  transition-delay: 0.1s;
}

.menu li:nth-child(4) {
  transition-delay: 0.05s;
}

.menu li a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.menu li a img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* Bild wird rund zugeschnitten */
  display: block;
}

.navv label img {
  width: 97%;
  height: 97%;
  transition: transform 0.6s ease-in-out; /* sanfte Animation */
  transform-origin: center center;  
  display: block;
}

/* Wenn Checkbox aktiv → Bild drehen */
#menu:checked + label img {
  transform: rotate(90deg);
}


.menu li a span {
    position: absolute;
    top: 100%;               /* direkt unter dem Kreis */
    left: 50%;               /* Mitte der Blase */
    transform: translateX(-50%) translateY(5px); /* zentriert horizontal, etwas Abstand nach unten */
    width: auto;             /* passt sich Textlänge an */
    font-size: 19px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    color: rgb(0, 119, 255);
    font-weight: bold;
    text-align: center;      /* sicherstellen, dass Text mittig ist */
  }

  .navv input:checked + label {
    background: rgb(0, 179, 255); /* leicht durchsichtig, abdunkelnd */
    transform: translateY(calc(-50% + 4px));
}
/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3); /* leicht abdunkeln */
    display: none;
    z-index: 1; /* unter Menü */
    cursor: pointer;
  }
  
  /* Overlay sichtbar, wenn Menü aktiv */
  #menu:checked ~ .overlay {
    display: block;
  }
.overlay:active,
.overlay:focus {
  pointer-events: auto;
}
.navv input:checked ~ .menu li:nth-child(1) {
    top: 50px; /* erste Blase */
    transition-delay: 0.1s;
  }
  
  .navv input:checked ~ .menu li:nth-child(2) {
    top: 130px; /* zweite Blase */
    left: calc(50% - 100px);
    transition-delay: 0.2s;
  }
  
  .navv input:checked ~ .menu li:nth-child(3) {
    top: 130px; /* dritte Blase */
    left: calc(50% + 100px);
    transition-delay: 0.3s;
  }
  
  .navv input:checked ~ .menu li:nth-child(4) {
    top: 210px; /* vierte Blase */
    transition-delay: 0.4s;
  }

.navv input:checked ~ .menu li a span {
  opacity: 1;
  transition-delay: 0.9s;
}

/* FOOTER STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.page-footer {
  position: fixed;
  right: 0;
  bottom: 60px;
  display: flex;
  align-items: center;
  padding: 5px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--black);
}

.page-footer a {
  display: flex;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  margin-left: 4px;
}
/* Overlay hinter dem Menü */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  background: rgba(255,255,255,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 50;
}
.menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------------- Container ---------------- */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  gap: 15px; /* Abstand zwischen Elementen */
  box-sizing: border-box;
}

.top-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;  /* zentriert */
  gap: 20px;            /* Abstand zwischen Texten */
  width: 100%;
  max-width: 800px;
  margin: 50px auto 0 auto;
  box-sizing: border-box;
}

.top-text,
.top-text2,
.top-text3 {
  z-index: 40;
  width: 100%;
  max-width: 100%;
  padding: 5px 10px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
  text-align: center;
  font-size: clamp(16px, 2vw, 32px); /* dynamisch, aber nicht zu groß */
  margin: 0;
}


/* ---------------- Text Container ---------------- */
.text-container {
  width: 100%;
  padding: 15px;
  box-sizing: border-box;
  margin: 20px 0;
  line-height: 1.6rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  font-size: 1.1rem;
  color: #333;
  overflow-wrap: break-word;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------------- Kontaktkarten ---------------- */
.contact-card,
.contact-card2 {
  position: relative;
  padding: 20px;
  flex: 1 1 auto;
  cursor: pointer;
  border-radius: 15px; /* sanfte Ecken */
  margin-bottom: 15px;
  background: (var(--fg)); /* sehr dunkles Grau/Schwarz */
  color: #f0f0f0; /* heller Text */
  line-height: 2rem;
  font-size: 1.1rem;
  border: 1px solid #333; /* leichte Umrandung */
  
  /* Schatten für Tiefe */
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.5),   /* leichter Schatten nach unten */
    0 10px 20px rgba(0, 0, 0, 0.6); /* größerer Schatten für 3D-Effekt */
  
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effekt für Aufspringen */
.contact-card:hover,
.contact-card2:hover,
#contactForm:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 8px 12px rgba(0, 0, 0, 0.6), 
    0 15px 30px rgba(0, 0, 0, 0.7);
}


.contact-card1 {
  position: relative;
  flex: 1 1 auto;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 10px;
  background-color: transparent;
  line-height: 2rem;
  font-size: 1.1rem;
}

.contact-card, 
.contact-card2 p,
.contact-card1 p {
  margin: 0px 0;
}

.contact-card a,
.contact-card2 a {
  color: #ff0000;
  text-decoration: none;
  font-weight: 600;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ---------------- Top Text spezielle IDs ---------------- */
#text1 {
  color: #ff0000;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 1.5rem;
}

#text2 {
  font-weight: bold;
}

/* ---------------- Formular ---------------- */
.form-container {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* <-- statt center */
  z-index: 1;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

#contactForm {
  align-self: stretch;
  width: 100% !important;
  max-width: 100%;
  position: relative;
  display: block;
  padding: 20px;
  width: 100%;
  flex: none;
  border-radius: 15px;
  margin-bottom: 15px;
  background: transparent;
  color: #f0f0f0;
  line-height: 2rem;
  font-size: 1.1rem;
  border: 1px solid #333;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.5),
    0 10px 20px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contactForm label,
#contactForm h2 {
  color: var(--fg);
}

#contactForm input,
#contactForm textarea{
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  background: var(--textareabg);
  color: var(--textareafg);
  border: 1px solid #333;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.5),
    0 8px 16px rgba(0, 0, 0, 0.6);
  font-size: 1rem;
  line-height: 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#contactForm button {
  margin-top: 20px;
  display: inline-block;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #4a90e2, #1c66b3); /* sanftes Blau-Verlauf */
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.3),
    0 8px 20px rgba(74, 144, 226, 0.4);
  transition: all 0.3s ease;
}

/* Datenschutz Checkbox */
#contactForm .datenschutz {
  display: flex;               /* nebeneinander */
  flex-direction: row;         /* horizontal anordnen */
  align-items: center;         /* vertikal mittig */
  gap: 10px;                   /* Abstand zwischen Checkbox & Text */
  margin-top: 15px;
}

#contactForm .datenschutz input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #4a90e2;       /* moderne Browser – Checkboxfarbe */
  cursor: pointer;
}

#contactForm .datenschutz label {
  color: var(--textareafg);
  font-size: 1rem;
  cursor: pointer;
}

/* Einheitlicher Stil für alle Labels im Formular */
form#contactForm label {
  display: block;
  z-index: 1;
  color: var(--textareafg);
  font-weight: 500;
  margin-bottom: 10px;
  margin-left: 5px;
  font-size: 1rem;
  word-wrap: break-word; /* falls Text zu lang ist */
}

#contactForm .datenschutz label {
  margin: 0;
}

/* Hover-Effekt: heller, größer, mehr Tiefe */
#contactForm button:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #5aa0ff, #3378d9);
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.4),
    0 10px 25px rgba(74, 144, 226, 0.5);
}

/* Klick-Effekt */
#contactForm button:active {
  transform: translateY(0);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.3),
    0 5px 15px rgba(74, 144, 226, 0.4);
}

/* Fokus-Effekt für Tastatur-Nutzer */
#contactForm button:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(74, 144, 226, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.4);
}

#contactFormBF {
  z-index: 1;
  max-width: 80%;
  border: 1px solid #333;
  background: transparent;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.5),
    0 10px 20px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 70%;
  margin: 80px auto;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 20px; /* Abstand zwischen Fieldsets */
  padding: 20px;
  border-radius: 12px;
}

form#contactFormBF label {
  display: block;
  z-index: 1;
  color: var(--textareafg);
  font-weight: 500;
  margin-bottom: 10px;
  margin-left: 5px;
  font-size: 1rem;
  line-height: 1.3;
  white-space: normal; /* verhindert, dass der Text in einer Zeile bleibt */
  word-wrap: break-word; /* bricht lange Texte */
  max-width: 100%; /* sorgt dafür, dass das Label sich an den Container anpasst */
}


/* Fieldsets */
#contactFormBF fieldset {
  border: none;
  z-index: 1;
  border-bottom: 1px solid var(--light-grey);
  border-radius: 10px;
  padding: 20px;
  color: #f0f0f0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px; /* 🔥 Labels und Inputs sauber untereinander */
}

/* Überschriften */
#contactFormBF legend {
  text-align: center;
  font-size: 1.6rem;
  color: var(--fg);
  margin-bottom: 10px;
  font-weight: bold;
}

/* Labels */
#contactFormBF label {
  display: block;
  color: var(--textareafg);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 5px;
}

/* Eingabefelder */
#contactFormBF input[type="text"],
#contactFormBF input[type="email"],
#contactFormBF input[type="tel"],
#contactFormBF input[type="file"],
#contactFormBF textarea {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  background: var(--textareabg);
  color: var(--textareafg);
  border: 1px solid #333;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.5),
    0 8px 16px rgba(0, 0, 0, 0.6);
  font-size: 1rem;
  line-height: 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover + Fokus */
#contactFormBF input:hover,
#contactFormBF textarea:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.55),
    0 10px 20px rgba(0, 0, 0, 0.65);
}

#contactFormBF input:focus,
#contactFormBF textarea:focus {
  outline: none;
  border-color: #666;
}

/* Datenschutz Checkbox */
#contactFormBF .datenschutz {
  display: flex;               /* nebeneinander */
  flex-direction: row;         /* horizontal anordnen */
  align-items: center;         /* vertikal mittig */
  gap: 10px;                   /* Abstand zwischen Checkbox & Text */
  margin-top: 15px;
}

#contactFormBF .datenschutz input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #4a90e2;       /* moderne Browser – Checkboxfarbe */
  cursor: pointer;
}

#contactFormBF .datenschutz label {
  color: var(--textareafg);
  font-size: 1rem;
  cursor: pointer;
}

/* Einheitlicher Stil für alle Labels im Formular */
form#contactFormBF label {
  display: block;
  z-index: 1;
  color: var(--textareafg);
  font-weight: 500;
  margin-bottom: 10px;
  margin-left: 5px;
  font-size: 1rem;
  word-wrap: break-word; /* falls Text zu lang ist */
}

#contactFormBF .datenschutz label {
  margin: 0;
}

/* Button */
#contactFormBF button[type="submit"] {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: none;
  background: #4a90e2;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#contactFormBF button:hover {
  background: #357ac8;
  transform: translateY(-2px);
}

/* 📱 Responsive Optimierung */
@media (max-width: 700px) {
  #contactFormBF {
    width: 90%;
    margin: 40px auto;
    padding: 15px;
  }

  #contactFormBF fieldset {
    padding: 10px;
    gap: 8px;
  }

  #contactFormBF legend {
    font-size: 1.3rem;
  }

  #contactFormBF label {
    font-size: 0.95rem;
  }

  #contactFormBF input,
  #contactFormBF textarea {
    font-size: 0.9rem;
    padding: 12px;
  }

  #contactFormBF button {
    font-size: 1rem;
    padding: 12px;
  }
}


form {
  background-color: var(--bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(12, 58, 3, 0.64);
  width: 100%;
  max-width: 500px;
  margin: 20px 0;
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form h2 {
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 10px 0 30px 0;
}

form label {
  font-weight: 500;
  font-size: 0.9rem;
}

form input,
form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

form button {
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #c0392b;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 700px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .form-container,
  .text-container {
    width: 100%;
    padding: 10px;
  }

  form {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .top-text,
  .top-text2,
  .top-text3 {
    font-size: 1.3rem;
    padding: 3px 5px;
  }

  form {
    padding: 20px;
    font-size: 1rem;
  }

  form h2 {
    font-size: 1.1rem;
  }
}

/* Overlay */
.popup-overlayy {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* dunkles halbtransparentes Overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup-Content mit Glassmorphism */
.popup-contentt {
  background: rgba(255, 255, 255, 0.2);  /* halbtransparentes Glas */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 30px 25px;
  width: 90%;
  max-width: 400px;
  backdrop-filter: blur(10px);           /* Blur-Effekt */
  -webkit-backdrop-filter: blur(10px);   /* Safari-Unterstützung */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}


/* Close Button */
.close-btn {
  position: absolute;
  top: 15px; right: 15px;
  background: #f06292;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.close-btn:hover {
  transform: scale(1.2);
}

/* Überschrift */
.popup-contentt h2 {
  margin-top: 0;
  color: #d84315;
  font-size: 1.8rem;
}

/* Text */
.popup-contentt p {
  font-size: 1rem;
  color: #ff0000;
  margin: 15px 0 25px;
  line-height: 1.5;
}

/* OK-Button */
.ok-btn {
  background-color: #ff7043;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.ok-btn:hover {
  background-color: #f4511e;
  transform: scale(1.05);
}

/* Animation */
@keyframes popupFadeIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* Hauptbereich */
main{
    z-index: 40;
}
main.impressum {
    z-index: 40;
    max-width: 900px;
    margin: 80px auto;
    padding: 20px;
    box-sizing: border-box;
}
#angaben {
  font-size: 2.5rem;
  color: var(--fg);
  margin-bottom: 20px
}
#angaben2 {
  font-size: 1.7rem;
  color: var(--fg);
  margin-bottom: 20px
}
#namee {
  font-size: 1.5rem;
  color: var(--fg);
  margin-bottom: 20px
}
/* Überschrift */
main.impressum h1 {
    z-index: 40;
    font-family: 'Archivo Black', sans-serif;
    font-size: 2.8rem;
    color: #ff5555; /* Highlight-Farbe passend zum Stil */
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.ImpressumText{
  position: relative; /* wichtig für z-index */
  z-index: 40 !important;
}
/* Boxen */
.impressum-box {
  position: relative;
    z-index: 40;
    background: rgba(255, 255, 255, 0.05); /* leicht transparent */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover-Effekt */
.impressum-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

/* Text */
.impressum-box p {
    z-index: 30;
    line-height: 1.8rem;
    font-size: 1.05rem;
    margin: 1px 0;
}

/* Links */
.impressum-box a {
    z-index: 30;
    color: #ff5555; /* passend zum H1 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.impressum-box a:hover {
    color: #ff7777;
}

/* Responsiv */
@media (max-width: 600px) {
    main.impressum {
        padding: 15px;
    }
    
    main.impressum h1 {
        font-size: 2rem;
    }
    
    .impressum-box {
        padding: 20px 15px;
    }
}


#mz-gallery-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#mz-gallery {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 95vw;          /* Breite relativ zum Viewport */
  height: 60vh;         /* Höhe relativ zum Viewport */
  max-width: 100vw;     /* maximal volle Breite */
  max-height: 100vh;    /* maximal volle Höhe */
  margin: 2.5vh 0;      /* relative Margin */
  background: rgba(255, 255, 255, 0.50);
  background-size: 5vw 5vw; /* Hintergrundgröße relativ */
  border-radius: 2%;
  
  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5),
    inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
  border: 0.1vw dotted rgba(124, 252, 0, 0.7);
  outline: 0.1vw dotted rgba(124, 252, 0, 0.7);
  outline-offset: 2vw;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 0 0 3vw;
  scroll-behavior: smooth;
  scrollbar-color: lawngreen #222;
  scrollbar-width: auto;
  animation: background 300s linear infinite;
}

@keyframes background {
  0% {
    background-position: -300% 100%;
  }
  100% {
    background-position: 100% -300%;
  }
}

#mz-gallery::-webkit-scrollbar {
  height: 25px;
}

#mz-gallery::-webkit-scrollbar-track {
  background: transparent;
}

#mz-gallery::-webkit-scrollbar-thumb {
  background: #666;
}

#mz-gallery::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#mz-gallery::-webkit-scrollbar-thumb:active {
  background: #444;
}

#mz-gallery::-webkit-scrollbar-button:single-button:horizontal:decrement {
  height: 25px;
  width: 80px;
  background-color: lawngreen;
  background-size: 20px;
  background-position: center;
  background-repeat: no-repeat;
}

#mz-gallery::-webkit-scrollbar-button:single-button:horizontal:increment {
  height: 25px;
  width: 80px;
  background-color: lawngreen;
  background-size: 20px;
  background-position: center;
  background-repeat: no-repeat;
}

#mz-gallery::-webkit-scrollbar-button:single-button:horizontal:decrement:hover,
#mz-gallery::-webkit-scrollbar-button:single-button:horizontal:increment:hover {
  background-color: #59b500;
}

#mz-gallery::-webkit-scrollbar-button:single-button:horizontal:decrement:active,
#mz-gallery::-webkit-scrollbar-button:single-button:horizontal:increment:active {
  background-color: #3d7d00;
}

#mz-gallery figure {
  position: relative;
  margin: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80%;
  width: auto;
  min-height: 100px;
  margin-right: 60px;
  scroll-snap-align: start;
  transition: all 0.3s ease-in-out;
}

#mz-gallery figure:nth-child(1) {
  margin-left: 60px;
}

#mz-gallery figure div {
  position: absolute;
  width: 1%;
  height: 1%;
  background: transparent;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

#mz-gallery figure div:nth-child(3) {
  top: 0;
  left: 0;
  border-left: 1px dotted lawngreen;
  border-top: 1px solid lawngreen;
  border-radius: 15px 0px 0px 0px;
}

#mz-gallery figure div:nth-child(4) {
  top: 0;
  right: 0;
  border-top: 1px solid white;
  border-right: 1px solid white;
  border-radius: 0px 15px 0px 0px;
}

#mz-gallery figure div:nth-child(5) {
  bottom: 0;
  right: 0;
  border-right: 1px dotted lawngreen;
  border-bottom: 1px solid lawngreen;
  border-radius: 0px 0px 15px 0px;
}

#mz-gallery figure div:nth-child(6) {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid white;
  border-left: 1px solid white;
  border-radius: 0px 0px 0px 15px;
}

#mz-gallery figure img {
  height: 100%;   /* Bild füllt automatisch die Höhe des figure */
  width: auto;    /* Breite passt sich proportional an */
  box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px,
              rgba(0, 0, 0, 0.22) 0px 10px 10px;
  border-radius: 5px;
  opacity: 0.9;
  filter: brightness(1);
  outline: 1px solid transparent;
  outline-offset: -40px;
  transition: all 0.3s ease-in-out;
}

#mz-gallery figure figcaption {
  position: absolute;
  color: transparent;
  top: 10%;     
  font-size: clamp(12px, 1.8vw, 20px); /* responsive, min 12px, max 20px */
  line-height: 1.4;           /* proportional zur Schriftgröße */
  font-weight: 500;      
  padding: 0 1.5vw;        /* padding ebenfalls relativ */
  text-align: center;
  width: 80%;
  height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: black;
  pointer-events: auto;
  outline: 0.2vw dotted transparent;
  outline-offset: 0;
  background-size: 5vw 5vw;
  opacity: 0;
  border-radius: 2%;
  overflow-y: auto;  
  animation: background 100s linear infinite;
  transition: all 0.3s ease-in-out;
}

#mz-gallery figure:hover img {
  height: calc(100% - 40px);
  filter: brightness(1.5);
  border-radius: 10px;
  outline: 1px solid rgba(255, 255, 255, 0.8);
  outline-offset: 5px;
  transition: all 0.3s ease-in-out;
}

#mz-gallery figure:hover {
  padding: 0px 20px;
}

#mz-gallery figure:hover figcaption {
  opacity: 0.8;
  color: white;
  outline-offset: -20px;
  text-shadow: 1px 1px 3px black, 0px 0px 5px black;
  transition: all 0.3s ease-in-out;
}

#mz-gallery figure:hover div {
  width: 25%;
  height: 25%;
  opacity: 1;
  transition: all 0.3s ease-in-out;
}

@media (max-width: 1145px) {
  #mz-gallery figure {
    scroll-snap-align: center;
  }
  #mz-gallery {
    scroll-padding: 0px 0px 0px 0px !important;
  }
}

@media (max-width: 610px) {
  #mz-gallery {
    max-height: 320px;
  }
  #mz-gallery figure {
    margin-right: 20px;
  }
  #mz-gallery figure:nth-child(1) {
    margin-left: 20px;
  }
}

@media (max-height: 425px) {
  #mz-gallery figure figcaption {
    font-size: 14pt;
    line-height: 20pt;
  }
}

@media (max-height: 340px) {
  #mz-gallery {
    background-size: 30px 30px;
    scroll-padding: 0 0 0 28px;
  }
  #mz-gallery figure {
    margin-right: 30px;
  }
  #mz-gallery figure:nth-child(1) {
    margin-left: 30px;
  }
  #mz-gallery figure figcaption {
    font-size: 12pt;
    line-height: 18pt;
    font-weight: 400;
    background-size: 30px 30px;
  }
}

@media (max-height: 280px) {
  #mz-gallery::-webkit-scrollbar {
    height: 20px;
  }
  #mz-gallery::-webkit-scrollbar-button:single-button:horizontal:decrement,
  #mz-gallery::-webkit-scrollbar-button:single-button:horizontal:increment {
    width: 80px;
    height: 20px;
    background-size: 15px;
  }
}

@media (max-height: 230px) {
  #mz-gallery figure figcaption {
    font-size: 10pt;
    line-height: 12pt;
  }
  #mz-gallery figure:hover figcaption {
    outline-offset: -10px;
  }
  #mz-gallery figure:hover img {
    outline-offset: 10px;
  }
}

@media (max-height: 165px) {
  #mz-gallery {
    scroll-padding: 0 0 0 18px;
    margin: 0px;
  }
  #mz-gallery figure {
    margin-right: 20px;
  }
  #mz-gallery figure:nth-child(1) {
    margin-left: 20px;
  }
}

/* Touch-Geräte – alles bleibt statisch, keine Animationen */
@media (pointer: coarse) {
  #mz-gallery {
    animation: none !important; /* Hintergrundbewegung ausschalten */
  }

  #mz-gallery figure {
    scroll-snap-align: start;
    transition: none; /* keine Übergänge */
    padding: 0;
  }

  #mz-gallery figure img {
    height: 100% !important;  /* immer volle Höhe */
    width: auto !important;
    filter: brightness(1) !important; /* keine Helligkeitsänderung */
    border-radius: 5px !important;
    outline: 1px solid transparent !important;
    outline-offset: 0 !important;
    transition: none !important; /* keine Animation */
  }

  #mz-gallery figure figcaption {
    opacity: 0 !important;    /* bleibt unsichtbar, bis aktiv */
    color: transparent !important;
    transition: none !important;
    animation: none !important;
  }

  #mz-gallery figure.active figcaption {
    opacity: 0.8 !important;
    color: white !important;
    outline-offset: -20px !important;
    transition: none !important; /* sofort, ohne Animation */
  }
}

#i{
  z-index: 1;
}

/* Nur auf größeren Bildschirmen (PC) */
@media (min-width: 1025px) {
  h2 span {
    display: inline-block;
    transition: transform 0.3s;
  }
  
  h2 span.ripple {
    animation: ripple 1s ease-in-out forwards;
  }
  
  @keyframes ripple {
    0% {
      transform: translateY(0) scale(1);
      opacity: 1;
      filter: blur(0);
    }
    10% {
      transform: translateY(0) scale(0.92);
      opacity: 0.97;
    }
    20% {
      transform: translateY(0) scale(0.85);
      opacity: 0.95;
    }
    35% {
      transform: translateY(-8px) scale(1.2);
      opacity: 1;
    }
    50% {
      transform: translateY(-15px) scale(1.45);
    }
    65% {
      transform: translateY(-8px) scale(1.2);
    }
    80% {
      transform: translateY(0) scale(0.95);
    }
    90% {
      transform: translateY(-2px) scale(1.02);
    }
    100% {
      transform: translateY(0) scale(1);
      opacity: 1;
      filter: blur(0);
    }
  }
  
  
  
  #start span {
    display: inline-block;
    animation: rippleBrand 3.2s ease-in-out infinite;
  }
  #start span:nth-child(1) { animation-delay: 0s; }
  #start span:nth-child(2) { animation-delay: 0.1s; }
  #start span:nth-child(3) { animation-delay: 0.2s; }
  #start span:nth-child(4) { animation-delay: 0.3s; }
  #start span:nth-child(5) { animation-delay: 0.4s; }
  #start span:nth-child(6) { animation-delay: 0.5s; }
  #start span:nth-child(7) { animation-delay: 0.6s; }
  #start span:nth-child(8) { animation-delay: 0.7s; }
  #start span:nth-child(9) { animation-delay: 0.8s; }
  #start span:nth-child(10) { animation-delay: 0.9s; }
  #start span:nth-child(11) { animation-delay: 1s; }
  #start span:nth-child(12) { animation-delay: 1.1s; }
  #start span:nth-child(13) { animation-delay: 1.2s; }
  #start span:nth-child(14) { animation-delay: 1.3s; }
  #start span:nth-child(15) { animation-delay: 1.4s; }
  #start span:nth-child(16) { animation-delay: 1.5s; }
  #start span:nth-child(17) { animation-delay: 1.6s; }
  #start span:nth-child(18) { animation-delay: 1.7s; }
  #start span:nth-child(19) { animation-delay: 1.8s; }
  #start span:nth-child(20) { animation-delay: 1.9s; }
  #start span:nth-child(21) { animation-delay: 2s; }
  

  @keyframes rippleBrand {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(+10px) scale(1.1); }
  }
}
