/* ================================================
   OTTO'S ANHÄNGER – template.css
   ================================================ */

/* RESET */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #d0d0d0 !important;
    font-family: Arial, sans-serif;
    font-size: 15px;
    color: #222;
}

/* OUTER WRAPPER */
.outer-wrapper {
    background: linear-gradient(180deg, #e87722 0%, #c45e00 100%) !important;
    min-height: 100vh;
    padding: 10px;
}

/* INNER BOX */
.inner-box {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
    background: #222222 !important;
    color: #ffffff !important;
    padding: 15px 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.site-logo {
    max-height: 70px;
    width: auto;
    background: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
}

.logo-text-fallback {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    font-size: 2rem;
    font-weight: 900;
    color: #e87722;
    letter-spacing: 3px;
}

.logo-sub {
    font-size: 0.8rem;
    color: #ffffff;
    letter-spacing: 2px;
}

.site-title-area {
    flex: 1;
    text-align: center;
    background: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
}

.site-title {
    color: #e87722 !important;
    font-size: 1.3rem !important;
    font-weight: bold !important;
}

.site-slogan {
    color: #222222 !important;  /* ← dunkel statt grau, auf weißem Hintergrund */
    font-size: 0.85rem !important;
}

/* ================================================
   NAVIGATION
   ================================================ */
.site-nav {
    background: #333333 !important;
    padding: 0 10px;
}

.site-nav .navbar-toggler {
    color: #ffffff;
    background: #e87722;
    border: none;
    padding: 8px 16px;
    margin: 6px 0;
    cursor: pointer;
    display: none;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

/* Jedes li braucht relative Position, damit das Untermenü darunter andockt */
.site-nav ul li {
    position: relative;
}

.site-nav ul li a {
    display: block;
    padding: 12px 16px;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.site-nav ul li a:hover,
.site-nav ul li.active a {
    background: #e87722 !important;
    color: #ffffff !important;
}

/* --- UNTERMENÜS (Dropdown per Mouseover) --- */

/* Untermenü standardmäßig ausblenden */
.site-nav ul li ul {
    display: block; /* für Transition nötig, wird per opacity/visibility gesteuert */
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    min-width: 200px;
    background: #333333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 100;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Beim Hover über den Elternpunkt (li) einblenden */
.site-nav ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Untermenü-Links etwas anders ausrichten (untereinander statt nebeneinander) */
.site-nav ul li ul li {
    width: 100%;
}

.site-nav ul li ul li a {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .site-nav .navbar-toggler {
        display: block !important;
    }
    .nav-menu {
        display: none;
    }
    .nav-menu.open {
        display: flex;
    }
}

/* ================================================
   CONTENT
   ================================================ */
.content-wrapper {
    display: flex;
    gap: 0;
    min-height: 300px;
}

.main-content-area {
    flex: 1;
    padding: 25px;
}

.main-content-area h1,
.main-content-area h2,
.main-content-area h3 {
    color: #e87722;
    margin-bottom: 10px;
}

/* SIDEBAR */
.sidebar-right {
    width: 220px;
    background: #f5f5f5;
    padding: 15px;
    border-left: 3px solid #e87722;
}

.sidebar-title {
    color: #e87722;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.sidebar-box {
    margin-bottom: 20px;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
    background: #222222 !important;
    color: #ffffff !important;
    padding: 30px 0 0 0;
}

.footer-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer-col h4,
.footer-col h5 {
    color: #e87722 !important;
    margin-bottom: 10px;
    font-size: 1rem;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.footer-col p,
.footer-col td {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

.site-footer .footer-col a[href^="tel"],
.site-footer .footer-col a[href^="mailto"] {
    color: #e87722 !important;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.site-footer .footer-col a[href^="tel"]:hover,
.site-footer .footer-col a[href^="mailto"]:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 10px 20px !important;
    margin: 0 !important;
    color: #888;
    font-size: 0.8rem;
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom a {
    flex: 1;
    color: #ffffff !important;
    text-decoration: none;
}

.footer-bottom a:nth-child(1) {
    text-align: left;
}

.footer-bottom a:nth-child(2) {
    text-align: center;
}

.footer-bottom a:nth-child(3) {
    text-align: right;
}

.footer-bottom a:hover {
    text-decoration: underline;
    color: #e87722 !important;
}

.footer-copy {
    border-top: 1px solid #444;
    padding: 10px 20px !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #aaa;
}

.footer-copy a {
    color: #ff6600 !important;
    text-decoration: none;
}



/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {

    .site-nav .navbar-toggler {
        display: block;
    }

    .site-nav .navbar-collapse {
        display: none;
    }

    .site-nav .navbar-collapse.show {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .sidebar-right {
        width: 100%;
        border-left: none;
        border-top: 3px solid #e87722;
    }

    .footer-cols {
        flex-direction: column;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.footer-copy {
    display: flex !important;
}
