/* ===========================
   Grundlayout
=========================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F2F2F2; /* hellgrau Hintergrund */
    color: #333333; /* Standardtext Anthrazit */
}

/* ===========================
   Header & Navigation
=========================== */
header {
    background-color: #333333; /* Anthrazit */
    padding: 20px 0;
}

header .container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.8em;
    font-weight: bold;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #F9E79F; /* leichtes Gelb */
}

/* ===========================
   Slider (nur auf index.html)
=========================== */
.slider {
    position: relative;
    max-width: 1200px;
    height: 600px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
}

.slider figure {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    animation: fade 18s infinite;
}

.slider figure:nth-child(1) { animation-delay: 0s; }
.slider figure:nth-child(2) { animation-delay: 6s; }
.slider figure:nth-child(3) { animation-delay: 12s; }

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider figcaption {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

/* Fade Animation */
@keyframes fade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    30% { opacity: 1; }
    35% { opacity: 0; }
    100% { opacity: 0; }
}

/* ===========================
   Buttons
=========================== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #F9E79F; /* Gelb */
    color: #333333;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
    background-color: #e6d47e;
    color: #000000;
}

/* ===========================
   Willkommenstext
=========================== */
.welcome {
    text-align: center;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.welcome h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

.welcome p {
    font-size: 1.2em;
    line-height: 1.6;
}

/* ===========================
   Produktseite
=========================== */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 20px 80px; /* Platz für Footer */
}

.product-item {
    background-color: #FFFFFF;
    width: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h2 {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.95em;
    margin-bottom: 10px;
}

.product-info .price {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
}

/* ===========================
   Newsseite
=========================== */
.news-list {
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.news-list article {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.news-list h2 {
    margin-top: 0;
}

.news-list p {
    line-height: 1.6;
}

/* ===========================
   Content für AGB, Widerruf, Datenschutz, Impressum
=========================== */
.content {
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 0 20px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 20px;
}

/* ===========================
   Footer
=========================== */
/* Footer bleibt am unteren Rand, Text verschwindet nicht */
footer {
    background-color: #333333;
    color: #FFFFFF;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000; /* sicherstellen, dass Footer oben liegt */
}

/* Platz für Footer im Seiteninhalt */
.content,
.welcome,
.product-grid,
.news-list {
    padding-bottom: 100px; /* Höhe des Footers + etwas Abstand */
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

footer ul li {
    margin: 0 15px;
}

footer ul li a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s;
}

footer ul li a:hover,
footer ul li a.active {
    color: #F9E79F;
}

footer p {
    text-align: center;
    margin-top: 10px;
}

/* Pre-Text korrekt umbrechen */
.content pre {
    white-space: pre-wrap;       /* Zeilen werden umgebrochen */
    word-wrap: break-word;       /* lange Wörter umbrechen */
    overflow: auto;              /* falls doch sehr lange Zeilen */
    font-family: inherit;        /* gleiche Schrift wie restlicher Text */
    font-size: 1em;
}
