html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

body {
    padding-top: 105px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Kopfzeile */
header {
    background: white;
    color: white;
    padding: 15px 0;
    min-height: 75px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 18px rgba(21, 20, 29, 0.15);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

header h1 {
    font-size: 2rem;
}

header h1 {
    float: left;
}

.logo {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    color: rgb(0, 0, 0);
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-menu > li > a {
    background: rgba(255, 255, 255, 0.08);
    color: #183880;
    display: block;
    padding: 14px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover {
    background: #183880;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.dropdown > a::after {
    content: "▼";
    display: inline-block;
    margin-left: 8px;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 28px);
    left: 0;
    min-width: 375px;
    background: white;
    list-style: none;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
    z-index: 1000;
}

.dropdown-menu2 {
    display: none;
    position: absolute;
    top: calc(100% + 28px);
    left: 0;
    min-width: 180px;
    background: white;
    list-style: none;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
    z-index: 1000;
}

/* Unsichtbare Hover-Brücke */
.dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 28px;
}

.dropdown-menu li a {
    color: #1f2937;
    padding: 12px 14px;
    border-radius: 10px;
    background: transparent;
}

.dropdown-menu li a:hover {
    background: #c6c6c6;
    color: #1f2937;
    box-shadow: none;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.dropdown-menu2 li a {
    color: #1f2937;
    padding: 12px 14px;
    border-radius: 10px;
    background: transparent;
}

.dropdown-menu2 li a:hover {
    background: #c6c6c6;
    color: #1f2937;
    box-shadow: none;
}

.dropdown:hover .dropdown-menu2,
.dropdown-menu2:hover {
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Startseite Mitte*/
.hero {
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

/* Hintergrund Startseite Mitte*/
.hero-text {
    background: rgba(0,0,0,0.6);
    padding: 40px;
    border-radius: 10px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-image {
    width: 100vw;
    height: 50vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    background: #183880;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
}

.leistungen {
    padding: 100px 0;
    background: #f8fafc;
}

.leistungen h1,
.leistungen h2 {
    text-align: center;
    font-size: 2.7rem;
    margin-bottom: 10px;
    color: #183880;
    font-weight: 800;
}

.leistungen > p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 24px;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

.leistungen-subtitle {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

.leistungen-benefits {
    max-width: 820px;
    margin: 0 auto 40px;
    padding: 26px 32px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.leistungen-benefits h3 {
    margin-bottom: 18px;
    color: #183880;
    font-size: 1.6rem;
    font-weight: 800;
}

.leistungen-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.leistungen-benefits li {
    display: flex;
    flex-direction: column;
    padding-left: 1.8rem;
    line-height: 1.8;
    text-align: left;
}

.leistungen-benefits li strong {
    font-weight: 750;
    padding-top: 14px;
    color: #183880;
}

.leistungen-benefits li span {
    font-family: Arial Narrow, sans-serif;
    font-size: 1.04rem;
    color: #000000;
    line-height: 1.3;
}

.leistungen-benefits p {
    position: relative;
    font-weight: 550;
    padding-left: 1.8rem;
    line-height: 1.5;
}

.project-benefits {
    max-width: 820px;
    margin: 0 auto 40px;
    padding: 26px 32px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.project-benefits h3 {
    margin-bottom: 18px;
    color: #183880;
    font-size: 1.6rem;
    font-weight: 800;
}

.project-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.project-benefits li {
    position: relative;
    padding-left: 1.8rem;
    color: #475569;
    line-height: 1.8;
}

.project-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #183880;
    font-weight: 700;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.cards-grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.cards-grid4 {
    display: grid;
    gap: 30px;
    width: 900px;
    max-width: 100%;
    margin: 20px auto 0;
}

.service-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    transition: transform 0.35s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.service-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.service-card2 {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    transition: 0.35s ease;
}

.service-card2 img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.team-cards-grid {
    gap: 30px;
    margin: 40px auto 0;
    max-width: 1200px;
}

.team-cards-grid .service-card {
    min-height: 100%;
}

.team-cards-grid .service-card img {
    height: 240px;
}

.team-cards-grid .service-content {
    padding: 24px;
}

.team-card-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-card-title {
    text-align: center;
    color: #183880;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.team-cards-grid .service-content h3 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 6px;
}

.team-cards-grid .service-content p {
    font-size: inherit;
    line-height: 1.7;
}

.team-cards-grid .team-position {
    font-size: inherit;
    margin-bottom: 14px;
}

.team-position {
    color: #6f8db8;
    font-weight: 700;
    margin-bottom: 14px;
}

.leistungen-vertical {
    padding: 120px 0;
    background: #f8fafc;
}

/* Karte */
.leistung-vertical-card {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 90px;
    transition: transform 0.35s ease;
}

.leistung-vertical-card:hover {
    transform: translateY(-8px);
}

/* Bild */
.leistung-vertical-image {
    position: relative;
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 20px 45px rgba(0,0,0,0.14);
}

.image-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    left: auto;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.95rem;
    line-height: 1.4;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: calc(100% - 32px);
}

.leistung-vertical-card:hover .image-overlay,
.service-card2:hover .image-overlay,
.large-service-card:hover .image-overlay,
.large-service-card2:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* 16:9 */
.leistung-vertical-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.leistung-vertical-card:hover img {
    transform: scale(1.03);
}

/* Text */
.leistung-vertical-text {
    max-width: 100%;
    padding-top: 28px;
}

.leistung-vertical-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #183880;
    margin-bottom: 3px;
}

.leistung-vertical-text p {
    max-width: 1170px;
    color: #4b5563;
    font-size: 1.08rem;
    line-height: 1.9;
}

.large-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px;
}

.kultur-page .large-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.kultur-text-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 35px;
}

.kultur-text-card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.kultur-text-card h2 {
    margin: 0 0 14px;
    font-size: 1.35rem;
    color: #183880;
}

.kultur-text-card p {
    margin: 0;
    color: #374151;
    line-height: 1.8;
}

.kultur-page .kultur-square-list {
    margin-top: 16px;
    margin-bottom: 16px;
}

.kultur-page .kultur-square-list li {
    font-size: 1rem;
    color: #374151;
    line-height: 1.45;
    margin-bottom: 8px;
}

.villen-page .large-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.villen-page .kultur-square-list {
    margin-top: 16px;
    margin-bottom: 16px;
}

.large-service-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow:
        0 18px 40px rgba(0,0,0,0.12);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* Hover */
.large-service-card:hover {
    transform: translateY(-12px);

    box-shadow:
        0 28px 55px rgba(0,0,0,0.18);
}

/* Bild */
.large-service-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.large-service-card:hover img {
    transform: scale(1.04);
}

.large-service-card2 {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow:
        0 18px 40px rgba(0,0,0,0.12);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    position: relative;
}

/* Bild */
.large-service-card2 img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .large-service-card2 {
        grid-template-columns: 1fr;
    }

    .large-service-card2 img {
        height: auto;
    }
}

.service-content {
    padding: 24px;
}

.service-content h3 {
    margin-bottom: 6px;
    color: #183880;
    font-size: 1.35rem;
}

.service-content p {
    color: #4b5563;
    line-height: 1.7;
}

.page-content {
    padding: 140px 0 80px;
    min-height: 70vh;
}

.page-content h1 {
    font-family: Verdana, Tahoma, sans-serif;
    font-size: 2.0rem;
    margin-top: 10px;
    margin-bottom: 30px;
    color: #183880;
}

.page-title-center {
    text-align: center;
}

.page-content h2 {
    font-size: 1.1rem;
    margin-top: 40px;
    margin-bottom: 1px;
}

.page-content p,
.page-content li {
    font-size: 1.05rem;
    line-height: 1.2;
}

.page-content ul {
    margin-left: 20px;
}

.cookie-banner {
    position: fixed;
    left: 30px;
    right: 30px;
    bottom: 30px;
    z-index: 10000;
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: white;
    color: #1f2937;
    padding: 24px 28px;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

.cookie-content {
    max-width: 800px;
}

.cookie-banner h3 {
    margin-bottom: 8px;
    color: #183880;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-actions button {
    border: none;
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s ease;
}

#acceptCookies {
    background: #183880;
    color: white;
}

.cookie-actions button:hover {
    transform: translateY(-2px);
}

.menu-highlight {
    transition: 0.3s ease;
    border-radius: 6px;
    padding: 1px 1px;
}

.dropdown-menu li a:hover .menu-highlight {
    background: #183880;
    color: white;
}

.service-card:hover .menu-highlight {
    background: #183880;
    color: white;
}

.menu-highlight-link a {
    color: #183880;
    font-weight: 700;
    text-decoration: none;
}

.menu-highlight-link a:hover .menu-highlight {
    background: #183880;
    color: white;
}

.contact-form {
    max-width: 850px;
    margin: 60px auto;
    background: white;
    padding: 45px;
    border-radius: 28px;
    box-shadow:
        0 15px 40px rgba(0,0,0,0.10),
        0 4px 10px rgba(0,0,0,0.05);

    border: 1px solid #e5e7eb;
}

/* Formulargruppen */
.form-group {
    margin-bottom: 28px;
}

/* Labels */
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #183880;
    letter-spacing: 0.2px;
}

/* Inputs + Textarea */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    font-size: 1rem;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

/* Fokus */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #183880;
    background: white;
    box-shadow:
        0 0 0 4px rgba(24,56,128,0.12);
}

/* Textarea */
.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

/* Datenschutz */
.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0 35px;
    font-size: 0.96rem;
    line-height: 1.6;
    color: #4b5563;
}

.privacy-check input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #183880;
}

