﻿/* TOKYO NIGHT - DEFINITIVE STOCKHOLM EDITION */

/* 1. Schriftarten laden */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg: #1a1b26;
    --fg: #a9b1d6;
    --dark: #16161e;
    --blue: #7aa2f7;
    --cyan: #7dcfff;
    --purple: #bb9af7; /* Tokyo Magenta für Meta-Daten */
    --comment: #565f89;
    --border: #292e42;
    --selection: #364a82;
    --blockquote-accent: #7aa2f7; /* Tokyo Blue */
    --important-accent: #0db9d7;  /* Tokyo Cyan */
    --separator: #292e42;         /* Tokyo Border/Separator */
    --code: #9ece6a;              /* Tokyo Green für Inline-Code */
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #d5d6db;
        --fg: #343b58;
        --dark: #f0f1f4;
        --blue: #2e7de9;
        --cyan: #2e7de9;
        --purple: #9854f1;
        --border: #abb1bb;
        --blockquote-accent: #2e7de9; /* Kräftiges Blau */
        --important-accent: #006a83;  /* Dunkleres Cyan */
        --separator: #d5d6db;         /* Hellgraue Linie */
        --code: #485e30;              /* Dunkelgrün für Lesbarkeit */
    }
}

/* GRUND-STYLING */
body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: 'Inter', sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11'; 
    line-height: 1.4;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 900px;
    margin: 0 auto;
    /*padding: 0 40px;*/
}

/* HEADER & NAVIGATION (Horizontal ohne Bulletpoints) */
.header {
    background-color: var(--dark);
    padding: 1.5rem 2rem;
    margin: 30px 0 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
 border-radius: 20px;
	}

.header .sitename h1 a {
    color: var(--cyan);
    font-weight: 800;
    text-decoration: none;
    font-family: 'Inter', sans-serif !important;
    font-size: 2.6rem;
    letter-spacing: -0.05em;
    border: none;
}

.content .main > h1:first-child {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
}
/* Trennlinie zwischen Blog-Artikeln */
.content .entry {
    border-bottom: 1px dotted var(--border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

/* Die Linie beim letzten Artikel auf der Seite entfernen */
.content .entry:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.navigation {
    float: none; /* Reset Stockholm float */
}

.navigation ul {
    display: flex;       /* Stellt die Listenelemente nebeneinander */
    list-style: none;    /* Entfernt die Bulletpoints */
    margin: 0;
    padding: 0;
    gap: 2rem;           /* Abstand zwischen den Links */
}

.navigation li {
    display: inline;
}

.navigation a {
    color: var(--fg);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
    border: none;
}

.navigation a:hover, 
.navigation a.active {
    color: var(--blue);
}

/* CONTENT & META-DATEN (Lila & Mono) */
.content h1 {
    color: var(--blue);
    font-size: 3rem;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 2.5rem;
    letter-spacing: -0.05em;
	line-height: 3.2rem;
}

/* Spezifisch für Datum/Autor (entry-meta) */
.entry-meta,
.entry-metadata,
.content .entry-meta,
.content p em {
    font-family: 'JetBrains Mono', monospace !important;
    color: var(--purple) !important;
    font-style: normal !important;
    font-size: 0.9rem !important;
    /*display: block;*/
    margin-bottom: 1rem;
}

/* 4. TAGS (HOVER-FIX FÜR HELLEREN TEXT) */
.entry-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.85rem !important;
    color: var(--comment) !important;
}

.entry-tags a {
    color: var(--green) !important;
    background-color: rgba(158, 206, 106, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none !important;
    margin-left: 5px;
    border: 1px solid rgba(158, 206, 106, 0.3) !important;
    transition: all 0.2s ease-in-out;
    display: inline-block;
}

/* Der Fix: Text wird beim Hovern hell und der Hintergrund dunkler/kräftiger */
.entry-tags a:hover {
    background-color: var(--green) !important;
    color: var(--cyan) !important; /* Nutzt deine dunkle Hintergrundfarbe als Schriftfarbe auf dem hellen Grün */
    box-shadow: 0 0 5px rgba(158, 206, 106, 0.6); 
    border-color: var(--green) !important;
}
.content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* LINKS */
a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--cyan);
    text-decoration: underline;
}

