/* custom.css -- Optik der bisherigen Seite (Bootstrap Package, Stand 2026) auf knet_sitepackage.
   Quelle: Custom-Block am Ende der alten merged-CSS (Teal #1f655c, Creme #FFFFE8/#FFFFD3, Gelb #FFFE03). */
:root { --bs-link-color: #0288D1; --bs-link-hover-color: #026da7; --bs-link-color-rgb: 2,136,209; --bs-link-hover-color-rgb: 2,109,167; }
body { background-color: #FFFFE8; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { font-weight: 300; }
h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.75rem; }
h3, .h3 { font-size: 1.5rem; }

/* Kopfbild (Hero-Zone): Teal-Rahmen oben und unten, Überschrift gelb im halbtransparenten Kasten */
.knet-hero .carousel { border-top: 3px solid rgba(31,101,92,.8); border-bottom: 3px solid rgba(31,101,92,.8); }
.knet-hero .carousel-caption { top: 12%; bottom: auto; left: 0; right: 0; padding: 1rem 10%; text-align: left; background: rgba(31,101,92,.5); }
.knet-hero .carousel-caption h3 { color: #FFFE03; font-size: 3rem; font-weight: 300; margin: 0; }
@media (max-width: 767.98px) { .knet-hero .carousel-caption h3 { font-size: 2rem; } }

/* Inhaltsbereich: weiße Fläche, linke Spalte creme, Teal-Trennlinien */
.knet-main > .container > .row { background-color: #FFFFFF; border-right: 1px solid rgba(31,101,92,.8); }
@media (min-width: 992px) {
  .knet-main > .container > .row > .col-lg-3 { background-color: #FFFFD3; border-left: 1px solid rgba(31,101,92,.8); padding-top: 1rem; padding-bottom: 1.5rem; }
  .knet-main > .container > .row > .knet-content-col { border-left: 1px solid rgba(31,101,92,.8); padding-left: 2rem; padding-right: 2rem; }
}

/* Unternavigation: aktiver Punkt in Teal, ohne Hintergrund */
.knet-subnav .list-group-item { background-color: transparent; border-color: #e6e6e6; font-size: .875rem; }
.knet-subnav .list-group-item.active, .knet-subnav .list-group-item.active > a, .knet-subnav a.active { background-color: transparent !important; color: #1f655c !important; font-size: 1rem; font-weight: 600; border-color: #e6e6e6; }
.knet-subnav .dropdown-menu { border-left: 1rem solid rgba(31,101,92,.3); }

/* Footer: Teal mit cremefarbener Schrift */
.knet-footer { --knet-footer-bg: #1f655c; --knet-footer-fg: #FFFFD3; margin-top: 0; }
.knet-footer, .knet-footer a, .knet-footer h2, .knet-footer h3, .knet-footer .h2, .knet-footer .h3 { color: #FFFFD3; }
.knet-footer a:hover, .knet-footer a:focus-visible { color: #ffffff; }

/* Footer-Überschriften wie live: klein und fett */
.knet-footer h2, .knet-footer h3, .knet-footer .h2, .knet-footer .h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }

/* Partnerlogos in der linken Spalte: einspaltig, zentriert, Überschrift dezent */
.knet-sidecol .ce-header h2 { font-size: 1rem; font-weight: 400; color: #6c757d; text-align: center; }
.knet-sidecol .knet-gallery > .col { width: 100%; text-align: center; }
.knet-sidecol .knet-gallery img { max-width: 60%; height: auto; }

/* Google-Bewertungen in der linken Spalte: Textelement über den Partnerlogos (Inhalt auf Import-Bausteine).
   Erster Absatz = Note (fett) plus „von 5 Sternen“, zweiter Absatz = Link zum Profil. Sterne kommen aus der Maske. */
.knet-sidecol .frame-type-text { text-align: center; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e6e6e6; }
.knet-sidecol .frame-type-text h2 { font-size: 1rem; font-weight: 400; color: #6c757d; margin-bottom: .25rem; }
.knet-sidecol .frame-type-text p { margin: 0; font-size: .875rem; color: #495057; }
.knet-sidecol .frame-type-text p strong { display: block; font-size: 2.5rem; font-weight: 300; line-height: 1.1; color: #1f655c; font-variant-numeric: tabular-nums; }
.knet-sidecol .frame-type-text p strong::after {
  content: ""; display: block; width: 6.5rem; height: 1.3rem; margin: .35rem auto .3rem; background-color: #1f655c;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.5l-5.9 3.1 1.2-6.5L2.5 9.5l6.6-.9z'/%3E%3C/svg%3E") 0 0 / 1.3rem 1.3rem repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.5l-5.9 3.1 1.2-6.5L2.5 9.5l6.6-.9z'/%3E%3C/svg%3E") 0 0 / 1.3rem 1.3rem repeat-x;
}
.knet-sidecol .frame-type-text p + p { margin-top: .5rem; }
.knet-sidecol .frame-type-text a { color: #1f655c; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.knet-sidecol .frame-type-text a:hover { color: #123f39; text-decoration-thickness: 2px; }
.knet-sidecol .frame-type-text a:focus-visible { outline: 2px solid #1f655c; outline-offset: 3px; border-radius: 2px; }

/* Handy: Untermenü weglassen (Hauptmenü hat die Punkte), linke Spalte hinter den Inhalt */
@media (max-width: 991.98px) {
  .knet-main > .container > .row > .col-lg-3 { order: 2; }
  .knet-main > .container > .row > .col-lg-3 .knet-subnav { display: none; }
  .knet-main > .container > .row { border-right: 0; }
}

/* Kopfzeile: Telefon in Teal, Button mit weißer Schrift */
.knet-header .knet-header-phone { color: #1f655c; }
.knet-header .knet-header-cta.btn-primary { color: #ffffff; }

/* Logo wie im Original: ab Desktop oben in der linken Spalte, nicht in der Kopfzeile.
   Auf dem Handy bleibt das Logo im Header (dort gibt es keine linke Spalte). */
@media (min-width: 992px) {
  .knet-header .navbar-brand { display: none; }
  .knet-header .navbar-collapse { justify-content: flex-end; }
  .knet-sidecol-logo { display: block; width: 100%; max-width: 290px; margin: 0 auto 1.25rem; }
  .knet-sidecol-logo img { width: 100%; height: auto; }
}

/* Unternavigation als Baum: zweite Ebene eingerückt und kleiner, aktueller Pfad in Teal */
.knet-subnav-tree .knet-subnav-child { padding-left: 1.75rem; font-size: .8125rem; }
.knet-subnav-tree .list-group-item.active { font-size: .875rem; font-weight: 600; }
.knet-subnav-tree .list-group-item.current { font-size: 1rem; }
.knet-subnav-tree .knet-subnav-child.current { font-size: .875rem; }

/* Kopfzeile ruhiger: Telefon dezent, Button als Umriss */
.knet-header .knet-header-phone { color: #495057; font-weight: 500; }
.knet-header .knet-header-cta.btn-primary { background-color: transparent; border-color: #1f655c; color: #1f655c; }
.knet-header .knet-header-cta.btn-primary:hover, .knet-header .knet-header-cta.btn-primary:focus-visible { background-color: #1f655c; color: #ffffff; }

/* Inhalt und linke Spalte schließen direkt an das Kopfbild an */
.knet-hero .frame { margin-bottom: 0; }
.knet-main > .container > .row { --bs-gutter-y: 0; }
.knet-main > .container > .row > .knet-content-col { padding-top: 1.5rem; }

/* Projektgalerien im Inhalt (Ortsseiten, 14.11.2026): einheitliche Kacheln im Format 4:3, Bild mittig beschnitten.
   Die Lightbox zeigt das ganze Bild. Die Partnerlogos in der linken Spalte sind nicht betroffen. */
.knet-content-col .knet-gallery a { display: block; }
.knet-content-col .knet-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
