﻿@charset "UTF-8";
@import url("vars.css");

/*************************************************
  Gemeinde Neuhof – Basis-Styles (refaktoriert)
  Struktur:
  1) Base & Helpers
  2) Layout (Header, Footer, Sidebar)
  3) Components (Buttons, Lists, Panels, Popovers)
  4) Content & Utilities
  5) Page-specific blocks (Map, Print, Infoportal)
  6) Navigation
  7) Responsive Breakpoints
**************************************************/

/* ==========================
   1) BASE & HELPERS
   ========================== */

html, body { height: 100%; }
body { font-size: 1.4em; }

/* Typo helpers */
.panel-title a,
h1.Headline,
h1.wk_page_headline,
h2.wk_page_headline,
.jumbotron h1 { color: var(--txt-colour); }

h1.Headline { border-bottom: 1px solid var(--nav-a-bg-color); }

/* Links */
a, a.btn.btn-link { color: var(--txt-colour); }

/* Bootstrap glyphicons in links/buttons */
.navbar-default .navbar-nav > li > a .glyphicon,
.dropdown-menu li a .glyphicon,
.navbar-default .btn-link .glyphicon { color: #434a53; }

/* ========================================
   2) LAYOUT (Header, Footer, Sidebar)
   ======================================== */

.header-logo { padding: 20px 0 20px 15px; }

.header-background {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: 25px -20px url(header-background.png) no-repeat;
  background-size: auto;
}

.navbar { border-bottom: 1px solid #ddd; }
.icon-bar { background-color: var(--txt-colour); }
.navbar-toggle .icon-bar { border-radius: 1px; display: block; height: 2px; width: 22px; }
.navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; }

/* Sidebar */
#sidebar { word-break: break-word; min-width: 150px; z-index: 1; }
form.bs-docs-sidenav, #sidebar .list-group { font-size: 0.85em; }

/* Footer */
.footer { background-color: var(--nav-a-bg-color); border-top: 1px solid #ddd; height: auto; }
#footer-link { color: var(--txt-colour); margin: 0 10px; }
#footer-link a { color: var(--txt-colour); }

/* ========================================
   3) COMPONENTS
   ======================================== */

/* Buttons – gemeinsame Basis */
a.btn { word-break: break-word; }
.btn { border-radius: 20px; }

.btn-primary {
  background: var(--nav-a-bg-color);
  border-color: var(--nav-a-bg-color);
  color: var(--txt-colour);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--group-item-hover);
  border-color: var(--group-item-hover);
  color: var(--txt-colour);
}

.btn-default {
  color: var(--txt-colour);
  background-color: var(--nav-a-bg-color);
  border-color: var(--nav-a-bg-color);
}
.btn-default:hover,
.btn-default:focus {
  color: var(--txt-colour);
  background-color: var(--group-item-hover);
  border-color: var(--group-item-hover);
}

/* Select placeholder */
.bootstrap-select > .dropdown-toggle.bs-placeholder { color: var(--txt-colour); }

/* Lists & Panels */
.list-group-item.active {
  background-color: var(--nav-a-bg-color);
  color: var(--txt-colour);
  font-weight: bold;
  border-color: var(--nav-a-bg-color);
}
.list-group-item.active:hover {
  background-color: var(--nav-a-bg-color);
  color: var(--txt-colour);
  font-weight: bold;
  border-color: var(--nav-a-bg-color);
}

a.list-group-item:hover { background-color: var(--group-item-hover); color: var(--txt-colour); font-weight: bold; }

.wk_details_panel { margin-bottom: 20px; }
.wk_details_panel .panel { height: 100%; }

/* Popovers */
.popover { width: 250px; }

/* ========================================
   4) CONTENT & UTILITIES
   ======================================== */

.wk_hp { display: none; }
.wk_body_style { padding-top: 185px; }

/* Page headlines */
h1.wk_page_headline, h2.wk_page_headline { border-bottom: 1px solid var(--txt-colour); }

/* Affix (legacy Bootstrap) */
.bs-docs-sidenav.affix { position: fixed; top: 130px; }
.col-md-4 .bs-docs-sidenav.affix { width: 32.2%; }

/* Buttons: positionierte Aktionsbuttons */
a.wk_bearbeiten_button, .wk_bearbeiten_button { position: absolute; top: 3px; right: 17px; }
 a.wk_loeschen_button { position: absolute; top: 13px; right: 17px; }

.wk_label, .wk_label_Panel { font-size: 100%; font-weight: bold; }
.wk_legende { font-size: 100%; }

/* Video wrapper */
.responsive-video { position: relative; padding-bottom: 25.25%; height: 0; overflow: hidden; margin-left: 25%; }
.responsive-video iframe { position: absolute; top: 0; left: 0; width: 59.5%; height: 100%; }

/* Kleine UI-Utilities */
.invisible { visibility: hidden; }
.print-only { display: none; }

/* ========================================
   5) PAGE-SPECIFICS (Map, Print, Infoportal)
   ======================================== */

/* MAP_DETAILS */
h4 a.btn { font-size: 18px; }

.mapSize {
  height: 600px;
  /* height: 80%; */
  /* height: calc(100% - 0px); */
}

/* TREFFERLISTE – (Platzhalter für spätere Styles) */

/* TREFFERLISTE_PRINT_PAGE */
.print-pageframe { border: 1px solid black; padding-top: 20px; margin-bottom: 20px; }

/* Infoportal */
.infoportal-previewbox {
  margin-bottom: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em;
  border: 1px solid #f0f0f0; border-radius: 6px; background-color: #f9f9f9;
}
.infoportal-preview { height: 18em; margin-bottom: 1em; overflow: hidden; }
.infoportal-preview table td { vertical-align: top; padding: 0 5px; font-size: 14px; }

/* ========================================
   6) NAVIGATION (Topbar & Dropdowns)
   ======================================== */

nav { font-size: 0.85em; }

/* Dropdown header text */
div#navbar li.dropdown-header { color: #434a53; }

/* Dropdown menu bg – FIX: #ffffff (statt #fffff) */
.navbar-nav > li > .dropdown-menu { background-color: #ffffff; }

/* Linkfarben in Nav, Dropdown, und .btn-link im Default-Navbar-Theme */
.navbar-default .navbar-nav > li > a,
.dropdown-menu li a,
.navbar-default .btn-link { color: #0063be; }

/* Sidebar toggle button (Offcanvas trigger) */
.wk_menu_button { position: absolute; top: 10px; right: 20px; }

/* Zweite Menüleiste bei kleineren Screens ausblenden */
@media (max-width: 991px) {
  div[id^="SecondNavbarHeader"] { display: none !important; }
}

/* ========================================
   7) RESPONSIVE BREAKPOINTS
   Mobile-first: Baseline oben, Abweichungen hier
   ======================================== */

/* ≥1200px */
@media (min-width: 1200px) {
  #navbar ul.nav { width: 100%; background-color: #ffffff; font-size: 18px; font-weight: 400; }
  #navbar ul.nav .active { background-color: var(--nav-a-bg-color); border-radius: 20px; }
  #navbar ul.nav a { color: var(--txt-colour); font-weight: bold; }
  #navbar ul.nav a:hover { background-color: var(--group-item-hover); border-radius: 20px; }
}

/* ≤1200px – behält nahezu gleiche Styles wie ≥1200px, daher nur zur Klarheit
@media (max-width: 1200px) {
  #navbar ul.nav { width: 100%; background-color: #ffffff; font-size: 18px; font-weight: 400; }
  #navbar ul.nav .active { background-color: var(--nav-a-bg-color); border-radius: 20px; }
  #navbar ul.nav a { color: var(--txt-colour); font-weight: bold; }
  #navbar ul.nav a:hover { background-color: var(--group-item-hover); border-radius: 20px; }
}
*/

/* ≤992px */
@media (max-width: 992px) {
  .navbar-header button { margin-top: 0; background-color: #fff; border: 1px solid #ddd; z-index: 1; }
  #navbar ul.nav { width: 100%; background-color: #ffffff; font-size: 15px; font-weight: 400; }
  #navbar ul.nav .active { background-color: var(--nav-a-bg-color); }
  #navbar ul.nav a { color: var(--txt-colour); font-weight: bold; }
  #navbar ul.nav a:hover { background-color: var(--group-item-hover); }
  .header-logo { height: 80px; width: auto; }
  .header-background { background-size: 648px; }

  /* Off-canvas Grid */
  .row-offcanvas { position: relative; transition: all .25s ease-out; }
  .row-offcanvas-right { right: 0; }
  .row-offcanvas-left { left: 0; }
  .row-offcanvas-right .sidebar-offcanvas { right: -50%; }
  .row-offcanvas-left .sidebar-offcanvas { left: -50%; }
  .row-offcanvas-right.active { right: 50%; }
  .row-offcanvas-left.active { left: 50%; }
  .sidebar-offcanvas { position: absolute; top: 0; width: 40%; margin-top: 60px; margin-right: 60px; }
  .wk_nav_panel { display: inherit !important; position: static; margin-top: 0; }
}

/* ≤767px */
@media (max-width: 767px) {
  .navbar-header { background-color: #ffffff; }
  .navbar-header button { margin-top: 8px; background-color: var(--nav-a-bg-color); border: 1px solid #ddd; z-index: 1; }

  #navbar ul.nav { background: #ffffff; margin: 0; }
  #navbar ul.nav a { color: var(--txt-colour); font-weight: bold; }
  #navbar ul.nav a:hover { color: var(--txt-colour); background-color: var(--group-item-hover); text-decoration: none; }
  #navbar ul.nav .active, #navbar ul.nav a.active { color: #fff; background-color: var(--nav-a-bg-color); }
  #navbar { border: none; }

  .header-logo { padding: 10px 0 10px 0; height: 60px; }
  .header-background { background-size: 570px; background-position-x: 10px; }
}

/* ≤450px */
@media screen and (max-width: 450px) {
  .row-offcanvas-right .sidebar-offcanvas { right: -210px; }
}
