/* ==========================================================================
   grassmayr.com – Stylesheet
   Das Design folgt der ursprünglichen Website (Apple iWeb, 2016):
   weisse, zentrierte Spalte mit 700 px Breite, Schrift Arial,
   graue Navigation, dezente Farben.
   ========================================================================== */

:root {
    --text:         rgb(88, 77, 77);   /* Fliesstext          */
    --nav:          rgb(102, 102, 102);/* Navigation          */
    --nav-aktiv:    rgb(70, 60, 60);   /* aktiver Menüpunkt   */
    --titel-grau:   rgb(167, 167, 167);/* Seitentitel (grau)  */
    --titel-dunkel: rgb(10, 10, 10);   /* Seitentitel (Home)  */
    --besucht:      rgb(121, 121, 121);/* besuchte Links      */
    --linie:        rgb(200, 200, 200);/* feine Trennlinien   */
    --hervorhebung: rgb(245, 238, 223);/* Tabellen-Markierung */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: rgb(255, 255, 255);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
}

/* --- Grundgerüst: zentrierte 700-px-Spalte wie im Original --- */

.seite {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

/* --- Hauptnavigation --- */

nav.hauptmenu {
    font-size: 16px;
    line-height: 30px;
    color: var(--nav);
    text-align: center;
    margin: 9px 0 6px 0;
}

nav.hauptmenu a {
    display: inline-block;
    padding: 0 10px;
    color: var(--nav);
    text-decoration: none;
}

nav.hauptmenu a:hover { color: var(--nav-aktiv); }

nav.hauptmenu a.aktiv {
    color: var(--nav-aktiv);
    font-weight: bold;
}

/* feine Linie unter der Navigation (im Original ein 1-px-Bild) */
.trennlinie {
    border: 0;
    border-top: 1px solid var(--linie);
    margin: 0;
}

/* --- Untermenü (Aufbau nach dem Vorbild von pleiterborg.nl) --- */

nav.untermenu {
    font-size: 13px;
    line-height: 24px;
    text-align: center;
    margin: 0 0 10px 0;
}

nav.untermenu a {
    display: inline-block;
    padding: 0 8px;
    color: var(--nav);
    text-decoration: none;
}

nav.untermenu a:hover { color: var(--nav-aktiv); }

nav.untermenu a.aktiv {
    color: var(--nav-aktiv);
    font-weight: bold;
}

/* --- Seitentitel --- */

h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 36px;
    line-height: 42px;
    font-weight: 700;
    text-align: center;
    color: var(--titel-grau);
    margin: 20px 0 18px 0;
}

h1.startseite { color: var(--titel-dunkel); }

/* --- Inhalt --- */

main {
    font-size: 13px;
    line-height: 18px;
}

main p { margin: 0 0 14px 0; }

/* Zwischentitel wie die "Arial Black"-Überschriften des Originals */
h2 {
    font-family: 'Arial Black', 'Arial-Black', Arial, sans-serif;
    font-size: 14px;
    line-height: 19px;
    font-weight: 800;
    color: var(--text);
    margin: 26px 0 8px 0;
}

h3 {
    font-size: 14px;
    line-height: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 6px 0;
}

main a { color: var(--text); text-decoration: underline; }
main a:visited { color: var(--besucht); }
main a:hover { color: rgb(0, 0, 0); }

main ul, main ol { margin: 0 0 14px 0; padding-left: 22px; }
main li { margin-bottom: 3px; }

/* --- Bilder --- */

img { border: none; max-width: 100%; height: auto; }

/* Spiegelungseffekt wie bei iWeb (wird nicht von allen Browsern
   unterstützt; ohne Unterstützung erscheint das Bild einfach ohne
   Spiegelung) */
.spiegelung {
    -webkit-box-reflect: below 0
        linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.2));
}

figure { margin: 0; }

figcaption {
    font-size: 11px;
    line-height: 15px;
    text-align: center;
    color: var(--besucht);
    padding-top: 4px;
}

/* --- Startseite --- */

.willkommen-bild {
    text-align: center;
    margin: 10px 0 30px 0;
}

/* Die Spiegelung des grossen Bildes nimmt keinen Platz im Layout ein,
   darum bekommt die Unterschrift genügend Abstand nach oben. */
.unterschrift {
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
    text-align: center;
    color: var(--titel-dunkel);
    margin: 120px 0 30px 0;
}

/* --- Über uns: zwei Spalten wie im Original --- */

