/*
Theme Name: Degerfeld-Garage
Theme URI: https://degerfeld-garage.softwaredienst.ch
Author: Softwaredienst
Author URI: https://softwaredienst.ch
Description: Starter-Theme, automatisch angelegt am 23.11.2026. Wird vom sd-agent ausgebaut.
Version: 0.1.0
Text Domain: degerfeld-garage
*/

:root {
    --bg: #0b0b0c;
    --fg: #f4f4f5;
    --muted: #a1a1aa;
    --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; }
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; }

.hero { padding: 96px 0 72px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; margin: 0 0 16px; }
.hero p { color: var(--muted); max-width: 60ch; }

.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; }

/* 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); }
}