/* FOOTER */
.footer {
    margin: 100px auto 50px auto;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    color: var(--comment);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

::selection {
    background: var(--selection);
}

hr {
    height: 1px;
    background: var(--border);
    border: 0;
    margin: 2em 0;
}
/* --- TOKYO NIGHT MOBILE & LIGHT MODE FIXES --- */

/* 1. LIGHT MODE: Purple entfernen, Name Blau */
@media (prefers-color-scheme: light) {
    :root {
        --bg: #ffffff !important;
        --fg: #343b58 !important;
        --dark: #f0f1f4 !important;    /* Neutrales Grau statt Purple */
        --blue: #2e7de9 !important;
        --cyan: #2e7de9 !important;    /* Seitenname jetzt Blau statt Grün */
        --purple: #8c6eda !important;
        --border: #d5d6db !important;
    }
}

/* 2. MOBILE Layout-Kollaps verhindern */
@media screen and (max-width: 600px) {
     .header {
        flex-direction: column !important; /* Stapelt OW. und Navi */
        padding: 0.8rem 0.5rem !important;
        /*gap: 0.4rem !important;*/
        text-align: center;
	border-radius: 10px;
	margin-top:15px;
    }

    .navigation ul {
        gap: 1.2rem !important;
        justify-content: center !important;
        flex-wrap: wrap; /* Verhindert das Rausrutschen der Links */
    }

    .header .sitename h1 a {
        font-size: 2.8rem !important; /* Kräftige Größe für Mobile */
        display: block;
        margin-bottom: 0.2rem;    
    }

    .content h1 {
        font-size: 1.8rem !important; /* Überschrift skaliert auf Handy */
        margin-bottom: 1.5rem !important;
	  line-height: 2rem;
    }

    .page {
        padding: 0 15px !important; /* Mehr Platz für Content auf kleinen Screens */
    }
}

/* 3. TAGS: Weißer Text bei Mouseover erzwingen */
.entry-tags a:hover {
    background-color: #2d4f3a !important; /* Dunkler Kontrast-Hintergrund */
    color: #ffffff !important;           /* Absolut WEISSER Text */
    box-shadow: 0 0 12px rgba(158, 206, 106, 0.4) !important; 
    border-color: var(--green) !important;
}

/* 4. SEITENNAME: Farbschutz */
.header .sitename h1 a {
    color: var(--cyan) !important;
}

/* --- ZUSÄTZLICHE STOCKHOLM INTEGRATION (TOKYO STYLE) --- */

/* Code und Pre-Blöcke */
.content code, 
.content pre {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 90%;
}

.content code {
    padding: 0.15em 0.4em;
    background-color: var(--code-bg);
    color: var(--purple);
    border-radius: 3px;
}

.content pre {
    padding: 1em;
    overflow: auto;
    line-height: 1.45;
    background-color: var(--code-bg);
    color: var(--fg);
    border-radius: 6px;
    border: 1px solid var(--border);
    margin: 1.5em 0;
}

.content pre > code {
    padding: 0;
    background: transparent;
    color: inherit;
}

/* Zitate (Blockquote) */
.content blockquote {
    margin: 1.5em 0;
    padding-left: 1.5em;
    border-left: 8px solid var(--blockquote-accent);
    color: var(--fg);
    /*font-style: italic;*/
}

/* Wichtige Info-Boxen (Important) */
.content .important {
    margin: 1.5em 0;
    padding: 1rem;
    background-color: var(--important-bg);
    border-left: 6px solid var(--blue);
    border-radius: 4px;
}

/* Tabellen-Styling */
.content table {
    border-collapse: collapse;
    margin: 1.5em 0;
    width: 100%;
}

.content th {
    border-bottom: 2px solid var(--border);
    padding: 0.5em;
    text-align: left;
    color: var(--blue);
}

.content td {
    padding: 0.5em;
    border-bottom: 1px solid var(--border);
}

/* Hilfsklassen (Left, Right, Center) */
.content .left { float: left; margin: 0 1em 0 0; }
.content .right { float: right; margin: 0 0 0 1em; }
.content .center { display: block; margin: 0 auto; }


/* LAST.FM FOOTER (TOKYO NIGHT STYLE) */
.footer-lastfm {
    margin: 20px 0 0 0 !important; /* Kein Margin nach unten */
    padding: 10px 0 !important;
    /*border-top: 1px dashed var(--border);*/
}

.footer-lastfm a {
    display: flex !important;
    flex-direction: row !important; /* Bild links, Text rechts daneben */
    align-items: center !important;
    gap: 12px;
    text-decoration: none !important;
    margin-bottom: 0 !important; /* Verhindert Leerraum */
}

.lastfm-cover-art {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    flex-shrink: 0;
}

.lastfm-text-wrapper {
    display: flex;
    flex-direction: column !important; /* TEXT WIEDER UNTEREINANDER */
    justify-content: center;
    gap: 2px;
}

.lastfm-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--blue);
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1;
}

