/* stoff-novelle.de — gemeinsamer Stil fuer alle drei Seiten.

   14.08.2026 aus dem <style>-Block der Startseite herausgeloest. Mit drei
   Dokumenten waere daraus dreimal dieselbe Kopie geworden, und Kopien
   driften. */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #3a3a3a;
    background-color: #f9e8ec;
    background-image: url("images/hintergrund.png");
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 60%;
    padding-top: 36px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #d48490;
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    font-size: 14px;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #d48490;
    outline-offset: 2px;
}

.page-wrapper {
    max-width: 960px;
    margin: 0 auto;
    min-height: 100vh;
}

.content-wrapper {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.12);
}

/* Header */
header {
    padding: 30px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
}

header a {
    display: inline-block;
    text-decoration: none;
    color: #6b2d5b;
}

header .logo-text {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #6b2d5b;
    display: block;
}

header .logo-subtitle {
    font-size: 15px;
    letter-spacing: 2px;
    color: #6b2d5b;
    margin-top: 6px;
    display: block;
}

header .logo-tagline {
    font-size: 13px;
    letter-spacing: 3px;
    color: #d48490;
    margin-top: 2px;
    text-transform: uppercase;
}

/* Navigation bar */
nav {
    background: #d48490;
    padding: 6px 0;
    text-align: center;
}

nav a {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.5px;
}

nav a:hover,
nav a:focus-visible {
    background: rgba(255, 255, 255, 0.2);
}

nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.15);
}

nav a:focus-visible {
    outline-offset: -2px;
    outline-color: #fff;
}

/* Banner slideshow (for when images are added) */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f0c4cb, #e8919b, #d48490);
    aspect-ratio: 4 / 1;
}

.banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.banner img.active {
    opacity: 1;
}

/* Main content */
main {
    padding: 40px;
}

.welcome {
    margin-bottom: 35px;
}

.welcome h1 {
    font-size: 22px;
    color: #6b2d5b;
    margin-bottom: 15px;
    font-weight: 600;
}

.welcome p {
    color: #555;
    margin-bottom: 12px;
}

/* Opening hours */
.info-section {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.info-card {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #f0c4cb;
    border-radius: 6px;
    padding: 25px;
}

.info-card h2 {
    font-size: 16px;
    color: #6b2d5b;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid #e8919b;
    padding-bottom: 8px;
}

.hours-table {
    width: 100%;
    font-size: 14px;
}

.hours-table tr td {
    padding: 4px 0;
    color: #555;
}

.hours-table tr td:last-child {
    text-align: right;
    white-space: nowrap;
}

.info-card p {
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-card a {
    color: #d48490;
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

/* Maintenance banner */
.maintenance-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(107, 45, 91, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fce8ee;
    text-align: center;
    padding: 8px 20px;
    font-size: 13px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.maintenance-banner a {
    color: #fff;
    text-decoration: underline;
}

.maintenance-banner .sep {
    margin: 0 8px;
    opacity: 0.5;
}

/* Impressum & Datenschutz */
.legal[open] > .legal-content {
    padding: 0 0 30px;
}

.legal-content h3 {
    font-size: 15px;
    color: #6b2d5b;
    margin: 20px 0 8px;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 10px;
    color: #555;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content a {
    color: #d48490;
}

/* Cookie notice */
.cookie-info {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #f0c4cb;
    border-left: 5px solid #d48490;
    border-radius: 4px;
    padding: 15px 20px;
    margin: 25px 0;
    font-size: 14px;
    color: #5a3a4a;
}

/* Footer */
footer {
    background: #d48490;
    color: #fff;
    text-align: center;
    padding: 20px 40px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        padding: 20px;
    }

    header .logo-text {
        font-size: 24px;
        letter-spacing: 4px;
    }

    main {
        padding: 25px 20px;
    }

    nav {
        text-align: center;
    }

    nav a {
        display: block;
        padding: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 0;
    }

    .welcome h1 {
        font-size: 18px;
    }

    .info-section {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- Rechtstext-Seiten -------------------------------------------------- */

.seiten-titel {
    font-size: 22px;
    color: #6b3f5b;
    margin-bottom: 20px;
}

.legal-content h2 {
    font-size: 17px;
    color: #6b3f5b;
    margin: 22px 0 8px;
}

/* Fusszeile: Impressum und Datenschutz sind jetzt ZUSAETZLICH hier verlinkt,
   nicht mehr nur im Menue. Dort suchen Besucher sie zuerst. */
footer p {
    margin: 0;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: inherit;
    text-decoration: underline;
    padding: 4px 8px;          /* Tippziel, nicht nur Textbreite */
    display: inline-block;
}

/* Sehr schmale Geraete (unter 361 px).

   Gemessen statt geschaetzt: bei 320 px stehen dem Inhalt 280 px zur
   Verfuegung. Die Oeffnungszeiten-Tabelle laesst sich nicht unter 261 px
   zusammendruecken — die Zeile „Montag – Mittwoch  10:00 – 13:00 / 15:00 –
   18:00" haelt sie auf, und die Zeitangaben duerfen NICHT umbrechen
   (`white-space: nowrap` in .hours-table td:last-child, zu Recht).
   Mit 2 x 25 px Polsterung der Karte ergab das 311 px — 31 px zu viel,
   die Seite lief waagerecht ueber.

   Geholt werden die fehlenden Pixel aus Polsterung und Schriftgrad, nicht
   aus dem Zeilenumbruch: eine zerrissene Uhrzeit liest sich schlechter als
   eine etwas kleinere. */
@media (max-width: 360px) {
    .info-card {
        padding: 14px;
        min-width: 0;          /* sonst haelt min-width: 250px die Karte auf */
    }

    .hours-table {
        font-size: 13px;
    }
}
