/* General Styles */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 700;
}

.contact-hero {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-align: center;
            height: 60vh;
            min-height: 200px;
            max-height: 200px;
            background: #1a3a5d;
            background-image: linear-gradient(rgba(26, 58, 93, 0.95), rgba(26, 58, 93, 0.95)), url('https://www.transparenttextures.com/patterns/cubes.png');
        }
        .contact-hero-content {
            position: relative;
            z-index: 2;
            padding: 0 20px;
            width: 100%;
            background-color: rgba(0, 0, 0, 0.25);
            padding: 2rem;
            border-radius: 8px;
            max-width: 800px;
            margin: 0 auto;
        }
        .contact-hero-content h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 15px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }

.navbar {
    background-color: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo img {
    height: 80px;
}
.navbar .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.navbar .nav-links li {
    margin-left: 30px;
}
.navbar .nav-links a {
    text-decoration: none;
    color: #005b96;
    font-weight: 800;
    font-size: 24px;
    transition: color 0.3s ease;
}
.navbar .nav-links a:hover {
    color: #001b38;
}

.hamburger-menu {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001; /* Ensure it's on top */
}
.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

/* Header Styles */
/* Video Header Styles */
.header-index {
    position: relative;
    height: 120vh;
    min-height: 400px;
    max-height: 1200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.header-landing {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.header-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Leichter dunkler Hintergrund für bessere Lesbarkeit */
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    max-width: 800px;
    margin: 0 auto;
}

/* Section Styles */
.intro-section {
    text-align: center;
    margin-bottom: 50px;
}

.intro-section h2 {
    font-size: 2rem;
    color: #005b96;
    margin-bottom: 20px;
}

.intro-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.types-section {
    margin-bottom: 60px;
}

.types-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #005b96;
    margin-bottom: 40px;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.types-grid-business {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Drei Spalten für zwei Reihen mit je drei Kacheln */
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.type-card {
    background: #f0f0f0; /* Helleres Grau statt #f9f9f9 */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    padding: 25px 20px;
    border: 1px solid #e0e0e0; /* Leichter Rand hinzugefügt */
}




.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    background: #e8e8e8; /* Etwas dunkleres Grau beim Hovern */
}

.card-image {
    height: 160px;
    overflow: hidden;
}

.card-icon {
    font-size: 2.5rem;
    color: #005b96;
    margin: 20px 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7); /* Leichter weißer Hintergrund für Icons */
    border-radius: 50%;
    width: 80px;
    margin: 20px auto;
}

.card-icon-insurance {
    font-size: 2.5rem;
    color: #750800;
    margin: 20px 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7); /* Leichter weißer Hintergrund für Icons */
    border-radius: 50%;
    width: 80px;
    margin: 20px auto;
}

.card-icon-bed {
    font-size: 2.5rem;
    color: #2f0075;
    margin: 20px 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7); /* Leichter weißer Hintergrund für Icons */
    border-radius: 50%;
    width: 80px;
    margin: 20px auto;
}

.card-icon-scope {
    font-size: 2.5rem;
    color: #217500;
    margin: 20px 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7); /* Leichter weißer Hintergrund für Icons */
    border-radius: 50%;
    width: 80px;
    margin: 20px auto;
}

.card-icon-tooth {
    font-size: 2.5rem;
    color: #a83800;
    margin: 20px 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7); /* Leichter weißer Hintergrund für Icons */
    border-radius: 50%;
    width: 80px;
    margin: 20px auto;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.type-card:hover .card-image img {
    transform: scale(1.05);
}

.type-card h3 {
    color: #005b96;
    margin: 15px 0;
}

.type-card p {
    margin: 0 20px 15px;
    font-size: 0.95rem;
    
}

.card-link {
    text-decoration: none;
    color: inherit; /* Inherits text color from parent */
    display: block; /* Makes the link a block-level element */
    transition: transform 0.3s ease;
}

