/* ======================================
   Originalstil (Desktop / Standard)
========================================= */

/* Grundlegende Einstellungen */
html, body {
    height: 100%;
    margin: 0;
}

/* Bild-Buttons */
.image-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.image-button img {
    width: 50px;
    height: 50px;
}

/* Progress Bar */
#progressbar {
    width: 100%;
    height: 30px;
    background-color: #4caf50;
    border: 1px solid #ccc;
    display: none;
    position: relative;
}

#progress {
    width: 0;
    height: 100%;
    background-color: #4caf50;
    transition: width 0.5s ease;
}

/* Container – Anordnung wie im Original */
.container {
    display: flex;
    flex-direction: row; /* Elemente nebeneinander */
    justify-content: space-between; /* Optional: gleichmäßiger Abstand */
    align-items: flex-start; /* Obere Ausrichtung */
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
}

/* Linke Spalte */
.left-column {
    display: flex;
    flex-direction: column;
    width: 50%; /* wie im Original */
}

/* Card */
.card {
    width: 95%;
    height: 89%;
}

/* Tile (Kachel) */
.tile {
    width: 44%;
    height: 44%;
    box-sizing: border-box;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

/* Tilecard */
.tilecard {
    width: 10%;
    height: 10%;
    box-sizing: border-box;
    font-size: 24px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Tile1 – Zwei Bereiche nebeneinander */
.tile1 {
    display: flex;
    width: 95%;
    margin-bottom: 42px;
}

.tile1 .left {
    background-color: green;
    width: 50%;
}

.tile1 .right {
    background-color: white;
    width: 50%;
}

/* Tile2 */
.tile2 {
    height: calc(100vh - 185px);
    width: calc(100% - 30px);
}

/* Tile3 */
.tile3 {
    background-color: white;
    display: flex;
    width: 95%;
}

/* Tile4 mit Scrollfunktion */
.tile4 {
    background-color: white;
    overflow-y: auto;
}

/* Textelemente */
#date {
    font-size: 24px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    font-weight: bold;
}

#time {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
}

#message {
    font-size: 30px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    width: 97%;
    margin: 0 auto;
    height: 40px;
}

/* Icon */
.icon {
    width: 24px;
    height: 24px;
    margin: 5px;
    cursor: pointer;
}

/* Kreis und weitere visuelle Elemente */
.circle {
    width: 100%;
    height: 100%;
    display: flex;
    background: url('/images/Logo_SmartFeis.png') no-repeat center;
    background-size: 75% 75%;
    color: white;
}

.number {
    font-weight: bold;
    color: white;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    font-size: 100px;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 6px 6px 8px rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.button {
    padding: 10px 10px;
    font-size: 12px;
    font-weight: bold;
    margin: 8px;
    border: none;
    cursor: pointer;
    height: 10vh;
    color: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    width: 25%;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.buttonall {
    padding: 10px 10px;
    font-size: 12px;
    font-weight: bold;
    margin: 8px;
    border: none;
    cursor: pointer;
    color: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    width: 92%;
    height: 5vh;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

/* Farbklassen */
.grey    { background-color: grey; }
.blue    { background-color: blue; }
.purple  { background-color: purple; }
.orange  { background-color: orange; }
.green   { background-color: green; }
.red     { background-color: red; }
.white   { background-color: white; }

/* Clock & Headcom */
.clock {
    font-size: 36px;
    color: black;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    font-family: 'Arial', sans-serif;
    text-align: center;
    margin-top: 1%;
}

.headcom {
    font-size: 18px;
    color: black;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    font-family: 'Arial', sans-serif;
    text-align: center;
    margin-top: 1%;
}

/* Dropdown-Menü */
#menu1 {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background-color: #fff;
    border: 1px solid #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#menu1 ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu1 li {
    padding: 10px;
    cursor: pointer;
}

#menu1 li:hover {
    background-color: #f0f0f0;
}

/* ======================================
   Mobile-Anpassungen (max-width: 767px)
========================================= */
@media (max-width: 767px) {
    /* Container passt sich in der Höhe an */
    .container {
        height: auto;
        flex-direction: column;
    }
    
    /* Linke Spalte nimmt auf Mobilgeräten die ganze Breite ein */
    .left-column {
        width: 100%;
    }
    
    /* Cards und Tiles werden breiter und Höhenangaben werden auto */
    .card,
    .tile,
    .tile3 {
        width: 100vw;
        height: 100vh;
    }
    
    /* In tile1 sollen die beiden Bereiche untereinander statt nebeneinander angeordnet werden */
    .tile1 {
        flex-direction: column;
        width: 95%;
    }
    .tile1 .left,
    .tile1 .right {
        width: 100%;
    }
    
    /* Tile2 auf volle Höhe */
    .tile2 {
        width: 100%;
        height: 100vh;
        top: 0;
        left: 0;
    }

    /* iframe InlineFrameExample volle Höhe */
    #InlineFrameExample {
        width: 100%;
        height: 625px; /* Dynamische Höhe */
        border: none;               /* Rahmen entfernen */
    }

    /* Buttons ebenfalls in voller Breite */
    .button,
    .buttonall {
        width: 95%;
        height: auto;
    }

    .card-title {
        display: flex;
        flex-direction: column;
    }

    .circle {
        width: 35vh;
        height: 35vh;
        margin: 0 auto;
        order: 1;
    }
}
