:where(*, *::before, *::after) {
        box-sizing: border-box;
}
:root {
        font-family: "Inter", sans-serif;
        font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem);
        color-scheme: light dark;
}
html {
        background-color: #fff;
}
html, body {
        margin: 0;
        padding: 0;
        height: 100%;
        color: #333;
}
@font-face {
        font-family: 'Inter';
        src: url('/assets/fonts/Inter.subset.woff2') format('woff2');
        font-weight: 100 900;
        font-stretch: 75% 100%;
        font-style: normal;
        font-display: swap;
}
@font-face {
        font-family: 'Inter';
        src: url('/assets/fonts/InterItalic.subset.woff2') format('woff2');
        font-weight: 100 900;
        font-stretch: 75% 100%;
        font-style: italic;
        font-display: swap;
}
body {
        font-family: 'Inter', sans-serif;
        font-variation-settings: "wght" 350, "wdth" 95;
        font-size: 1rem;
        line-height: 1.4;
        hyphens: auto;
        -webkit-hyphens: auto;
}
h1 {
        line-height: 1;
}
h1, h1.center {
        font-family: "Inter";
        font-weight: 400;
        color: #444;
        text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.3);
}
h1 .big {
        font-size: 5rem;
}
.ssvg {
        padding: 0.2rem;
        fill: #444;
        width: 2.8rem;
}


.langFlag {
        width: auto;
        height: 1.2rem;
}
#current-flag {
        filter: grayscale(60%);
        opacity: 0.5;
}
#logo {
        width: 50vw;
        margin: 0 auto;
        display: block;
        padding-top: 0.8rem;
        filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.5));
}
a {
        text-decoration: none;
        color: #444;
        font-weight: 600;
}
p {
        max-width: 65ch;
        color: #333;
}
p.center {
        text-align: center;
        font-size: 1.2rem;
        font-weight: 400;
}
article, h1 {
        margin: 0 1rem;
}
img, picture {
        display: block;
        width: 100%;
        height: auto;
}
picture img {
        max-width: 100%;
}
picture.mobilePIC {
        max-width: 100%;
}
picture.desktopPIC {
        display: none;
}
article#error {
        display: grid;
        text-align: center;
        place-items: center;
}
h1.error {
        font-size: 3rem;
}
#redframe {
        border: solid 6px #008000;
        width: fit-content;
        max-width: 50ch;
        padding: 4px;
}
body {
        display: grid;
        grid-template-areas:
                "header"
                "slidehero"
                "main"
                "footer";
        grid-template-columns: 1fr;
        gap: 1rem 0;
        min-height: 100vh;
        max-width: 100%;
}
nav {
        align-self: center;
        margin-top: 2rem;
        position: relative;
        width: 100%;
}
#navLinks {
        display: none;
}
#languages {
        display: none;
}
#navToggle {
        display: block;
        position: fixed;
        top: 30px;
        right: 10px;
        z-index: 101;
        cursor: pointer;
}
#navToggle span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #333;
}
header {
        grid-area: header;
}
main {
        grid-area: main;
        display: grid;
}
.foot-link, .tiny { color: #444; }
.foot-link,
.nav-link {
        border-bottom: 2px solid transparent;
}
.foot-link {
        border-bottom: 2px solid #808080;
}
#navLinks a.current, .foot-link a.current {
        border-bottom: 2px solid #444;
        padding-bottom: 2px;
}
.nav-link.current, .foot-link.current {
        border-bottom: 2px solid  #444;
}
footer {
        grid-area: footer;
        display: grid;
        grid-template-areas:
                "social"
                "legal"
                "copyright";
        grid-template-columns: 1fr;
        background-color: #fff;
        color: #444;
        place-items: center;
        text-align: center;
}
footer p {
        text-align: center;
        color: #444;
}
#social {
        grid-area: social;
        padding-top: 0.5rem;
}
#copyright {
        grid-area: copyright;
}
#legal {
        grid-area: legal;
}
#slidehero {
        display: grid;
        grid-template-areas: "stack";
        max-height: none;
        height: auto;
        margin: 0;
        padding: 0;
}
.slide {
        grid-area: stack;
        opacity: 0;
        animation: fade 36s infinite; /* Increased duration from 18s to 36s */
}
.slide:nth-of-type(1) { animation-delay: 0s; }
.slide:nth-of-type(2) { animation-delay: 12s; } /* Adjusted from 6s */
.slide:nth-of-type(3) { animation-delay: 24s; } /* Adjusted from 12s */
.slide:nth-of-type(4) { animation-delay: 0s; }
.slide:nth-of-type(5) { animation-delay: 12s; } /* Adjusted from 6s */
.slide:nth-of-type(6) { animation-delay: 24s; } /* Adjusted from 12s */

