/* --- Gemeinsame Basis-Styles --- */
@font-face {
    font-family: 'Junicode';
    src: local('Junicode'),
	url('/fonts/JunicodeVF-Roman.woff2') format('woff2-variations'),
	url('/fonts/JunicodeVF-Roman.woff2') format('woff2');
    font-weight: 100 900; 
    font-style: normal;
    font-variant-ligatures: common-ligatures;
    font-display: swap;
}

@font-face {
    font-family: 'Junicode';
    src: local('Junicode Variable Italic'),
	local('Junicode VF Italic'),
	url('/fonts/JunicodeVF-Italic.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: italic;
    font-variant-ligatures: common-ligatures;
    font-display: swap;
}

body {
    background-color: #f5f0e4;
    background-image: url("/css/textures/exclusive-paper.png");
    font-family: 'Junicode', serif;
    color: #2c2c2c;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

h1 {
    font-family: 'Junicode', serif;
    font-size: 2.2em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
    font-variant: small-caps;
    font-feature-settings: "smcp" on, "onum" on;
}

h2 {
	font-size: 1.2em;
	line-height: 1.3;
	margin: 0 0 10px 0;
}

h2 em, h2 i {
    font-weight: 480; 
    font-style: italic;
/*    display: inline-block;   */
}

.subtitle {
    font-style: italic;
    font-size: 1.1em;
    font-variant-ligatures: common-ligatures discretionary-ligatures historical-ligatures;
    font-feature-settings: "liga" on, "dlig" on, "hlig" off, "clig" on, "hist" on;
    color: #555;
}

.proper-name {
    font-variant: small-caps;
    font-style: normal;
}

.mirror {
    display: inline-block; /* Wichtig, damit transform funktioniert */
    transform: scaleX(-1); /* Spiegelt horizontal */
    filter: FlipH;         /* Nur für uralte Internet-Explorer-Versionen */
}

.text-justify {
    text-align: justify;
    hyphens: auto;
    hyphenate-limit-chars: 5 2 2;
}

/* --- Kachel- & Card-System --- */
.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

@media (max-width: 650px) {
    .nav-grid { grid-template-columns: 1fr; }
}

.card, .nav-card {
    background: #f4f4f4;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    display: block; /* Für Links auf der Startseite */
    text-align: justify;
    hyphens: auto;
    hyphenate-limit-chars: 5 2 2;
}

.card:hover, .nav-card:hover {
    transform: translateY(-3px);
	background: #ffffff;
	filter: brightness(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.spam-protected {
    unicode-bidi: bidi-override;
    direction: rtl;
    display: inline-block;
}

/* --- Farbschema & Indikatoren --- */
/* Wir nutzen border-left für alle Kacheln, um konsistent zu bleiben */
.crypto { border-left: 5px solid #004b8d !important; }
.runes  { border-left: 5px solid #8d0000 !important; }
.skand  { border-left: 5px solid #006b3d !important; }
.trust  { border-left: 5px solid #6a4a3a !important; }

/* Spezifisches Leuchten basierend auf der Kategorie */
.crypto:hover { box-shadow: 0 5px 20px rgba(0, 75, 141, 0.2); }
.runes:hover  { box-shadow: 0 5px 20px rgba(141, 0, 0, 0.2); }
.skand:hover  { box-shadow: 0 5px 20px rgba(0, 107, 61, 0.2); }
.trust:hover  { box-shadow: 0 5px 20px rgba(106, 74, 58, 0.2); }

/* Überschriften-Farben und Kapitälchen */
.crypto h2, .crypto h3, .crypto a { color: #004b8d; }
.runes h2, .runes h3, .runes a { color: #8d0000; }
.skand h2, .skand h3, .skand a { color: #006b3d; }
.trust h2, .trust h3, .trust a { color: #6a4a3a; }

h3 { font-variant: small-caps; letter-spacing: 0.5px; }

/* --- News-Spezifische Elemente --- */
.meta {
    font-size: 0.85em;
	font-weight: 400;
    color: #666;
    margin-bottom: 8px;
    font-variant: small-caps;
}

.description {
    font-size: 0.95em;
    color: #444;
}

/* --- Footer (Einheitlich für alle) --- */
footer {
    margin-top: 10px;
    padding: 10px 0;
    border-top: 1px solid #ccc;
    font-size: 0.85em;
    color: #666;
    background: transparent;
}

/* Standard (Mobil): Alles zentriert */
.footer-content {
    display: block;
    text-align: center;
    font-size: 0.9em;
    width: 100%;
    max-width: 900px;
    margin: 5px auto 0 auto;
}

.footer-content p {
    margin: 0 0 10px 0; /* Abstand zwischen den Zeilen im Mobil-Modus */
}

/* Desktop-Modus: Aufteilung Links/Rechts ab 650px Displaybreite */
@media (min-width: 650px) {
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
	text-align: left;
    }
    
    .footer-content p {
        margin: 0; /* Abstände im Desktop-Modus entfernen */
    }
}