.lastfm-track {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--purple);
    line-height: 1.2;
}

/* FIX FÜR WEISSEN PLATZ UNTEN */
.footer {
    margin-top: 5px !important;
    padding-top: 0 !important;
    padding-bottom: 20px !important;
}

.siteinfo p {
    margin: 0 !important; /* Entfernt den Standard-Abstand des Copyright-Texts */
    font-size: 0.75rem;
}

/* FOOTER BOTTOM ROW - SIDE BY SIDE */
.footer-bottom-row {
    display: flex !important;
    justify-content: space-between !important; /* Schiebt Last.fm nach links, Siteinfo nach rechts */
    align-items: center !important;
    /*border-top: 1px dashed var(--border);*/
    padding-top: 15px;
    margin-top: 20px;
}

/* Last.fm Fixes */
.footer-lastfm {
    margin: 0 !important;
}

.footer-lastfm a {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* FOOTER BOTTOM ROW - CLEANUP */
.footer-bottom-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important; /* Richtet Text an der Unterkante aus */
    border-top: none !important;      /* LÖSCHT DIE GEPUNKTETE LINIE */
    padding-top: 20px;
    margin-top: 20px;
}

/* Siteinfo (Copyright oben, Impressum unten) */
.siteinfo {
    display: flex;
    flex-direction: column; /* Zweizeilig untereinander */
    align-items: flex-end;   /* Rechtsbündig stapeln */
    gap: 2px;                /* Kleiner Abstand zwischen den Zeilen */
    margin-bottom: 12px !important;
}

.siteinfo p {
    margin: 0 !important;
    text-align: right !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--comment);
}

.siteinfo a {
    color: var(--blue) !important;
    text-decoration: none;
}

.siteinfo a:hover {
    text-decoration: underline;
}

/* Mobile: Auf dem Handy mittig stapeln */
@media screen and (max-width: 600px) {
    .footer-bottom-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px;
    }
    .siteinfo {
        align-items: center !important;
    }
    .siteinfo p {
        text-align: center !important;
        margin-bottom: 15px !important; /* Schiebt Copyright/Impressum 6px+ nach oben */
        transform: translateY(-6px); /* Präzise Verschiebung nach oben */
    }
    .footer {
        padding-bottom: 10px !important; /* Erzeugt Platz für die iPhone-Gestenleiste */
    }
}

/* Container */
.webring-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 2rem;
    font-family: monospace;

}

/* Button "Stealth" Basis-Style */
.webring-btn {
    text-decoration: none;
    
    /* Hintergrund transparent oder ganz leicht abgesetzt */
    background-color: transparent; 
    
    /* Unauffällige Textfarbe */
    color: var(--fg);
    
    /* Dezenter Rahmen (grau/dunkelblau je nach Mode) statt knalligem Blau */
    border: 1px solid var(--border);
    
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Hover-Effekt: "System Activated" */
.webring-btn:hover {
    /* Jetzt kommt die Farbe ins Spiel */
    background-color: var(--blue);
    color: var(--bg); /* Kontrastfarbe für Text */
    border-color: var(--blue);
    
    /* Glow */
    box-shadow: 0 0 12px var(--blue);
    
    transform: translateY(-2px);
    text-decoration: none;
}

/* Pfeile */
.webring-btn.arrow {
    font-size: 1.1rem;
    padding: 6px 14px;
    line-height: 1;
}

/* =========================================
   Paginierung / Navigation (Cyber-Style)
   ========================================= */

/* Container: Zentriert, Abstand nach oben, dezente Trennlinie */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;               /* Abstand zwischen den Buttons */
   /* margin-top: 60px;*/
    margin-bottom: 40px;
    padding-top: 40px;
    border-top: 1px dashed var(--comment); 
}

/* Die Links als Buttons styling */
.pagination a {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    
    /* Standard-Zustand: Transparent mit blauem Rahmen */
    color: var(--blue);
    background-color: transparent;
    border: 2px solid var(--border);
    border-radius:8px;
    padding: 10px 24px;
    transition: all 0.2s ease-in-out;
}

/* Hover-Effekt: Füllt sich blau, Text wird dunkel, Neon-Glow */
.pagination a:hover {
    background-color: var(--blue);
    color: #0d1117;          /* Dunkler Hintergrund für Kontrast (oder #fff je nach Theme) */
    box-shadow: 0 0 15px var(--blue);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Pfeile etwas absetzen für bessere Lesbarkeit */
.pagination .previous { margin-right: 10px; }
.pagination .next { margin-left: 10px; }
