body{margin:0;background:#F7F7F5}
html{scroll-behavior:smooth}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #C9A24B;outline-offset:2px}
a:hover{text-decoration:underline}
img{max-width:100%}
@media (max-width:640px){
main section>div{padding:48px 16px !important}
main section[style*="max-width: 1120px"]{padding:40px 16px 48px !important}
main h1{word-break:break-word}
main a[style*="min-height: 52px"],main button{flex:1 1 100%}
.hd-in{padding:8px 16px !important}
.hd-brand{font-size:16px !important}
.hd-logo{width:40px !important}
.hd-nav{width:100%;flex-wrap:nowrap !important;overflow-x:auto;gap:0 10px !important;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.hd-nav a{white-space:nowrap;flex:0 0 auto}
footer>div{padding-left:16px !important;padding-right:16px !important}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Umschalter hell/dunkel */
.theme-switch{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 4px;background:none;border:0;cursor:pointer;font:inherit;font-size:14px;font-weight:500;color:inherit}
.theme-track{position:relative;display:inline-block;width:46px;height:26px;border-radius:999px;background:#D8D6CF;border:2px solid #0E0E0E;box-sizing:border-box;transition:background .2s}
.theme-knob{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:999px;background:#0E0E0E;transition:transform .2s}
.theme-switch[aria-checked="true"] .theme-track{background:#C9A24B;border-color:#C9A24B}
.theme-switch[aria-checked="true"] .theme-knob{transform:translateX(20px);background:#0E0E0E}
@media (prefers-reduced-motion:reduce){.theme-track,.theme-knob{transition:none}}

/* Dunkler Modus: überschreibt die festen Farben der Seiten */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] body{background:#171717}
html[data-theme="dark"] [style*="background: #F7F7F5"]{background:#171717 !important}
html[data-theme="dark"] [style*="background: #FFFFFF"]{background:#202020 !important}
html[data-theme="dark"] [style*="background: #0E0E0E"]{background:#0A0A0A !important}
html[data-theme="dark"] [style*="background: #FBEDEE"]{background:#3A1417 !important}
html[data-theme="dark"] [style*="color: #5E1117"]{color:#FFB4BA !important}
html[data-theme="dark"] [style*="color: #0E0E0E"]:not([style*="background: #C9A24B"]){color:#F2F0EA !important}
html[data-theme="dark"] [style*="color: #2B2B2B"]{color:#D6D4CE !important}
html[data-theme="dark"] [style*="color: #3F3F3C"]{color:#C8C6C0 !important}
html[data-theme="dark"] [style*="color: #5C4A1A"]{color:#C9A24B !important}
html[data-theme="dark"] [style*="#D8D6CF"]{border-color:#3A3A38 !important}
html[data-theme="dark"] [style*="border-top: 4px solid #C9A24B"]{border-top-color:#C9A24B !important}
html[data-theme="dark"] [style*="border: 2px solid #0E0E0E"],html[data-theme="dark"] [style*="border: 2px dashed #0E0E0E"]{border-color:#8A8A85 !important}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{color:#F2F0EA !important}
html[data-theme="dark"] .theme-track{background:#2A2A2A;border-color:#8A8A85}
html[data-theme="dark"] .theme-knob{background:#F2F0EA}
html[data-theme="dark"] .theme-switch[aria-checked="true"] .theme-track{background:#C9A24B;border-color:#C9A24B}
html[data-theme="dark"] .theme-switch[aria-checked="true"] .theme-knob{background:#0E0E0E}
html[data-theme="dark"] .hd-logo{filter:invert(1) hue-rotate(180deg);mix-blend-mode:screen}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),html[data-theme="dark"] select,html[data-theme="dark"] textarea{background-color:#202020 !important;border-color:#8A8A85 !important}
html[data-theme="dark"] a.dma-link{background:#FFFFFF !important}
