/* Heurigentester - Weinlayout */

:root {
    --wein-rot: #6b1e2e;
    --wein-dunkelrot: #4a1420;
    --wein-gold: #c9a227;
    --wein-creme: #faf6ee;
    --wein-grau: #efe9dd;
    --text-dunkel: #2b2620;
    --gruen-offen: #4a7c3f;
    --grau-ruhetag: #999999;
}

* { box-sizing: border-box; }

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--wein-creme);
    color: var(--text-dunkel);
    margin: 0;
    padding: 0;
}

header.ht-header {
    background: linear-gradient(135deg, var(--wein-rot), var(--wein-dunkelrot));
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

header.ht-header img.ht-logo {
    height: 60px;
    width: auto;
}

/* Logo ganz rechts in der Kopfzeile (gleiche Größe wie links) */
header.ht-header img.ht-logo-rechts {
    margin-left: auto;
}

/* Logo in mittlerer Größe (ganz unten auf der Startseite) */
.ht-logo-mittel {
    display: block;
    height: 45px;
    width: auto;
    margin: 0.6rem auto 0;
}

header.ht-header h1 {
    font-size: 1.6rem;
    margin: 0;
    font-weight: normal;
    letter-spacing: 1px;
}

header.ht-header nav a {
    color: var(--wein-gold);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.95rem;
}

header.ht-header nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

h2 {
    color: var(--wein-rot);
    border-bottom: 2px solid var(--wein-gold);
    padding-bottom: 0.3rem;
}

.ht-box {
    background: #fff;
    border: 1px solid var(--wein-grau);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.ht-hinweis {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}

.ht-heuriger-karte {
    border-left: 5px solid var(--gruen-offen);
    background: #fff;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ht-heuriger-karte.ht-ruhetag {
    border-left-color: var(--grau-ruhetag);
    background: #f1f1f1;
    color: #777;
}

.ht-status-offen {
    display: inline-block;
    background: var(--gruen-offen);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.ht-status-ruhetag {
    display: inline-block;
    background: var(--grau-ruhetag);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
}

.ht-heuriger-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--wein-rot);
}

.ht-form label {
    display: block;
    margin-bottom: 0.8rem;
}

.ht-form input[type="text"],
.ht-form input[type="date"],
.ht-form input[type="password"],
.ht-form input[type="email"],
.ht-form input[type="tel"],
.ht-form select,
.ht-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    margin-top: 0.3rem;
}

.ht-form textarea {
    min-height: 60px;
}

