@keyframes fadeIn{
    from {opacity: 0;}
    to {opacity: 1;}
}

html, body{
    box-sizing: border-box;
    /*overflow-x: hidden; kein horizontales scrollen*/ 
    margin: 0;
    padding: 0;
}
/*Vererbung von box-sizing*/
*, *::before, *::after{
    box-sizing: inherit;
}/* Hintergrundbild */
body{
    background-color: black;
    background-image: url('img/DSC01315.jpg');/* Hintergrundbild */
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size:cover;
    display: grid;
    grid-template-columns: auto;
    align-content: center;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: x-large;
    padding-top: 5%;

}
#inhalt{
    box-sizing: border-box;
    border-style: dashed;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: auto;
    width: 90%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    background-color: rgb(255, 166, 0, 0.4);
}
.a1{
    opacity: 0;
    animation: fadeIn 1s;
    animation-duration: 1s;
    animation-delay: 0.1s;
    animation-fill-mode: forwards;
}
.a2{
    opacity: 0;
    animation: fadeIn 1s;
    animation-duration: 1s;
    animation-delay: 0.3s;
    animation-fill-mode: forwards;
}
.a3{
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s;
    animation-duration: 1s;
    animation-delay: 0.6s;
    animation-fill-mode: forwards;
}
.a4{
    opacity: 0;
    animation: fadeIn 1s;
    animation-duration: 1s;
    animation-delay: 1.4s;
    animation-fill-mode: forwards;
}
.a5{
    opacity: 0;
    animation: fadeIn 1s;
    animation-duration: 1s;
    animation-delay: 1s;
    animation-fill-mode: forwards;
}
.a6{
    opacity: 0;
    animation: fadeIn 1s;
    animation-duration: 1s;
    animation-delay: 1.6s;
    animation-fill-mode: forwards;
}
.a7{
    opacity: 0;
    animation: fadeIn 1s;
    animation-duration: 1s;
    animation-delay: 1.8s;
    animation-fill-mode: forwards;
}
.a8{
    opacity: 0;
    animation: fadeIn 1s;
    animation-duration: 1s;
    animation-delay: 2s;
    animation-fill-mode: forwards;
}
.a9{
    opacity: 0;
    animation: fadeIn 1s;
    animation-duration: 1s;
    animation-delay: 2.2s;
    animation-fill-mode: forwards;
}
.a10{
    opacity: 0;
    animation: fadeIn 1s;
    animation-duration: 1s;
    animation-delay: 2.5s;
    animation-fill-mode: forwards;
}
#Logo_index{
    margin-top: 5%;
    width: 50%;
    height: 60%;
    transform: rotate(25deg);
    justify-self: center;
    grid-row: 2;
    grid-column: 1/1;
}
#Logo_gigs{
    margin-top: 5%;
    width: 35%;
    height: 70%;
    transform: rotate(-25deg);
    justify-self: center;
    grid-row: 1;
    grid-column: 1/1;
}
h2{
    grid-row: 1;
    grid-column: 1/4;
    text-align: center;
    font-size: 300%;
}
h3{
    grid-column: 1/4;
    text-align: center;
}
h4{
    grid-column: 1/4;
    text-align: center;
}
h5{
    grid-column: 1/4;
    text-align: center;

}
iframe{
    grid-column: 2/3;
}
article{
    grid-column: 3/3;
}
/* Desktop: horizontales Menü */
nav{
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 1rem;
    background-color: rgb(207, 0, 14);
    border: 1px solid black;
    position: relative;
    z-index: 1000;
    box-sizing: border-box;
}
nav ul{
    display: flex;  /* moderner Float remember remember*/
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
/*Standard-Item*/
nav ul li{
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-right: 1px solid rgba(0,0,0,0.9);
    margin: 0;
    height: 48px;
}
nav ul li:last-child{
    border-right: 0;
}
nav ul li a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 100%;
    color: black;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.02em;
}
nav ul li:hover,
nav ul li a:hover {
    background-color: rgb(255, 166, 0);
    transition: background-color 160ms ease;
}
/*Icon Links*/
nav ul li a img{
    display: block;
    width: 30px; 
    height:30px;
    margin: 6px auto 0;
}
#link{
    padding-top: 0;
    margin-bottom: 0;
    width: 30px; 
    height:44px;
}
#last-link{
    padding-top: 0;
    margin-bottom: 0;
    width: 30px; 
    height:44px;

}
.video-wrapper{ /* Facebook video automatische Anpassung*/
    grid-row: 2;
    grid-column: 2/2;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.fb-video{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* iframe, hat irgendwas mit dem FB-Videos zu tun*/
.video-wrapper iframe{
    width: 100%;
    height: 100%;
    border: 0;
}
/* Responsive Video 16:9*/
.responsive-video{
    position: relative;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    padding-top: 56.25%;
    box-sizing: border-box;
    grid-column: 2/3;
    /*animation: fadeIn 1s;
    animation-duration: 1s;
    animation-delay: 1s;
    animation-fill-mode: forwards; Animation vielleicht später nochmal*/
    
}
.responsive-video iframe,
.responsive-video video{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    
}
table{
    grid-column: 2/2;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5%;
}
#gigs{
    box-sizing: border-box;
    border-style: none;
    color: white;
    text-align: center;
    width: 80%;
    height: auto;
    background-color: rgba(23, 24, 23, 0.7);
    opacity: 0;
    animation: fadeIn 1s;
    animation-duration: 1s;
    animation-delay: 1s;
    animation-fill-mode: forwards;
}
#gigs-container{
    grid-column: 2 / 3;
    justify-self: center;
    align-self: start;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px;
    box-sizing: border-box;
}
#gigs-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 20px;
    align-items: start;
}
.gig-card{
    background: rgba(0, 0, 0, 0.65);
    padding: 16px;
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}
.gig-card button{
    display: inline-block;
    align-self: flex-start;
    margin-top: 12px;
    padding: 8px 14px;
    background: rgb(255,166,0);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}