.price {
    font-weight: 600;
    color: #005b96;
    margin: 15px 20px 20px;
    font-size: 1.1rem;
}
/* Business Header Styles */
.business-header {
    background: linear-gradient(135deg, #005b96, #003d66);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    margin-bottom: 40px;

}

.business-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.business-header p {
    font-size: 1.4rem;
    opacity: 0.9;
}

/* Business Card Styles */
.business-card {
    background: #f5f5f5;
    border-left: 4px solid #005b96;
}

.business-card .card-icon {
    color: #003d66;
    background: rgba(0, 91, 150, 0.1);
}

/* Business Form Styles */
#businessContactForm button[type="submit"] {
    background: #003d66;
}

#businessContactForm button[type="submit"]:hover {
    background: #002b4d;
}

/* --- Styling für Rainer Weber Sektion --- */

.about-rainer-section {
    padding: 80px 0; /* Abstand oben und unten */
    background-color: #f5f5f5;
    font-family: 'Open Sans', sans-serif;
    border-radius: 8px;
}

.about-rainer-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.rainer-wrapper {
    display: flex;
    align-items: center; /* Vertikale Zentrierung */
    gap: 50px; /* Abstand zwischen Bild und Text */
}

/* Container für das Bild (wichtig für die Positionierung) */
.rainer-image-container {
    flex: 0 0 40%; /* Nimmt 40% der Breite ein, wächst/schrumpft nicht */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Die Box mit dem sichtbaren Rahmen */
.image-box {
    width: 80%;
    height: 225px; /* Höhe der Box anpassen */
    border: 5px solid #2f0075; /* Blauer Rahmen, Farbe anpassen */
    position: relative;
    border-radius: 8px;
}

/* Das eigentliche Bild */
.image-box img {
    width: 105%; /* Bild ist etwas breiter als die Box */
    height: auto;
    position: absolute; /* Wichtig für den "Ausbruch" */
    top: -30px; /* Verschiebt das Bild nach oben aus der Box */
    left: -15px; /* Verschiebt das Bild nach links aus der Box */
    object-fit: cover;
    /*box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Weicher Schatten für mehr Tiefe */
    border-radius: 4px; /* Leicht abgerundete Ecken am Bild */
}

/* Der Text-Container */
.rainer-info {
    flex: 1; /* Nimmt den restlichen verfügbaren Platz ein */
}

.rainer-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.rainer-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

/* Knopf-Styling wiederverwenden (falls nötig) */
.rainer-info .button-style {
    display: inline-block;
    padding: 12px 25px;
    background-color: #005b96;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.rainer-info .button-style:hover {
    background-color: #004a7c;
}

/* --- Styling für Referenzen Sektion --- */

.references-section {
    padding: 80px 0;
    background-color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
}

.references-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.references-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #005b96;
    margin-bottom: 50px;
}