.square-list {
    list-style: none;
    margin-top: 35px;
    padding-left: 0;
}

.square-list li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 18px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.square-list a {
    position: relative;
    margin-bottom: 18px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.square-list h2 {
    position: relative;
    margin-top: 10px;
    margin-bottom: 5px;
    padding-left: 34px;
    font-size: 1.1rem;
    line-height: 1.6;
    text-decoration: underline;
    text-decoration-color: #183880;
    text-decoration-thickness: 2px;
}

.square-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 13px;
    height: 13px;
    border-radius: 2px;
}

.square-list li:nth-child(odd)::before {
    background: #004987;
}

.square-list li:nth-child(even)::before {
    background: #6f8db8;
}

/* 2-Spalten Layout für Listen */
.square-list-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
}

/* Responsive: Bei kleineren Bildschirmen nur 1 Spalte */
@media (max-width: 768px) {
    .square-list-two-column {
        grid-template-columns: 1fr;
    }
}

/* Bürozeiten */
.opening-hours {
    background: linear-gradient(135deg, #183880 0%, #004987 100%);
    color: white;
    padding: 40px;
    margin: 60px auto;
    border-radius: 12px;
    max-width: 600px;
    box-shadow: 0 8px 24px rgba(24, 56, 128, 0.2);
}

.opening-hours h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 16px 0;
    font-size: 1.05rem;
}

