/* ===================== mobile.css ===================== */

/* ---------------- Grundfarben ---------------- */
:root {
    --primary: #1e2a38;
    --accent:  #8b0000;
    --text:    #222;
    --background: #f5f5f5;
}

/* ---------------- RESET ---------------- */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--text);
}

body {
    overflow: hidden; /* Scroll nur im Content */
}

/* ---------------- Desktop-Header ausblenden ---------------- */
.header-center,
header .header-left,
header .header-right {
    display: none !important;
}

/* ===================== MOBILE HEADER ===================== */
.mobile-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px; /* leicht höher für größere Schrift */
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    box-sizing: border-box;
    z-index: 1002;
    color: #fff;
}

.mobile-header-title {
    font-size: 1.5rem; /* größer für bessere Lesbarkeit */
    font-weight: 600;
}

.mobile-header-bar .hamburger {
    font-size: 34px;  /* größer zum leichteren Tippen */
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    min-width: 50px;
    min-height: 50px;
}

/* ===================== MOBILE MENU ===================== */
.mobile-menu {
    position: fixed;
    top: 60px;      /* unter Header */
    bottom: 0;      /* bis Footer */
    left: 0;
    width: 250px;

    overflow-y: auto;
    background: var(--background);

    padding: 8px 10px; /* etwas kompakter */
    box-sizing: border-box;

    display: none;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
}

/* Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    z-index: 999;
}

/* Menülisten */
.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #e0e0e0;
}

/* Hauptlinks kompakt */
.mobile-menu li a {
    display: block;
    padding: 10px 6px;      /* etwas größer touch-freundlich */
    text-decoration: none;
    color: var(--text);
    font-size: 1.2rem;      /* größere Schrift */
    line-height: 1.3;
}

.mobile-menu li a:hover {
    color: var(--accent);
}

/* Untermenü */
.mobile-menu ul.submenu {
    display: none !important;
    overflow: hidden;
    padding-left: 10px;       /* enger an Hauptmenüpunkt */
    margin-top: 2px;           /* minimaler Abstand */
    background-color: #f7f7f7;
    border-left: 2px solid #bbb;
}

.mobile-menu ul.submenu li a {
    padding: 6px 6px;       /* kompakt */
    font-size: 1rem;         /* leicht kleiner als Hauptmenü */
    color: #555;
}

/* Parent-Pfeil */
.mobile-menu li.parent > a::after {
    content: " ▸";
    float: right;
    font-weight: bold;
    color: #888;
}

/* ===================== MAIN CONTENT ===================== */
.main-content {
    position: fixed;
    top: 60px;        /* unter Header */
    bottom: 40px;     /* Footer etwas niedriger */
    left: 0;
    right: 0;

    overflow-y: auto;
    padding: 18px;
    box-sizing: border-box;
    text-align: left;  /*justify; */
}

.main-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

/* ===================== FOOTER ===================== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;   /* kleiner Footer */
    background-color: var(--primary);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;  /* größer für bessere Lesbarkeit */
    z-index: 1000;
}

/* ===================== FORMULARE ===================== */
.rscontact,
.com-users-login.login {
    max-width: 100%;
    margin: 20px 0;
    padding: 18px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.rscontact input,
.rscontact select,
.rscontact textarea,
.com-users-login input[type="text"],
.com-users-login input[type="password"] {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: #fafafa;
    box-sizing: border-box;
}

.rscontact textarea {
    min-height: 120px;
    resize: vertical;
}

.rscontact .submit,
.com-users-login .btn-primary {
    display: inline-block;
    padding: 10px 22px;
    font-size: 15px;
    border-radius: 6px;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}

.rscontact .submit:hover,
.com-users-login .btn-primary:hover {
    background: #3a3a3a;
}