/* ==========================================================================
   Die Kneipe Mittenwald – Layout für Contao 6
   Eigenständiges Stylesheet (ohne Fremd-Theme), Asal EDV-System-Dienste
   ========================================================================== */

/* ---------- Schriften (lokal, keine Verbindung zu Google) ---------- */
@font-face { font-family: "Source Sans Pro"; src: url("fonts/SourceSans3wght.woff") format("woff"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("fonts/SourceSans3-Italicwght.woff") format("woff"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Allura"; src: url("fonts/Allura-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courgette"; src: url("fonts/Courgette-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Farben & Maße ---------- */
:root {
    --kn-accent: #e60370;
    --kn-accent-dark: #c5055d;
    --kn-text: #555555;
    --kn-heading: #3b3c42;
    --kn-sidebar: #1b2026;
    --kn-beige: #ebe5d7;
    --kn-beige-text: #796f5c;
    --kn-darkgray: #454545;
    --kn-lightgray: #f7f7f7;
    --kn-bottom: #0f0f0f;
    --kn-sidebar-width: 300px;
    --kn-content-max: 1240px;
    --kn-gutter: 40px;
    --kn-font: "Source Sans Pro", "Source Sans 3", Arial, Helvetica, sans-serif;
    --kn-font-script: "Allura", "Brush Script MT", cursive;
    --kn-font-alt: "Courgette", Georgia, serif;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--kn-font);
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
    color: var(--kn-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
figure { margin: 0; }
a { color: var(--kn-accent); text-decoration: none; transition: color .3s; }
a:hover { color: var(--kn-accent-dark); }
p { margin: 0 0 15px; }
ul, ol { margin: 0 0 15px; }
strong, b { font-weight: 700; }
.invisible { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    margin: 0 0 25px;
    line-height: 1.3;
    color: var(--kn-heading);
    font-family: var(--kn-font-alt);
    font-weight: 400;
    overflow-wrap: break-word;
    padding-top: 0;
}
h1, .h1, h2, .h2, h3, .h3 { font-family: var(--kn-font-script); font-weight: 400; }
h1, .h1 { font-size: 3rem; }
h2, .h2 { font-size: 2.333rem; }
h3, .h3 { font-size: 1.867rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.333rem; }
h6, .h6 { font-size: 1.2rem; }

/* ---------- Hilfsklassen (Farben, Abstände) ---------- */
.color-accent { color: var(--kn-accent) !important; }
.color-white, .color-white p, .color-white li, .color-white h1, .color-white h2, .color-white h3,
.color-white h4, .color-white h5, .color-white h6, .color-white .h1, .color-white .h2, .color-white .h3,
.color-white .h4, .color-white .h5, .color-white .h6 { color: #fff; }
.color-white a:not(.kn-button) { color: #fff; }
.color-white a:not(.kn-button):hover { color: var(--kn-accent); }
.color-default { color: var(--kn-text); }

.bg-second { background-color: var(--kn-beige); }
.bg-darkgray { background-color: var(--kn-darkgray); }
.bg-black { background-color: #000; }
.bg-white { background-color: #fff; }
.bg-lightgray { background-color: var(--kn-lightgray); }
.bg-accent { background-color: var(--kn-accent); }

.align-center { text-align: center; }
.align-left { text-align: left; }
.align-right { text-align: right; }

.pt-no { padding-top: 0 !important; }   .pb-no { padding-bottom: 0 !important; }
.pt-xxs { padding-top: 30px !important; } .pb-xxs { padding-bottom: 30px !important; }
.pt-xs { padding-top: 50px !important; }  .pb-xs { padding-bottom: 50px !important; }
.pt-s { padding-top: 90px !important; }   .pb-s { padding-bottom: 90px !important; }
.pt-m { padding-top: 100px !important; }  .pb-m { padding-bottom: 100px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-xxs { margin-bottom: 20px !important; }
.mb-xs { margin-bottom: 30px !important; }
.mt-0 { margin-top: 0 !important; }
.mt-xxs { margin-top: 20px !important; }

/* ==========================================================================
   Seitenlayout: feste Seitenleiste links (Desktop)
   ========================================================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--kn-sidebar-width);
    background: var(--kn-sidebar);
    z-index: 1030;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: center;
    scrollbar-width: thin;
}
#header > .inside { padding: 0 0 40px; }

#slider, #container, #footer, #bottom { margin-left: var(--kn-sidebar-width); }
#container { position: relative; background: #fff; }
#main > .inside { overflow: hidden; }

/* Social-Icons oben in der Seitenleiste */
.kn-socials { display: flex; justify-content: center; gap: 2px; padding-top: 2px; }
.kn-socials a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 35px; height: 35px; color: rgba(255, 255, 255, .85); transition: background .3s, color .3s;
}
.kn-socials svg { width: 15px; height: 15px; fill: currentColor; }
.kn-socials a:hover { color: #fff; }
.kn-socials a.facebook:hover { background: #436098; }
.kn-socials a.twitter:hover { background: #28a9e2; }
.kn-socials a.instagram:hover { background: #a77c62; }

/* Logo */
.kn-logo { margin: 0 50px; }
.kn-logo a { display: flex; align-items: center; justify-content: center; height: 250px; }
.kn-logo img { display: block; width: 200px; max-height: 250px; object-fit: contain; }

/* Mobile-Menü-Schalter (nur mobil sichtbar) */
.kn-burger { display: none; }

/* Hauptnavigation */
#header .mod_navigation, #header .module-navigation { margin: 0 0 40px; }
#header .mod_navigation ul, #header .module-navigation ul { list-style: none; margin: 0; padding: 0; text-align: center; }
#header .mod_navigation li, #header .module-navigation li {
    padding: 0 15px; margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
#header .mod_navigation li:first-child, #header .module-navigation li:first-child { border-top: 1px solid rgba(255, 255, 255, .1); }
#header .mod_navigation a, #header .mod_navigation strong,
#header .module-navigation a, #header .module-navigation strong {
    display: block; padding: 0 15px; line-height: 45px; font-size: 1.067rem; font-weight: 400;
    color: rgba(255, 255, 255, .85); transition: color .3s;
}
#header .mod_navigation a:hover, #header .mod_navigation strong, #header .mod_navigation a.trail,
#header .module-navigation a:hover, #header .module-navigation strong, #header .module-navigation a.trail,
#header nav a[aria-current="page"], #header nav a.active { color: var(--kn-accent); }
#header .mod_navigation ul ul, #header .module-navigation ul ul { display: none; }

/* ==========================================================================
   Footer & Bottom
   ========================================================================== */
#footer { background: var(--kn-beige); color: var(--kn-beige-text); font-size: .93rem; line-height: 1.6rem; position: relative; }
#footer > .inside { max-width: var(--kn-content-max); margin: 0 auto; padding: 65px var(--kn-gutter); }
#footer a { color: var(--kn-beige-text); }
#footer a:hover { color: var(--kn-accent); }
#footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6,
#footer .h1, #footer .h2, #footer .h3, #footer .h4, #footer .h5, #footer .h6 { color: var(--kn-beige-text); }
#footer ul { padding: 0; margin: 0 0 15px; list-style: none; }
#footer li { position: relative; margin-bottom: 10px; padding: 0 0 10px 25px; }
#footer li:last-of-type { margin-bottom: 0; }
#footer li::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; border-bottom: 1px solid var(--kn-beige-text); opacity: .2; }
#footer li::before {
    content: ""; position: absolute; left: 4px; top: .55em; width: 6px; height: 6px;
    border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg);
}
#footer .mod_article { margin: 0; }
.kn-totop {
    position: absolute; left: 50%; top: 0; margin-left: -20px; width: 40px; height: 40px;
    background: rgba(0, 0, 0, .06); border-radius: 0 0 3px 3px; color: var(--kn-beige-text);
    display: flex; align-items: center; justify-content: center;
}
.kn-totop::before { content: ""; width: 9px; height: 9px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; transform: translateY(2px) rotate(45deg); }
.kn-totop:hover { color: var(--kn-accent); }

#bottom { background: var(--kn-bottom); }
#bottom > .inside {
    max-width: var(--kn-content-max); margin: 0 auto; padding: 20px var(--kn-gutter);
    overflow: hidden; font-size: .93em; color: rgba(255, 255, 255, .4);
}
#bottom .left { float: left; }
#bottom .right { float: right; }
#bottom a { color: rgba(255, 255, 255, .4); margin-left: 15px; transition: color .3s; }
#bottom a:hover { color: var(--kn-accent); }

/* ==========================================================================
   Artikel
   ========================================================================== */
.mod_article { position: relative; }
.mod_article.boxed { max-width: var(--kn-content-max); margin: 0 auto; padding: 60px var(--kn-gutter); }
[id] { scroll-margin-top: 20px; }

/* ==========================================================================
   Elemente: Bereich mit Hintergrund
   ========================================================================== */
.kn-section { position: relative; overflow: hidden; }
.kn-section.bg-none { background: transparent; }
.kn-section__image { position: absolute; inset: 0; background-size: cover; background-position: center center; background-repeat: no-repeat; }
.kn-section__outer { position: relative; z-index: 2; }
.kn-section__inside { position: relative; max-width: var(--kn-content-max); margin: 0 auto; padding-left: var(--kn-gutter); padding-right: var(--kn-gutter); }
.kn-section__mobile-image { display: none; margin-bottom: 30px; }
.kn-section__mobile-image img { width: 100%; }

.kn-section.img-leftside-33 .kn-section__image { right: auto; width: 33.333%; }
.kn-section.img-leftside-33 .kn-section__outer { margin-left: 33.333%; }
.kn-section.img-leftside-50 .kn-section__image { right: auto; width: 50%; }
.kn-section.img-leftside-50 .kn-section__outer { margin-left: 50%; }
.kn-section.img-rightside-50 .kn-section__image { left: 50%; }
.kn-section.img-rightside-50 .kn-section__outer { margin-right: 50%; }
.kn-section.img-rightside-33 .kn-section__image { left: 66.666%; }
.kn-section.img-rightside-33 .kn-section__outer { margin-right: 33.333%; }
.kn-section[class*="img-leftside"] .kn-section__inside,
.kn-section[class*="img-rightside"] .kn-section__inside { max-width: none; padding-left: 60px; padding-right: 60px; }
.kn-section.parallax .kn-section__image { background-attachment: fixed; }
.kn-section.fullscreen { min-height: 100vh; }
.kn-section > .kn-section__outer > .kn-section__inside > :last-child { margin-bottom: 0; }

/* ==========================================================================
   Elemente: Spalten
   ========================================================================== */
.kn-row { display: flex; flex-wrap: wrap; margin-left: -20px; margin-right: -20px; }
.kn-col { padding-left: 20px; padding-right: 20px; min-width: 0; }
.kn-col.col_3 { flex: 0 0 25%; max-width: 25%; }
.kn-col.col_4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.kn-col.col_6 { flex: 0 0 50%; max-width: 50%; }
.kn-col.col_8 { flex: 0 0 66.6666%; max-width: 66.6666%; }
.kn-col.col_9 { flex: 0 0 75%; max-width: 75%; }
.kn-col.col_12 { flex: 0 0 100%; max-width: 100%; }
.kn-row--same-height > .kn-col > * { height: 100%; }
.kn-col > :last-child { margin-bottom: 0; }
.kn-section .kn-row + .kn-row { margin-top: 30px; }

/* ==========================================================================
   Elemente: Überschrift zweifarbig
   ========================================================================== */
.kn-headline h1, .kn-headline h2, .kn-headline h3, .kn-headline h4 { margin: 0; }

/* ==========================================================================
   Elemente: Trenner mit Pfeil
   ========================================================================== */
.kn-divider { line-height: 0; height: 99px; overflow: hidden; }
.kn-divider svg { display: block; width: 100%; height: 100px; margin-bottom: -1px; }

/* ==========================================================================
   Elemente: Text/Bild-Balken
   ========================================================================== */
.kn-textimage { position: relative; background: #f8f8f8; }
.kn-textimage.bg-second { background: var(--kn-beige); }
.kn-textimage.bg-darkgray { background: var(--kn-darkgray); }
.kn-textimage.bg-black { background: #000; }
.kn-textimage.bg-white { background: #fff; }
.kn-textimage.bg-lightgray { background: var(--kn-lightgray); }
.kn-textimage__inside { display: flex; flex-wrap: wrap; max-width: var(--kn-content-max); margin: 0 auto; }
.kn-textimage__text { position: relative; flex: 0 0 50%; max-width: 50%; padding: 70px 60px; display: flex; align-items: center; }
.kn-textimage__cell { width: 100%; }
.kn-textimage__cell > :last-child { margin-bottom: 0; }
.kn-textimage__image { position: absolute; top: 0; height: 100%; width: 50%; left: 50%; background-size: cover; background-position: center center; background-repeat: no-repeat; }
.kn-textimage.txt_right .kn-textimage__text { order: 2; margin-left: 50%; }
.kn-textimage.txt_right .kn-textimage__image { left: 0; }
.kn-textimage__arrow { position: absolute; top: 50%; left: -10px; width: 20px; height: 20px; margin-top: -10px; transform: rotate(-45deg); z-index: 5; }
.kn-textimage.txt_right .kn-textimage__arrow { left: auto; right: -10px; }
.kn-textimage__mobile-image { display: none; }
.kn-textimage__mobile-image img { width: 100%; }
.kn-textimage h1 { margin-bottom: 25px; }
.kn-textimage .kn-textimage__button { margin-top: 35px; }

/* ==========================================================================
   Elemente: Text gestaltet
   ========================================================================== */
.kn-text-ext.align-center { margin-left: auto; margin-right: auto; }
.kn-text-ext.align-right { margin-left: auto; }
.kn-text-ext.font_serif { font-family: Georgia, Times, serif; }
.kn-text-ext.font-size-xxs { font-size: 20px; line-height: 1.6; }
.kn-text-ext.font-size-xs { font-size: 24px; line-height: 1.5; }
.kn-text-ext.font-size-s { font-size: 28px; line-height: 1.4; }
.kn-text-ext p:last-child { margin-bottom: 0; }
.kn-text-ext a { text-decoration: underline; }
.kn-headline + .kn-text-ext { margin-top: -10px; }

/* ==========================================================================
   Elemente: Preisliste
   ========================================================================== */
.kn-pricelist ul { list-style: none; margin: 0; padding: 0; }
.kn-pricelist__item { padding: 12px 0; border-bottom: 1px dashed rgba(0, 0, 0, .15); }
.kn-pricelist__item:first-child { padding-top: 0; }
.kn-pricelist__row { display: flex; align-items: baseline; gap: 8px; }
.kn-pricelist__label { font-family: var(--kn-font-alt); font-size: 1.133rem; color: var(--kn-heading); line-height: 1.4; }
.kn-pricelist__dots { flex: 1 1 auto; border-bottom: 1px dotted rgba(0, 0, 0, .3); transform: translateY(-4px); min-width: 20px; }
.kn-pricelist__price { font-weight: 700; color: var(--kn-accent); white-space: nowrap; }
.kn-pricelist__subline { font-size: .9rem; color: #8a8478; line-height: 1.5; font-style: italic; }
.color-white .kn-pricelist__label, .bg-black .kn-pricelist__label, .bg-darkgray .kn-pricelist__label { color: #fff; }
.color-white .kn-pricelist__subline { color: rgba(255, 255, 255, .7); }
.color-white .kn-pricelist__item { border-color: rgba(255, 255, 255, .2); }
.color-white .kn-pricelist__dots { border-color: rgba(255, 255, 255, .35); }

/* ==========================================================================
   Elemente: Sprungmarken-Navigation
   ========================================================================== */
.kn-pagenav { max-width: var(--kn-content-max); margin: 0 auto; padding: 40px var(--kn-gutter); }
.kn-pagenav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.kn-pagenav a {
    display: block; padding: 8px 18px; border: 1px solid rgba(0, 0, 0, .12); color: var(--kn-heading);
    font-size: .93rem; line-height: 1.4; transition: background .3s, color .3s, border-color .3s;
}
.kn-pagenav a:hover, .kn-pagenav a:focus { background: var(--kn-accent); border-color: var(--kn-accent); color: #fff; }

/* ==========================================================================
   Elemente: Team-Mitglied
   ========================================================================== */
.kn-teambox { text-align: center; }
.kn-teambox__image img { width: 100%; }
.kn-teambox__name { font-weight: 700; margin: 15px 0 5px; color: var(--kn-heading); }
.kn-teambox__function { color: var(--kn-accent); margin-bottom: 20px; }
.kn-teambox__email, .kn-teambox__phone { font-size: .93rem; }

/* ==========================================================================
   Elemente: Text mit Symbol
   ========================================================================== */
.kn-iconbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.kn-iconbox__icon { flex: 0 0 18px; display: inline-flex; justify-content: center; padding-top: .3em; }
.kn-iconbox__text p { margin: 0; }

/* ==========================================================================
   Elemente: Buttons
   ========================================================================== */
.kn-button-wrap { margin-top: 30px; }
.kn-button {
    display: inline-block; padding: 0 35px; line-height: 50px; font-size: 13px; font-weight: 700;
    border: 1px solid transparent; border-radius: 0; text-align: center; transition: background .3s, color .3s, border-color .3s;
}
.kn-button--accent { background: var(--kn-accent); border-color: var(--kn-accent); color: #fff !important; }
.kn-button--accent:hover { background: var(--kn-accent-dark); border-color: var(--kn-accent-dark); }
.kn-button--outline-white { border-color: #fff; color: #fff !important; background: transparent; }
.kn-button--outline-white:hover { background: #fff; color: #111 !important; }
.kn-button--outline-dark { border-color: var(--kn-heading); color: var(--kn-heading) !important; }
.kn-button--outline-dark:hover { background: var(--kn-heading); color: #fff !important; }

/* ==========================================================================
   Elemente: Startseiten-Slider
   ========================================================================== */
.kn-hero { position: relative; height: 100vh; min-height: 500px; overflow: hidden; background: #000; }
.kn-hero__slide {
    position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat;
    opacity: 0; transition: opacity 1.2s ease;
}
.kn-hero__slide.is-active { opacity: 1; }
.kn-hero__content {
    position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 20px; gap: 40px;
}
.kn-hero__logo { width: 788px; max-width: 75%; height: auto; transform: translateY(-20px); animation: kn-fade-in 1s ease .1s both; }
.kn-hero__button { animation: kn-fade-in .8s ease .4s both; }
@keyframes kn-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Core-Elemente: Text, Liste, Galerie, Formular
   ========================================================================== */
/* Text mit Bild (z. B. Kehr Automaten) */
.content-text.media { display: flow-root; }
.content-text.media--right > figure { float: right; margin: 0 0 20px 30px; max-width: 50%; }
.content-text.media--left > figure { float: left; margin: 0 30px 20px 0; max-width: 50%; }
.content-text.media--above > figure { margin-bottom: 20px; }
.content-text .rte h2 { font-size: 2rem; margin-top: 20px; }
.content-text .rte h3 { margin-top: 15px; }
.content-text .rte > :first-child { margin-top: 0; }

/* Liste (Kontakt) mit Häkchen */
.content-list ul { list-style: none; padding: 0; }
.content-list li { position: relative; padding-left: 26px; margin-bottom: 20px; line-height: 1.5; }
.content-list li::before { content: ""; position: absolute; left: 3px; top: .25em; width: 6px; height: 11px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }

/* Galerie */
.content-gallery ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.content-gallery--cols-2 ul { grid-template-columns: repeat(2, 1fr); }
.content-gallery--cols-4 ul { grid-template-columns: repeat(4, 1fr); }
.content-gallery li { overflow: hidden; }
.content-gallery figure { height: 100%; }
.content-gallery a { display: block; height: 100%; }
.content-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.content-gallery a:hover img { transform: scale(1.04); }
/* Galerie Startseite: Mauerwerk mit Rahmen */
.content-gallery.gallery-masonry ul { display: block; column-count: 3; column-gap: 0; }
.content-gallery.gallery-masonry li { break-inside: avoid; border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; }
.content-gallery.gallery-masonry img { height: auto; }
/* Galerie Spielsalon: Raster mit Abstand */
.content-gallery.gallery-grid { padding: 10px 5px 0; }
.content-gallery.gallery-grid ul { gap: 10px; }

/* Formular (Kontakt) */
:is(.content-form, .ce_form) { color: inherit; }
:is(.content-form, .ce_form) h3 { margin-bottom: 25px; }
:is(.content-form, .ce_form) form .formbody { display: flex; flex-wrap: wrap; margin: 0 -10px; }
:is(.content-form, .ce_form) .widget { flex: 0 0 100%; padding: 0 10px; margin-bottom: 20px; }
:is(.content-form, .ce_form) .widget.w50 { flex-basis: 50%; }
:is(.content-form, .ce_form) label { display: block; margin-bottom: 5px; font-size: .93rem; }
:is(.content-form, .ce_form) .widget-text label, :is(.content-form, .ce_form) .widget-textarea label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:is(.content-form, .ce_form) input.text, :is(.content-form, .ce_form) textarea, :is(.content-form, .ce_form) select {
    width: 100%; padding: 15px; font: inherit; font-size: .9rem; color: #000; background: #fff;
    border: 1px solid rgba(0, 0, 0, .2); border-radius: 0; outline: none; transition: border-color .3s;
}
:is(.content-form, .ce_form) input.text:focus, :is(.content-form, .ce_form) textarea:focus { border-color: var(--kn-accent); }
:is(.content-form, .ce_form) textarea { min-height: 192px; resize: vertical; }
:is(.content-form, .ce_form) .widget-submit { margin-top: 0; }
:is(.content-form, .ce_form) button.submit, :is(.content-form, .ce_form) input.submit {
    width: 100%; padding: 16px 20px; font: inherit; font-size: 13px; font-weight: 700; color: #fff;
    background: var(--kn-accent); border: 0; border-radius: 3px; cursor: pointer; transition: background .3s;
}
:is(.content-form, .ce_form) button.submit:hover { background: var(--kn-accent-dark); }
:is(.content-form, .ce_form) p.error { color: #ff6b8f; font-size: .9rem; margin: 0 0 5px; }
:is(.content-form, .ce_form) .mandatory .invisible { display: none; }

/* ==========================================================================
   Lightbox (eigene, ohne jQuery)
   ========================================================================== */
.kn-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .9); display: none; align-items: center; justify-content: center; }
.kn-lightbox.is-open { display: flex; }
.kn-lightbox img { max-width: 92vw; max-height: 88vh; box-shadow: 0 0 30px rgba(0, 0, 0, .5); }
.kn-lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; padding: 10px 18px; opacity: .8; }
.kn-lightbox button:hover { opacity: 1; color: var(--kn-accent); }
.kn-lightbox .kn-lb-close { top: 10px; right: 10px; }
.kn-lightbox .kn-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.kn-lightbox .kn-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .pt-m { padding-top: 80px !important; } .pb-m { padding-bottom: 80px !important; }
    .pt-s { padding-top: 70px !important; } .pb-s { padding-bottom: 70px !important; }
    .pt-xs { padding-top: 40px !important; } .pb-xs { padding-bottom: 40px !important; }
    .kn-section.parallax .kn-section__image { background-attachment: scroll; }
}

/* Tablet/Smartphone: Seitenleiste wird zur Kopfzeile */
@media (max-width: 1023px) {
    #header { position: sticky; top: 0; bottom: auto; width: 100%; height: auto; overflow: visible; }
    #header > .inside { display: flex; flex-wrap: wrap; align-items: center; padding: 0 20px; min-height: 80px; }
    .kn-logo { margin: 0; order: 1; }
    .kn-logo a { height: 80px; justify-content: flex-start; }
    .kn-logo img { width: auto; height: 60px; }
    .kn-socials { order: 2; margin-left: auto; padding-top: 0; }
    .kn-burger {
        order: 3; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 44px; margin-left: 10px; padding: 10px; background: none; border: 0; cursor: pointer;
    }
    .kn-burger span { display: block; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
    .kn-nav-open .kn-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .kn-nav-open .kn-burger span:nth-child(2) { opacity: 0; }
    .kn-nav-open .kn-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    #header .mod_navigation, #header .module-navigation { order: 4; flex: 0 0 100%; margin: 0; display: none; padding-bottom: 15px; }
    .kn-nav-open #header .mod_navigation, .kn-nav-open #header .module-navigation { display: block; }
    #slider, #container, #footer, #bottom { margin-left: 0; }
    .kn-hero { height: calc(100vh - 80px); }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .kn-col.col_3 { flex-basis: 50%; max-width: 50%; }
}

@media (max-width: 767px) {
    h1, .h1 { font-size: 2.2rem; margin-bottom: 15px; }
    h2, .h2 { font-size: 1.9rem; margin-bottom: 10px; }
    h3, .h3 { font-size: 1.6rem; margin-bottom: 10px; }
    h4, .h4 { font-size: 1.2rem; margin-bottom: 10px; }
    h5, .h5, h6, .h6 { font-size: 1.067rem; margin-bottom: 10px; }
    .pt-m { padding-top: 60px !important; } .pb-m { padding-bottom: 60px !important; }
    .pt-s { padding-top: 50px !important; } .pb-s { padding-bottom: 50px !important; }
    .pt-xs, .pt-xxs { padding-top: 30px !important; } .pb-xs, .pb-xxs { padding-bottom: 30px !important; }
    :root { --kn-gutter: 20px; }

    .kn-col { flex: 0 0 100% !important; max-width: 100% !important; }
    .kn-col + .kn-col { margin-top: 30px; }

    .kn-section[class*="img-leftside"] .kn-section__image,
    .kn-section[class*="img-rightside"] .kn-section__image { display: none; }
    .kn-section[class*="img-leftside"] .kn-section__outer,
    .kn-section[class*="img-rightside"] .kn-section__outer { margin: 0; }
    .kn-section[class*="img-leftside"] .kn-section__inside,
    .kn-section[class*="img-rightside"] .kn-section__inside { padding-left: 20px; padding-right: 20px; }
    .kn-section__mobile-image { display: block; }
    .kn-section.parallax .kn-section__image { background-attachment: scroll; }

    .kn-textimage__text { flex: 0 0 100%; max-width: 100%; padding: 30px; min-height: 0 !important; }
    .kn-textimage.txt_right .kn-textimage__text { margin-left: 0; order: 1; }
    .kn-textimage__image { display: none; }
    .kn-textimage__mobile-image { display: block; flex: 0 0 100%; order: 2; }

    .content-gallery ul { grid-template-columns: repeat(2, 1fr) !important; }
    .content-gallery.gallery-masonry ul { column-count: 2; }
    :is(.content-form, .ce_form) .widget.w50 { flex-basis: 100%; }
    .content-text.media--right > figure, .content-text.media--left > figure { float: none; margin: 0 0 20px; max-width: 100%; }

    #bottom .left, #bottom .right { float: none; text-align: center; }
    #bottom .right { margin-top: 5px; }
    #bottom .right a:first-child { margin-left: 0; }
    .kn-hero__logo { max-width: 90%; }
    .kn-socials a { width: 30px; }
}

@media print {
    #header, #footer, #bottom, .kn-pagenav { display: none !important; }
    #slider, #container { margin-left: 0; }
}

/* Formular: ALTCHA-Feld und Pflichtfeld-Sternchen */
:is(.content-form, .ce_form) .widget-altcha > label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:is(.content-form, .ce_form) altcha-widget { display: block; --altcha-border-radius: 0; --altcha-max-width: 100%; --altcha-color-base: #fff; --altcha-color-text: #333; --altcha-color-border: rgba(0, 0, 0, .2); }
:is(.content-form, .ce_form) .widget-altcha .altcha-footer, :is(.content-form, .ce_form) .widget-altcha .altcha-footer a { color: #888; }
:is(.content-form, .ce_form) textarea.textarea { display: block; }

/* Zusatz-Spamschutz: Lockfeld „website“ für Menschen unsichtbar */
.hp, .widget.hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
