/* ------------------------------------------------------------------
   NICOLE MÜLLER-MARINGER — gemeinsames Stylesheet

   SCHRIFT WECHSELN: nur die beiden Zeilen unter "SCHRIFT" ändern.
   Eine Vorschau mit mehreren Vorschlägen liegt in schriften.html.
   ------------------------------------------------------------------ */

/* SCHRIFT ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400&display=swap');

:root {
    --schrift: 'Jost', system-ui, sans-serif;
    --grund: 14px;          /* Grundgrösse des Fliesstexts */
    --tinte: #1a1a1a;
    --leise: #8a8a8a;
    --linie: #e6e6e6;
    --grund-hell: #f4f4f2;  /* Fläche, solange ein Bild noch lädt */
}

/* GRUNDLAGE -------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: auto; }
body {
    min-height: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    font-family: var(--schrift);
    font-weight: 300;
    font-size: var(--grund);
    line-height: 1.55;
    color: var(--tinte);
    background: #fff;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
.unterstrichen { text-decoration: underline; }

/* KOPFZEILE -------------------------------------------------------- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.95);
    padding: 12px 20px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px;
}
.logo { font-weight: 400; font-size: 13px; letter-spacing: 0.4px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { font-size: 13px; font-weight: 400; letter-spacing: 0.3px; }
.nav a:hover, .nav a.active { text-decoration: underline; }

/* SLIDESHOW (startseite und textseiten) ---------------------------- */
.folie { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.folie.aktiv { opacity: 1; }
.folie img { width: 100%; height: 100%; object-fit: contain; }
.bildtitel { position: fixed; z-index: 50; font-size: 12px; line-height: 1.5; color: var(--leise); white-space: pre-line; }
.bildtitel .nr { color: #b4b4b4; }
.bildtitel b { font-weight: 400; color: var(--tinte); text-transform: lowercase; }

.hero { position: fixed; top: 44px; left: 0; width: 100%; height: calc(100% - 44px); cursor: pointer; background: #fff; }
.hero .folie img { padding: 10px 12px 34px; }
.hero + .bildtitel { top: 52px; right: 20px; text-align: right; }
.hero.leer::after,
.bildseite.leer::after {
    content: 'nicole müller-maringer';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #c4c4c4; font-size: 13px; letter-spacing: 2px;
}

/* TAFEL auf der startseite ----------------------------------------- */
.tafel {
    position: fixed; top: 50%; left: 0; right: 0; transform: translateY(-50%);
    background: rgba(255,255,255,0.9); z-index: 80;
    display: flex; align-items: center; justify-content: center;
    padding: 45px 0; transition: opacity 0.3s;
}
.tafel.versteckt { opacity: 0; pointer-events: none; }
.tafel-schliessen { position: absolute; top: 12px; right: 18px; font-size: 16px; cursor: pointer; font-weight: 300; line-height: 1; opacity: 0.6; }
.tafel-schliessen:hover { opacity: 1; }
.tafel-inhalt { width: 75%; max-width: 860px; }
.tafel-titel { font-size: 15px; font-weight: 400; letter-spacing: 0.4px; margin-bottom: 4px; }
.tafel-unter { font-size: 13px; color: var(--leise); margin-bottom: 18px; }
.tafel-text { font-size: 13px; line-height: 1.75; }
.tafel-text p { margin-bottom: 12px; }
.tafel-text p:last-child { margin-bottom: 0; }

/* TEXTSEITEN ------------------------------------------------------- */
.seite { display: flex; min-height: 100vh; }
.bildseite { position: fixed; top: 0; left: 0; width: 50%; height: 100vh; background: #fff; cursor: pointer; }
.bildseite .folie img { padding: 54px 12px 34px; }
.bildseite + .bildtitel { bottom: 14px; left: 20px; max-width: 42%; }
.textseite { flex: 1; margin-left: 50%; padding: 60px 40px 60px; max-width: 640px; }
.schmal .bildseite { width: 66.666%; }
.schmal .textseite { margin-left: 66.666%; max-width: 560px; padding: 60px 26px 50px; }

h1 { font-size: 15px; font-weight: 400; letter-spacing: 0.4px; margin-bottom: 6px; }
.unter { font-size: 13px; color: var(--leise); margin-bottom: 28px; }
h2 { font-size: 12px; font-weight: 400; letter-spacing: 0.8px; color: var(--leise); margin: 30px 0 10px; }
h2:first-of-type { margin-top: 0; }

.liste { border-top: 1px solid var(--linie); }
.zeile { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px solid #f2f2f2; font-size: 13px; line-height: 1.6; }
.jahr { flex: 0 0 42px; color: var(--leise); font-variant-numeric: tabular-nums; }
.liste.breit .jahr { flex: 0 0 78px; }
.leise { color: var(--leise); }

.text { font-size: 13px; line-height: 1.75; }
.text p { margin-bottom: 14px; }
.block { font-size: 13px; line-height: 1.5; margin-top: 22px; }
.block .name { font-weight: 400; letter-spacing: 0.3px; }
.fussnote { margin-top: 26px; font-size: 12px; color: var(--leise); line-height: 1.7; }
.aussage { margin-top: 34px; padding-left: 14px; border-left: 1px solid #d8d8d8; font-size: 13px; line-height: 1.8; }
.signatur { margin-top: 12px; color: var(--leise); font-size: 12px; }
.schluss { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--linie); font-size: 13px; color: #555; line-height: 1.75; }

/* WERKVERZEICHNIS -------------------------------------------------- */
.filter {
    position: fixed; top: 44px; left: 0; right: 0; z-index: 95;
    background: rgba(255,255,255,0.95); border-bottom: 1px solid var(--linie);
    padding: 8px 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.filter input, .filter select {
    font-family: inherit; font-size: 12px; font-weight: 300; color: var(--tinte);
    background: #fff; border: 1px solid #d8d8d8; padding: 4px 8px; border-radius: 0;
}
.filter input { width: 190px; }
.filter input:focus, .filter select:focus { outline: none; border-color: var(--tinte); }
.zaehler { font-size: 12px; color: var(--leise); margin-left: auto; }
.zuruecksetzen { font-size: 12px; color: var(--leise); cursor: pointer; text-decoration: underline; }

.raster { display: flex; gap: 8px; padding: 92px 8px 40px; align-items: flex-start; }
.spalte { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

.werk { position: relative; overflow: hidden; background: var(--grund-hell); cursor: pointer; }
.werk img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.werk:hover img { transform: scale(1.02); }
.werk:focus-visible { outline: 2px solid var(--tinte); outline-offset: 2px; }
.werk:focus-visible .schild { transform: translateY(0); }

.schild { position: absolute; bottom: 0; left: 0; right: 0; padding: 9px 11px; background: rgba(255,255,255,0.93); transform: translateY(100%); transition: transform 0.3s ease; }
.werk:hover .schild { transform: translateY(0); }
.schild h3 { font-size: 11px; font-weight: 400; margin-bottom: 1px; text-transform: lowercase; }
.schild p { font-size: 10px; color: #6b6b6b; }
@media (hover: none) { .schild { transform: translateY(0); background: rgba(255,255,255,0.88); } }

.hinweis { padding: 130px 20px; text-align: center; color: var(--leise); font-size: 13px; line-height: 1.8; }

/* GROSSANSICHT ----------------------------------------------------- */
.gross { display: none; position: fixed; inset: 0; background: #fff; z-index: 200; }
.gross.aktiv { display: block; }
.gross-kopf { position: fixed; top: 0; left: 0; right: 0; z-index: 210; background: rgba(255,255,255,0.95); padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.gross-bild { position: absolute; top: 44px; left: 0; right: 0; bottom: 62px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 10px 12px; }
.gross-bild img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gross-text { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 20px 16px; display: flex; align-items: flex-end; gap: 20px; background: #fff; }
.gross-text h2 { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--tinte); margin: 0 0 2px; text-transform: lowercase; }
.gross-text p { font-size: 12px; color: var(--leise); }
.gross-blaettern { margin-left: auto; font-size: 12px; color: var(--leise); white-space: nowrap; }
.gross-pfeil { position: fixed; top: 50%; transform: translateY(-50%); z-index: 212; font-size: 26px; font-weight: 300; color: #999; cursor: pointer; padding: 20px 14px; user-select: none; }
.gross-pfeil:hover { color: var(--tinte); }
.gross-pfeil.links { left: 2px; }
.gross-pfeil.rechts { right: 2px; }
.gross-zu { position: fixed; top: 56px; right: 20px; z-index: 212; font-size: 20px; color: #999; cursor: pointer; line-height: 1; }
.gross-zu:hover { color: var(--tinte); }

/* KLEINE BILDSCHIRME ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .folie, .werk img, .schild { transition: none; }
    .werk:hover img { transform: none; }
}

@media (max-width: 900px) {
    .bildseite, .schmal .bildseite { position: relative; width: 100%; height: 46vh; }
    .bildseite .folie img { padding: 10px 12px 28px; }
    .bildseite + .bildtitel { position: absolute; }
    .textseite, .schmal .textseite { margin-left: 0; padding: 26px 20px 50px; max-width: none; }
    .seite { flex-direction: column; padding-top: 80px; min-height: auto; }
    .raster { padding-top: 128px; }
    .gross-bild { top: 70px; }
    .gross-zu { top: 82px; }
}

@media (max-width: 768px) {
    .header, .gross-kopf { padding: 10px 15px; }
    .logo { font-size: 11px; }
    .nav, .gross-kopf .nav { gap: 12px; }
    .nav a { font-size: 11px; }
    .hero { top: 70px; height: calc(100% - 70px); }
    .hero + .bildtitel { top: 78px; right: 15px; }
    .tafel-inhalt { width: 86%; padding: 0 12px; }
    .filter { top: 70px; padding: 8px 15px; gap: 10px; }
    .filter input { width: 140px; }
    .zaehler { width: 100%; margin-left: 0; }
    .raster { padding: 168px 6px 30px; gap: 6px; }
    .spalte { gap: 6px; }
    .gross-pfeil { font-size: 22px; padding: 16px 8px; }
    .liste.breit .jahr { flex: 0 0 70px; }
}
