/*
Theme Name: Weingut Buchert
Theme URI: https://weingut-buchert.softwaredienst.ch
Author: Softwaredienst
Author URI: https://softwaredienst.ch
Description: Theme für Weingut & Gästehaus Buchert, Neustadt-Mußbach.
Version: 1.0.0
Text Domain: weingut-buchert
*/

:root {
    --bg: #14100e;
    --bg-alt: #1c1714;
    --fg: #f4f4f5;
    --muted: #b5aaa2;
    --accent: #cc0000;
    --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}
a { color: inherit; }
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; line-height: 1.15; }
img { max-width: 100%; height: auto; }
.container { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }

.site-header { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-title { font-weight: 700; font-size: 1.25rem; text-decoration: none; }


.site-main { min-height: 50vh; }
.entry { padding: 48px 0; }

.site-footer { border-top: 1px solid rgba(255,255,255,.08); padding: 40px 0 24px; color: var(--muted); font-size: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; }


/* Layout */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20,16,14,.95); backdrop-filter: blur(6px); }
.main-nav { display: none; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 12px 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.main-nav a { text-decoration: none; padding: 8px 0; display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a:hover { color: var(--accent); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle:checked ~ .main-nav { display: flex; }
.nav-burger { cursor: pointer; padding: 10px; margin-left: auto; }
.nav-burger span, .nav-burger span::before { display: block; width: 24px; height: 2px; background: var(--fg); position: relative; }
.nav-burger span::before { content: ""; position: absolute; top: 7px; }
@media (min-width: 800px) {
    .nav-burger { display: none; }
    .main-nav { display: flex; flex-direction: row; gap: 24px; position: static; padding: 0; border: 0; background: none; }
    .main-nav ul { display: flex; gap: 24px; }
}
.hero { padding: 110px 0 90px; background: radial-gradient(ellipse at 20% 0%, rgba(204,0,0,.28), transparent 60%), var(--bg); }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); margin: 0 0 12px; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent); font-weight: 600; margin: 0 0 8px; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 16px; }
.intro { max-width: 640px; color: var(--muted); }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 12px 24px; border-radius: 4px; text-decoration: none; font-weight: 600; margin: 4px 8px 4px 0; border: 2px solid var(--accent); }
.btn:hover { background: #a80000; border-color: #a80000; }
.btn.ghost { background: transparent; }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }
.photo, .gallery img, .card img, .img-placeholder { width: 100%; border-radius: 6px; object-fit: cover; }
.img-placeholder { background: linear-gradient(135deg, #2a201b, #3a2420); aspect-ratio: 4/3; min-height: 120px; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.cards, .events { display: grid; gap: 20px; margin: 32px 0; }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(3, 1fr); } .events { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--bg); border-radius: 6px; overflow: hidden; }
.card div:last-child { padding: 16px 20px; }
.card h3, .event h3, .team h3 { margin: 0 0 6px; font-size: 1.5rem; }
.event { border: 1px solid rgba(255,255,255,.12); border-left: 4px solid var(--accent); padding: 20px; border-radius: 4px; }
.event .date { color: var(--accent); font-weight: 600; margin: 0 0 4px; }
.team { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); margin-top: 32px; text-align: center; }
@media (min-width: 800px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team img, .team .img-placeholder { width: 120px; height: 120px; aspect-ratio: 1; border-radius: 50%; margin: 0 auto 12px; display: block; }
.team p { margin: 0; color: var(--muted); }
.faq h3 { font-size: 1.4rem; margin: 24px 0 4px; }
.faq p { margin: 0; color: var(--muted); max-width: 70ch; }
.contact { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.contact dt { color: var(--muted); } .contact dd { margin: 0; }
.map { width: 100%; min-height: 320px; border: 0; border-radius: 6px; }
.footer-contact { font-style: normal; margin-bottom: 12px; }
.entry h1 { font-size: clamp(2rem, 5vw, 3rem); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .swiss-snow:hover .flake { animation: none; } }

/* Softwaredienst credit (Pflicht, nicht entfernen) */
.sd-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.sd-credit a { display: inline-flex; align-items: center; }
.sd-logo {
    height: 22px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.sd-credit:hover .sd-logo { opacity: 1; }

/* Swiss cross snowfall on hover */
.swiss-snow { position: relative; }
.swiss-snow .snow-zone {
    position: absolute; top: -30px; left: 0;
    width: 100%; height: 60px;
    pointer-events: none; overflow: visible; z-index: 10;
}
.swiss-snow .flake {
    position: absolute; top: 0;
    font-weight: 900; opacity: 0;
    pointer-events: none; font-family: Arial, sans-serif; line-height: 1;
}
.swiss-snow:hover .flake { animation: sd-snowfall 2s ease-in infinite; }
.swiss-snow .flake:nth-child(1)  { left: 5%;  animation-delay: 0s;   color: #fff;    font-size: 8px; }
.swiss-snow .flake:nth-child(2)  { left: 18%; animation-delay: .3s;  color: #CC0000; font-size: 11px; }
.swiss-snow .flake:nth-child(3)  { left: 35%; animation-delay: .15s; color: #fff;    font-size: 7px; }
.swiss-snow .flake:nth-child(4)  { left: 50%; animation-delay: .5s;  color: #CC0000; font-size: 9px; }
.swiss-snow .flake:nth-child(5)  { left: 65%; animation-delay: .1s;  color: #fff;    font-size: 10px; }
.swiss-snow .flake:nth-child(6)  { left: 78%; animation-delay: .6s;  color: #CC0000; font-size: 8px; }
.swiss-snow .flake:nth-child(7)  { left: 88%; animation-delay: .35s; color: #fff;    font-size: 11px; }
.swiss-snow .flake:nth-child(8)  { left: 42%; animation-delay: .75s; color: #CC0000; font-size: 7px; }
.swiss-snow .flake:nth-child(9)  { left: 12%; animation-delay: .9s;  color: #fff;    font-size: 9px; }
.swiss-snow .flake:nth-child(10) { left: 55%; animation-delay: 1.1s; color: #CC0000; font-size: 8px; }
.swiss-snow .flake:nth-child(11) { left: 25%; animation-delay: 1.3s; color: #fff;    font-size: 7px; }
.swiss-snow .flake:nth-child(12) { left: 72%; animation-delay: 1.5s; color: #CC0000; font-size: 10px; }
@keyframes sd-snowfall {
    0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
    10%  { opacity: 1; }
    90%  { opacity: .6; }
    100% { opacity: 0; transform: translateY(60px) rotate(220deg); }
}