.references-grid {
    display: grid;
    /* Creates a responsive grid that adjusts columns automatically */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.reference-card {
    background-color: #f9f9f9;
    border-left: 5px solid #005b96; /* Accent border */
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.reference-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.reference-card .stars {
    color: #ffc107; /* Gold color for stars */
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.reference-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures card has same height if quotes differ in length */
}

.reference-card .author {
    font-weight: 700;
    color: #005b96;
    text-align: right;
    font-style: normal;
}

.footer-author {
    text-align: center;
    padding: 20px 0;
    background-color: #f5f5f5;
    color: #333;
    font-size: 0.9rem;
}

.footer-original a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

/* Contact Form Styles */
.contact-section {
    background: #f5f5f5;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 60px;
}

.contact-section h2 {
    text-align: center;
    color: #005b96;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #005b96;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif; /* Wichtig für konsistente Schriftart */
    resize: vertical; /* Ermöglicht die vertikale Größenänderung */
}

.form-group textarea:focus {
    outline: none;
    border-color: #005b96;
}

.infobox {
    background: #eaf2f8;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px;
}

.infobox {
    margin-top: 40px;
}

.infobox h3 {
    color: #005b96;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.infobox p {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.infobox p.bold-text {
    color: #333;
    margin-top: 12px;
    font-weight: bold;
}

button[type="submit"] {
    background: #003d66;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: #c0392b;
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-image {
    height: 250px;
    overflow: hidden;
    border-radius: 6px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-description {
    line-height: 1.7;
}

.modal-features {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
}

.modal-features h3 {
    margin-top: 0;
    color: #005b96;
    margin-bottom: 15px;
}

.modal-features ul {
    padding-left: 20px;
    margin: 0;
}

.modal-features li {
    margin-bottom: 8px;
}

.modal-footer {
    margin-top: 20px;
    text-align: center;
}

.modal-cta {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.modal-cta:hover {
    background: #c0392b;
}

a.button-style {
    display: inline-block; /* Changed from default inline */
    background: #003d66;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    text-align: center;
    text-decoration: none; /* Remove underline */
    width: auto; /* Changed from 100% */
    margin: 20px 0; /* Add margin to prevent footer overlap */
    box-sizing: border-box;
}

a.button-style:hover {
    background: #c0392b;
}

/* Footer Styles */
.footer-original {
    background: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Style for aside image and contact info */
.aside-image-contact {
    margin-top: 32px;
    text-align: center;
}
.aside-image-contact img {
    width: 85%;
    object-fit: cover;
    margin-bottom: 18px;
}
.aside-contact-info {
    
    padding: 18px 10px;
    border-radius: 8px;
    margin-top: 10px;
    display: inline-block;
    text-align: left;
}
.aside-contact-info a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s;
}
.aside-contact-info a:hover {
    color: #005b96;
}
.aside-contact-info i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    color: #005b96;
}

/* --- Blog-Sektion Styles --- */
.blog-section {
    padding: 80px 0;
    background-color: #f5f5f5;

    text-align: center;
}

.blog-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #005b96;
    margin-bottom: 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card h3 {
    font-size: 1.4rem;
    color: #005b96;
    margin: 20px 20px 10px;
}

.blog-card p {
    font-size: 1rem;
    color: #555;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures text section fills available space */
}

.blog-card .button-style {
    margin: 0 20px 20px;
    padding: 12px 20px;
    font-size: 1rem;
}

.blog-hero {
    background: #1a3a5d;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    padding: 2rem;
    border-radius: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.blog-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.post-meta {
    font-size: 1.1rem;
    opacity: 0.9;
}

.blog-post-content {
    padding: 40px 0;
}

.blog-post-content article p{
    margin-bottom: 20px;
    font-size: 1.3rem;
    line-height: 1.6; /* Matched to your body line-height */
    color: #333;;
}

.blog-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.blog-main {
    flex: 3;
    min-width: 300px;
}

.blog-sidebar {
    flex: 1;
    min-width: 250px;
    background-color: #f5f5f5; /* Light gray to match your site's backgrounds */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-wrap: break-word;
}

.blog-sidebar h3 {
    text-align: center;
    color: #005b96;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.blog-post-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-main p, .blog-main {
    font-size: 1.1rem;
    line-height: 1.6; /* Matched to your body line-height */
    margin-bottom: 20px;
    color: #333;
}

.blog-main h2 {
    font-size: 2rem;
    color: #005b96;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
    font-weight: 700;
}

.blog-main blockquote {
    font-style: italic;
    font-size: 1.2rem;
    padding: 20px;
    border-left: 5px solid #005b96;
    background-color: #f0f0f0; /* Light gray from your card styles */
    margin: 30px 0;
}

.blog-main blockquote i {
    color: #005b96;
    font-size: 1.5rem;
    margin: 0 10px;
}

.post-tags {
    margin-top: 30px;
    text-align: right;
    font-size: 1rem;
}

.post-tags a {
    display: inline-block;
    background-color: #e0eaf3;
    color: #005b96;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.post-tags a:hover {
    background-color: #005b96;
    color: #fff;
}

.aside-post-card {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    overflow-wrap: break-word;
}

.aside-post-card:last-child {
    border-bottom: none;
}

.aside-post-card img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.aside-post-card .card-content {
    flex-grow: 1;
    overflow-wrap: break-word;
    min-width: 0;
}

.aside-post-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px;
}

.aside-post-card h4 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.aside-post-card h4 a:hover {
    color: #005b96;
}

.aside-meta {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 80px; /* Höhe der Navbar */
        right: 20px;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        width: 200px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        border-radius: 8px;
    }
    .nav-links.active {
        display: flex; /* wird sichtbar beim Klick */
    }

    .hamburger-menu {
        display: block;
    }
    .navbar .nav-links li {
        margin: 10px 0;
    }
    
    header {
        height: 50vh;
        min-height: 350px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 1.1rem;
    }

    .video-container video {
        object-position: center 40%; /* Mobile Ansicht anpassen */
    }

    .contact-hero {
        height: 40vh;
        min-height: 220px;
        padding: 30px 0;
    }
    .contact-hero-content h1 {
        font-size: 2rem;
            }

    .contact-section {
        padding: 30px 20px;
    }

    .form-group input,
    .form-group select {
        width: 100%; /* Ensure full width but respect padding */
        max-width: 100%; /* Prevent overflow */
        box-sizing: border-box; /* Include padding and border in width */
        padding: 10px; /* Slightly reduce padding for mobile */
    }

    button[type="submit"] {
        padding: 12px 20px; /* Adjust button padding for mobile */
    }

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

    .types-grid-business {
        grid-template-columns: 1fr; /* Eine Spalte für kleine Bildschirme */
        grid-auto-rows: auto; /* Sicherstellen, dass die Höhe der Kacheln automatisch angepasst wird */
    }

    .type-card {
        max-width: 100%; /* Verhindert, dass Kacheln zu breit werden */
    }

    /* New styles for smaller titles */
    h1 {
        font-size: 1.8rem; /* Reduced from 2rem in .header-content h1 */
    }

    h2 {
        font-size: 1.5rem; /* Reduced from 2rem in .intro-section h2 and .types-section h2 */
    }

    h3 {
        font-size: 1.2rem; /* Reduced for consistency in .type-card h3 */
    }

    .header-content h1 {
        font-size: 1.8rem; /* Override specific header-content h1 */
    }

    .business-header h1 {
        font-size: 2rem; /* Reduced from 2.8rem */
    }

    .contact-section h2 {
        font-size: 1.4rem; /* Reduced from 1.8rem */
    }

    .rainer-wrapper {
        flex-direction: column; /* Bild und Text untereinander stapeln */
        text-align: center; /* Text zentrieren */
        gap: 20px;
    }

    .rainer-image-container {
        width: 100%;
        margin-bottom: 40px; /* Abstand zwischen Bild-Box und Text */
    }

     .image-box {
        border: none;
        background: none;
        box-shadow: none;
        width: auto;
        max-width: 100%;
        aspect-ratio: unset;
        height: auto;
        position: static;
        border-radius: 0;
        overflow: visible;
        padding: 0;
        margin: 0 auto 20px auto;
    }
    .image-box img {
        position: static;
        width: 100vw;
        max-width: 320px;
        height: auto;
        left: unset;
        top: unset;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
        display: block;
        margin: 0 auto;
    }

    .rainer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 768px) {
            .hamburger-menu { display: none; }
            .nav-links {
                display: flex;
                position: static;
                flex-direction: row;
                width: auto;
                background-color: transparent;
                box-shadow: none;
                max-height: none; /* Always visible on desktop */
                overflow: visible;
            }
            .nav-links a { 
                padding: 10px 15px; 
            }
            /* Desktop hover effect */
            .nav-links a:hover {
                background-color: transparent;
                color: #005b96;
            }

            .about-hero { padding: 80px 0; }
            .about-hero h1 { font-size: 2.5rem; }

            .about-content-section { padding: 80px 0; }
            .about-wrapper {
                flex-direction: row;
                align-items: flex-start;
                gap: 60px;
            }
        }


/* Rest der CSS bleibt gleich wie vorher */