/* =============================================================
   Gasthaus Krone Hörbranz – Stylesheet
   Stil: klassisches Vorarlberger Dorfgasthaus
   (Papier, Holz, Tannengrün – Ochsenblutrot nur als Akzent)
   ============================================================= */


/* -------------------------------------------------------------
   1. Farben & Grundwerte (hier zentral anpassen)
   ------------------------------------------------------------- */
:root {
    --papier: #f5f0e6;       /* Seitenhintergrund, wie altes Papier   */
    --papier-dunkel: #ebe3d3; /* abgesetzte Abschnitte                */
    --tinte: #2a2621;         /* Fließtext                            */
    --tinte-hell: #6b6256;    /* Bildunterschriften, Hinweise          */
    --gruen: #2f4636;         /* Tannengrün (Fensterläden)            */
    --holz: #6e4c32;          /* dunkles Holz für Linien               */
    --rot: #7c2f29;           /* Ochsenblut – sparsam einsetzen        */
    --linie: #cfc3ad;         /* feine Trennlinien                     */

    /* Schriften wie Variante B (alte Buchdruck-Optik) */
    --serif: "IM Fell English", Georgia, "Times New Roman", serif;    /* Überschriften */
    --kapitaelchen: "IM Fell English SC", Georgia, serif;            /* kleine Zeilen */
    --sans: "Lora", Georgia, serif;                                   /* Fließtext */

    --breite: 1100px;         /* maximale Inhaltsbreite                */
}


/* -------------------------------------------------------------
   2. Grundlagen
   ------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Platz für die fixe Kopfzeile */
}

body {
    margin: 0;
    background: var(--papier);
    color: var(--tinte);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    font-size: 1.35rem;
    color: var(--gruen);
}

p {
    margin: 0 0 1em;
}

/* Kleine gesperrte Zeile über Überschriften */
.zeile {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rot);
    margin-bottom: 0.6em;
}

.mitte,
.zeile--mitte {
    text-align: center;
}


/* -------------------------------------------------------------
   3. Layout-Hilfen
   ------------------------------------------------------------- */
.innen {
    max-width: var(--breite);
    margin: 0 auto;
    padding: 0 24px;
}

.innen--schmal {
    max-width: 760px;
}

.abschnitt {
    padding: 80px 0;
    border-top: 1px solid var(--linie);
}

.abschnitt--papier {
    background: var(--papier-dunkel);
}

.zweispaltig {
    display: grid;
    gap: 48px;
    align-items: center;
}

.raster {
    display: grid;
    gap: 0;
    margin-top: 32px;
}

@media (min-width: 800px) {
    .zweispaltig {
        grid-template-columns: 1fr 1fr;
    }

    .raster--drei {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* -------------------------------------------------------------
   4. Kopfzeile & Navigation
   ------------------------------------------------------------- */
.kopf {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--papier);
    border-bottom: 3px double var(--holz); /* Doppellinie wie auf alten Karten */
}

.kopf__innen {
    max-width: var(--breite);
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--rot);
}

/* Logo-Bild in der Kopfzeile: GASTHAUS + Krone, darunter KRONE */
.logo img {
    height: 88px;
    width: auto;
}


/* Navigation */
.nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
}

.nav a {
    text-decoration: none;
    font-size: 0.95rem;
}

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

.kopf__telefon {
    font-weight: 600;
    text-decoration: none;
    color: var(--gruen);
    white-space: nowrap;
}

.menueknopf {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--tinte);
    padding: 6px 14px;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Handy: Navigation klappt unter der Kopfzeile auf */
@media (max-width: 900px) {
    .kopf__telefon {
        display: none;
    }

    .logo img {
        height: 62px;
    }

    .menueknopf {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--papier);
        border-bottom: 3px double var(--holz);
    }

    .nav.offen {
        display: flex;
    }

    .nav a {
        padding: 14px 24px;
        border-top: 1px solid var(--linie);
        font-family: var(--serif);
        font-size: 1.25rem;
    }
}


/* -------------------------------------------------------------
   5. Knöpfe & Links
   ------------------------------------------------------------- */
.knoepfe {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.knopf {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gruen);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--gruen);
}

.knopf:hover {
    background: var(--tinte);
    border-color: var(--tinte);
}

.knopf--hell {
    background: transparent;
    color: var(--gruen);
}

.knopf--hell:hover {
    color: #fff;
}

