body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: url('../images/Terreng_Background.jpg') no-repeat center center fixed;
    background-size: cover;
    padding-top: 90px; /* Höhe Header + etwas Abstand */
}


/* HEADER FIXIEREN */
.header {
    position: fixed;       /* Header fixieren */
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    padding: 15px 40px;
    border-radius: 0 0 40px 40px; /* Abrunden nur unten */
    margin: 0;               /* Margin entfernen, sonst Probleme bei fixed */
    z-index: 1000;           /* Über anderen Inhalten */

}


/* LOGO */
.logo img {
    height: 90px;
}

/* NAVIGATION */
.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 25px;
    background: #2f4f3a;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

.nav a:hover {
    background: #3f6b4f;
}


.container {
margin: 40px auto;
background: white;
padding: 100px 60px;
border-radius: 12px;
box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

h1 {
text-align: center;
margin-bottom: 25px;
}

h2 {
text-align: center;
margin-bottom: 25px;
}

h3 {
text-align: center;
margin-bottom: 25px;
}

body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}

h1 {
text-align: center;
margin-bottom: 25px;
}

.honeypot {
    display: none;
}

/* GRID LAYOUT */
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px 20px;
column-gap: 30px;   /* Abstand zwischen Spalten */
}


.full-width {
grid-column: 1 / -1;
}


label {
display: block;
margin-bottom: 6px;
font-weight: bold;
}


input, select, textarea {
width: 100%;
padding: 12px;
border-radius: 8px;
border: 1px solid #ccc;
font-size: 16px; /* mind. 16px verhindert automatisches Hineinzoomen bei Fokus in iOS Safari */
box-sizing: border-box;
font-family: inherit;
}

input:focus, select:focus, textarea:focus {
outline: 2px solid #3f6b4f;
outline-offset: 1px;
}


textarea {
min-height: 160px;
resize: vertical;
}


button {
margin-top: 10px;
width: auto;
padding: 12px 28px;
border: none;
border-radius: 25px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
background: #2f4f3a;
color: white;
transition: 0.3s;
display: inline-block;
}


button:hover {
background: #3f6b4f;
}



/* FOOTER */
.footer {
    background-color: #2f4f3a; /* Dunkelgrün */
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    padding: 30px 40px;
	border-radius: 40px 40px 0 0; /* Abrunden nur unten */

}

.footer a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    transition: 0.3s;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-left, .footer-right, footer-bottom {
    min-width: 350px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}


.footer-links a {
    margin-right: 15px;
}

/* Linie zwischen Top und Bottom */
hr {
    border: 0;
    border-top: 1px solid white;
    margin: 10px 0 20px 0;
}

/* Responsive */

@media (max-width: 400px) {
    html, body {
        max-width: 80%;
        overflow-x: hidden; /* verhindert horizontales Scrollen */
    }
	
    .header {
        padding: 10px 10px;
        border-radius: 0 0 25px 25px;
		max-width: 100%;
    }

    .nav {
        gap: 8px;
        justify-content: flex-end;
    }

    .nav a {
        padding: 5px 12px;
        font-size: 10px;
        border-radius: 14px;
    }

    .box-text {
        font-size: 1em;
        box-sizing: border-box;  /* verhindert Überlauf */
        overflow-wrap: break-word; /* lange Wörter umbrechen */		
    }

    .box-text h1 {
        font-size: 1.2em;
    }
    .box-left {
     flex: 0 0 10%;   /* wächst nicht, schrumpft nicht, 20% Breite */
     font-size: 1em;	
     padding-top: 70px;
	 padding-left: 30px;
    }
    .box-right {
     flex: 0 0 85%;   /* wächst nicht, schrumpft nicht, 80% Breite */
	 font-size: 0.7em;
     padding-top: 30px;
	 padding-right: 80px;
 	 padding-bottom: 30px; 
     padding-left: 20px;
	 box-sizing: border-box;  /* verhindert Überlauf */	 
    }

    .box-right p {
     text-align: justify;	
    }
    .logo img {
        height: 58px;
        width: auto;
    }
    /* Footer kompakter machen */
    .footer {
        padding: 20px 15px;
        font-size: 0.85em;   /* kleinere Schrift für Footer */
        line-height: 1.3;    /* dichteres Zeilenlayout */
		max-width: 100%;
    }

    .footer p {
        font-size: 0.85em;
    }

    .footer a {
        font-size: 0.85em;
        margin-right: 10px;
    }

    .footer-top, .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .footer-links {
        margin-bottom: 8px;
    }	
    .mytable {
        width: 100%;
        border-collapse: separate;
        border-spacing: 20px 0;
        table-layout: fixed; /* verhindert Überbreite */
        font-size: 0.55em;
    }
    
    .mytable td {
        width: 33.33%;
        text-align: center;
        vertical-align: top;
    }
    
    .mytable img {
        width: 80%;
        height: auto;
    }

    .mytable p {
        font-size: 0.75em;
        line-height: 1.3;
    }	
	
    /* GRID LAYOUT */
    .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    column-gap: 30px;   /* Abstand zwischen Spalten */
    font-size: 1em;
    }

}

