/* Base layout */
html, body {
    height: 100%; margin: 0;
}
body.home {
    /* Startseite: kein Scrollen, Höhe an den sichtbaren Viewport anpassen */
    overflow: hidden;
    height: 100vh;
}
body {
    background-image: url('background_broken-glass_01.jpg') ;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #111;
}
/* Startseite: dynamische Viewport-Höhe ohne Scrollen,
   berücksichtigt Mobile-Navigation/Topbar/Tastatur */
body.home {
    height: 100vh;
    overflow: hidden;
}
@supports (height: 100dvh) {
    body.home { height: 100dvh; }
}

.home .hero {
    padding: 0;
}

/* Home (index) */
.hero {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    text-align: center;
    box-sizing: border-box;
    padding: 2rem;
}
@supports (height: 100dvh) {
    .hero { height: 100dvh; }
}
.home .hero img {
    max-width: min(100vw, 1024px);
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}

/* Legal links (home) */
.legal-links {
    position: fixed; right: 16px; bottom: 16px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 999px;
    padding: .5rem .75rem;
    font-size: .95rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.legal-links a { color: #111; text-decoration: none; font-weight: 600; }
.legal-links span { margin: 0 .25rem; color: rgba(0,0,0,0.45); }

/* Content pages (impressum, datenschutz) */
.top-bar {
    position: fixed; top: 0; left: 0; right: 0;
    display: flex; justify-content: flex-start; align-items: center;
    padding: .75rem 1rem; box-sizing: border-box;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(0,0,0,.08);
    z-index: 1000;
}
.back-btn {
    display: inline-block;
    padding: .5rem .9rem;
    border-radius: 999px;
    text-decoration: none;
    color: #111; background: #fff; border: 1px solid rgba(0,0,0,.1);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    font-weight: 600; font-size: .95rem;
}
.wrap { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 5rem 1rem 6rem; box-sizing: border-box; }
@supports (min-height: 100dvh) {
    .wrap { min-height: 100dvh; }
}
.card {
    width: min(900px, 100%);
    background: rgba(255,255,255,0.88);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    padding: 1.25rem 1.25rem 1.5rem;
    line-height: 1.55;
}
h1, h2 { margin: .2rem 0 .8rem; }
p { margin: .4rem 0 .9rem; }

/* Links inside privacy article */
/*.privacy a,
.privacy a:hover,
.privacy a:visited,
.privacy a:active {
  color: white;
  text-decoration: underline;
}
.privacy a:hover { text-decoration: unset; }*/

/* Floating home button (content pages) */
.floating-home { position: fixed; right: 16px; bottom: 16px; z-index: 1000; }
.home-btn {
    display: inline-block; text-decoration: none; color: #111;
    background: #fff; border: 1px solid rgba(0,0,0,.1);
    border-radius: 999px; padding: .65rem 1rem; font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    body { color: #eee; }
    .card { background: rgba(0,0,0,0.85); color: #eee; border-color: rgba(255,255,255,.12); }
    .back-btn, .home-btn { background: rgba(255,255,255,0.9); color: #111; }
    .top-bar { background: rgba(0,0,0,0.35); }
    .legal-links { background: rgba(0,0,0,0.6); border-color: rgba(255,255,255,0.15); }
    .legal-links a { color: #fff; }
    .legal-links span { color: rgba(255,255,255,0.6); }
}

/* Accessibility helper: visually hidden but accessible */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}