/*
Theme Name: Rachidi Food & Sweets
Theme URI: https://rachidi-food-sweets.softwaredienst.ch
Author: Softwaredienst
Author URI: https://softwaredienst.ch
Description: Starter-Theme, automatisch angelegt am 25.11.2026. Wird vom sd-agent ausgebaut.
Version: 0.2.0
Text Domain: rachidi-food-sweets
*/

: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); }
}

/* Layout und Komponenten */
.section { padding: 48px 0; }
.todo { color: #ff8a8a; }
.btn { display: inline-block; padding: 10px 18px; margin: 4px 4px 4px 0; border: 1px solid var(--accent); border-radius: 8px; background: transparent; color: var(--fg); text-decoration: none; cursor: pointer; font: inherit; }
.btn-primary { background: var(--accent); }
.btn-small { padding: 2px 10px; }
.notice { padding: 12px 16px; border-left: 4px solid var(--accent); background: rgba(255,255,255,.05); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.menu-item, .card { padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; text-decoration: none; }
.menu-item[hidden] { display: none; }
.ph { aspect-ratio: 4/3; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #330000); margin-bottom: 8px; }
.price { color: var(--muted); }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin: 8px 0; }
.nav-toggle { display: inline-block; background: none; color: var(--fg); border: 1px solid var(--accent); border-radius: 8px; padding: 6px 12px; font: inherit; }
#site-nav { display: none; width: 100%; }
#site-nav.open { display: flex; flex-direction: column; gap: 8px; }
#site-nav a { text-decoration: none; }
.site-header .container { flex-wrap: wrap; }
@media (min-width: 720px) {
    .nav-toggle { display: none; }
    #site-nav, #site-nav.open { display: flex; flex-direction: row; gap: 24px; width: auto; }
}

/* Design-Feinschliff v0.2 */
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin: 0 0 20px; position: relative; padding-bottom: 12px; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 2px; background: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,11,12,.92); backdrop-filter: blur(8px); }
#site-nav a { padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
#site-nav a:hover { border-bottom-color: var(--accent); }
.hero { padding: clamp(64px, 12vw, 140px) 0 clamp(48px, 8vw, 96px); background: radial-gradient(900px 420px at 15% 0%, rgba(204,0,0,.28), transparent 70%), linear-gradient(180deg, #140707, var(--bg)); animation: rfs-fade .7s ease both; }
.hero h1 { font-size: clamp(2.25rem, 7vw, 4.25rem); }
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.25rem); margin: 0 0 28px; }
.btn { padding: 12px 22px; font-weight: 600; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); border-color: #ff3b3b; }
.btn-primary:hover { background: #e00000; }
.card, .menu-item { background: rgba(255,255,255,.03); transition: transform .25s, border-color .25s, background .25s; }
.card:hover, .menu-item:hover { transform: translateY(-4px); border-color: var(--accent); background: rgba(255,255,255,.06); }
.card h3, .menu-item h3 { margin: 4px 0 0; font-size: 1.1rem; }
.contact-list { font-size: 1.05rem; }
.contact-list a { color: #ff6b6b; text-underline-offset: 3px; }
.todo { color: #ffb3b3; }
.section { padding: clamp(36px, 6vw, 72px) 0; }
#faq h3 { margin: 24px 0 6px; font-size: 1.1rem; }
#faq p { margin: 0; color: var(--muted); max-width: 70ch; }
.site-footer { margin-top: 32px; }
@keyframes rfs-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 719px) {
    .btn { display: block; text-align: center; margin: 8px 0; }
    .site-header { padding: 14px 0; }
    #site-nav.open a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