.dslide {
        display: none;
}
picture.mslide {
        max-width: 100%;
}
@keyframes fade {
        0%   { opacity: 0; }
        8%   { opacity: 1; }  /* Now takes 2.88s to fade in (8% of 36s) */
        33%  { opacity: 1; }  /* Now visible for ~12s */
        41%  { opacity: 0; }  /* Now takes 2.88s to fade out */
        100% { opacity: 0; }
}
@media (prefers-reduced-motion:reduce){
        .slide{ animation:none; opacity:1; }
}
.dslide {
        display: none;
}
picture.mslide {
        max-width: 100%;
}
#textbild {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
                "text"
                "bild";
        gap: 1.5rem 0;
        margin: 2rem 0;
}
#textbild section  {
        grid-area: text;
        text-align: left;
        max-width: 65ch;
        padding: 1rem;
}
#textbild figure   {
        grid-area: bild;
        margin: 0;
        width: 100%;
        height: auto;
}
#textbild figure img {
        height: auto;
        max-width: 100%;
}
.skip-link{
        position:absolute;     /* removes it from the grid layout */
        top:0; left:0;
        transform:translateY(-100%);
        padding:.5rem 1rem;
        background:#fff;
        color:#000;
        z-index:1000;
        transition:transform .2s;
}
.skip-link:focus{
        transform:translateY(0);
}
/* Buttons */
.toggle-button {
        display: none;
        margin: 1rem 0;
        padding: 0.5rem 1rem;
        background: #ddd;
        font-weight: bold;
        border-radius: 4px;
        cursor: pointer;
        margin-left: 1rem;
}
@media (prefers-reduced-motion: reduce) {
        .slide { animation:none; }
        .slide { opacity: 1; }
}
@media (min-width: 768px) {

        picture.mslide {
                display: none;
        }

        picture.dslide {
                display: block;
        }

        picture.mobilePIC {
                display: none;
        }

        picture.desktopPIC {
                display: block;
                width: 100%;
                max-width: 100%;
        }

        picture.desktopPIC img {
                width: 100%;
                height: auto;
                display: block;
        }

        body {
                display: grid;
                grid-template-areas:
                        "header nav"
                        "slidehero slidehero"
                        "main main"
                        "footer footer";
                grid-template-columns: 30% 70%;
                grid-template-rows: auto auto 1fr auto;
                min-height: 100vh;
                gap: 1rem 0;
        }
        header {
                grid-area: header;
        }
        nav {
                grid-area: nav;
                display: grid;
                grid-template-columns: auto auto;
        }
        #slidehero {grid-area: slidehero; }
        main {
                grid-area: main;
        }
        #navLinks,
        #languages {
                display: inline-block;
        }
        .nav-link {
                margin-right: 0.2rem;
        }

        .nav-link.footer-link {
                display: none;
        }

        #navToggle {
                display: none;
        }

        footer {
                grid-template-columns: repeat(3, 1fr);
                grid-template-areas: "copyright social legal";
                padding-top: 1.5rem;
        }

        #copyright {
                grid-area: copyright;
        }

        #social {
                grid-area: social;
                padding-top: 0;
        }

        #legal {
                grid-area: legal;
        }

        #logo {
                width: 20vw;
        }
}
#bilder {
        display: grid;
        grid-template-columns: 1fr; /* mobile default: 1 column */
        gap: 1rem;
        max-width: none;
        margin: 0;
        padding: 0;
}

