/* =========================================================
   GLOBALE EINSTELLUNGEN (Mobile First)
   ========================================================= */

html,
body {
    background: #000;
    color: #333333;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* ====
   BILDER & MEDIEN (globale Regel)
   ==== */
img, video, iframe, embed {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000;
    color: aqua;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* Hamburger-Menü-Button für Mobile */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: aqua;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.main-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* =========================================================
   LINKES MENÜ (Mobile: Standardmäßig ausgeblendet)
   ========================================================= */

.left-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #111;
    padding: 1rem 0;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    z-index: 1001;
}

.left-menu.active {
    display: flex;
}

/* =========================================================
   HAUPTMENÜ
   ========================================================= */

.main-nav {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-bottom: 0.5rem;
}

.main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: #e3b448;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus {
    color: #3a6b35;
    outline: none;
}

.main-nav a.active {
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================================
   UNTERMENÜ
   ========================================================= */

.sub-menu {
    padding: 0 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 250px);
}

.sub-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sub-menu li {
    margin-bottom: 0.5rem;
}

.sub-menu a {
    color: #cbd18f;
    text-decoration: none;
}

.sub-menu a:hover,
.sub-menu a:focus {
    color: #3a6b35;
    outline: none;
}

.sub-menu a.active {
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================================
   INHALT (Mobile: Vollbreite)
   ========================================================= */

.content-area {
    width: 100%;
    padding: 1rem;
    background: #222;
    color: white;
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

/* =========================================================
   STANDARD-BUTTONS (Mobile First)
   ========================================================= */

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
}

.app-button {
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 52px;
    padding: .8rem 1rem;

    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-align: center;

    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.2);

    background: linear-gradient(135deg,#3a6b35,#000);

    transition: transform .15s ease, opacity .2s ease;
}

.app-button:hover {
    opacity: .85;
}

.app-button:active {
    transform: scale(.96);
}

/* =========================================================
   TABELLEN (Mobile: Vollbreite und optimierte Schriftgröße)
   ========================================================= */

.radio-table {
    width: 100%;
    border: 2px solid olive;
    border-collapse: collapse;
    font-size: 0.85em;
}

.radio-table th,
.radio-table td {
    background: #000;
    color: #fff;
    border: 1px solid olive;
    padding: 6px;
    text-align: center;
}

.radio-table th {
    height: 30px;
}

.radio-table a {
    color: inherit;
    text-decoration: none;
}

.radio-table a:hover {
    color: gold;
    text-decoration: underline;
}

/* =========================================================
   FOOTER (Mobile: Vollbreite)
   ========================================================= */

.main-footer {
    width: 100%;
    background: #333;
    color: #999;
    text-align: center;
    padding: 1rem;
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

/* =========================================================
   GLOBALE LINKS (außer Untermenü)
   ========================================================= */

a:not(.sub-menu a) {
    color: #e3b448;
    text-decoration: none;
}

a:not(.sub-menu a):hover,
a:not(.sub-menu a):focus {
    color: #3a6b35;
    outline: none;
}

a:not(.sub-menu a).active {
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================================
   TEXTFORMATIERUNG (Mobile: Optimiert für kleine Bildschirme)
   ========================================================= */

body,
.main-content p {
    color: #3a6b35;
    font-size: 18px;
    line-height: 1.6;
    margin-left: 10px;
    margin-right: 10px;
}

h1,
.main-content h1,
h2,
.main-content h2,
h3,
.main-content h3 {
    color: #3a6b35;
    margin-left: 10px;
}

/* =========================================================
   PRIVATBEREICH-BUTTONS (Mobile: Grid für bessere Anpassung)
   ========================================================= 

.privatbereich {
    padding: 1rem;
}

.privatbereich-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
    max-width: 100%;
}

.inside-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.1s ease, opacity 0.2s ease;
    user-select: none;
    width: 100%;
}

.inside-button:hover,
.inside-button:focus {
    opacity: 0.9;
    transform: scale(1.02);
    color: #fff;
}

.inside-button:active {
    transform: scale(0.95);  
}  



/* =========================================================
   DESKTOP-ANPASSUNGEN (ab 700px)
   ========================================================= */

@media (min-width: 700px) {
    /* Layout-Anpassungen für Desktop */
    .main-wrapper {
        flex-direction: row;
    }

/* Linkes Menü: Feste Breite und immer sichtbar */
.left-menu {
    width: 200px;
    height: calc(100vh - 80px);
    display: flex;
    position: fixed;
}

.menu-toggle {
    display: none;
}

/* Inhalt: Platz für das Menü lassen */
.content-area {
    margin-left: 200px;
    width: calc(100% - 200px);
}

.main-footer {
    margin-left: 200px;
    width: calc(100% - 200px);
}

/* Textformatierung für Desktop */
body,
.main-content p {
    font-size: 22px;
    margin-left: 20px;
    margin-right: 20px;
}

h1,
.main-content h1,
h2,
.main-content h2,
h3,
.main-content h3 {
    margin-left: 20px;
}

/* Tabellen auf Desktop */
.radio-table {
    width: 50%;
    font-size: 1em;
}

.radio-table td:first-child {
    width: 19%;
}

/* Buttons auf Desktop */

.button-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.app-button {
    min-height: 60px;
}


/*.privatbereich-buttons {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    max-width: 760px;
}

.inside-button {
    width: auto;
}

button, a[class*="button"], input[type="submit"] {
    width: auto;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}   */

}    

/* =========================================================
   TABLET-ANPASSUNGEN (ab 1024px, optional)
   ========================================================= */

@media (min-width: 1024px) {
    .radio-table {
        width: 40%;
    }
}