/*
Theme Name: OV Leasing Theme
Description: Eigenständiges Theme für die Objektverwertung Leasing-Plattform. Minimales Theme ohne Abhängigkeiten zu Jupiter X oder Elementor.
Author: Objektverwertung
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-ov-theme
*/

/* ============================================================
   ROBOTO WEBFONT (lokal)
   ============================================================ */
@font-face {
  font-family: 'Roboto';
  src: url('assets/fonts/roboto-v51-latin_latin-ext-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('assets/fonts/roboto-v51-latin_latin-ext-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('assets/fonts/roboto-v51-latin_latin-ext-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('assets/fonts/roboto-v51-latin_latin-ext-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   BOOTSTRAP 4 → 5 KOMPATIBILITÄT (badge-* Klassen)
   ============================================================ */
.badge-pill { border-radius: 50rem !important; }

.badge-primary   { background-color: #0d6efd !important; color: #fff !important; }
.badge-secondary { background-color: #6c757d !important; color: #fff !important; }
.badge-success   { background-color: #198754 !important; color: #fff !important; }
.badge-danger    { background-color: #dc3545 !important; color: #fff !important; }
.badge-warning   { background-color: #ffc107 !important; color: #000 !important; }
.badge-info      { background-color: #0dcaf0 !important; color: #000 !important; }
.badge-light     { background-color: #f8f9fa !important; color: #000 !important; }
.badge-dark      { background-color: #212529 !important; color: #fff !important; }

/* Bootstrap 4 btn-group mit Labels (Radio/Checkbox Toggle) */
.btn-group > label.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-group > label.btn input[type="radio"],
.btn-group > label.btn input[type="checkbox"] {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

/* Abstand zwischen losen btn-check Labels */
label.btn {
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  background: #f8f9fa;
}

/* Basisfarbe nur auf direkte Text-Container, nicht vererbt auf Bootstrap-Komponenten */
p, h1, h2, h3, h4, h5, h6, li, td, th, label, small {
  color: rgb(122, 122, 122);
}

.ov-nav ul li a {
  color: rgb(122, 122, 122);
}

a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.ov-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ov-main {
  flex: 1;
  padding: 0 0 2rem 0;
  background: #ffffff;
}

/* ============================================================
   HEADER
   ============================================================ */
.ov-header {
  background: #ffffff;
  border-bottom: 1px solid #dee2e6;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.ov-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  gap: 1rem;
}

.ov-nav {
  margin-left: auto;
}

.ov-logo img {
  height: 50px;
  width: auto;
  display: block;
}

.ov-logo:hover {
  text-decoration: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.ov-nav {
  display: flex;
  align-items: center;
}

.ov-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ov-nav ul li {
  position: relative;
  margin-left: 10px;
}

.ov-nav ul li a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.0rem;
  padding: 0.0rem 0.2rem;
  color: #6c757d;
  font-size: 1.0rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.ov-nav ul li a:hover,
.ov-nav ul li.current-menu-item > a,
.ov-nav ul li.current-menu-parent > a,
.ov-nav ul li.current-menu-ancestor > a {
  color: #212529 !important;
  text-decoration: none;
}

/* Dropdown */
.ov-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  min-width: 200px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  z-index: 1040;
  padding: 0.25rem 0;
}

.ov-nav ul li:hover > ul {
  display: flex;
}

.ov-nav ul li ul li a {
  display: block;
  border-radius: 0;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: #212529;
}

.ov-nav ul li ul li a:hover {
  background: #f0f4ff;
  color: #0d6efd;
}

/* Dropdown-Pfeil */
.ov-nav ul li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 0.35rem;
  opacity: 0.6;
}

/* Mobile Hamburger */
.ov-nav-toggle {
  display: none;
  background: none;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  font-size: 1.25rem;
  color: #212529;
  margin-left: auto;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.ov-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   PAGE HEADER (Titel + Breadcrumb)
   ============================================================ */
.ov-page-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1.25rem 2rem;
  margin-bottom: 1.5rem;
}

.ov-page-title {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: rgb(122, 122, 122);
}

.ov-breadcrumb {
  font-size: 0.875rem;
  color: #6c757d;
}

.ov-breadcrumb a {
  color: #0d6efd;
  text-decoration: none;
}

.ov-breadcrumb a:hover {
  text-decoration: underline;
}

.ov-breadcrumb span {
  color: #6c757d;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ov-footer {
  background: #212529;
  color: #adb5bd;
  padding: 1.25rem 0;
  font-size: 0.875rem;
  margin-top: auto;
}

.ov-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ov-footer-copy {
  color: #adb5bd;
}

.ov-footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ov-footer-links a {
  color: #adb5bd;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.ov-footer-links a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Footer Dropdown */
.ov-footer-links li {
  position: relative;
}

.ov-footer-links li.menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.ov-footer-links li.menu-item-has-children > a::after {
  content: '▾';
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.ov-footer-links li.menu-item-has-children.is-open > a::after {
  transform: rotate(180deg);
}

.ov-footer-links li > ul.sub-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  background: #2c3136;
  border: 1px solid #3a4048;
  border-radius: 0.375rem;
  list-style: none;
  margin: 0;
  padding: 0.375rem 0;
  min-width: 160px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
  z-index: 100;
}

.ov-footer-links li.is-open > ul.sub-menu {
  display: block;
}

.ov-footer-links li > ul.sub-menu li a {
  display: block;
  padding: 0.4rem 1rem;
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1164px) {
  .ov-nav > ul > li > a {
    font-size: 0.875rem;
  }
  .ov-nav > ul > li > ul > li > a {
   font-size: 0.8rem;
  }
}

@media (max-width: 1062px) {
  .ov-nav > ul > li > a {
    font-size: 0.775rem;
  }
   .ov-nav > ul > li > ul > li > a {
   font-size: 0.7rem;
  }
}

@media (max-width: 900px) {
  .ov-nav-toggle {
    display: block;
  }

  .ov-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 1029;
  }

  .ov-nav.is-open {
    display: block;
  }

  .ov-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }

  .ov-nav ul li ul {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid #dee2e6;
    margin-left: 0;
    padding: 0;
    display: flex;
  }

  .ov-nav ul li ul li a {
    padding-left: 2rem;
    border-radius: 0;
    font-size: 0.875rem;
    color: #212529;
  }

  .ov-nav ul li a {
    padding: 0.6rem 1.25rem;
    border-radius: 0;
    justify-content: flex-start;
  }

  .ov-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
