body {
    background-color: #262626;
    color: #d0d0d0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    padding: 0 0 2rem 0;
}

/* Blaue Titelbox */
.title {
    background-color: #1878d0;
    color: #dcdcdc;
    padding: 0.7rem 1rem;   /* Text beginnt 1rem vom Rand */
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.title-text {
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.title img {
    vertical-align: middle;
    height: 80px;
    width: auto;
}

/* Menübox */
.menu {
    line-height: 2.0;
    background-color: #383838;
    border: 1px solid #737373;
    border-radius: 0.3em;
    padding: 0.4rem 0.8rem;
    margin: 1rem 0;
    color: #ffffff;
}

.menu a {
    color: #6aa7d8;            /* dein ritterfips-Blau */
    text-decoration: none;
    padding: 4px 6px;          /* kleine Klickfläche */
    border-radius: 4px;        /* dezente Rundung */
}

.menu a:hover {
    background: #2a2a2a;       /* ruhiger Hover, kein Krach */
}

.menu .user-status {
    margin-left: auto;         /* Login/Logout nach rechts */
    color: #ccc;
    font-size: 0.95em;
}

.menu .logout-link {
    color: #6aa7d8;
    text-decoration: none;
}

.menu .logout-link:hover {
    text-decoration: none;
}

.menu a {
    color: #6aa7d8;            /* dein ritterfips-Blau */
    text-decoration: none;
    padding: 4px 6px;          /* kleine Klickfläche */
    border-radius: 4px;        /* dezente Rundung */
}

.menu a:hover {
    background: #2a2a2a;       /* ruhiger Hover, kein Krach */
}

.menu .user-status {
    margin-left: auto;         /* Login/Logout nach rechts */
    color: #ccc;
    font-size: 0.95em;
}

.menu .logout-link {
    color: #6aa7d8;
    text-decoration: none;
}

.menu .logout-link:hover {
    text-decoration: underline;
}



/* Überschriften */
h2 {
    color: #d4d4d4;
    font-weight: 500;
    margin-top: 0.2rem;
    margin-bottom: 0.7rem;
    padding-left: 7pt;
    letter-spacing: 0.2px;
}

h3 {
    color: #c8c8c8;
    font-weight: 500;
    margin-top: 0.2rem;
    margin-bottom: 0.4rem;
    padding-left: 12px;
    font-size: 1.1rem;
    letter-spacing: 0.2px;
}

/* Text */
p {
    margin: 0.5rem 0;
    padding-left: 7pt;
    color: #cfcfcf;
}

.block {
    margin-bottom: 1.5rem;
}

/* Links */
a {
    color: #6aa7d8;
    text-decoration: none;
}

a:hover {
     color: #8bbce4;
     opacity: 0.90;
     background-color: rgba(255,255,255,0.05);
}

a.external {
    color: #8fbba6;
}
a.external:hover {
    color: #a4cdbc;
}


/* Entfernt h2 aus der globalen Regel */
p, footer, .menu {
    padding-left: 12px;
}

.private {
    color: #FF8C00;
}

/* Linien */
hr {
    border: none;
    border-top: 1px solid #444;
    margin: 0.8rem 0;
}

/* Wrapper */
.wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    box-shadow: 0 0 12px rgba(0,0,0,0.25);
}

/* Footer */
footer, .footer {
    margin-top: 2.5rem;
    padding-left: 7pt;
    font-size: 0.9rem;
    color: #9aa3ad;
    letter-spacing: 0.2px;
}

/* ----------------------------------------------------
   Zweispaltiges Layout – jetzt korrekt eingerückt
   ---------------------------------------------------- */

.layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: flex-start;
    width: 100%;
    padding-left: 1rem;   /* exakt wie .title */
}

/* Sidebar links */
.sidebar {
    padding-left: 0;      /* Sidebar bleibt bündig innerhalb der 1rem */
}

/* Kategorienliste */
.cat-list {
    list-style: none;
    margin-top: 10px;
    padding-left: 7pt;
}

.cat-list li {
    margin-bottom: 16px;
    margin-left: 0;
}

.cat-list a.active {
    font-weight: 600;
    color: #8bbce4;
    text-decoration: underline;
}

/* Rechte Spalte */
.content {
    min-width: 0;
}

/* Favoritenliste rechts */
.fav-list {
    list-style: disc;      /* Strichpunkte */
    padding-left: 20px;    /* Einrückung wie normale Listen */
    margin: 0;
}

/* Einträge */
.entry {
    padding: 8px 0;
    border: none;
}

.entry:last-child {
    border-bottom: none;
}

.entry .title {
    background: none;
    padding: 0;
    margin: 0;
    color: #6aa7d8;        /* normale Linkfarbe */
    font-size: 1rem;
    font-weight: 400;
}

.private-disabled {
    color: #666;          /* ruhiges, dokumentarisches Grau */
    opacity: 0.6;         /* leicht ausgegraut */
    cursor: default;      /* kein Handcursor */
    pointer-events: none; /* NICHT klickbar */
    text-decoration: none;
}


.desc {
    font-size: 14px;
    color: #ccc;
    margin-top: 2px;
    max-width: 60rem;
}

