/* ===================================
   belgien.at – Mobile-First Stylesheet
   =================================== */

/* --- Reset & Base (Mobile) --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2d2d2d;
    background: #f5f5f5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #c41e1e;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #8b0000;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Container --- */
.container {
    background: #fff;
    min-height: 100vh;
}

/* --- Header --- */
header {
    background: #1a1a1a;
    color: #fff;
    padding: 20px 16px;
    text-align: center;
    position: relative;
    border-bottom: 4px solid #FFD700;
}

h1 {
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

h1 a {
    color: #fff;
    text-decoration: none;
}

h1 a:hover {
    color: #FFD700;
    text-decoration: none;
}

.subtitle {
    font-size: 0.85em;
    opacity: 0.7;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.flag-decoration {
    display: inline-block;
    width: 36px;
    height: 22px;
    margin: 8px auto 0;
    background: linear-gradient(90deg, #000 33.33%, #FFD700 33.33% 66.66%, #FF0000 66.66%);
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* --- Navigation --- */
nav {
    background: #111;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #FFD700;
}

nav > ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 8px;
    gap: 2px;
}

nav > ul > li {
    position: relative;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 0.82em;
    font-weight: 500;
    display: block;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

nav > ul > li > a:hover,
nav > ul > li > a:focus {
    background: #FFD700;
    color: #000;
    text-decoration: none;
}

/* Dropdown */
.nav-dropdown { position: relative; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    min-width: 210px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 2000;
    padding: 6px 0;
    border-top: 2px solid #FFD700;
    list-style: none;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu {
    display: block;
}

.dropdown-menu li { margin: 0; }

.dropdown-menu a {
    padding: 7px 16px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font-size: 0.85em;
    color: #ccc !important;
}

.dropdown-menu a:hover {
    background: #FFD700 !important;
    color: #000 !important;
    text-decoration: none;
}

/* --- Breadcrumb --- */
.breadcrumb {
    padding: 10px 16px;
    background: #fafafa;
    font-size: 0.8em;
    color: #888;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #555;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: #c41e1e;
    text-decoration: none;
}

/* --- Hero Image --- */
.hero-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* --- Main Content --- */
main {
    padding: 0;
}

section {
    padding: 32px 16px;
    scroll-margin-top: 56px;
}

section:nth-child(even) {
    background: #fafafa;
}

/* --- Typography --- */
h2 {
    font-size: 1.6em;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #FFD700;
    line-height: 1.3;
}

h3 {
    font-size: 1.2em;
    color: #1a1a1a;
    margin: 28px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #c41e1e;
    line-height: 1.3;
}

p {
    margin-bottom: 16px;
    line-height: 1.75;
}

strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* --- Grid & Cards --- */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 0;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    border-top: 3px solid #FFD700;
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card h3 {
    border-left: none;
    padding-left: 0;
    margin-top: 0;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* --- Highlight Box --- */
.highlight {
    background: #fffbe6;
    border: 1px solid #FFD700;
    border-left: 5px solid #FFD700;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
}

.highlight h3 {
    border-left: none;
    padding-left: 0;
    margin-top: 0;
    color: #1a1a1a;
    font-size: 1.1em;
}

.highlight p:last-child {
    margin-bottom: 0;
}

/* --- Facts Table --- */
.facts-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.facts-table tr {
    border-bottom: 1px solid #eee;
}

.facts-table tr:last-child {
    border-bottom: none;
}

.facts-table td {
    padding: 10px 12px;
    vertical-align: top;
}

.facts-table td:first-child {
    font-weight: 700;
    color: #1a1a1a;
    background: #fafafa;
    width: 38%;
    border-right: 2px solid #FFD700;
}

/* --- Images --- */
.section-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 16px 0;
}

.section-image-small {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin: 12px 0;
}

.image-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
}

.image-row img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

figure {
    margin: 20px 0;
}

figure figcaption {
    font-size: 0.8em;
    color: #999;
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}

/* --- Links Section --- */
.links-section {
    background: #fafafa;
    padding: 24px 16px;
    border-top: 2px solid #eee;
}

.links-section h2 {
    text-align: center;
    font-size: 1.3em;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.link-card {
    background: #fff;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #eee;
    border-left: 3px solid #FFD700;
    transition: border-color 0.2s;
}

.link-card:hover {
    border-left-color: #c41e1e;
}

.link-card a {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.95em;
}

.link-card p {
    font-size: 0.82em;
    color: #888;
    margin: 4px 0 0;
}

/* --- Subpages Section --- */
.subpages-section {
    padding: 32px 16px;
    background: #fafafa;
    border-top: 2px solid #eee;
}

.subpages-section h2 {
    text-align: center;
    display: block;
    font-size: 1.4em;
}

.subpages-section > p {
    text-align: center;
    color: #888;
    margin-bottom: 24px;
    font-size: 0.95em;
}

.subpages-category {
    margin-bottom: 24px;
}

.subpages-category h3 {
    font-size: 1.05em;
    border-left: 3px solid #FFD700;
    margin: 0 0 12px;
    padding-left: 10px;
}

.subpages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.subpage-card {
    background: #fff;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #eee;
    border-left: 3px solid #FFD700;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.subpage-card:hover {
    border-left-color: #c41e1e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.subpage-card a {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.9em;
}

.subpage-card p {
    font-size: 0.78em;
    color: #999;
    margin: 3px 0 0;
}

/* --- Footer --- */
footer {
    background: #1a1a1a;
    color: #ccc;
    text-align: center;
    padding: 28px 16px;
    border-top: 3px solid #FFD700;
    font-size: 0.85em;
}

footer a {
    color: #FFD700;
}

footer a:hover {
    color: #fff;
}

footer h2 {
    color: #FFD700;
    font-size: 1.2em;
    border-bottom: 2px solid #333;
    display: inline-block;
}

footer p {
    line-height: 1.6;
}

/* ==================================
   Tablet (min-width: 600px)
   ================================== */
@media (min-width: 600px) {
    header {
        padding: 28px 24px;
    }

    h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 0.95em;
    }

    nav a {
        font-size: 0.88em;
        padding: 8px 14px;
    }

    .hero-image {
        height: 280px;
    }

    section {
        padding: 40px 24px;
    }

    h2 {
        font-size: 1.9em;
    }

    h3 {
        font-size: 1.35em;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .image-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .image-row img {
        height: 200px;
    }

    .section-image {
        height: 260px;
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .subpages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .breadcrumb {
        padding: 12px 24px;
    }

    .facts-table {
        font-size: 0.95em;
    }

    .facts-table td {
        padding: 12px 16px;
    }
}

/* ==================================
   Desktop (min-width: 960px)
   ================================== */
@media (min-width: 960px) {
    .container {
        max-width: 1100px;
        margin: 0 auto;
        box-shadow: 0 0 40px rgba(0,0,0,0.08);
    }

    header {
        padding: 32px 32px;
    }

    h1 {
        font-size: 2.4em;
    }

    .subtitle {
        font-size: 1.05em;
    }

    nav > ul {
        gap: 4px;
        padding: 10px 16px;
    }

    nav a {
        font-size: 0.92em;
        padding: 9px 16px;
    }

    .hero-image {
        height: 360px;
    }

    section {
        padding: 48px 40px;
    }

    h2 {
        font-size: 2.2em;
    }

    h3 {
        font-size: 1.45em;
    }

    p {
        text-align: justify;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .card {
        padding: 24px;
    }

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

    .image-row img {
        height: 220px;
    }

    .section-image {
        height: 320px;
        border-radius: 12px;
    }

    .section-image-small {
        height: 220px;
    }

    .links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .subpages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .subpages-section {
        padding: 48px 40px;
    }

    .breadcrumb {
        padding: 14px 40px;
        font-size: 0.85em;
    }

    footer {
        padding: 36px 40px;
    }
}

/* ==================================
   Large Desktop (min-width: 1200px)
   ================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .subpages-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .links-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
