<?php
header("Content-type: text/css; charset: UTF-8");
?>
/* Web-Font für Symbola / Serif fallback für die Datumsanzeige & Haupttitel */
@font-face {
    font-family: "Spectral SC", serif;
    src: local('Times New Roman'), serif;
}

:root {
    --color-black: #000000;
    --color-orange: #FFA500; /* Auf einheitliches Hellorange wie 'weiterlesen' angepasst */
    --color-line: #f2a97b;   /* Feine orange Linie */
    --font-mono: 'Courier New', Courier, monospace;
    --font-serif: "Spectral SC", serif;
    /* Moderne, extrem gut lesbare System-Schriftart für Fließtexte & Titel (Arial bevorzugt) */
    --font-sans: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
}

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

/* Base-Layout für alle Geräte */
html {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    /* Das Hintergrundbild gehört NUR auf das html-Element */
    background: url('/Hintergrundbilder/Kaskade_1200.jpg') no-repeat center center fixed;
    background-size: cover; /* Sorgt dafür, dass das Bild den Screen komplett füllt */
    font-family: var(--font-sans);
    color: #FFFFFF;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    
    /* ZENTRIERTER CONTAINER-LOOK */
    width: 90vw;              /* Flexibler auf großen Bildschirmen */
    max-width: 1200px;       /* Verhindert extrem breite, schwer lesbare Zeilen */
    margin: 0 auto;          /* Zentriert den gesamten Blog perfekt in der Mitte */
    
    padding: 25px 30px;
    background-color: rgba(26, 26, 26, 0.8); /* Dunkler, leicht transparenter Hintergrund für den Inhalt */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);  /* Optional: Weicher Schatten nach außen */
}

/* Header – Hintergrund-Farbe auf transparent setzen, da der Body jetzt dunkel ist */
header {
    flex-shrink: 0;
    background-color: transparent; 
}

/* Header – oben fixiert */
header {
    flex-shrink: 0;
    background-color: #1A1A1A;
}

header h1 {
    font-family: "Times New Roman", Times, Georgia, serif; /* Klassische, elegante Serif-Schrift */
    font-size: 3.4rem;         /* Etwas größer für mehr Präsenz */
    font-weight: normal;        /* 'normal' statt 'bold', damit die feinen Linien elegant wirken */
    letter-spacing: 1px;        /* Mehr Zeichenabstand gegen den 'gedrungenen' Effekt */
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 5px;
    word-break: break-word;
}

/* ==========================================
   UNTERÜBERSCHRIFT / NAV ZEILE (Archiv | Credo)
   ========================================== */
