/* ================================================================
   nuSport – Theme: Österreichischer Badminton-Verband (ÖBV)
   ----------------------------------------------------------------
   Verbandsfarben: ÖBV-Rot
   Primärrot   #ed1e24 = rgb(237, 30, 36)   — Links, Buttons,
                                              Top-Line, aktive Menüpunkte
   Quelle: https://www.badminton.at/ (assets/css/options.css)
   ================================================================ */

:root {
    --primary:        #ed1e24;
    --primary-rgb:    237, 30, 36;
    --primary-light:  #eeeeee;  /* ÖBV-CI: Neutralgrau statt Rotton */

    --accent:         #b81519;

    --bg:             #f4f4f4;
    --card:           #ffffff;

    --text:           #1a1a1a;
    --text-muted:     #555555;
    --text-light:     #777777;

    --border:         #dedede;
    --radius:         8px;
    --shadow:         0 2px 10px rgba(237, 30, 36, 0.10);

    --font:           "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

    --link-color:     var(--primary);
    --link-hover:     var(--accent);
    --surface:        var(--card);

    --header-bg:      var(--primary);
    --header-color:   #ffffff;
    --tabs-bg:        var(--accent);
}

:root {
    --bs-primary:                           var(--primary);
    --bs-primary-rgb:                       var(--primary-rgb);
    --bs-link-color:                        var(--link-color);
    --bs-link-color-rgb:                    var(--primary-rgb);
    --bs-link-hover-color:                  var(--link-hover);
    --bs-body-font-family:                  var(--font);
    --bs-body-color:                        var(--text);
    --bs-body-bg:                           var(--bg);
    --bs-border-color:                      var(--border);
    --bs-border-radius:                     var(--radius);
    --bs-border-radius-sm:                  calc(var(--radius) * 0.6);
    --bs-border-radius-lg:                  calc(var(--radius) * 1.4);
    --bs-card-bg:                           var(--card);
    --bs-card-border-color:                 var(--border);
    --bs-card-box-shadow:                   var(--shadow);
    --bs-table-striped-bg:                  var(--primary-light);
    --bs-table-hover-bg:                    rgba(var(--primary-rgb), 0.05);
    --bs-nav-tabs-border-color:             var(--border);
    --bs-nav-tabs-link-hover-border-color:  var(--border) var(--border) transparent;
    --bs-nav-tabs-link-active-color:        var(--primary);
    --bs-nav-tabs-link-active-bg:           var(--card);
    --bs-nav-tabs-link-active-border-color: var(--primary) var(--primary) var(--card);
    --bs-danger:                            #dc3545;
    --bs-danger-rgb:                        220, 53, 69;
    --bs-focus-ring-color:                  rgba(var(--primary-rgb), 0.25);
}

/* ÖBV-Logo: 240×63 px (cropped aus Header-Banner, heller Hintergrund)
   Auf rotem Header → weißer Chip für saubere Darstellung */
#logo a::before {
    content:             "";
    display:             block;
    background-image:    url("../../img/logos/badat/logo-oebv.png");
    background-color:    #ffffff;
    background-size:     contain;
    background-position: center center;
    background-repeat:   no-repeat;
    width:               80px;
    height:              3.2rem;
    border-radius:       5px;
    box-shadow:          0 1px 4px rgba(0, 0, 0, 0.20);
}

h1 { font-size: 1.25rem; margin-bottom: 0.5rem;  font-weight: 800; }
h2 { font-size: 1.1rem;  margin-bottom: 0.45rem; font-weight: 700; }
h3 { font-size: 1rem;    margin-bottom: 0.4rem;  font-weight: 700; }
h4 { font-size: 0.9rem;  margin-bottom: 0.35rem; font-weight: 600; }
h5 { font-size: 0.95rem; margin-bottom: 0.3rem; }
h6 { font-size: 0.875rem; margin-bottom: 0.25rem; }

