/* Grundlegende Resets & Zentrierung */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f9f9f9; padding: 10px;
background-image: url('../img/20260215_Haus_Gartenhaus_Grund_Westen_l.jpg');
background-repeat: no-repeat;
background-size: cover;}

h1.startpage
{
    color: #61a353;
    font-size: 2.5em;
    margin-top: 60px;

}
.wrapper {
    max-width: 1100px;
    margin: 0 auto; /* Zentriertes Layout */
    background: #fff;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
#top
{
    display:block;
    width: 100%;
    min-height: 100px;
    background-color: #61a353;
    padding: 4px;
    border-radius: 5px;
}
#top img
{    
    max-height: 100px;
    float: right;
    padding-bottom:10px;    
}

/* Sprachumschalter */
.lang-switch { text-align: right; margin-bottom: 10px; font-weight: bold; background-color: #c0dbc5; font-size:larger;}
.lang-switch a { text-decoration: none; color: #555; margin: 0 5px; }
.lang-switch a:hover { color: #2c3e50; }

/* Menü - Erste Stufe */
nav { background: #6e716c; padding: 10px 0; border-radius: 5px; display: block;float:right;width: 100%;}
.main-menu { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; }
.main-menu > li { position: relative; margin: 0 15px; }
.main-menu > li > a { color: white; text-decoration: none; padding: 4px 15px; display: block; font-weight: bold; font-size:large;}

/* Menü - Zweite Stufe (Untermenü) */
.sub-menu {
    display: none;
    position: absolute;
    background: #6e716c;
    list-style: none;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 10;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}
.sub-menu li a { color: white; padding: 10px; display: block; text-decoration: none; font-size: normal;}
.sub-menu li a:hover { background: #aacdb0; }

/* Hover-Effekt für Untermenü */
.main-menu > li:hover .sub-menu { display: block; }

/* Content Bereich */
main { margin-top: 30px; text-align: center; }
.content-box { padding: 10px 10px; line-height: 1.6; }

@media (max-width: 768px)
{
    .main-menu li {Display:none;}
    .wrapper{ padding: 5px; }
    nav {display:none;}
}

/* Responsive Design (für Mobilgeräte)
@media (max-width: 768px) {
    .main-menu { flex-direction: column; align-items: normal; font-size: larger;}
    .main-menu > li { margin: 5px 0; }
    .sub-menu li a { color: white; padding: 5px; display: block; text-decoration: none; font-size: smaller;}
    .sub-menu { position: static; display: block; box-shadow: none; background: #1a252f; margin-left:40px;width: 80%}
    .wrapper { padding: 5px; }
}
 */