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

/* Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
}

/* Center content */
.center-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Main title */
.main-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    font-size: 1rem;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.main-nav a:hover {
    border-bottom: 1px solid #1a1a1a;
}

/* Content pages */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: #1a1a1a;
}

/* Text content */
.text-content {
    line-height: 1.9;
    color: #333;
    max-width: none !important;
    font-size: 18px;
}

.text-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.text-content p {
    margin-bottom: 1.5rem;
}

/* -------------------------------- */
/* LINKS — TYPOGRAFISCH SAUBER */
/* -------------------------------- */

/* Normale Links: lesbar umbrechen */
.text-content a {
    color: #1a1a1a;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* URLs: dürfen hart umbrechen (Layout-Schutz) */
.text-content a[href^="http"],
.text-content a[href^="https"],
.text-content a[href^="mailto:"] {
    word-break: break-all;
    overflow-wrap: anywhere;
    hyphens: none;
}

/* Images in text content (Standard) */
.text-content img:not(.about-photo) {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
    margin: 3rem auto;
    border-radius: 4px;
}

/* Text list */
.text-list {
    list-style: none;
}

.text-item {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #eee;
}

.text-item:last-child {
    border-bottom: none;
}

.text-item h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}

.text-item h2 a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.text-item h2 a:hover {
    border-bottom: 1px solid #1a1a1a;
}

.text-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.text-type {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #f5f5f5;
    border-radius: 2px;
    font-size: 0.85rem;
    margin-left: 1rem;
}

.text-excerpt {
    color: #333;
    line-height: 1.7;
}

/* Single text page */
.text-header {
    margin-bottom: 4rem;
}

/* Hide excerpt on single text pages */
.text-header .text-excerpt {
    display: none;
}

.text-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

.text-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    white-space: normal;
    display: block;
}

/* Sources accordion */
.sources-accordion {
    margin-top: 4rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.sources-accordion summary {
    font-size: 1.3rem;
    font-weight: 400;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    user-select: none;
}

.sources-accordion summary::-webkit-details-marker {
    display: none;
}

.sources-accordion summary::before {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: transform 0.2s ease;
}

.sources-accordion[open] summary::before {
    content: '−';
}

.sources-accordion summary:hover {
    color: #1a1a1a;
}

.sources-accordion summary:hover::before {
    color: #1a1a1a;
}

/* About photo */
.about-photo {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 2rem 1rem 2rem 0;
    border-radius: 4px;
    display: inline-block;
    vertical-align: top;
}

/* Product grid */
.product-grid {
    display: grid;
}

/* ========================================= */
/* NEU: Spezial-Klassen für Coaching & Texte */
/* ========================================= */

/* 1. Silbentrennung aktivieren (kein Blocksatz) */
.lesetext {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* 2. Bilder im Lesetext sauber ausrichten */
/* margin-top: 8px sorgt dafür, dass das Bild oben bündig mit dem Text abschließt */
.lesetext img {
    display: inline-block; 
    margin-top: 8px;       
    margin-bottom: 1rem;
}
