/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    background: transparent;
}

body {
    font-family: Futura, Arial, sans-serif;
    background-color: #ECF1FA;
}

/* Header Styles */
.header {
    background-color: #162A70;
    padding: 0;
    position: relative;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 40px;
    position: relative;
    min-height: 120px;
}

.logo {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo img {
    width: 90px;
    height: 90px;
}

.logo:hover {
    transform: translateY(-50%) scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}

.nav-menu a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero-section {
    background-image: url('assets/img/rollstuhl-bild.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 74, 139, 0.3);
    z-index: 1;
}

.hero-title {
    position: relative;
    z-index: 2;
    background-color: rgba(74, 144, 226, 0.9);
    color: white;
    padding: 20px 40px;
    font-size: 48px;
    font-weight: bold;
    margin-left: auto;
    margin-right: 100px;
}

/* Main Content */
.main-content {
    background: #3F75CC;
    padding: 60px 0;
}

/* Originale Formular-Styles */
h2, header {
    font-weight: bold;
}

h2 {
    font-size: 3em;
    margin: auto auto;
    width: 80%;
    color: #FFF;
    line-height: 4em;
}

header {
    padding: 1em;
    line-height: 1em;
    font-size: 2em;
}

/* Flex-Container für Bild + Formular nebeneinander */
.container {
    margin: auto auto;
    width: 80%;
    display: flex;
    gap: 2em;
    padding: 3em 1em 4em 1em;
}

.container-child {
    flex: 1 1 0;
    min-width: 480px;
}

.container-child img {
    width: 100%;
    height: auto;
}

.greyish {
    background: #ECF1FA;
    margin-left: 0;
    width: 100%;
    min-width: 480px;
}

.grid-container {
    display: grid;
    justify-content: center;
    grid-template-columns: 40% 40%;
    grid-gap: 1.2em 2em;
    padding-bottom: 2em;
}

.grid-container.cols-1 {
    grid-column-start: 2;
    grid-column-end: 2;
    justify-items: start;
}

.grid-container.cols-2 {
    grid-column-start: 2;
    grid-column-end: 3;
    justify-items: start;
}

.container-1-col {
    margin: 2em;
}

.grid-child {
    padding: .4em;
}

label, input {
    font-size: 1em;
}

/* Input Felder */
input[type=text], input[type=email], input[type=number] {
    display: block;
    width: 100%;
    padding: .2em .5em;
    border: 1px solid grey;
    line-height: 1.2em;
}

/* Checkbox Styling */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #FFF;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid grey;
    border-radius: 0.15em;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
}

/* Checkbox Haken */
input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transform-origin: bottom left;
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em black;
    background-color: CanvasText;
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* Checkbox-Feldset mit Flexbox für Text neben Checkbox */
.checkbox-fieldset {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.checkbox-fieldset label {
    flex: 1;
    flex-grow: 3;
    margin: 0;
}

/* Button Styling */
button {
    font-weight: bold;
    font-size: 1em;
    padding: 0.5em 1em;
    border: 1px solid grey;
    cursor: pointer;
    background-color: #FDC835;
    color: black;
    display: inline-block;
    width: auto;
    max-width: 200px;
    box-sizing: border-box;
}

/* Button rechts unten mit Abstand */
.button-container {
    display: flex;
    justify-content: flex-end;
    padding: 1em 1em 1em 0;
}

/* Datenschutz-Overlay */
#datenschutz-erklaerung {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .9);
    padding-top: 5%;
}

#datenschutz-erklaerung.hidden {
    display: none;
}

#datenschutz-erklaerung.visible {
    display: block;
}

#datenschutz-erklaerung h3 {
    font-size: larger;
    font-weight: bold;
    text-decoration: underline;
    text-align: center;
}

#datenschutz-erklaerung p {
    width: 35%;
    margin: auto;
    padding-top: 2rem;
    line-height: 1.4em;
}

#datenschutz-link {
    text-decoration: underline;
    cursor: pointer;
}

/* Footer Styles */
.footer {
    background-color: #162A70;
    color: white;
    padding: 40px;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    margin-right: 40px;
}

.footer-column:last-child {
    margin-right: 0;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.4;
}

.footer-links {
    text-align: right;
}

.footer-links a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        justify-content: center;
        min-height: auto;
    }
    
    .logo {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 20px;
    }
    
    .logo:hover {
        transform: scale(1.05);
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 36px;
        margin: 0;
        text-align: center;
    }
    
    .container {
        flex-direction: column;
        width: 95%;
        padding: 2em 1em;
    }
    
    .container-child {
        min-width: auto;
    }
    
    .greyish {
        min-width: auto;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        grid-gap: 1em;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        text-align: left;
    }
}