.ht-form button, .ht-btn {
    background: var(--wein-rot);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.ht-form button:hover, .ht-btn:hover {
    background: var(--wein-dunkelrot);
}

.ht-bewertung {
    border-top: 1px dashed #ccc;
    padding: 0.7rem 0;
}

.ht-bewertung-kopf {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: var(--wein-rot);
}

.ht-noten-liste {
    margin: 0.3rem 0;
}

.ht-note {
    display: inline-block;
    background: var(--wein-grau);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    margin-right: 0.4rem;
    font-size: 0.85rem;
}

.ht-kritik {
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.ht-error {
    background: #f8d7da;
    color: #721c24;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.ht-success {
    background: #d4edda;
    color: #155724;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

table.ht-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table.ht-table th, table.ht-table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
    font-size: 0.9rem;
}

table.ht-table th {
    background: var(--wein-grau);
}

.ht-heute-linie {
    border-top: 3px solid var(--wein-gold);
    text-align: center;
    font-weight: bold;
    color: var(--wein-gold);
    margin: 1rem 0 0.5rem 0;
    padding-top: 0.3rem;
}

.ht-vergangenheit {
    opacity: 0.7;
}

footer.ht-footer {
    text-align: center;
    padding: 1.5rem;
    color: #999;
    font-size: 0.85rem;
}

/* ---------- Hinweis-Banner (z. B. fehlende Quelle) ---------- */
.ht-banner {
    background: #fdf6dd;
    border: 1px solid var(--wein-gold);
    border-left: 5px solid var(--wein-gold);
    color: #6b5310;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

/* ---------- Gesamtschnitt-Badge ---------- */
.ht-schnitt-badge {
    display: inline-block;
    background: var(--wein-gold);
    color: #fff;
    padding: 0.05rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 0.4rem;
    white-space: nowrap;
    vertical-align: middle;
}

/* ---------- Gruppenüberschriften (Offen / Ruhetag) ---------- */
.ht-gruppe-titel {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    margin: 0.6rem 0 0.5rem 0;
}

.ht-gruppe-titel-offen {
    color: var(--gruen-offen);
}

.ht-gruppe-titel-ruhetag {
    color: #777;
}

/* ---------- Anker-Sprung zur Detail-Box ---------- */
#heurigen-detail {
    scroll-margin-top: 1.5rem;
}

/* ---------- Knopf unten zur alle.php ---------- */
.ht-alle-btn-wrap {
    text-align: center;
    margin: 2.5rem 0 1rem;
}

a.ht-btn {
    display: inline-block;
    text-decoration: none;
}

/* ---------- Witz statt Hinweis ---------- */
.ht-witz {
    background: #f5edda;
    border: 1px dashed var(--wein-gold);
    color: #5a4a1e;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ---------- Bezeichnung des zutreffenden Termins ---------- */
.ht-bezeichnung {
    display: inline-block;
    background: #efe3c3;
    border: 1px solid var(--wein-gold);
    color: #6b5310;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-left: 0.4rem;
}

/* ---------- Klickbare Heurigen-Namen auf der Hauptseite ---------- */
.ht-name-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.ht-name-link:hover {
    color: var(--wein-rot);
    border-bottom-style: solid;
}

/* ---------- Die letzten Einträge ---------- */
.ht-eintrag-karte {
    border: 1px solid var(--wein-grau);
    border-left: 5px solid var(--wein-gold);
    background: #fffdf8;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.ht-eintrag-name {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.ht-eintrag-name a {
    color: var(--wein-rot);
    text-decoration: none;
}

.ht-eintrag-name a:hover {
    text-decoration: underline;
}

/* ---------- Anschlagtafel (Hauptseite + Admin) ---------- */
.ht-anschlag {
    border: 1px solid var(--wein-grau);
    border-left: 5px solid var(--wein-gold);
    background: #fffdf8;
    padding: 0.7rem 1rem;
    margin-bottom: 0.8rem;
    border-radius: 4px;
}

.ht-anschlag-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.3rem;
}

.ht-anschlag-name {
    font-weight: bold;
    color: var(--wein-rot);
}

.ht-anschlag-text {
    font-size: 0.95rem;
}

.ht-anschlag-loeschen {
    margin-top: 0.5rem;
}

button.ht-btn-gefahr {
    background: #a94442;
    color: #fff;
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

button.ht-btn-gefahr:hover {
    background: #8a3230;
}

/* ---------- Admin: Geschichte (letzte Änderungen) ---------- */
.ht-geschichte-karte {
    border: 1px solid var(--wein-grau);
    border-left: 5px solid var(--wein-grau);
    background: #fffdf8;
    padding: 0.7rem 1rem;
    margin-bottom: 0.8rem;
    border-radius: 4px;
}

.ht-geschichte-kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #777;
}

.ht-geschichte-zeitpunkt {
    font-weight: bold;
    color: var(--text-dunkel);
}

.ht-geschichte-person {
    background: var(--wein-grau);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
}

.ht-geschichte-datei {
    background: #efe3c3;
    border: 1px solid var(--wein-gold);
    color: #6b5310;
    padding: 0.05rem 0.5rem;
    border-radius: 4px;
}

.ht-geschichte-art {
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
}

.ht-geschichte-art-hinzugefuegt { background: var(--gruen-offen); }
.ht-geschichte-art-geaendert { background: var(--wein-gold); }
.ht-geschichte-art-geloescht { background: #a94442; }
.ht-geschichte-art-sonstige { background: var(--grau-ruhetag); }

.ht-geschichte-inhalt {
    border-top: 1px dashed var(--wein-grau);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-size: 0.9rem;
    word-break: break-word;
}

.ht-geschichte-json-zeile {
    margin-bottom: 0.15rem;
}

.ht-geschichte-json-key {
    color: var(--wein-rot);
    font-weight: bold;
}

/* Verschachtelte JSON-Werte (z. B. "kritik") eingerückt darstellen */
.ht-geschichte-json-zeile .ht-geschichte-json {
    margin-top: 0.2rem;
    margin-left: 1rem;
    border-left: 2px solid var(--wein-grau);
    padding-left: 0.7rem;
}
