@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

 :root{
  --kb-gold:#c5a118; --kb-yellow:#f2cf2f; --kb-black:#161616; --kb-grey:#d7d7d7; --kb-grey-light:#f4f4f4; --kb-white:#ffffff;
}
body{color:var(--kb-black);font-family:"Comic Neue","Comic Sans MS","Comic Sans",cursive;background:#fff}
.navbar{background:rgba(255,255,255,.97)!important;border-bottom:2px solid var(--kb-gold);box-shadow:0 2px 12px rgba(0,0,0,.06)}
.navbar .navbar-brand,.navbar .nav-link{color:#333!important}.navbar .nav-link:hover,.navbar .nav-link:focus{color:#9a7c0b!important}.navbar-toggler{border-color:rgba(0,0,0,.15)}
.site-footer{background:#292929!important}
.hero{background:linear-gradient(135deg,#ffffff 0%,#f5f5f5 48%,#e8e8e8 100%);color:#222;border-bottom:4px solid var(--kb-gold);position:relative;overflow:hidden}
.hero:before,.hero:after{content:"";position:absolute;pointer-events:none;opacity:.45}
.hero:before{width:520px;height:520px;border-radius:50%;background:linear-gradient(145deg,#eee,#d5d5d5);right:-180px;top:-280px}
.hero:after{left:0;right:0;bottom:0;height:120px;background:linear-gradient(165deg,transparent 49%,rgba(180,180,180,.18) 50%,rgba(220,220,220,.28) 68%,transparent 69%)}
.hero .container{position:relative;z-index:1}
.hero-logo{max-height:300px;filter:drop-shadow(0 10px 18px rgba(0,0,0,.12));background:rgba(255,255,255,.82);padding:1rem;border-radius:1.25rem}
.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-weight:700;font-size:.82rem;color:#8c7415}
h1,h2,h3,.navbar-brand{font-weight:700}.btn-primary{--bs-btn-bg:#333;--bs-btn-border-color:#333;--bs-btn-hover-bg:#111;--bs-btn-hover-border-color:#111}.hero .btn-light{background:#fff;border:2px solid var(--kb-gold);color:#222}.hero .btn-light:hover{background:var(--kb-yellow);border-color:var(--kb-gold)}
.btn-outline-dark{--bs-btn-color:#333;--bs-btn-border-color:#777}.card{border:1px solid #e5e5e5}.post-image{height:260px;object-fit:cover}
.section-alt{background:#f6f6f6}.gallery-card{overflow:hidden}.gallery-photo{width:100%;height:230px;object-fit:cover;transition:transform .2s}.gallery-card:hover .gallery-photo{transform:scale(1.025)}.gallery-caption{min-height:2.5rem}.gallery-heading{border-left:6px solid var(--kb-yellow);padding-left:.75rem}
footer a{text-decoration:none}footer a:hover{text-decoration:underline}@media(max-width:575px){.navbar-brand span{font-size:1rem}.navbar-brand img{height:42px}.gallery-photo{height:190px}}
.gallery-lightbox{display:block;cursor:zoom-in}.lightbox-content{background:rgba(20,20,20,.95);border:0}.lightbox-stage{max-width:calc(100vw - 140px);max-height:100vh;padding:2rem}.lightbox-image{max-width:100%;max-height:calc(100vh - 110px);object-fit:contain;box-shadow:0 8px 35px rgba(0,0,0,.45)}.lightbox-caption{color:#fff;font-size:1.05rem;margin-top:.8rem}.lightbox-close{position:absolute;right:1.25rem;top:1.25rem;z-index:5;font-size:1.25rem}.lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:4;border:0;background:rgba(255,255,255,.12);color:var(--kb-yellow);font-size:3rem;line-height:1;padding:.5rem 1rem;border-radius:.5rem}.lightbox-nav:hover{background:#444;color:#fff}.lightbox-prev{left:1.25rem}.lightbox-next{right:1.25rem}@media(max-width:767px){.lightbox-stage{max-width:100vw;padding:3.5rem .75rem 4rem}.lightbox-image{max-height:calc(100vh - 130px)}.lightbox-nav{font-size:2rem;padding:.45rem .7rem;top:auto;bottom:1rem;transform:none}.lightbox-prev{left:calc(50% - 70px)}.lightbox-next{right:calc(50% - 70px)}}

/* V6: dezente Walliser Bergkulisse im Kopfbereich */
.hero{
  background:
    linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.90) 42%,rgba(245,245,245,.84) 100%),
    url('header-mountains.png') center 42%/cover no-repeat;
  min-height:520px;
}
.hero:before{display:none}
.hero:after{
  left:0;right:0;bottom:0;height:150px;
  background:linear-gradient(to bottom,transparent,rgba(255,255,255,.78));
  opacity:1;
}
.hero-logo{background:rgba(255,255,255,.70);backdrop-filter:blur(2px)}
@media(max-width:767px){
  .hero{background-position:center top;min-height:auto}
}

/* V7: kleines Logo nur in Navigation, Benutzer-Bergbild als Header-Hintergrund */
.navbar-brand img{height:58px;width:auto;object-fit:contain;object-position:left center}
.hero{
  background:
    linear-gradient(90deg,rgba(255,255,255,.90) 0%,rgba(255,255,255,.80) 45%,rgba(255,255,255,.48) 100%),
    url('header-mountains-user.png') center center/cover no-repeat;
  min-height:520px;
}
.hero .row>.col-lg-8{max-width:760px}
@media(max-width:767px){
 .navbar-brand img{height:46px}
 .hero{background-position:center center;min-height:auto}
}

/* V8: neues kompaktes Logo in der Navigation; Titel im Header bleibt bestehen. */
.navbar-brand img{
  height:62px;
  width:auto;
  max-width:170px;
  object-fit:contain;
  object-position:left center;
}
.hero{
  background:
    linear-gradient(90deg,rgba(255,255,255,.90) 0%,rgba(255,255,255,.72) 42%,rgba(255,255,255,.52) 100%),
    url('header-mountains-wide.jpg') center 56%/cover no-repeat;
  min-height:540px;
}
.hero:after{
  display:block;
  height:95px;
  background:linear-gradient(to bottom,transparent,rgba(255,255,255,.92));
}
@media(max-width:767px){
  .navbar-brand img{height:48px;max-width:135px}
  .hero{background-position:center 50%;min-height:auto}
}

/* V9: Walliser Alpen + Stadel als dezenter, responsiver Hero-Hintergrund */
.hero{
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.88) 38%, rgba(255,255,255,.70) 66%, rgba(255,255,255,.62) 100%),
    url('header-wallis-stadel.png');
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  min-height:520px;
  display:flex;
  align-items:center;
  color:#171717;
  text-shadow:0 1px 0 rgba(255,255,255,.95);
}
.hero:after{background:linear-gradient(to bottom,transparent 68%,rgba(255,255,255,.72) 100%)}
.hero h1,.hero h2,.hero p{max-width:760px}
@media (max-width:991.98px){
  .hero{
    min-height:auto;
    background-position:42% center;
    background-image:
      linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 60%, rgba(255,255,255,.70) 100%),
      url('header-wallis-stadel.png');
  }
}
@media (max-width:575.98px){
  .hero{
    background-position:34% center;
    background-image:
      linear-gradient(rgba(255,255,255,.88),rgba(255,255,255,.88)),
      url('header-wallis-stadel.png');
  }
}

/* KBV21 – farbiger, klar strukturierter Auftritt (2026) */
:root{--kb-forest:#235447;--kb-forest-dark:#173c34;--kb-amber:#d6a43b;--kb-sand:#f5efe3;--kb-ink:#23332f;--kb-line:#d9e3dd;--kb-muted:#62736d}
body{background:#f3f6f3;color:var(--kb-ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.6}
h1,h2,h3,.navbar-brand{letter-spacing:-.025em;color:var(--kb-forest-dark)}
body:not(:has(.hero)) main.container,body:not(:has(.hero)) main.py-5{min-height:65vh}
main h1:first-child,main section>h1:first-child{padding-bottom:.7rem;border-bottom:3px solid var(--kb-amber);margin-bottom:1.3rem}
.navbar{background:#fff!important;border-bottom:3px solid var(--kb-amber);box-shadow:0 3px 18px #163f3014}
.navbar .nav-link{border-radius:.6rem;padding:.55rem .85rem!important;font-weight:600}
.navbar .nav-link:hover,.navbar .nav-link.active{background:#e7f1eb;color:var(--kb-forest)!important}
.card{background:#fff;border:1px solid var(--kb-line);border-radius:1rem;box-shadow:0 5px 18px #173b2d0d;overflow:hidden}
.card:hover{box-shadow:0 9px 24px #173b2d16}
.card .card-header{background:#e7f1eb;color:var(--kb-forest-dark);font-weight:700;border-bottom:1px solid var(--kb-line)}
.btn{border-radius:.65rem;font-weight:600;padding:.5rem .95rem;transition:background-color .15s,transform .15s}
.btn:hover{transform:translateY(-1px)}
.btn-primary,.btn-dark{--bs-btn-bg:var(--kb-forest);--bs-btn-border-color:var(--kb-forest);--bs-btn-hover-bg:var(--kb-forest-dark);--bs-btn-hover-border-color:var(--kb-forest-dark);--bs-btn-active-bg:var(--kb-forest-dark);--bs-btn-active-border-color:var(--kb-forest-dark)}
.btn-outline-dark{--bs-btn-color:var(--kb-forest);--bs-btn-border-color:var(--kb-forest);--bs-btn-hover-bg:var(--kb-forest);--bs-btn-hover-border-color:var(--kb-forest)}
a{color:#226653}a:hover{color:#143e32}
.form-control,.form-select{border:1px solid #bacdc2;border-radius:.65rem;background-color:#fff;padding:.62rem .8rem}
.form-control:focus,.form-select:focus{border-color:var(--kb-forest);box-shadow:0 0 0 .2rem #37765a24}
.form-label{font-weight:650;color:#344b41}
.table-responsive{border:1px solid var(--kb-line);border-radius:.9rem;background:#fff;box-shadow:0 4px 14px #173b2d0a}
.table{--bs-table-bg:transparent;--bs-table-hover-bg:#eaf3ed;margin-bottom:0}
.table thead th{background:#235447!important;color:#fff!important;border:0;padding:.9rem .85rem;font-weight:650;white-space:nowrap}
.table tbody td{padding:.85rem;border-bottom-color:#e3ebe6;vertical-align:middle}
.table tbody tr:nth-child(even){background:#f4f8f5}
.table .course-past td,.course-past td{background:#edf0ef!important;color:#66736e}
.badge{border-radius:.5rem;padding:.45em .7em}
.alert{border-radius:.8rem;border-left-width:5px}
.section-alt{background:#e9f0e9}
.gallery-heading{border-left-color:var(--kb-amber)}
.hero{border-bottom:5px solid var(--kb-amber)}
.hero .btn-light{border-color:var(--kb-amber)}
.site-footer{background:var(--kb-forest-dark)!important}
/* Admin: Navigation und Inhaltsbereiche deutlich voneinander trennen */
.admin-shell{background:#e3eee7;border:1px solid #cadbd0;border-radius:1rem;padding:1rem;box-shadow:0 5px 18px #183f2e12}
.admin-nav{gap:.55rem!important}
.admin-nav .btn{border:1px solid #bed2c5;background:#fff;color:var(--kb-forest-dark);padding:.65rem 1rem;box-shadow:0 2px 5px #183f2e0a}
.admin-nav .btn:hover{background:#d2e7da;color:var(--kb-forest-dark)}
.admin-nav .btn.btn-dark{background:var(--kb-forest)!important;color:#fff!important;border-color:var(--kb-forest)!important;box-shadow:inset 0 -3px 0 var(--kb-amber)}
.admin-section{background:#fff;border:1px solid var(--kb-line);border-radius:1.15rem;padding:clamp(1rem,2.5vw,2rem);box-shadow:0 8px 24px #173b2d0d}
.admin-section>h1,.admin-section>h2{background:linear-gradient(90deg,#e5f1e9,#fff);border-left:5px solid var(--kb-amber);border-bottom:0!important;border-radius:.45rem;padding:.75rem 1rem;margin-bottom:1.25rem}
#admin-dashboard .row .card{background:linear-gradient(135deg,#e9f3ec,#fff);border-top:4px solid var(--kb-forest)}
#admin-dashboard .row>div:nth-child(2) .card{border-top-color:#c98e37;background:linear-gradient(135deg,#fff2dc,#fff)}
#admin-dashboard .row>div:nth-child(3) .card{border-top-color:#4d87ad;background:linear-gradient(135deg,#eaf3fa,#fff)}
#admin-dashboard .row>div:nth-child(4) .card{border-top-color:#8e74a5;background:linear-gradient(135deg,#f3ebfa,#fff)}
#admin-dashboard .display-6{color:var(--kb-forest-dark);font-weight:750}
.admin-section form.card{background:#f8faf8;border-left:4px solid var(--kb-amber)}
.admin-section .card-body>h2:first-child,.admin-section form>h2:first-child{color:var(--kb-forest)}
@media(max-width:767px){.admin-shell{padding:.7rem}.admin-nav .btn{flex:1 1 43%;font-size:.9rem}.admin-section{padding:1rem}.table-responsive{overflow-x:auto}.hero{min-height:auto}}