.link {
    color: var(--gruen);
    font-weight: 600;
}

.gross {
    font-family: var(--serif);
    font-size: 1.6rem;
    text-decoration: none;
}


/* -------------------------------------------------------------
   6. Bilder im Rahmen (wie ein Bild an der Gaststubenwand)
   ------------------------------------------------------------- */
.rahmenbild {
    margin: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--linie);
    box-shadow: 0 2px 0 var(--linie);
}

figcaption {
    font-size: 0.85rem;
    color: var(--tinte-hell);
    font-style: italic;
    font-family: var(--serif);
    padding-top: 8px;
}


/* -------------------------------------------------------------
   7. Startbereich
   ------------------------------------------------------------- */
.start {
    padding: 56px 0 80px;
}

.start__innen {
    max-width: var(--breite);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    gap: 40px;
    align-items: center;
}

.start__text p {
    font-size: 1.1rem;
    max-width: 34em;
}

@media (min-width: 900px) {
    .start__innen {
        grid-template-columns: 1.15fr 1fr;
    }
}


/* -------------------------------------------------------------
   8. Küche – Karten mit feinen Trennlinien
   ------------------------------------------------------------- */
.karte {
    padding: 24px 24px 20px 0;
    border-top: 1px solid var(--linie);
}

.karte p {
    margin: 0;
}

@media (min-width: 800px) {
    .karte {
        padding-right: 32px;
    }
}


/* -------------------------------------------------------------
   9. Speisekarte (wie eine gedruckte Wirtshauskarte)
   ------------------------------------------------------------- */
.speisekarte {
    background: var(--papier);
    border: 3px double var(--holz);
    padding: 40px clamp(20px, 5vw, 56px);
}

.speisekarte__bild {
    margin: 24px 0;
}

.gerichte {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.gerichte li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px dotted var(--holz);
}

.gerichte strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 400;
}

.gerichte span {
    color: var(--tinte-hell);
    font-size: 0.95rem;
}

.gerichte b {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    white-space: nowrap;
}

.hinweis {
    font-size: 0.9rem;
    color: var(--tinte-hell);
    margin: 0;
}


/* -------------------------------------------------------------
   10. Catering – grüner Abschnitt
   ------------------------------------------------------------- */
.abschnitt--gruen {
    background: var(--gruen);
    color: #f1ece1;
    border-top: none;
}

.abschnitt--gruen .zeile {
    color: #d9c9a3;
}

.fakten {
    display: grid;
    gap: 0;
    margin: 32px 0;
}

.fakten div {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.fakten dt {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.75;
}

.fakten dd {
    margin: 4px 0 0;
    font-family: var(--serif);
    font-size: 1.5rem;
}

@media (min-width: 800px) {
    .fakten {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}


/* -------------------------------------------------------------
   11. Geschichte – Zeitleiste
   ------------------------------------------------------------- */
.zeitleiste {
    list-style: none;
    margin: 32px 0 0;
    padding: 0 0 0 28px;
    border-left: 2px solid var(--holz);
}

.zeitleiste li {
    position: relative;
    padding-bottom: 36px;
}

/* kleiner Punkt auf der Linie */
.zeitleiste li::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--papier);
    border: 2px solid var(--holz);
    border-radius: 50%;
}

.zeitleiste h3 {
    color: var(--rot);
    font-size: 1.6rem;
}

.zeitleiste figure {
    margin: 0 0 12px;
}


/* -------------------------------------------------------------
   12. Besuch – Öffnungszeiten & Adresse
   ------------------------------------------------------------- */
.zweispaltig {
    align-items: start;
}

.zeiten {
    width: 100%;
    border-collapse: collapse;
}

.zeiten th,
.zeiten td {
    padding: 10px 0;
    border-bottom: 1px solid var(--linie);
    text-align: left;
    vertical-align: top;
    font-weight: 400;
}

.zeiten td {
    text-align: right;
}

address {
    font-style: normal;
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1.4;
    margin-bottom: 16px;
}

.mundart {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--rot);
    margin-top: 24px;
}


/* -------------------------------------------------------------
   13. Fußzeile
   ------------------------------------------------------------- */
.fuss {
    background: var(--tinte);
    color: #d8d0c1;
    padding: 56px 0 24px;
    font-size: 0.95rem;
}

.fuss a {
    text-decoration: none;
}

.fuss a:hover {
    text-decoration: underline;
}