#bilder figure {
        margin: 0;
        background: #f8f8f8;

        text-align: center;
}

#bilder img {
        display: block;
        width: 100%;
        height: auto;
}
h1 {
        text-align: center;
        font-size: 4rem;
        margin-bottom: 2rem;
        text-transform: uppercase;
}
@media (min-width: 900px) {
        article.intro {
                display: block;
                margin-left: auto;
                margin-right: auto;
                padding-left: 0.5rem;
        }

        #textbild {
                display: grid;
                grid-template-columns: 40% 60%;
                grid-template-areas: "dtext dbild";
        }
        #textbild section {
                grid-area: dtext;
                margin: 0;
        }
        #textbild figure {
                grid-area: dbild;
        }
        #textbild figure img {
                width: 80%
        }
}

@media (min-width: 960px) {
        #bilder {
                grid-template-columns: repeat(2, 1fr);
        }
        .toggle-button {
                display: inline-block;
                width: fit-content;
        }
        #toggleView:checked ~ .show-full {
                display: none;
        }

        #toggleView:checked ~ #bilder + .back {
                display: inline-block;
        }

        .back {
                display: none;
        }
        #toggleView:checked ~ #bilder {
                grid-template-columns: 1fr;
        }
}
@media (min-width: 1200px) {
        #bilder {
                grid-template-columns: repeat(3, 1fr);
        }
        #logo {
                width: 15vw;
        }
}

#fewokalender {
        display: block;
        margin: 2rem auto;
        padding: 0 1rem;
        max-width: 100%;
        font-family: sans-serif;
}

#fewokalender > section.monat {
        margin-bottom: 2rem;
        border: 1px solid #ccc;
        padding: 1rem;
        background: #fafafa;
        border-radius: 0.5rem;
        box-sizing: border-box;
}

#fewokalender > section.monat > header {
        text-align: center;
        font-weight: bold;
        font-size: 1.25rem;
        margin-bottom: 1rem;
}

.kalender {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 0.25rem;
}
.wochentag {
        font-weight: bold;
        text-align: center;
        background: #e0e0e0;
        padding: 0.5em;
}

.tag {
        display: block;
        text-align: center;
        padding: 0.75em 0;
        border-radius: 0.25em;
        font-weight: bold;
        font-size: 0.95rem;
        background: #eee;
}

.frei {
        background-color: #c6f6c6;
}

.belegt {
        background-color: #f6c6c6;
}

.leer {
        background: transparent;
        visibility: hidden;
}

.heute {
        outline: 2px solid #000;
        outline-offset: -2px;
}

@media (min-width: 960px) {
        #fewokalender {
                display: grid;
                grid-template-columns:repeat(2,minmax(0,1fr));
                gap: 2rem;
        }
        .intro {
                display: block;
                margin-left: auto;
                margin-right: auto;
        }
}

@media (min-width: 1200px) {
        #fewokalender {
                grid-template-columns: repeat(3, 1fr);
        }
}
.listing {
        display: grid;
        gap: 2rem;
        grid-template-columns: 1fr;
}

@media (min-width: 768px) {
        .listing {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        }
}

.listing section {
        background: #f9f9f9;
        padding: 1rem;
        border-radius: 0.5rem;
}

.listing h3 {
        font-family: "Inter";
        color: #444;
        margin-top: 0;
        font-size: 1rem;
        font-weight: 700;
}

.listing ul {
        padding-left: 1.2em;
        margin: 0.5em 0;
}

.listing ul li {
        margin-bottom: 0.3em;
}

