/*
 Theme Name:   LMN München
 Theme URI:    https://livemusicnow-muenchen.de
 Description:  Bricks Child Theme für Live Music Now München e.V. mit Toolset Types
 Author:       Marc Schraepler
 Author URI:   https://marcschraepler.com
 Template:     bricks
 Version:      1.0.6
 Text Domain:  bricks-child-muenchen
*/

/**
 * München-spezifisches Child Theme für Bricks Builder
 * Plugin-System: Toolset Types 3.6.1
 * 
 * Features:
 * - Konzertkalender mit FullCalendar.js
 * - Konzerttabelle mit Filtern
 * - Musikerliste mit DataTables
 * - Spielstättenliste
 * - Reporting & Charts
 */

/* ===================================
   BOOTSTRAP 4 – LMN MÜNCHEN CUSTOM
   =================================== */
/* Angepasstes Bootstrap 4.6.2 mit LMN-Farben - nötig für Toolset Kompatibilität */
@import url('css/bootstrap-4-lmn.css');

/* ===================================
   NAVIGATION TWEAKS
   =================================== */

/* Tweak position of dashicons in navigation bar */
.menu-item .dashicons {
    display: inline;
    font-size: inherit;
    height: auto;
    width: auto;
    line-height: inherit;
    padding-top: 2px;
}

/* Bricks Navigation: Submenü-Links weiß überschreiben (Bootstrap 4 LMN Override) */
.bricks-nav-menu .sub-menu a,
.bricks-nav-menu .sub-menu li a,
.bricks-nav-menu .dropdown-menu a,
.bricks-nav-menu .dropdown-menu li a,
header .sub-menu a,
header .sub-menu li a,
nav .sub-menu a,
nav .sub-menu li a,
.brx-nav-nested-items a,
.brx-submenu-toggle + ul a,
.brxe-nav-menu .sub-menu a,
.brxe-nav-menu .dropdown a,
.brx-dropdown a {
    color: #ffffff !important;  /* Weiß für Submenü-Links */
    text-decoration: none !important;
}

/* Hover-Effekt für Submenü-Links */
.bricks-nav-menu .sub-menu a:hover,
.bricks-nav-menu .sub-menu li a:hover,
.bricks-nav-menu .dropdown-menu a:hover,
.bricks-nav-menu .dropdown-menu li a:hover,
header .sub-menu a:hover,
header .sub-menu li a:hover,
nav .sub-menu a:hover,
nav .sub-menu li a:hover,
.brx-nav-nested-items a:hover,
.brx-submenu-toggle + ul a:hover,
.brxe-nav-menu .sub-menu a:hover,
.brxe-nav-menu .dropdown a:hover,
.brx-dropdown a:hover {
    color: #f0f0f0 !important;  /* Leicht grau beim Hover */
    background-color: rgba(255,255,255,0.1) !important;
}

/* Falls Submenüs einen dunklen Hintergrund haben */
.sub-menu,
.dropdown-menu,
.brx-dropdown,
.brx-nav-nested-items {
    background-color: #363636;  /* Dunkelgrau Hintergrund für Dropdowns */
}

/* ===================================
   MÜNCHEN FARBEN
   =================================== */

.lmnrot {
    color: #D92229; /* LMN München Rot */
}

.lmnschwarz {
    color: #1c1819; /* LMN München Schwarz */
}

.hidden {
    display: none;
}

/* ===================================
   STICKY HEADER
   =================================== */

/* Bricks: How to Make One Row Sticky in a Multi Row Header in Bricks Builder
   Inspired by: https://www.youtube.com/watch?v=5oIT7O8dX5E */
.scrolling .header_bottom {
    max-height: 0px;
    overflow: hidden;
    padding: 0;
}

/* ===================================
   ADDITIONAL MÜNCHEN STYLES
   =================================== */

/* Kalender-Fixes: Überschreibe Bootstrap-Link-Farben im FullCalendar 
 * Problem: Bootstrap 4 LMN setzt alle Links auf #D92229 (rot)
 * Lösung: Kalender-Event-Links erben Farbe vom Parent-Element
 * Tooltip-Links bleiben absichtlich rot */
.fc-event-title a,
.fc-event-title-container a,
.fc-daygrid-event a,
.fc-daygrid-event-harness a,
.fc-daygrid-dot-event a,
.fc-list-event a,
.fc-event a {
    color: inherit !important;  /* Erbe die Farbe vom Parent-Element */
    text-decoration: none !important;
}

/* Hover-Effekt für Kalender-Events (optional) */
.fc-event:hover a {
    text-decoration: none !important;
}

/* Sicherstellen dass Tooltip-Links rot bleiben */
.lmn-tooltip-link,
a.lmn-tooltip-link {
    color: #D92229 !important;  /* LMN Rot */
}

/* Platz für weitere München-spezifische CSS-Anpassungen */

/* ===================================
   BOOTSTRAP ECKIGE ECKEN (RADIUS 0)
   =================================== */

