/*
 * Stylesheet für "Kerstin Geffert – Pressemappe"
 * 2/3–1/3 Grid Layout mit Hover-Menü und DE/EN Umschaltung
 * Inspiriert von silk-relations.com
 */

/* ========================================
   CSS VARIABLEN - FARBSCHEMA
   ======================================== */

:root {
    --bg-page: #f5f5f5;
    --bg-surface: #ffffff;
    --bg-header: #ffffff;
    --bg-modal: #ffffff;
    --bg-quote: #fafafa;
    --text-primary: #111;
    --text-secondary: #666;
    --text-muted: #888;
    --border-color: #e5e5e5;
    --border-light: #f0f0f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ========================================
   BASIS & RESET
   ======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--text-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ========================================
   SPRACHUMSCHALTUNG (DE/EN)
   Robust: Body hat IMMER entweder lang-de ODER lang-en
   ======================================== */

/*
 * WICHTIG: Body MUSS class="lang-de" haben als Default im HTML!
 * JavaScript wechselt zwischen lang-de und lang-en.
 * So ist immer genau eine Sprache sichtbar.
 */

/* === DEUTSCH-MODUS (body.lang-de) === */
body.lang-de .lang-en {
    display: none !important;
}

body.lang-de .lang-de {
    display: block;
}

body.lang-de span.lang-de,
body.lang-de a.lang-de {
    display: inline;
}

/* === ENGLISCH-MODUS (body.lang-en) === */
body.lang-en .lang-de {
    display: none !important;
}

body.lang-en .lang-en {
    display: block;
}

body.lang-en span.lang-en,
body.lang-en a.lang-en {
    display: inline;
}

/* === FALLBACK: Falls Body keine Sprachklasse hat === */
/* (sollte nie passieren, aber sicher ist sicher) */
body:not(.lang-de):not(.lang-en) .lang-en {
    display: none;
}

body:not(.lang-de):not(.lang-en) .lang-de {
    display: block;
}

body:not(.lang-de):not(.lang-en) span.lang-de,
body:not(.lang-de):not(.lang-en) a.lang-de {
    display: inline;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    background-color: var(--bg-header);
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 3-Spalten-Grid: Spacer | Titel | Controls */
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-spacer {
    /* Leerer Spacer links für Zentrierung */
}

.header-center {
    text-align: center;
}

.header-controls {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: opacity 0.2s ease;
}

.social-icon:hover {
    opacity: 0.6;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.site-subtitle {
    margin: 0.3rem 0 0 0;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: lowercase;
}

/* ========================================
   SPRACHUMSCHALTER (DE | EN)
   ======================================== */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.lang-active {
    color: var(--text-primary);
    font-weight: 600;
}

.lang-divider {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ========================================
   HOVER-MENÜ (NAVIGATION)
   ======================================== */

.site-nav {
    position: relative;
}

.nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.nav-toggle:hover {
    color: var(--text-secondary);
}

.nav-icon {
    transition: transform 0.2s ease;
}

.nav-toggle.nav-active .nav-icon {
    transform: rotate(180deg);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--bg-surface);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 200;
}

/* Hover-Zustand (Desktop) */
.site-nav:hover .nav-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Klick-Zustand (Mobile/JS) */
.nav-list.nav-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-primary);
    transition: background-color 0.15s ease;
}

.nav-list a:hover {
    background-color: var(--bg-page);
    color: var(--text-primary);
}

/* ========================================
   PAGE LAYOUT: 2/3 – 1/3 GRID
   ======================================== */

.page-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.column-left {
    /* 2/3 Spalte */
}

.column-right {
    /* 1/3 Spalte */
}

/* ========================================
   KACHELN (TILES)
   ======================================== */

.tile {
    background-color: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tile:hover {
    box-shadow: var(--shadow-md);
}

/* Bild-Kacheln */
.tile-image {
    /* Keine extra Styles nötig */
}

.tile-media {
    position: relative;
    overflow: hidden;
}

.tile-text {
    padding: 1rem 1.25rem 1.25rem;
}

.tile-medium {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.tile-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.tile-date {
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Bild-Wrapper (klickbar für Lightbox) */
.press-image-wrapper {
    position: relative;
    display: block;
    cursor: pointer;
    overflow: hidden;
}

.press-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.press-image-wrapper:hover img {
    transform: scale(1.02);
}

.zoom-hint {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.press-image-wrapper:hover .zoom-hint {
    opacity: 1;
}

/* ========================================
   QUOTE-KACHELN
   ======================================== */

.tile-quote {
    background-color: #888;
    padding: 2.5rem 2rem;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.tile-quote blockquote {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-style: normal;
    line-height: 1.7;
    color: #ffffff;
    border: none;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.quote-meta {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 400;
    color: #e0e0e0;
    letter-spacing: 0.05em;
}

/* ========================================
   VIDEO-KACHELN
   ======================================== */

.tile-video .tile-media {
    background-color: #000;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
}

.lightbox-content img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    padding: 10px;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #333;
    font-size: 48px;
    padding: 20px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 10001;
    border-radius: 4px;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-open-tab {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.lightbox-open-tab:hover {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
}

/* ========================================
   SPREAD MODAL (Zwei Seiten nebeneinander)
   ======================================== */

.spread-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.spread-modal.active {
    display: flex;
}

.spread-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    padding: 10px;
}

.spread-modal-close:hover {
    opacity: 0.7;
}

.spread-modal-content {
    display: flex;
    gap: 4px;
    max-width: 95%;
    max-height: 90vh;
    align-items: center;
    justify-content: center;
}

.spread-modal-page {
    flex: 0 1 auto;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spread-modal-page img {
    max-height: 85vh;
    max-width: 48vw;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 900px) {
    .spread-modal-content {
        flex-direction: column;
        gap: 10px;
    }

    .spread-modal-page img {
        max-height: 45vh;
        max-width: 90vw;
    }
}

/* ========================================
   ARTICLE SPLIT MODAL
   ======================================== */

.article-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.article-modal.active {
    display: flex;
}

.article-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    padding: 10px;
}

.article-modal-close:hover {
    opacity: 0.7;
}

.article-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 95%;
    height: 90%;
    max-width: 1600px;
}

.article-modal-left {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.article-modal-left iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.article-modal-right {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
}

.article-modal-right img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media (max-width: 1024px) {
    .article-modal-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

/* ========================================
   MODALS
   ======================================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1500;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: var(--bg-modal);
    max-width: 500px;
    width: 100%;
    border-radius: 12px;
    padding: 2rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-content-legal {
    max-width: 700px;
}

.modal-content-legal h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: #333;
}

.modal-content-legal h3:first-of-type {
    margin-top: 0.5rem;
}

.modal-content-legal p {
    margin: 0.5rem 0;
    line-height: 1.6;
    font-size: 0.9rem;
    color: #555;
}

.modal-content-legal ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.modal-content-legal li {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.modal-content-legal a {
    color: #333;
    text-decoration: underline;
}

.modal-content-legal a:hover {
    color: #000;
}

/* About Modal */
.modal-content-about {
    max-width: 800px;
    padding: 0;
    overflow: hidden;
}

.about-layout {
    display: flex;
    flex-direction: row;
    min-height: 400px;
}

.about-image {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.about-image img {
    width: 100%;
    flex: 1 1 auto;
    object-fit: cover;
    display: block;
    min-height: 0;
}

.photo-credit {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    background: #f5f5f5;
    white-space: nowrap;
}

.about-text {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h2 {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.about-text p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

.about-cta {
    font-style: italic;
    margin-top: 1rem !important;
    color: var(--text-primary) !important;
}

/* About Modal - Responsive */
@media (max-width: 700px) {
    .about-layout {
        flex-direction: column;
    }

    .about-image {
        flex: 0 0 auto;
        max-width: 100%;
        height: auto;
        position: relative;
    }

    .about-image img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: cover;
        object-position: top center;
    }

    .photo-credit {
        position: relative;
        background: #f5f5f5;
        padding: 0.4rem 1rem;
    }

    .about-text {
        padding: 1.5rem;
        flex: 1;
    }

    .modal-content-about {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Contact Form */
.modal-content-contact {
    max-width: 420px;
}

.modal-content-contact h2 {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.85rem 0;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 300;
    background: transparent;
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
    font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--text-primary);
}

.form-group textarea {
    resize: none;
    min-height: 80px;
    line-height: 1.6;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-color: transparent;
    padding-right: 1.5rem;
}

.form-submit {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: var(--text-primary);
    color: #fff;
}

.contact-success {
    text-align: center;
    padding: 3rem 1rem;
}

.contact-success p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Email Action Link */
.email-action {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.email-action:hover {
    color: var(--text-secondary);
}

.email-action.email-copied {
    color: #2a9d8f;
    text-decoration: none;
    font-weight: 500;
}

.modal-content h2 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-content p {
    margin: 0 0 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: none;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Kontakt E-Mail */
.contact-email {
    margin: 1rem 0;
}

.contact-email a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--text-primary);
    color: #fff;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.contact-email a:hover {
    background-color: var(--text-secondary);
    color: #fff;
}

/* Archiv-Suche */
#archiv-search,
#archiv-search-en {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin: 0.5rem 0 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

#archiv-search:focus,
#archiv-search-en:focus {
    border-color: var(--text-primary);
}

#archiv-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid var(--border-light);
}

#archiv-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

#archiv-list li:hover {
    background-color: var(--bg-page);
}

#archiv-list li strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

#archiv-list li span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-nav a:hover {
    color: var(--text-primary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .page-layout {
        gap: 1.5rem;
        padding: 2rem 1.5rem 3rem;
    }

    .column {
        gap: 1.5rem;
    }

    .site-header {
        padding: 1.5rem;
    }

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

/* Mobile */
@media (max-width: 768px) {
    /* Grid wird einspaltig */
    .page-layout {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem 2rem;
    }

    /* Header-Layout anpassen */
    .site-header {
        padding: 1.25rem 1rem;
    }

    .header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .header-spacer {
        display: none;
    }

    .header-center {
        order: 1;
    }

    .header-controls {
        order: 2;
        justify-self: center;
    }

    .site-title {
        font-size: 1.3rem;
        letter-spacing: 0.15em;
    }

    .site-subtitle {
        font-size: 0.75rem;
    }

    /* Kacheln */
    .tile-text {
        padding: 0.875rem 1rem 1rem;
    }

    .tile-title {
        font-size: 1rem;
    }

    .tile-quote {
        padding: 1.5rem;
    }

    .tile-quote blockquote {
        font-size: 1rem;
    }

    /* Lightbox */
    .lightbox-nav {
        font-size: 32px;
        padding: 15px 10px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 32px;
    }

    .zoom-hint {
        display: none;
    }

    /* Modal */
    .modal {
        padding: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
        max-height: 90vh;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-nav ul {
        justify-content: center;
    }
}

/* Kleine Smartphones */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.1rem;
        letter-spacing: 0.1em;
    }

    .header-controls {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-toggle {
        font-size: 0.85rem;
    }

    .nav-list {
        min-width: 180px;
    }

    .tile-quote blockquote {
        font-size: 0.95rem;
    }

    .lang-switch {
        gap: 0.3rem;
    }

    .lang-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
}

/* ========================================
   ANIMATIONEN (optional, für sanftere UX)
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tile {
    animation: fadeIn 0.4s ease forwards;
}

.column-left .tile:nth-child(1) { animation-delay: 0.05s; }
.column-left .tile:nth-child(2) { animation-delay: 0.1s; }
.column-left .tile:nth-child(3) { animation-delay: 0.15s; }
.column-left .tile:nth-child(4) { animation-delay: 0.2s; }

.column-right .tile:nth-child(1) { animation-delay: 0.075s; }
.column-right .tile:nth-child(2) { animation-delay: 0.125s; }
.column-right .tile:nth-child(3) { animation-delay: 0.175s; }
.column-right .tile:nth-child(4) { animation-delay: 0.225s; }

/* ========================================
   DARK MODE VORBEREITUNG (optional)
   ======================================== */

@media (prefers-color-scheme: dark) {
    /* Kann später aktiviert werden */
    /*
    :root {
        --bg-page: #1a1a1a;
        --bg-surface: #2a2a2a;
        --bg-header: #222;
        --bg-modal: #2a2a2a;
        --bg-quote: #252525;
        --text-primary: #f0f0f0;
        --text-secondary: #aaa;
        --text-muted: #777;
        --border-color: #3a3a3a;
        --border-light: #333;
    }
    */
}