.listing .highlight {
        font-weight: bold;
        margin-bottom: 0.5em;
        display: block;
}
h2.center {
        font-family: "Inter";
        text-align: center;
        color: #444;
        font-weight: 400;
        font-size: 3rem;
}
img.lsvg {
        display: inline-block;
        width: 6rem;
        padding: 0 1rem;
}
#applemaps, #googlemaps, #osm {
        height: 120px;
        padding: 10px;
}
#kontakt {
        align-items: center;
        justify-items: center;
        text-align: center;
}
#kontakt p {
        margin: 0 auto;
        font-size: 1.1rem;
}
h2 .biggish {
        font-size: 6rem;
}
.bewertungen {
        margin: 2rem auto;
        max-width: 960px;
        padding: 1rem;
}

.review {
        margin-bottom: 2rem;
        display: block;
}

@media screen and (min-width: 961px) {
        .review {
                display: grid;
                grid-template-columns: 1fr 2fr;
                gap: 2rem;
                align-items: start;
        }
}
.no-break {
        word-break: keep-all;
        hyphens: none;
        white-space: nowrap; /* optional, to avoid wrapping at all */
}
.contact-inline {
        display: inline; /* or block, depending on context */
}

.contact-link {
        display: inline-block;
        vertical-align: middle;
        text-decoration: none;
        line-height: 1.4; /* ensures consistent vertical alignment */
}

.contact-link svg {
        width: 2rem;
        height: 2rem;
        fill: currentColor;
        vertical-align: middle; /* key to aligning with text */
        margin-right: 0.2em; /* optional spacing between icon and text */
}

/* Base styles */
#register {
        padding: 1rem;
        max-width: 800px;
        margin: auto;
}

#register h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
}

form {
        width: 100%;
}

/* Grid layout */
.form-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
}

.form-grid input {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 4px;
}

/* Hide honeypot */
form section[style] {
        display: none;
}

/* Submit button */
.submit-container {
        margin-top: 1rem;
        display: flex;
        justify-content: flex-end;
}

.submit-container button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        background-color: #222;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
}

.submit-container button:hover {
        background-color: #444;
}

/* Responsive enhancements for wider screens */
@media (min-width: 600px) {
        .form-grid {
                grid-template-columns: 1fr 1fr;
        }

        /* Make honeypot span full row but still hidden */
        .form-grid input[name="middle-name"] {
                grid-column: 1 / -1;
        }
}
form,
fieldset {
        border: none;
}
h1 {
        word-break: normal;
        overflow-wrap: normal;
        white-space: normal;
        hyphens: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
p.smaller {
        font-size: 0.8rem;
}
.donation-summary {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  color: #444;
  border: 2px solid #444;
  padding: 0.2rem;
}

.donation-details {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.donation-details li {
  margin: 0.25rem 0;
}
.auth-buttons {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  gap: 1rem;
  margin: 2rem 0;
  justify-items: center;
}

.auth-buttons .button {
  grid-column: span 1;
  padding: 0.75rem 1.5rem;
  background-color: black;
  color: white;
  text-decoration: none;
  border-radius: 0.3rem;
  font-weight: bold;
  text-align: center;
}

.auth-buttons .button:hover {
  background-color: #333;
}
.search-wrapper {
        position: relative;
        max-width: 60vw;
}

#search {
        width: 100%;
        padding-right: 2.5rem;
        font-size: 1.2rem;
}

#clear-btn {
        position: absolute;
        top: 50%;
        right: 0.5rem;
        transform: translateY(-50%);
        background: none;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
        display: none;
        color: #666;
}
a.box {
        border: 2px solid #444;
}
form.box {
        border: 2px solid #444;
        padding: 0.2rem;
}
figure {
  margin: 2rem 0;
}

figcaption {
  margin-top: 0.5rem;
}

a[download] {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #444;
  color: white;
  text-decoration: none;
  border-radius: 0.25rem;
}

a[download]:hover {
  background-color: #222;
}
