/* ==========================================================================
   mArtin's Tagebuch – Mobiles Stylesheet (stil/mobil.css)
   ========================================================================== */

body {
    font-size: 15px;
    line-height: 1.6;
}

/* --- Kopfbereich (Masthead) für Mobilgeräte angepasst --- */
.site-header {
    padding: 14px 0;
}

.site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 92%;
}

.site-title {
    font-size: 1.6rem;
}

.header-right {
    width: 100%;
    align-items: stretch;
    gap: 10px;
}

/* Bildchen im Header komplett ausblenden */
.header-icon-links {
    display: none !important;
}

/* Mobiler Footer für Links und Impressum */
.mobile-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    margin-top: 32px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    position: sticky;
    bottom: 0;
    z-index: 90;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.mobile-footer-nav a,
.mobile-header-nav a {
    color: var(--text-main);
    text-decoration: none;
}

.mobile-footer-nav a:hover,
.mobile-header-nav a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.impressum-link {
    align-self: flex-end;
    font-size: 0.8rem;
}

/* --- Haupt-Layout: Einspaltig (Sidebar wandert nach unten) --- */
.blog-layout {
    width: 92%;
    margin: 16px auto 40px;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* --- Tagebuch-Einträge --- */
.diary-entry {
    padding: 20px 18px;
    margin-bottom: 20px;
}

.diary-entry-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.diary-entry-actions {
    width: 100%;
    justify-content: flex-start;
}

.diary-entry-body {
    font-size: 1rem;
}

/* --- Kommentar-Bereich --- */
.comment-form-row {
    grid-template-columns: 1fr;
}

.comment-item {
    flex-direction: column;
    gap: 10px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
}

/* --- Kalender & Sidebar --- */
.calendar-nav-form {
    grid-template-columns: 1fr 1fr;
}

.calendar-grid {
    font-size: 0.7rem;
}

.calendar-day {
    padding: 6px 0;
}

/* --- Modals / Dialoge mobil optimieren --- */
.diary-dialog {
    width: 95%;
    padding: 18px 16px;
}

.impressum-dialog {
    width: 98%;
    padding: 16px;
}

.impressum-layout {
    grid-template-columns: 1fr;
}

.impressum-cover {
    max-width: 120px;
    margin: 0 auto 16px;
}

.wiener-tooltip {
    max-width: 90vw;
}