.fuss .zeile {
    color: #b9a983;
}

.fuss__innen {
    display: grid;
    gap: 32px;
}

.fuss__name {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 4px;
}

.fuss__klein {
    max-width: var(--breite);
    margin: 40px auto 0;
    padding: 16px 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (min-width: 800px) {
    .fuss__innen {
        grid-template-columns: 2fr 1fr 1fr;
    }
}


/* =============================================================
   ERGÄNZUNGEN: Inhalte aus der Vorschau-Seite
   ============================================================= */

/* Spalten oben ausrichten (Besuch) */
.zweispaltig--oben {
    align-items: start;
}

/* Eröffnungs-Hinweis im Startbereich */
.eroeffnung {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--holz);
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--gruen);
}

/* Zitat des Gastgebers */
.zitat {
    margin: 36px auto 0;
    padding: 28px 24px 0;
    border-top: 3px double var(--holz);
    max-width: 34em;
}

.zitat p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.zitat cite {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--tinte-hell);
}

.zitat cite::before {
    content: "– ";
}

/* Nummer über den Küchen-Karten */
.karte__nr {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--rot);
    margin-bottom: 2px;
}

/* Eckdaten zum Saal */
.eckdaten {
    margin: 0;
    background: var(--papier);
    border: 3px double var(--holz);
    padding: 8px 28px;
}

.eckdaten div {
    padding: 16px 0;
    border-bottom: 1px solid var(--linie);
}

.eckdaten div:last-child {
    border-bottom: none;
}

.eckdaten dt {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--rot);
}

.eckdaten dd {
    margin: 4px 0 0;
    font-family: var(--serif);
    font-size: 1.35rem;
}

/* heller Link auf grünem Grund */
.link--hell {
    color: #f1ece1;
}

/* Zeitleiste: Bilder etwas Abstand */
.zeitleiste .rahmenbild {
    margin: 8px 0 14px;
}

/* Einladung (Abschluss) auf dunklem Holz */
.einladung {
    background: var(--holz);
    color: #f5f0e6;
    padding: 80px 0;
}

.einladung h2 {
    color: #fff;
}

.einladung .mundart {
    color: #e6d3a3;
}

.knoepfe--mitte {
    justify-content: center;
}

.knopf--creme {
    background: #f5f0e6;
    border-color: #f5f0e6;
    color: var(--holz);
}

.knopf--creme:hover {
    background: #fff;
    border-color: #fff;
    color: var(--holz);
}