.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Gemeinsamer Stil für Archiv & Credo: Times New Roman, kursiv, orange (#FFA500) */
.archive-link, 
.blog-label.devisen-toggle {
    font-family: "Times New Roman", Times, Georgia, serif;
    font-style: italic;
    font-size: 1.6rem;
    color: #FFA500;
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    transition: opacity 0.2s ease;
}

/* Unterstreichung beim Drüberfahren (Hover) */
.archive-link:hover, 
.blog-label.devisen-toggle:hover {
    color: #FFA500;
    opacity: 0.8;
    text-decoration: underline;
}

.blog-label {
    margin-right: 0;
}

/* Abwärtskompatibel für alte Sub-Navs */
.sub-nav {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.sub-nav a {
    text-decoration: none;
    margin-right: 12px;
    color: #FFA500;
}

.divider {
    border: none;
    border-top: 1px solid var(--color-line);
}

/* Hauptinhalt – SCROLLBAR & BEITRAGS-FEED */
main.blog-feed {
    flex-grow: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding-top: 25px;
    padding-bottom: 25px;
    padding-right: 10px;

    /* Versteckt den Scrollbalken */
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

main.blog-feed::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Unsichtbarer Anker ganz oben im Feed */
#top {
    display: block;
    height: 0;
    visibility: hidden;
}

/* ==========================================
   AUFKLAPPBARE BEITRÄGE (<details> / <summary>)
   ========================================== */
details.post {
    margin-bottom: 35px;
    padding-bottom: 30px;
    /* Weiße Trennlinie als Abgrenzung zwischen den Beiträgen */
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* Beim letzten Beitrag keine untere Trennlinie anzeigen */
details.post:last-of-type {
    border-bottom: none;
    margin-bottom: 10px;
}

details.post > summary {
    list-style: none;
    cursor: pointer;
}

details.post > summary::-webkit-details-marker {
    display: none;
}

/* BEITRAGSDATUM: In Orange (#FFA500) */
.post-date {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: #FFA500;
    display: block;
    margin-bottom: 4px;
}

/* TITEL DES BEITRAGS: Größer & in Times New Roman (kursiv) */
.post-title {
    font-family: "Times New Roman", Times, Georgia, serif;
    font-size: 2.3rem;
    font-style: italic;
    font-weight: normal;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.post-text {
    font-family: var(--font-sans); /* Arial als primäre Schriftart */
    font-size: 1.1rem;
    color: #FFFFFF;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* VORSCHAUBILD IM FEED (Originalgröße wie in den Beiträgen) */
.post-preview-img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 10px 0 15px 0;
    border: 1px solid var(--color-black);
}

/* "weiterlesen..." Aussehen */
.read-more-btn {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: #FFA500;
    display: inline-block;
    margin-left: 5px;
    text-decoration: underline;
}

details[open] .read-more-btn,
details[open] .post-preview-img {
    display: none !important;
}

.post-full-content {
    padding-top: 10px;
}

/* BILDER IM BEITRAG */
.image-wrapper {
    background-color: transparent;
    width: 100%;
    height: auto;
    margin-top: 15px;
    margin-bottom: 15px;
}

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

/* ==========================================
   SLIDE-IN PANELS (Credo, Impressum, Kontakt)
   ========================================== */

/* Das herausgeschobene Overlay-Panel */
.devise-panel {
    position: fixed;
    top: 0;
    right: -100%; /* Versteckt außerhalb des rechten Bildrands */
    width: 420px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(26, 26, 26, 0.92); /* Leicht transparent über dem Hintergrund */
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7);
    padding: 60px 30px 30px 30px;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Sanftes Hereinschieben */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Zustand wenn aktiv / geöffnet */
.devise-panel.open {
    right: 0;
}

/* Die Texte in den Panels: Times New Roman, kursiv, 1.5rem, Orange */
.devise-text {
    font-family: "Times New Roman", Times, Georgia, serif;
    font-style: italic;
    font-size: 1.5rem;
    color: #FFA500;
    line-height: 1.6;
    margin: 0;
}

.devise-text h3 {
    font-family: "Times New Roman", Times, Georgia, serif;
    font-style: italic;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #FFA500;
}

/* Schließen-Button oben rechts im Panel */
.devise-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.devise-close:hover {
    color: #FFA500;
}

/* Footer – unten fixiert */
footer {
    flex-shrink: 0;
    background-color: transparent;
    color: #FFFFFF;
}

.back-link {
    text-align: right;
    margin-bottom: 10px;
}

.back-link a {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: 3px;
    font-weight: bold;
}

footer .divider {
    margin-bottom: 12px;
}

/* ==========================================
   FOOTER SLIDE-IN LINKS (Impressum & Kontakt)
   ========================================== */
.footer-info {
    margin-top: 8px;
    margin-bottom: 0;
    text-align: left; /* Garantiert reine Linksbündigkeit */
}

.footer-slide-link {
    font-family: "Times New Roman", Times, Georgia, serif;
    font-style: italic;
    font-size: 1.6rem;
    color: #FFA500;
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
    margin-right: 35px; /* Abstand zwischen Impressum und Kontakt */
    display: inline-block;
    transition: opacity 0.2s ease;
}

.footer-slide-link:last-child {
    margin-right: 0; /* Kein rechter Abstand beim letzten Link */
}

.footer-slide-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ==========================================
   ANPASSUNGEN FÜR SMARTPHONES (bis 768px)
   ========================================== */
@media screen and (max-width: 768px) {

    body {
        width: 95vw;
        padding: 15px 10px 15px 15px;
    }

    header h1 {
        font-size: 2.4rem;
        font-weight: normal;
        letter-spacing: 1px;
    }

    .sub-header {
        margin-bottom: 10px;
    }

    .archive-link,
    .blog-label.devisen-toggle,
    .footer-slide-link {
        font-size: 1.3rem;
    }

    .blog-label {
        margin-right: 0;
    }

    main.blog-feed {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .post-title {
        font-size: 1.8rem;
        font-weight: normal;
    }

    .post-date {
        font-size: 1.2rem;
        color: #FFA500;
    }

    .post-text {
        font-size: 1.15rem;
        line-height: 1.5;
    }

    .image-wrapper img {
        width: 100%;
        height: auto;
    }

    .devise-panel {
        width: 100vw;
        max-width: 100vw;
        padding: 50px 20px 20px 20px;
    }

    .devise-text {
        font-size: 1.35rem;
    }

    .back-link {
        margin-bottom: 8px;
    }

    .back-link a {
        font-size: 1.1rem;
    }

    footer .divider {
        margin-bottom: 10px;
    }
}