#gigs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 18px 0 20px;
    white-space: nowrap;
}
#gigs-pagination button{
    padding: 10px 14px;
    background: rgb(255, 166, 0);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}
#gigs-pagination button:disabled{
    opacity: 0.45;
    cursor: default;
}
#Guest{
    box-sizing: border-box;
    border-style: none;
    color: white;
    text-align: center;
    width: 80%;
    height: auto;
    background-color: rgba(23, 24, 23, 0.7);
    opacity: 0;
    animation: fadeIn 1s;
    animation-duration: 1s;
    animation-delay: 1s;
    animation-fill-mode: forwards;
}
.gb{
    width: 50%;
}
.sgb{
    width: 10%;
    margin-bottom: 5%;
}
#epk{
    grid-row: 3;
    grid-column: 2/2;
}
#RuR{
    grid-row: 5;
    grid-column: 2/2;
    text-align: center;

}
#dia-Show{
    clear: both;
    grid-column: 2/3;
    margin-top: 20px;
    text-align: center;
    padding: 12px 0;
    box-sizing: border-box;
}
#dia-Show .dia-thumbs{
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 6px 8px;
    -webkit-overflow-scrolling: touch;
}
#dia-Show .dia-thumbs .small{
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
#dia-Show .dia-thumbs .small.active{
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
#dia-Show #bigPic{
    display: block;
    width: 60%;
    max-width: 640px;
    height: 360px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.12);
    transition: opacity 220ms ease;
}
#dia-Show .dia-main{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
#dia-Show .dia-arrow{
    background: transparent;
    border: none;
    color: black;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}
