/* heinz-sauter.de — Stylesheet
   Bewusst einfach gehalten: keine Frameworks, keine externen Schriften,
   kein JavaScript. Systemschriften vermeiden nebenbei das Google-Fonts-Problem. */

:root {
    --rot:        #a33327;  /* Firmenfarbe, vom Logo-Aufkleber abgenommen */
    --rot-dunkel: #7d271d;
    --kupfer:     #b2703f;
    --text:       #23262a;
    --text-leise: #5c6169;
    --linie:      #dcdcd8;
    --hell:       #f6f5f2;
    --weiss:      #ffffff;
    --breite:     62rem;
}

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

html { font-size: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--weiss);
    -webkit-text-size-adjust: 100%;
}

/* ---------- Grundelemente ---------- */

h1, h2, h3 { line-height: 1.25; font-weight: 650; margin: 0 0 0.6em; }
h1 { font-size: 2rem; letter-spacing: -0.015em; }
h2 { font-size: 1.4rem; margin-top: 2.2em; }
h3 { font-size: 1.1rem; margin-top: 1.6em; }

p { margin: 0 0 1.1em; }
a { color: var(--rot); }
a:hover { color: var(--rot-dunkel); }

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

ul { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

.mitte { max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Kopfbereich ---------- */

.kopf {
    border-bottom: 1px solid var(--linie);
    background: var(--weiss);
}

.kopf-innen {
    max-width: var(--breite);
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 1.5rem;
}

/* Das Logo trägt die Zusatzzeile "heizung | sanitär | flaschnerei" bereits
   in sich, deshalb steht daneben kein weiterer Text.
   Original ist 376x144 px — bei 200 px Anzeigebreite bleibt genug Reserve
   für hochauflösende Bildschirme. */
.marke { display: block; text-decoration: none; }

.marke img {
    width: 200px;
    height: auto;
    display: block;
}

.kopf-tel {
    margin-left: auto;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

/* ---------- Navigation ---------- */

.navi { border-bottom: 1px solid var(--linie); background: var(--hell); }

.navi ul {
    max-width: var(--breite);
    margin: 0 auto;
    padding: 0 1.25rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.75rem;
}

.navi li { margin: 0; }

.navi a {
    display: block;
    padding: 0.7rem 0;
    color: var(--text);
    text-decoration: none;
    font-weight: 550;
    border-bottom: 3px solid transparent;
}

.navi a:hover { color: var(--rot); }

.navi a[aria-current="page"] {
    color: var(--rot);
    border-bottom-color: var(--rot);
}

/* ---------- Aufmacher ---------- */

.aufmacher { position: relative; background: var(--text); }

.aufmacher img {
    width: 100%;
    max-height: 30rem;
    object-fit: cover;
    opacity: 0.85;
}

.aufmacher-text {
    max-width: var(--breite);
    margin: 0 auto;
    padding: 1.75rem 1.25rem 2rem;
    color: var(--weiss);
}

.aufmacher-text h1 { margin-bottom: 0.3em; }

.aufmacher-text p {
    margin: 0;
    font-size: 1.15rem;
    color: #d9d9d4;
    max-width: 34em;
}

/* ---------- Inhalt ---------- */

main { padding: 2.5rem 0 3rem; }

.vorspann {
    font-size: 1.15rem;
    color: var(--text-leise);
    max-width: 38em;
}

/* Kartenraster für Leistungen */
.karten {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.karte {
    border: 1px solid var(--linie);
    border-top: 3px solid var(--rot);
    padding: 1.25rem 1.25rem 1.4rem;
    margin: 0;
    background: var(--weiss);
}

.karte h3 { margin-top: 0; }
.karte p:last-child { margin-bottom: 0; }

/* Bildergalerie
   auto-fill statt auto-fit: leere Spalten bleiben bestehen, damit eine
   Galerie mit zwei Bildern dieselbe Bildgröße hat wie eine mit fünf. */
.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.galerie li { margin: 0; }

.galerie figure { margin: 0; }

.galerie img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--linie);
}

.galerie figcaption {
    margin-top: 0.5rem;
    font-size: 0.92rem;
    color: var(--text-leise);
}

/* Kontaktblock */
.kontaktkasten {
    background: var(--hell);
    border-left: 3px solid var(--rot);
    padding: 1.4rem 1.5rem;
    margin: 2rem 0;
}

.kontaktkasten p:last-child { margin-bottom: 0; }

.zeile { display: flex; gap: 0.6rem; margin-bottom: 0.4rem; }
/* Breit genug für die längste Beschriftung ("Registernummer"),
   damit die Werte in allen Blöcken untereinander fluchten. */
.zeile dt { min-width: 8.5rem; color: var(--text-leise); margin: 0; }
.zeile dd { margin: 0; font-weight: 550; overflow-wrap: break-word; min-width: 0; }

dl { margin: 0 0 1.1em; }

/* Entwurfswarnung — sichtbar, damit die Seite nicht versehentlich
   unvollständig online geht. Vor dem Livegang entfernen. */
.entwurf {
    background: #fdf3d7;
    border: 2px solid #d9a520;
    padding: 1rem 1.25rem;
    margin: 0 0 2rem;
    font-size: 0.97rem;
}

.entwurf strong { color: #8a6200; }
.entwurf ul { margin-bottom: 0; }

/* Partnerliste */
.partner {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.75rem;
}

.partner li {
    margin: 0;
    border: 1px solid var(--linie);
    padding: 0.35rem 0.9rem;
    font-size: 0.95rem;
    color: var(--text-leise);
}

/* ---------- Fußbereich ---------- */

.fuss {
    border-top: 1px solid var(--linie);
    background: var(--hell);
    padding: 2rem 0;
    font-size: 0.95rem;
    color: var(--text-leise);
}

.fuss-innen {
    max-width: var(--breite);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    justify-content: space-between;
}

.fuss p { margin: 0 0 0.3em; }
.fuss a { color: var(--text-leise); }
.fuss a:hover { color: var(--rot); }

/* Urhebernennung — bewusst zurückhaltend, eigene Zeile unter dem Fußbereich.
   Der Selektor ist absichtlich zweiteilig: sonst gewinnt die Regel `.fuss p`
   und das zentrierende `margin: auto` greift nicht. */
.fuss p.fuss-urheber {
    max-width: var(--breite);
    margin: 1.5rem auto 0;
    padding: 0.9rem 1.25rem 0;
    border-top: 1px solid var(--linie);
    font-size: 0.85rem;
    color: var(--text-leise);
}

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 40rem) {
    h1 { font-size: 1.6rem; }
    .kopf-tel { margin-left: 0; width: 100%; }
    .navi ul { gap: 0 1.1rem; }
    .aufmacher img { max-height: 15rem; }

    /* Beschriftung über den Wert statt daneben. Nebeneinander bleiben auf
       einem 360 px breiten Display nur rund 155 px für den Wert übrig —
       zu wenig für haustechnik@heinz-sauter.de, die Adresse bricht dann
       mitten im Wort um. Untereinander steht die volle Breite bereit. */
    .zeile {
        display: block;
        margin-bottom: 0.8rem;
    }

    .zeile dt {
        min-width: 0;
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
    }
}

/* ---------- Druck ---------- */

@media print {
    .navi, .aufmacher img { display: none; }
    body { font-size: 11pt; }
    a { color: inherit; text-decoration: none; }
}