@media (max-width: 600px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden; /* verhindert horizontales Scrollen */
    }
	
    .header {
        padding: 10px 10px;
        border-radius: 0 0 25px 25px;
		max-width: 100%;
    }

    .logo img {
        height: 58px;
        width: auto;
    }

    .nav {
        gap: 10px;
        justify-content: flex-end;		
    }

    .nav a {
        padding: 5px 12px;
        font-size: 10px;
        border-radius: 14px;
    }

    .box-container {
    display: flex;
    flex-wrap: wrap;
	padding: 10px;
        gap: 15px;
    }

    .box-text {
		flex: 1;
        padding: 30px;
        font-size: 1em;
        box-sizing: border-box;  /* verhindert Überlauf */
        overflow-wrap: break-word; /* lange Wörter umbrechen */		
    }

    .box-text h1 {
        font-size: 1.1em;
    }

    .box-text p {
        font-size: 0.95em;
        line-height: 1.5;
    }
    .box-left {
     flex: 0 0 10%;   /* wächst nicht, schrumpft nicht, 20% Breite */
     font-size: 1em;	
     padding-top: 70px;
	 padding-left: 30px;
    }
    .box-right {
     flex: 0 0 85%;   /* wächst nicht, schrumpft nicht, 80% Breite */
	 font-size: 0.7em;
     padding-top: 30px;
	 padding-right: 80px;
 	 padding-bottom: 30px; 
     padding-left: 20px;
    }

    .box-right p {
     text-align: justify;	
    }
    /* Footer kompakter machen */
    .footer {
        padding: 20px 15px;
        font-size: 0.85em;   /* kleinere Schrift für Footer */
        line-height: 1.3;    /* dichteres Zeilenlayout */
		max-width: 100%;
    }

    .footer p {
        font-size: 0.85em;
    }

    .footer a {
        font-size: 0.85em;
        margin-right: 10px;
    }

    .footer-top, .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .footer-links {
        margin-bottom: 8px;
    }

    .logo img {
        height: 58px;
        width: auto;
    }


    .mytable {
        width: 100%;
        border-collapse: separate;
        border-spacing: 20px 0;
        table-layout: fixed; /* verhindert Überbreite */
        font-size: 0.55em;
    }
    
    .mytable td {
        width: 33.33%;
        text-align: center;
        vertical-align: top;
    }
    
    .mytable img {
        width: 80%;
        height: auto;
    }

    .mytable p {
        font-size: 0.75em;
        line-height: 1.3;
    }

    /* GRID LAYOUT */
    .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    column-gap: 30px;   /* Abstand zwischen Spalten */
    font-size: 1em;
    }
}


@media (max-width: 900px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden;
        background-attachment: scroll; /* iOS/Android: fixed-Backgrounds ruckeln/rendern fehlerhaft */ /* verhindert horizontales Scrollen */
    }
	
	
    .header {
        padding: 8px 10px;
        border-radius: 0 0 25px 25px;
		max-width: 100%;
        flex-wrap: wrap;
        row-gap: 6px;
    }

    body {
        padding-top: 100px;
    }

    .container {
        margin: 20px auto;
        padding: 30px 20px; /* war 100px 60px - auf Tablet/Mobile viel zu viel Weißraum */
    }
	
    .box-container {
    display: flex;
    flex-wrap: wrap;
	padding: 10px;
        gap: 20px;
    }	

    .box {
        flex-direction: column;
    }

    .box.reverse {
        flex-direction: column;
    }

    .box-text {
        font-size: 1em;
        width: 100%;
        box-sizing: border-box;  /* verhindert Überlauf */
        overflow-wrap: break-word; /* lange Wörter umbrechen */
    }

    .box img {
        width: 100%;
        height: auto;
    }

    .logo img {
        height: 34px;
        width: auto;
    }
    .nav {
        gap: 5px;
        justify-content: flex-end;		
    }
    .nav a {
        padding: 5px 9px;
        font-size: 9.5px;
        border-radius: 11px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
    /* Footer kompakter machen */
    .footer {
        padding: 20px 15px;
        font-size: 0.85em;   /* kleinere Schrift für Footer */
        line-height: 1.3;    /* dichteres Zeilenlayout */
		max-width: 100%;
    }

    .footer p {
        font-size: 0.85em;
    }

    .footer a {
        font-size: 0.85em;
        margin-right: 10px;
    }

    .footer-top, .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .footer-links {
        margin-bottom: 8px;
    }
    .mytable {
        width: 100%;
        border-collapse: separate;
        border-spacing: 20px 0;
        table-layout: fixed; /* verhindert Überbreite */
	    font-size: 0.55em;
    }
    
    .mytable td {
        width: 33.33%;
        text-align: center;
        vertical-align: top;
    }
    
    .mytable img {
        width: 80%;
        height: auto;
    }

    .mytable p {
        font-size: 0.75em;
        line-height: 1.3;
    }
	
    /* GRID LAYOUT */
    .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    column-gap: 30px;   /* Abstand zwischen Spalten */
    font-size: 0.85em;
    }
}

/* Schmale Smartphones: Formular auf eine Spalte stellen, Container-Innenabstand
   nochmal reduzieren, Bedienelemente (Button) groß genug für den Finger
   (Touch-Target) machen. */
@media (max-width: 480px) {
    .container {
        margin: 12px auto;
        padding: 20px 16px;
        border-radius: 10px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    button {
        width: 100%;
        min-height: 48px;
        padding: 12px 28px;
    }
}