.picto-pdf::before {
    content: ""; display: inline-block; width: 0.95em; height: 0.95em;
    margin-right: 0.3em; vertical-align: -0.12em;
    background-repeat: no-repeat; background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23ed1e24' d='M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5v1.5z'/%3E%3Cpath fill='%23ed1e24' d='M4.603 14.087a.81.81 0 0 1-.438-.42c-.195-.388-.13-.776.08-1.102.198-.307.526-.568.897-.787a7.68 7.68 0 0 1 1.482-.645 19.7 19.7 0 0 0 1.062-2.227 7.27 7.27 0 0 1-.43-1.295c-.086-.4-.119-.796-.046-1.136.075-.354.274-.672.65-.823.192-.077.4-.12.602-.077a.7.7 0 0 1 .477.365c.088.164.12.356.127.538.007.188-.012.396-.047.614-.084.51-.27 1.134-.52 1.794a10.954 10.954 0 0 0 .98 1.686 5.75 5.75 0 0 1 1.334.05c.364.066.734.195.96.465.12.144.193.32.2.518.007.192-.047.382-.138.563a1.04 1.04 0 0 1-.354.416.856.856 0 0 1-.51.138c-.331-.014-.654-.196-.933-.417a5.71 5.71 0 0 1-.911-.95 11.65 11.65 0 0 0-1.997.406 11.31 11.31 0 0 1-1.02 1.51c-.292.35-.609.656-.927.787a.793.793 0 0 1-.58.029z'/%3E%3C/svg%3E");
}

#language-switcher li a, #language-switcher li.selected { display: inline-block; padding: 0.1rem 0.4rem; border-radius: 3px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; opacity: 0.7; }
#language-switcher li a { color: var(--text-light); transition: opacity 0.15s; }
#language-switcher li a:hover { opacity: 1; text-decoration: underline; }
#language-switcher li.selected { color: var(--text); opacity: 1; cursor: default; }

table.matrix { border-collapse: separate; border-spacing: 0; width: auto; margin-bottom: 1.25rem; }
table.matrix td { vertical-align: top; min-width: 140px; padding: 0.65rem 0.9rem; background: var(--card); border-top: 3px solid var(--primary); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
table.matrix td:first-child { border-left: 1px solid var(--border); border-radius: var(--radius) 0 0 var(--radius); }
table.matrix td:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
table.matrix h2 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 0.45rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.matrix ul { list-style: none; margin: 0; padding: 0; }
table.matrix h2 ~ h2 { margin-top: 1rem; }
table.matrix ul + ul { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed var(--border); }
table.matrix li { font-size: 0.82rem; line-height: 1.7; }
table.matrix li a { color: var(--primary); text-decoration: none; transition: opacity 0.15s; }
table.matrix li a:hover { opacity: 0.75; text-decoration: underline; }
table.matrix tr:hover td { background: var(--card); }
table.matrix td.contestTypeBanner { border-top-color: var(--border); min-width: auto; padding: 0.5rem; opacity: 0.85; }

#header a, #header button, #hamburger-btn { color: var(--header-color, #ffffff); }
#tabs .nav-link            { color: rgba(255, 255, 255, 0.85); }
#tabs .nav-link:hover      { color: #ffffff; background: rgba(255, 255, 255, 0.12); }
#tabs .nav-link.active     { color: #ffffff; background: rgba(255, 255, 255, 0.18); border-color: rgba(255,255,255,0.25) rgba(255,255,255,0.25) transparent; }

a                              { color: var(--link-color); }
a:hover                        { color: var(--link-hover); }
legend                         { color: var(--primary); }
#sidebar strong                { color: var(--text-light); }
#sidebar a                     { color: var(--text); }
#sidebar a:hover, #sidebar a.active { background: var(--primary-light); color: var(--primary); }
nav[aria-label="breadcrumb"]   { background: rgba(0, 0, 0, 0.03); }
.breadcrumb-item, .breadcrumb-item a { font-size: 0.82rem; color: var(--text-light); }
.breadcrumb-item a:hover       { color: var(--primary); }
.breadcrumb-item.active        { color: var(--text-light); opacity: 0.75; }
#footer                        { color: var(--text-light); background: var(--card); }
#footer a                      { color: var(--primary); }
#breadcrumb                    { color: var(--text-light); background: #f0f0f0; border-color: var(--border); }
input[type="submit"], button[type="submit"] { background: var(--primary); color: #ffffff; }
input[type="submit"]:hover, button[type="submit"]:hover { background: var(--accent); }
input:focus, select:focus, textarea:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.2) !important; }
th { background: var(--primary-light); border-bottom: 2px solid rgba(var(--primary-rgb), 0.25); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text); }
tr:hover td { background: rgba(var(--primary-rgb), 0.04); }
