/* ================================
   Ruhiges Buchdesign — Serif
   ================================ */

/* Basis */
html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: inherit; }

body {
    font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
    font-size: 18px;
    line-height: 1.9;
    color: #1A1A1A;
    background-color: #F8F6F2;

    margin: 40px auto;
    max-width: 680px;
    padding: 0 24px;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;

    hyphens: auto;
    overflow-wrap: break-word;
}

::selection { background: #D6E4F0; }

/* Absätze */
p { margin: 0 0 1.2em; }

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: normal;
    color: #1A1A1A;
    margin: 1.6em 0 0.5em;
    line-height: 1.3;
}

h1 { font-size: 28px; margin-top: 0; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }


/* ----------------
   Navigation
   ---------------- */
.site-header {
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E0E0E0;
}

.site-title {
    font-size: 34px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: 0;
}

.site-title a,
.site-title a:link,
.site-title a:visited {
    color: #1A1A1A;
    text-decoration: none;
}

.site-title a:hover {
    color: #1A1A1A;
    text-decoration: underline;
}

.site-subtitle {
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #999;
    margin: 10px 0 0;
    display: block;
    text-align: center;
}

.site-subtitle::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: #ddd;
    margin: 0 auto 10px;
}

.site-subtitle::after {
    content: '';
    display: block;
    width: 1px;
    height: 18px;
    background: #ddd;
    margin: 12px auto 0;
}

.site-header nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
    margin: 0;
}

.site-header nav ul li {
    display: inline;
    margin: 0 12px;
}

.site-header nav ul li a {
    font-size: 14px;
    color: #888888;
    text-decoration: none;
}

.site-header nav ul li a:hover {
    color: #444444;
    text-decoration: underline;
}

/* Links */
a:link {
    color: #4A6FA5;
    text-decoration: none;
}
a:visited { color: #4A6FA5; }
a:hover   { color: #2a4f85; text-decoration: underline; }
a:active  { color: #1a3f75; }

/* Startseite: Artikel-Links blau */
body.index ul.texte-list a {
    color: #4A6FA5;
}
body.index ul.texte-list a:hover {
    color: #2a4f85;
    text-decoration: underline;
}

/* Main Layout */
main {
    margin-top: 0;
}

/* Listen */
main ul {
    padding-left: 24px;
    list-style: disc;
}
main ul li {
    margin: 4px 0;
}

/* Texte-Liste: keine Punkte, Titel links, Datum rechts daneben */
ul.texte-list {
    list-style: none;
    padding-left: 0;
}
ul.texte-list li {
    display: flex;
    align-items: baseline;
    gap: 0.6em;
    margin: 1.1em 0;
}
ul.texte-list li a {
    font-size: 20px;
}
ul.texte-list li .date {
    font-size: 13px;
    color: #888888;
    white-space: nowrap;
    margin: 0;
    display: inline;
}

/* Intro-Text Startseite */
.site-intro {
    font-size: 18px;
    line-height: 1.8;
    color: #555555;
    text-align: center;
    max-width: 85%;
    margin: 0 auto 2.8em;
    hyphens: none;
}

/* Post-/Artikel-Layout */
.post h2 {
    font-size: 20px;
    font-weight: normal;
    color: #1A1A1A;
    margin-top: 0.8em;
}

/* Datum */
.post .date,
.date {
    font-size: 13px;
    color: #888888;
    margin: -0.3em 0 1.4em;
    display: block;
}

/* Zitate */
blockquote {
    margin: 1em 0 1.4em;
    padding-left: 16px;
    border-left: 2px solid #CCCCCC;
    color: #555555;
    font-style: italic;
}

blockquote p { margin: 0; }

/* Horizontal Rule */
hr {
    border: none;
    border-top: 1px solid #E0E0E0;
    margin: 32px 0;
}

/* Strong / Em */
strong { color: #1A1A1A; font-weight: 700; }
em     { font-style: italic; }

/* Footer */
footer {
    margin-top: 60px;
    padding-top: 16px;
    border-top: 1px solid #E0E0E0;
}

footer a {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #888888;
    text-decoration: none;
}

footer a:hover {
    color: #4A6FA5;
    text-decoration: underline;
}

/* Formulare */
input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: #fff;
    color: #1A1A1A;
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    font-family: inherit;
    font-size: 16px;
}

input::placeholder,
textarea::placeholder { color: #AAAAAA; }

input:focus,
textarea:focus {
    border-color: #4A6FA5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.15);
}

input[type="submit"],
button[type="submit"] {
    background: #4A6FA5;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: normal;
    font-family: inherit;
    font-size: 15px;
    margin-top: 12px;
}

input[type="submit"]:hover,
button[type="submit"]:hover { background: #2a4f85; }

/* Besucherzähler */
.stats {
    position: fixed;
    bottom: 12px;
    left: 16px;
    font-size: 12px;
    color: #AAAAAA;
    font-family: inherit;
}

.stats strong { color: #888888; }

/* Startseite Texte-Section */
body.index section {
    margin: 0;
}

/* Startseite Linkliste */
.index-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-top: 0.5em;
}

.index-nav a {
    color: #1A1A1A;
    text-decoration: none;
    font-size: 16px;
}

.index-nav a:hover {
    color: #1A1A1A;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    body { font-size: 16px; padding: 0 18px; margin: 24px auto; }
    h1   { font-size: 22px; }
    h2   { font-size: 18px; }

    .site-title { font-size: 28px; }

    .site-intro { font-size: 16px; max-width: 95%; }

    ul.texte-list li {
        flex-wrap: wrap;
        gap: 0.2em;
    }
    ul.texte-list li a { font-size: 19px; }
}