.hours-table .day {
    font-weight: 600;
    padding-right: 30px;
    width: 50%;
}

.hours-table .hours {
    text-align: right;
    font-weight: 500;
    opacity: 0.95;
    line-height: 1.8;
}

.history-title {
    text-align: center;
    margin-top: 20px;
    font-size: 2.8rem;
    font-weight: 800;
    color: #183880;
    margin-bottom: 15px;
}

.history-subtitle {
    text-align: left;
    color: #111214;
    font-size: 1.3rem;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.4;
}

.contact-title {
    text-align: center;
    margin-top: 20px;
    font-size: 2.8rem;
    font-weight: 800;
    color: #183880;
    margin-bottom: 15px;
}

.contact-subtitle {
    text-align: center;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

/* Button */
.contact-form .btn {
    border: none;
    cursor: pointer;
    padding: 16px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, #183880, #2563eb);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Hover */
.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 30px rgba(37,99,235,0.35);
}

/* Placeholder */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

footer {
    background: #1f2937;
    color: white;
    padding: 28px 0;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Mitte */
.footer-center {
    text-align: center;
    font-weight: 600;
}

/* Rechts */
.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 22px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #60a5fa;
}

@media (max-width: 1100px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .large-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .kultur-page .large-cards-grid,
    .kultur-text-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .kultur-page .large-cards-grid,
    .kultur-text-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
  header .container {
    flex-direction: column;
    gap: 16px;
  }
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-menu a {
    padding: 12px 14px;
  }
}