.arrow{
    width: 10%;
    height: 15%;
}
article{
    grid-row: 2;
    grid-column: 1/3;
    padding-left: 10%;
    padding-right: 10%;
}
aside{
    grid-row: 2;
    grid-column: 3/3;
    width:fit-content;
    margin-right: 10%;
    margin-bottom: 10%;
}
#contact{
    grid-column: 2/2;
    text-align: center;
}
#imgMedia{
    float: right;
    width: 256px;
    margin-right: 16px;
}
#imgAbout{

    width: 125%;
    height: 100%;
    grid-column: 3/3;
    padding-left: 0;
}
section{
    width:fit-content;
    height: fit-content;

}
#gigs tr td{
    padding-top: 5%; 
    padding-bottom: 5%;
    opacity: 0;
    animation: fadeIn 1s;
    animation-duration: 1s;
    animation-delay: 1.4s;
    animation-fill-mode: forwards;
}
#bigPic{
    width:  50%;
    height: 70%;
}
.small{
    height: 75px;
    width: 110px;
}
button{
    border-color: white;
    border-width: 1px;
    color:white;
    width: auto;
    height: 35.5px;
    background-color: rgba(23, 24, 23, 0.7);
}
button:hover{
    background-color: white;
    color:black;
    transition: 0.2s;
}
input{    
    border-style: none;
    border-radius: 3px;
    background-color: black;
    color:white;
    width: 98%;
    height: 35.5px;
}
input.submit{
    padding-left:8%;
    padding-right: 8%;
    padding-top: 5%;
    padding-bottom: 10%;
    width: auto;
}
textarea.subject{
    border-style: none;
    border-radius: 3px;
    background-color: black;
    color:white;
    height: 80%;
}
p{
    grid-column: 2/2;
    text-align: center;
}
footer{
    margin-left: auto;
    margin-right: auto;
    color: white;
} 
.fLink img{
    margin-left: auto;
    margin-right: auto;
    width: 40px; 
    height: 40px;
    opacity: 0;
    animation: fadeIn 1s;
    animation-duration: 1s;
    animation-delay: 2.8s;
    animation-fill-mode: forwards;
}
/*Hamburger oben fixieren*/
#menu-toggle {
    display: none; /*Desktop weg versteckt*/
  
}
.social {
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: center;
        padding: 12px;
    }
    .social__item{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: rgba(255, 106, 0, 0.858);
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
        text-decoration: none;
        transition: transform 140ms ease, background 140ms ease;
        box-sizing: border-box;
        padding: 6px;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 5;
    }
    .social__item img{
        width: 28px;
        height: 28px;
        display: block;
        object-fit: contain;
    }
    .social__item:hover,
    .social__item:focus {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.80);
        outline: none;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    }

    /* 1. Grundsatz: Medien skalieren */
    img, video, iframe {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Mobile: Icon-Fächer bleiben proportional */
@media only screen and (max-width: 600px) {
    
        nav ul li.icon {
            flex: 0 0 44px;      /* etwas schmaler auf Mobile */
            width: 44px;
        }

        nav ul li.icon img {
            width: 24px !important; 
            height: 24px !important;
        }

    /* Falls Icons trotzdem umbrechen: erlauben, dass sie nicht die ganze Breite erzwingen */
        nav ul {
            padding: 0 8px;
        }
        .social{
            gap: 10px;
            padding: 10px 0;
        }
        .social__item{
            width: 42px;
            height: 42px;
            border-radius: 6px;
            padding: 5px;
        }
        .social__item img {
            width: 22px;
            height: 22px;
        }
        body {
            font-size: 16px;
            background-attachment: scroll !important;
            background-position: center top !important;
            background-size: cover !important;
            background-repeat: no-repeat !important;
        }
        h2 {
            font-size: 1.8rem; /* ~28px*/
            line-height: 1.2;
        }
        h3 {
            font-size: 1.4rem; 
            line-height: 1.3;
        }
        h4, h5 {
            font-size: 1.2rem; 
            line-height: 1.3;
        }
        p {
            font-size: 1rem; /* ~16px */
            line-height: 1.4;
        }
        input, textarea{
            font-size: 1rem;
        }
        nav ul li a {
            font-size: 1.1rem;
        }
        #msg-form{
            width: 92%;
            max-width: none;
            justify-content: center;
        }
        #msg-form input,
        #msg-form textarea {
            font-size: 1rem;
            padding: 14px;
        }
        #msg-form textarea.subject{
            min-height: 120px;
            font-size: 1rem;
        }
        #gigs-container{
            width: 94%;
            max-width: none;
            margin-left: auto;
            margin-right: auto;
            padding: 8px;
        }

        #gigs-list {
            grid-template-columns: 1fr;
            gap: 12px;
            padding: 8px;
        }
        .gig-card{
            font-size: 1rem;
            padding: 14px;
        }
        .gig-card button {
            padding: 10px 12px;
            font-size: 0.95rem;
        }
        #gigs-pagination{
            padding-bottom: 28px;
        }
        #gigs-pagination button{
            padding: 12px 16px;
        font-size: 1rem;
        }
        #imgMedia{
            grid-column: 2/3;
            width: 50%;
            height: 65%;
            justify-content: center;
            margin-top: 28px;
            margin-left: 28px;
        }
        .responsive-video{
            max-width: 100%;
            padding-top: 56.25%;
        }
        #imgAbout{
            width: 92%;
            margin-left: auto;
            margin-right: auto;
        }

        article {
            padding-left: 4%;
            padding-right: 4%;
            }  
        #contact{
            grid-column: 1;
            text-align: center;    
        }
}
@media (max-width: 900px) {
    /*Hamburger sichtbar? */
    #menu-toggle { display: block;
        display: block; /*handy sichtbar machen*/
        position: fixed;
        top: 10px;
        left: 12px;
        font-size: 2rem;
        color: red;
        background: rgba(0,0,0,0.35);
        padding: 6px 10px;
        border-radius: 4px;
        z-index: 10050;
    }
    nav {
        position: fixed;
        top: 56px;
        left: 4%;
        right: 4%;
        width: calc(100% - 8%);
        max-width: calc(100% - 8%);
        display: none; /*Menü standardmäßig versteckt*/
        background-color: rgb(207, 0, 14);
        border-radius: 6px;
        z-index: 10000; /* sollte damit unter dem Toggle, aber über dem Inhalt sein */
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        box-shadow: 0 6px 18px rgba(0,0,0,0.45);
        box-sizing: border-box;
        padding: 6px 0;
    }
        /*Sichtbar wenn. show gesetzt ist */
        nav.show { display: block; /*Javascript aktivierung*/
    }
        nav ul {
            margin: 0;
            padding: 0;
            list-style: none;
            gap: 0;
            display: flex;
            flex-direction: column; 
        }
        nav ul li {
            width: 100%;
            box-sizing: border-box;
            border-bottom: 1px solid rgba(0,0,0,0.6);
            margin: 0;
            padding: 0;
            display: flex;
            align-items: center;
            height: 52px;
        }
        nav ul li:last-child{
            border-bottom: 0;
        }
        nav ul li a {
            display: flex;
            align-items: center;
            width: 100%;
            height: 100%;
            padding: 0 16px;
            color: inherit;
            text-decoration: none;
            box-sizing: border-box;
      }
        nav ul li a > span,
        nav ul li a > strong,
        nav ul li a > em{
            margin-left: 8px;
        }
        nav ul li.icon a{
            padding-left: 16px;
            padding-right: 16px;
            justify-content: flex-start;
        } 
        nav ul li.icon img{
            width: 28px;
            height: 28px;
            object-fit: contain;
            margin-right: 12px;
            display: block;
        }
        nav ul li.icon a > span,
        nav ul li.icon a > .label{
            margin-left: 6px;
        }
        nav ul li:hover,
        nav ul li a:hover{
            background-color: rgb(255, 166, 0);
            transition: background-color 160ms ease;
        }
        nav ul li{ border-right: none !important; }



        /* Damit der Seiteninhalt nicht unter dem fixierten Menü verschwindet:
       optional: füge oben Padding ein, wenn das Menü sichtbar ist.
       Du kannst das auch dynamisch per JS setzen, hier ist die einfache Variante: */    
        #menu-toggle{
            left: 8px; 
            z-index: 10050;
        }
        body{
            width: 100%;
        }
        #gig{
            width:90%;
        }
    /*Tablet Gigs raster*/
        #gigs-list {
            grid-template-columns: repeat(2,1fr);
            gap: 14px;
            padding: 16px;
        }
        .gig-card{ min-height: 150px; font-size: 1rem;}

        .mobile{
            font-size: 10%;
        }
        .responsive-video{
            max-width: 100%;
        }
        h2{
            font-size: 200%;
        }
        p{
            margin-top: 1%;
            font-size: 120%;
        }
        article{
            padding-left: 6%;
            padding-right: 6%;
        }
        .fb-video{
            width:80%;
            margin-bottom: 1%;
        }
        .video-wrapper{
            max-width: 100%;
        }
        table{
            font-size: 120%;
            width: 80%;
        }
        input{
            height: 50px;
            font-size: 100%;
        }
        textarea.subject{
            width: 98%;
            font-size: 150%;
        }
        footer{
            padding-top: 12px;
            text-align: center;
        }
        .flink img{
            margin-top: 8px;
            margin-left: 8px;
            margin-right: 8px;
        }
        #Logo_index, #Logo_gigs {
            transform: none;
            width: 60%;
            margin: 10px auto;
        }
    /* Icon-Fächer in der Navigation */
        nav ul li.icon {
            flex: 0 0 56px;        /* feste Breite für Icon-Fach */
            width: 56px;
            padding: 0;
        }

    /* Bild im Icon-Fach: skaliert sauber */
        nav ul li.icon img {
            display: block;
            width: 28px;
            height: 28px;
            object-fit: contain;
            margin: 0 auto;
        }

        nav ul li.icon img[src] {
            max-width: 30px !important;
            max-height: 30px !important;
        }

    /* Desktop: Links normal, Icons am Ende */
        nav ul {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
    /* Kontaktformular */
        #msg-form {
            width: 100%;
            max-width: 500px;
            margin: 20px auto;
        }
        #msg-form input,
        #msg-form textarea{
            width: 100%;
            padding: 12px 14px;
            border-radius: 6px;
            border: none;
            background: rgba(0, 0, 0, 0.85);
            color: white;
            font-size: 1rem;
            box-sizing: border-box;
        }
        #msg-form .submit:hover {
            background: white;
            color: black;
        }
        #dia-Show #bigPic{
            width: 90%;
            height: auto;
            aspect-ratio: 16/9;
        }
        #dia-Show .dia-thumbs .small{
            width: 76px;
            height: 52px;
        }
        
  #inhalt {
    grid-template-columns: 1fr;
    width: 96%;
    padding: 18px 12px;
    box-sizing: border-box;
  }

  /* Artikel und Bild untereinander, kein float */
  article {
    grid-column: 2;
    padding-left: 6%;
    padding-right: 6%;
  }

  #imgMedia {
    float: none;
    display: block;
    margin: 18px auto;
    width: 80%;
    height: auto;
  }

  /* Videos: volle Breite innerhalb der Box */
  .responsive-video {
    width: 100%;
    max-width: 100%;
    padding-top: 56.25%;
    margin: 12px 0;
  }

  .responsive-video iframe,
  .responsive-video video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    /* Dia-Show Bild größer machen */
    #dia-Show #bigPic {
        width: 90%;
        height: auto;
        aspect-ratio: 16/9;
        }
          #imgAbout {
    float: none !important;
    display: block;
    grid-column: 1;
    grid-row: 2;
    order: 1;
    margin: 18px auto 28px auto;
    width: 80%;
    max-width: 420px;
    height: auto;
  }
    }
    