/* Alle Bootstrap-Komponenten mit eckigen Ecken */
.btn,
.btn-lg,
.btn-sm,
.btn-block,
.form-control,
.form-control-lg,
.form-control-sm,
.input-group > .form-control,
.input-group-addon,
.input-group-btn > .btn,
.input-group > .input-group-addon,
.input-group > .input-group-btn > .btn,
.dropdown-menu,
.dropdown-toggle,
.custom-select,
.custom-select-lg,
.custom-select-sm,
.custom-file-label,
.nav-tabs .nav-link,
.nav-pills .nav-link,
.card,
.card-img,
.card-img-top,
.card-img-bottom,
.alert,
.badge,
.badge-pill,
.breadcrumb,
.pagination .page-link,
.list-group-item,
.modal-content,
.modal-header,
.modal-footer,
.popover,
.tooltip-inner,
.progress,
.progress-bar,
.jumbotron,
.form-check-input,
.custom-control-label::before,
.custom-checkbox .custom-control-label::before,
.custom-radio .custom-control-label::before,
.custom-switch .custom-control-label::before,
.custom-file-input,
.custom-range,
.media,
.breadcrumb-item,
.close,
.toast,
.toast-header,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="search"],
input[type="url"],
select,
textarea,
select.form-control,
textarea.form-control {
    border-radius: 0 !important;
}

/* Input Group spezifische Anpassungen */
.input-group > .input-group-prepend > .btn,
.input-group > .input-group-prepend > .input-group-text,
.input-group > .input-group-append > .btn,
.input-group > .input-group-append > .input-group-text,
.input-group > .input-group-prepend:first-child > .btn:not(:last-child),
.input-group > .input-group-prepend:first-child > .input-group-text:not(:last-child),
.input-group > .input-group-prepend:not(:first-child) > .btn,
.input-group > .input-group-prepend:not(:first-child) > .input-group-text,
.input-group > .input-group-append:last-child > .btn:not(:first-child),
.input-group > .input-group-append:last-child > .input-group-text:not(:first-child),
.input-group > .input-group-append:not(:last-child) > .btn,
.input-group > .input-group-append:not(:last-child) > .input-group-text {
    border-radius: 0 !important;
}

/* Button Group spezifische Anpassungen */
.btn-group > .btn,
.btn-group-vertical > .btn,
.btn-group > .btn:first-child:not(:last-child),
.btn-group > .btn:last-child:not(:first-child),
.btn-group > .btn-group:not(:first-child) > .btn,
.btn-group > .btn-group:not(:last-child) > .btn,
.btn-toolbar .btn-group .btn {
    border-radius: 0 !important;
}

/* Toolset Forms spezifische Elemente */
.wpv-filter-form input,
.wpv-filter-form select,
.wpv-filter-form textarea,
.wpv-filter-form .form-control,
.toolset-forms-field input,
.toolset-forms-field select,
.toolset-forms-field textarea {
    border-radius: 0 !important;
}

/* Zusätzliche Bootstrap-Elemente */
.well,
.thumbnail,
.navbar,
.navbar-toggler,
.accordion .card,
.accordion .card-header,
.accordion .btn-link,
.collapse .card,
.spinner-border,
.spinner-grow {
    border-radius: 0 !important;
}

/* Bootstrap Select2 und andere Dropdown-Plugins */
.select2-container .select2-selection,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.select2-dropdown,
.chosen-container .chosen-single,
.chosen-container .chosen-drop {
    border-radius: 0 !important;
}

/* ===================================
   TOOLSET BOOTSTRAP BUTTON OVERRIDES
   =================================== */

/* Toolset Submit Buttons - Hover-Effekt schwarz statt blau */
.wpv-submit-trigger.btn-primary:hover,
.wpv-submit-trigger.btn-primary:focus,
.wpv-submit-trigger.btn-primary:active,
.wpv-submit-trigger.btn-primary.active,
.js-wpv-submit-trigger.btn-primary:hover,
.js-wpv-submit-trigger.btn-primary:focus,
.js-wpv-submit-trigger.btn-primary:active,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn.btn-primary.active {
    background-color: #1c1819 !important;  /* LMN München Schwarz */
    border-color: #1c1819 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(28, 24, 25, 0.25) !important;
}

/* Active/Pressed State */
.wpv-submit-trigger.btn-primary:active:focus,
.js-wpv-submit-trigger.btn-primary:active:focus,
.btn.btn-primary:active:focus,
.btn.btn-primary.active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(28, 24, 25, 0.5) !important;
}

/* Standard-Zustand der Primary Buttons (optional - falls sie auch rot sein sollen) */
.wpv-submit-trigger.btn-primary,
.js-wpv-submit-trigger.btn-primary,
.btn.btn-primary {
    background-color: #D92229 !important;  /* LMN München Rot */
    border-color: #D92229 !important;
    color: #ffffff !important;
}

/* Disabled State */
.wpv-submit-trigger.btn-primary:disabled,
.js-wpv-submit-trigger.btn-primary:disabled,
.btn.btn-primary:disabled,
.btn.btn-primary.disabled {
    background-color: #D92229 !important;
    border-color: #D92229 !important;
    opacity: 0.65;
}
