:root {
    --text-color: rgb(255, 0, 0);
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 
}

.logo {
    margin: 10px;
}

#AI_Logo {
    width: 50px;
    height: 50px;
}

#AI_Logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    justify-content: center;
}

.links {
    display: flex;
    justify-content: left;
    align-items: center;
}

.mitte{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;       /* NEU: umbrechen auf kleinen Screens */
    gap: 6px 10px;         /* kleiner Abstand */
}

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

#teaser {
    width: 100vw;
    max-width: none;
    margin: 0;
    height: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;    /* NEU: für absolute Positionierung */
}

#teaser img {
    width: 100vw;           /* Bild füllt den Header */
    height: 100%;
    object-fit: cover;      /* Seiten werden abgeschnitten */
    object-position: center;
    display: block;
}

@media screen and (min-width: 800px) {
    #teaser {
        height: 300px;
    }
}

/*article {
    width: clamp(200px, 50%, 600px);
}*/

.grid {
    display: grid;
    grid-template-columns: 1fr 500px 1fr;
    grid-template-rows: 100px 200px;
    place-items: center;
}

.ausschnitt {
    display: block;
    margin: 24px auto;
    width: 18%;         /* noch kleiner als vorher */
    max-width: 180px;   /* maximale Breite reduziert */
    height: auto;       /* Seitenverhältnis bleibt erhalten */
}



nav {
    position: sticky;
    top: 0px;
    background: #fff;         /* weißer Hintergrund */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* moderner Schatten */
    /* backdrop-filter: blur(5px); */ /* entfernt */
    z-index: 10;
}

footer ul, nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-top: 24px;
    padding-bottom: 24px;
}

footer ul li a ,nav ul li a {
    font-weight: 600;
    padding: 16px;
    color: #111; /* satte schwarze Schrift */
    text-decoration: none;
}

nav ul li a:hover {
    color: #555; /* etwas heller beim Überfahren */
}

section {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
    text-align: justify; /* Blocksatz */
}

/* Dropdown-Menü */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.08);
    z-index: 1;
    border-radius: 6px;
    padding: 0;
    margin: 0;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95em;
}

.dropdown-content a:hover {
    background-color: #ececec;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Global: besseres Sizing + keine horizontale Scrolls */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

.mitte{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;       /* NEU: umbrechen auf kleinen Screens */
    gap: 6px 10px;         /* kleiner Abstand */
}

#teaser {
    width: 100vw;
    max-width: none;
    margin: 0;
    height: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;    /* NEU: für absolute Positionierung */
}

/* Logo/Text über dem Teaser */
.teaser-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    background: rgba(0, 0, 0, 0.6);        /* Dunkler, transparenter Hintergrund */
    color: #fff;                           /* Weiße Schrift */
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.2s ease;
    backdrop-filter: blur(3px);            /* Leichter Blur-Effekt */
}

.teaser-logo:hover {
    transform: translate(-50%, -50%) scale(1.02);
    background: rgba(0, 0, 0, 0.8);        /* Beim Hover etwas dunkler */
    color: #fff;
}

#teaser img {
    width: 100vw;           /* Bild füllt den Header */
    height: 100%;
    object-fit: cover;      /* Seiten werden abgeschnitten */
    object-position: center;
    display: block;
}

@media screen and (min-width: 800px) {
    #teaser {
        height: 300px;
    }
}

/*article {
    width: clamp(200px, 50%, 600px);
}*/

.grid {
    display: grid;
    grid-template-columns: 1fr 500px 1fr;
    grid-template-rows: 100px 200px;
    place-items: center;
}

.ausschnitt {
    display: block;
    margin: 24px auto;
    width: 18%;         /* noch kleiner als vorher */
    max-width: 180px;   /* maximale Breite reduziert */
    height: auto;       /* Seitenverhältnis bleibt erhalten */
}



nav {
    position: sticky;
    top: 0px;
    background: #fff;         /* weißer Hintergrund */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* moderner Schatten */
    /* backdrop-filter: blur(5px); */ /* entfernt */
    z-index: 10;
}

footer ul, nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-top: 24px;
    padding-bottom: 24px;
}

footer ul li a ,nav ul li a {
    font-weight: 600;
    padding: 16px;
    color: #111; /* satte schwarze Schrift */
    text-decoration: none;
}

nav ul li a:hover {
    color: #555; /* etwas heller beim Überfahren */
}

section {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
    text-align: justify; /* Blocksatz */
}

/* Dropdown-Menü */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.08);
    z-index: 1;
    border-radius: 6px;
    padding: 0;
    margin: 0;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95em;
}

.dropdown-content a:hover {
    background-color: #ececec;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Global: besseres Sizing + keine horizontale Scrolls */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

.mitte{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;       /* NEU: umbrechen auf kleinen Screens */
    gap: 6px 10px;         /* kleiner Abstand */
}

#teaser {
    width: 100vw;
    max-width: none;
    margin: 0;
    height: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;    /* NEU: für absolute Positionierung */
}

/* Button-Styles für alle Links und Buttons */
.btn, 
a[style*="background:#ececec"],
button[type="submit"] {
    display: inline-block;
    background: #ececec;
    color: #333;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: none;
    font-size: 1em;
    cursor: pointer;
    box-sizing: border-box;
}

/* Mobile-Optimierungen */
@media (max-width: 600px) {
    #teaser { height: 180px; }
    
    section { 
        padding-left: 16px; 
        padding-right: 16px; 
        max-width: 100%;
    }

    nav ul li a { padding: 10px 12px; font-size: 0.9em; }

    /* Buttons/CTAs vollbreit auf Mobile */
    .btn,
    a[style*="background:#ececec"],
    button[type="submit"] { 
        display: block; 
        width: 100%; 
        text-align: center; 
        margin: 8px 0;
        box-sizing: border-box;
    }

    /* Logo nur auf Startseite mobil ausblenden */
    .home .logo { display: none !important; }

    /* Artikelbild etwas größer auf Mobile */
    .ausschnitt { width: 60%; max-width: 260px; }

    /* Form-Inputs vollbreit */
    input, textarea { width: 100% !important; box-sizing: border-box; }

    /* Dropdown-Menü mobil optimieren */
    .dropdown-content { min-width: 160px; }

    /* Flexbox-Elemente umbrechen */
    .flex { flex-wrap: wrap; gap: 8px; }

    /* Teaser-Logo anpassen */
    .teaser-logo {
        font-size: 1em;
        padding: 10px 20px;
    }
}

/* Tablet-Optimierungen */
@media (min-width: 601px) and (max-width: 900px) {
    section { padding-left: 24px; padding-right: 24px; }
    .ausschnitt { width: 40%; max-width: 300px; }
}

/* Desktop: Logo sicher anzeigen */
@media (min-width: 601px) {
    .logo { display: inline-flex !important; }
}