.knopf--rand-hell {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.knopf--rand-hell:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* Kontakt-Links untereinander */
.kontaktliste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kontaktliste li {
    padding: 4px 0;
}


/* =============================================================
   ANIMATIONEN
   Alles hängt an der Klasse "js" auf <html>:
   ohne JavaScript oder bei "weniger Bewegung" bleibt die Seite
   ganz normal sichtbar, ohne Effekte.
   ============================================================= */


/* -------------------------------------------------------------
   1. Ladebildschirm
   ------------------------------------------------------------- */
.ladebild {
    display: none;            /* standardmäßig aus */
}

.mit-ladebild .ladebild {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: var(--papier);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* ausblenden, sobald die Seite geladen ist (JS setzt .fertig) */
.mit-ladebild.fertig .ladebild {
    opacity: 0;
    visibility: hidden;
}

.ladebild__inhalt {
    text-align: center;
}

/* Logo: sanft einblenden und leicht anheben */
.ladebild__inhalt img {
    width: min(300px, 70vw);
    height: auto;
    opacity: 0;
    transform: translateY(12px);
    animation: logo-rein 0.6s ease-out 0.05s forwards;
}

/* feine Linie, die sich von der Mitte aus aufzieht */
.ladebild__linie {
    display: block;
    width: 160px;
    height: 1px;
    margin: 18px auto 12px;
    background: var(--holz);
    transform: scaleX(0);
    animation: linie-auf 0.7s ease-in-out 0.25s forwards;
}

.ladebild__text {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rot);
    opacity: 0;
    animation: einblenden 0.4s ease 0.5s forwards;
}

@keyframes logo-rein {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes linie-auf {
    to {
        transform: scaleX(1);
    }
}

@keyframes einblenden {
    to {
        opacity: 1;
    }
}


/* -------------------------------------------------------------
   2. Startbereich: Elemente nacheinander einblenden
   (startet, wenn JS die Klasse .fertig setzt)
   ------------------------------------------------------------- */
.js .start .rahmenbild,
.js .start__text > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js.fertig .start .rahmenbild,
.js.fertig .start__text > * {
    opacity: 1;
    transform: none;
}

/* Verzögerung je Element = Staffelung */
.js.fertig .start .rahmenbild        { transition-delay: 0.05s; }
.js.fertig .start__text > :nth-child(1) { transition-delay: 0.20s; }
.js.fertig .start__text > :nth-child(2) { transition-delay: 0.32s; }
.js.fertig .start__text > :nth-child(3) { transition-delay: 0.44s; }
.js.fertig .start__text > :nth-child(4) { transition-delay: 0.56s; }
.js.fertig .start__text > :nth-child(5) { transition-delay: 0.68s; }
.js.fertig .start__text > :nth-child(6) { transition-delay: 0.80s; }


/* -------------------------------------------------------------
   3. Beim Scrollen hereingleiten
   JS vergibt .einblenden an Elemente und .sichtbar, sobald sie
   im Bild sind. --verzoegerung staffelt Karten in einer Reihe.
   ------------------------------------------------------------- */
.js .einblenden {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--verzoegerung, 0s);
}

.js .einblenden.sichtbar {
    opacity: 1;
    transform: none;
}

/* Bilder in der Chronik: zusätzlich leicht "aufdecken" */
.js .zeitleiste .rahmenbild.einblenden img {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
}

.js .zeitleiste .rahmenbild.einblenden.sichtbar img {
    clip-path: inset(0 0 0 0);
}

/* Punkte der Zeitleiste füllen sich, wenn der Eintrag sichtbar ist */
.zeitleiste li::before {
    transition: background-color 0.6s ease 0.3s;
}

.js .zeitleiste li.sichtbar::before {
    background: var(--holz);
}


/* -------------------------------------------------------------
   4. Kopfzeile wird beim Scrollen schmaler
   ------------------------------------------------------------- */
.kopf__innen,
.logo img {
    transition: padding 0.35s ease, height 0.35s ease;
}

.kopf.geschrumpft {
    box-shadow: 0 6px 18px rgba(42, 38, 33, 0.08);
}

.kopf.geschrumpft .kopf__innen {
    padding-top: 6px;
    padding-bottom: 6px;
}

.kopf.geschrumpft .logo img {
    height: 64px;
}

@media (max-width: 900px) {
    .kopf.geschrumpft .logo img {
        height: 50px;
    }
}


/* -------------------------------------------------------------
   5. Knöpfe: kleiner Hebe-Effekt beim Darüberfahren
   ------------------------------------------------------------- */
.knopf {
    transition: background-color 0.25s ease, color 0.25s ease,
        border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.knopf:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(42, 38, 33, 0.15);
}


/* -------------------------------------------------------------
   6. Postkarte im Startbereich: Parallax (JS setzt --parallax)
   ------------------------------------------------------------- */
.rahmenbild__fenster {
    overflow: hidden;
}

/* nur mit JS leicht vergrößern, damit beim Verschieben kein Rand sichtbar wird */
.js .start .rahmenbild__fenster img {
    transform: translateY(var(--parallax, 0px)) scale(1.08);
    will-change: transform;
}


/* =============================================================
   SCHRIFTEN WIE VARIANTE B
   Kleine Zeilen als echte Kapitälchen (IM Fell English SC)
   statt gesperrter Großbuchstaben – wirkt wie alter Buchdruck.
   ============================================================= */
.zeile,
.fakten dt,
.eckdaten dt,
.ladebild__text {
    font-family: var(--kapitaelchen);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.1em;
    font-size: 1.05rem;
}

/* Kapitälchen-Zeilen im Ladebildschirm etwas kleiner */
.ladebild__text {
    font-size: 0.95rem;
}

/* Überschriften: IM Fell wirkt kleiner als Garamond -> leicht größer */
h1 {
    font-size: clamp(2.4rem, 5.4vw, 3.7rem);
}

h2 {
    font-size: clamp(1.95rem, 4.3vw, 2.7rem);
}

/* Fließtext in Lora: etwas mehr Zeilenabstand */
body {
    line-height: 1.7;
}


/* Bei "Bewegung reduzieren": Ladebild ohne Bewegung, nur sichtbar */
@media (prefers-reduced-motion: reduce) {
    .ladebild__inhalt img,
    .ladebild__linie,
    .ladebild__text {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
