/* ============================================
   HAUPTSTILE - punta-del-este.com
   ============================================ */

/* --- GRUNDEINSTELLUNGEN --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* --- CONTAINER --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    padding-left: 0;
}

/* --- KOPFBEREICH (HEADER) --- */
header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: white;
}

.logo a {
    color: white;
    text-decoration: none;
}

/* --- SPRACHAUSWAHL (Flaggen) --- */
.language-switcher {
    display: flex;
    gap: 10px;
}

.language-switcher a {
    display: block;
    width: 32px;
    height: 22px;
    border-radius: 3px;
}

.language-switcher a img {
    width: 32px;
    height: 22px;
    border-radius: 3px;
    display: block;
}

.language-switcher a.active {
    outline: 2px solid #3498db;
    outline-offset: 1px;
}

/* Deutschland: Schwarz-Rot-Gold */
.flag-de {
    background: linear-gradient(to bottom, #000 33.33%, #dd0000 33.33%, #dd0000 66.66%, #ffcc00 66.66%);
}

/* Uruguay: Blau-Weiss-Streifen */
.flag-uy {
    background: repeating-linear-gradient(to bottom, #fff 0px, #fff 2.44px, #0038a8 2.44px, #0038a8 4.88px);
}

/* USA: Rot-Weiss-Streifen mit blauem Feld */
.flag-us {
    background:
        linear-gradient(to bottom, #bf0a30 0%, #bf0a30 7.69%, #fff 7.69%, #fff 15.38%, #bf0a30 15.38%, #bf0a30 23.07%, #fff 23.07%, #fff 30.76%, #bf0a30 30.76%, #bf0a30 38.45%, #fff 38.45%, #fff 46.14%, #bf0a30 46.14%, #bf0a30 53.83%, #fff 53.83%, #fff 61.52%, #bf0a30 61.52%, #bf0a30 69.21%, #fff 69.21%, #fff 76.9%, #bf0a30 76.9%, #bf0a30 84.59%, #fff 84.59%, #fff 92.28%, #bf0a30 92.28%, #bf0a30 100%);
}

/* Brasilien: Gruen mit gelbem Rhombus */
.flag-br {
    background: #009c3b;
    position: relative;
}

/* --- KACHELN (Tiles) --- */
.tile-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.tile {
    display: flex;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.3s, transform 0.2s;
}

.tile:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.tile img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}

.tile-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tile-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.tile-content p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .tile {
        flex-direction: column;
    }
    .tile img {
        width: 100%;
        height: 150px;
    }
}

/* --- IFRAME FRAMES --- */
.header-frame {
    width: 100%;
    height: 70px;
    border: none;
}

.footer-frame {
    width: 100%;
    height: 60px;
    border: none;
}

/* --- HAUPTBEREICH (Layout) --- */
.main-wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: 30px;
    padding: 20px 0;
    min-height: calc(100vh - 180px);
}

/* --- SEITENMENU (Links) --- */
.sidebar {
    width: 220px;
    flex-shrink: 0;
}

.sidebar nav {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 15px 0;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

.sidebar nav ul li a:hover {
    background-color: #ecf0f1;
    padding-left: 20px;
}

/* Submenu items (after Home and main city) smaller font */
.sidebar nav ul:first-child li:nth-child(n+3) a {
    font-size: 0.85rem;
    padding: 8px 15px 8px 25px;
}

.sidebar nav ul li a.active {
    background-color: #3498db;
    color: white;
}

/* --- HAUPTINHALT --- */
.content {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.content p {
    margin-bottom: 15px;
}

/* --- FUSSZEILE (FOOTER) --- */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer p {
    font-size: 0.9rem;
}

/* --- TRENNLINIE --- */
.divider {
    border: 0;
    height: 2px;
    background: #ecf0f1;
    margin: 10px 15px;
}

/* --- HERVORHEBUNGSBOX --- */
.highlight-box {
    background: #e8f4fc;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 30px 0;
    clear: both;
}

/* --- BILDBOX (rechts, umfliessend) --- */
.image-box {
    float: right;
    margin: 0 0 25px 30px;
    width: 45%;
    max-width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    overflow: hidden;
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
}

.image-box .caption {
    padding: 10px;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

/* Clearfix fuer umfliessende Bilder */
.content::after {
    content: "";
    display: table;
    clear: both;
}

/* --- VIDEO KACHELN --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-tile {
    display: block;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

.video-tile .thumbnail {
    width: 100%;
    height: 160px;
    background-color: #c00;
    background-size: cover;
    background-position: center;
    position: relative;
}

.video-tile .thumbnail::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
}

.video-tile .video-info {
    padding: 15px;
}

.video-tile .video-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.video-tile .video-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .header-frame {
        height: 100px;
    }
    .main-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        order: 2;
    }
    .content {
        order: 1;
    }
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    .image-box {
        float: none;
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 20px 0;
    }
}
