/* ========================================
   Hauptseite CSS - komplett finale Version
   ======================================== */

html {
    font-size: 16px;
    background-color: #664400;
    padding: 0;
    margin: 0;
}

body {
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
}

#Alles {
    font-size: 16px;
    color: #EFEFEF;
    text-align: center;
    width: 100%;
}

.Titeltext {
    font-size: clamp(18px, 4vw, 32px);
    color: #FFC21B;
    margin: 25px 0;
}

.Fusstext {
    font-size: clamp(14px, 3vw, 24px);
    color: #FFC21B;
    margin: 35px 0;
}

/* Advent Container */
#Advent0 {
    position: relative;
    width: 100%;
    margin: auto;
    padding: 0;
}

#Advent1 {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding: 0;
}

/* Grafik hinter den Türen */
#AdventGrafik {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;       /* passt sich automatisch an Inhalt an */
    z-index: 1;
}

#AdventGrafik img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Grafik proportional */
    display: block;
}

/* Tabellen-Kalender */
#Tabelle2 {
    position: relative;
    z-index: 2;
    width: 100%;
    border-spacing: 4px;   /* Abstand zwischen Türen */
    border-collapse: separate; 
    table-layout: fixed;
    margin: 0 auto;
}

#Tabelle2 tr {
    display: table-row;    /* Safari-Kompatibilität */
}

#Tabelle2 td {
    position: relative;
    width: 16.66%;        /* 6 Spalten */
    padding-bottom: 16.66%; /* Höhe proportional zur Breite */
    vertical-align: middle;
    text-align: center;
    overflow: hidden;
}

#Tabelle2 td img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* Bild füllt die Zelle proportional */
    display: block;
}

/* Links */
#Tabelle2 a {
    text-decoration: none;
}

/* Hover-Effekt auf Türen */
#Tabelle2 a:hover img {
    animation: mymove 1s;
    background-color: rgba(255, 255, 255, 0);
    transition: all 1s linear;
}

@keyframes mymove {
  50% {
    -webkit-filter: opacity(0%);
    filter: opacity(0%);
  }
}

/* Buttons */
.button {
    background-color: #2C9CAF;
    border: none;
    color: #FFFFFF;
    padding: 6px 40px;
    text-align: center;
    display: inline-block;
    font-size: 20px;
    border-radius: 10px;
    transition-duration: 0.6s;
}

.button:hover,
.button:active {
    background-color: #FFFFFF;
    color: #2C9CAF;
}