.zwei-spalten {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.zwei-spalten .spalte-text { flex: 1 1 260px; }
.zwei-spalten .spalte-bild { flex: 1 1 300px; }

.personen-name {
    font-family: 'Arial Black', 'Arial-Black', Arial, sans-serif;
    font-size: 14px;
    line-height: 19px;
    font-weight: 800;
    margin: 0;
}

.personen-herkunft {
    font-family: 'Arial Black', 'Arial-Black', Arial, sans-serif;
    font-size: 13px;
    line-height: 22px;
    font-weight: 800;
    margin: 0 0 14px 0;
}

/* --- Tabellen (Stammliste, Standorte) --- */

table.uebersicht {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    line-height: 18px;
    margin: 0 0 16px 0;
}

table.uebersicht th {
    text-align: left;
    border-bottom: 1px solid var(--linie);
    padding: 5px 8px;
}

table.uebersicht td {
    border-bottom: 1px solid rgb(235, 235, 235);
    padding: 5px 8px;
    vertical-align: top;
}

table.stammliste {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    line-height: 18px;
    margin: 0 0 16px 0;
}

table.stammliste th,
table.stammliste td {
    border: 1px solid var(--linie);
    padding: 6px 8px;
    vertical-align: top;
    text-align: left;
}

table.stammliste th.generation,
table.stammliste td.generation {
    text-align: center;
    width: 42px;
    background: var(--hervorhebung);
    font-weight: 700;
}

table.stammliste ol { margin: 0; padding-left: 20px; }

.legende {
    font-size: 12px;
    line-height: 17px;
    color: var(--besucht);
    margin: 0 0 16px 0;
}

/* --- Fotoalben --- */

.albenliste {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 27px;
    margin: 10px 0 30px 0;
}

.albenliste a {
    text-decoration: none;
    color: var(--text);
}

.albenliste img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.albenliste .albumtitel {
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    padding-top: 8px;
}

.albenliste .albuminfo {
    font-size: 11px;
    line-height: 15px;
    text-align: center;
    color: var(--besucht);
}

.fotoraster {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 10px 0 30px 0;
}

.fotoraster img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* --- Grossansicht (Lightbox) --- */

.grossansicht {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 100;
}

.grossansicht.offen { display: flex; }

.grossansicht img {
    max-width: 92vw;
    max-height: 82vh;
    width: auto;
    height: auto;
}

.grossansicht .bildtitel {
    color: rgb(230, 230, 230);
    font-size: 15px;
    line-height: 22px;
    text-align: center;
    padding: 12px 20px 0 20px;
}

.grossansicht button {
    position: absolute;
    background: none;
    border: none;
    color: rgb(230, 230, 230);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 46px;
    line-height: 1;
    cursor: pointer;
    padding: 15px;
}

.grossansicht button:hover { color: rgb(255, 255, 255); }

.grossansicht .schliessen { top: 5px; right: 12px; }
.grossansicht .zurueck    { left: 5px; top: 50%; transform: translateY(-50%); }
.grossansicht .weiter     { right: 5px; top: 50%; transform: translateY(-50%); }

/* --- Giesserei-Seiten (Inhalte übernommen von pleiterborg.nl) --- */

.vorwort {
    background: var(--hervorhebung);
    padding: 10px 14px;
    font-size: 12px;
    line-height: 17px;
    margin: 0 0 16px 0;
}

.vorwort h2 { margin: 0 0 6px 0; }

.giesserei .separator {
    clear: both;
    height: 14px;
}

.giesserei .small {
    font-size: 11px;
    line-height: 15px;
    color: var(--besucht);
}

.giesserei .small h2 { color: var(--text); }

.giesserei .magazine { overflow: hidden; }

.giesserei sup a { text-decoration: none; }

.giesserei audio { max-width: 100%; }

.giesserei table.style2 {
    border-collapse: collapse;
    font-size: 12px;
    line-height: 17px;
    margin: 0 0 16px 0;
    color: var(--text);
}

.giesserei table.style2 th,
.giesserei table.style2 td {
    border: 1px solid var(--linie);
    padding: 5px 8px;
    vertical-align: top;
    text-align: left;
}

.giesserei table.style2 th { background: var(--hervorhebung); }

.giesserei ol.quellen {
    font-size: 11px;
    line-height: 16px;
    color: var(--besucht);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* --- Fusszeile --- */

footer {
    border-top: 1px solid var(--linie);
    margin-top: 40px;
    padding: 12px 0 30px 0;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    color: var(--titel-grau);
}

footer a { color: var(--titel-grau); }

/* --- kleine Bildschirme --- */

@media (max-width: 500px) {
    h1 { font-size: 28px; line-height: 34px; }
    .fotoraster { grid-template-columns: repeat(2, 1fr); }
    .albenliste { grid-template-columns: 1fr; }
}
