@font-face {
    font-family: 'Yantramanav';
    src: url('../fonts/subset-Yantramanav-Regular.woff2') format('woff2');
    
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yantramanav';
    src: url('../fonts/subset-Yantramanav-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yantramanav';
    src: url('../fonts/subset-Yantramanav-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yantramanav';
    src: url('../fonts/subset-Yantramanav-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-family: 'Yantramanav', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --color-primary: #003366;
    --color-primary-dark: #002244;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray: #e5e5e5;
    --border-radius: 8px;
    --spacing: 16px;
    --transition: 0.3s ease;
}

body {
    font-family: var(--font-family);
    font-weight: 500;  /* ← NEU: Medium (etwas dicker) */
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 0;
    position: relative;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.branding a {
    text-decoration: none;
    color: var(--color-white);
}

.tagline {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    transition: opacity var(--transition);
}

.main-nav a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Mobile Navigation (Checkbox-Hack) */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 1rem;
}

.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-white);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 1024px) {
    .nav-toggle-label {
        display: block;
    }
    
    .main-nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
    }
    
    .nav-toggle:checked ~ .main-nav {
        max-height: 500px;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--color-primary);
    color: #dddddd;
    padding: 2rem 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.footer-col h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-nav {
    list-style: none;
    padding-left: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: #dddddd;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--color-white);
}

.contact-box p {
    margin: 0.5rem 0;
}

.contact-box a {
    color: #dddddd;
    text-decoration: none;
}

.contact-box a:hover {
    color: var(--color-white);
}

.phone-icon-white,
.email-icon-white {
    vertical-align: middle;
    margin-right: 5px;
}

.social-box {
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.social-icons img {
    transition: opacity var(--transition);
}

.social-icons img:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.motto {
    font-style: italic;
    color: #dddddd;
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.85rem;
    color: #aaaaaa;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* ============================================================
   HERO SECTION (Startseite)
   ============================================================ */

.hero {
    padding: 80px 0;
    background: var(--color-gray-light);
    text-align: center;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Grid Section (Startseite Kacheln) */
.grid-section {
    padding: 60px 0;
}

.grid-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.grid-item {
    position: relative;
    display: block;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition), box-shadow var(--transition);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.grid-image {
    width: 100%;
    padding-top: 66.66%;
    background-size: cover;
    background-position: center;
    background-color: var(--color-gray);
}

.grid-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
}

/* ============================================================
   KONTAKTSEITE
   ============================================================ */

.contact-page {
    padding: 60px 0;
    flex: 1;
}

.contact-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h1 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.info-box {
    background: var(--color-gray-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.info-box h2 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.info-box a {
    color: var(--color-primary);
    text-decoration: none;
}

.info-box a:hover {
    text-decoration: underline;
}

.notice-banner {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    color: #856404;
}

.contact-form {
    background: var(--color-gray-light);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-form h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group.checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.form-group.checkbox input {
    width: auto;
}

.btn-submit {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background var(--transition);
}

.btn-submit:hover {
    background: var(--color-primary-dark);
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert.success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.alert.error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* ============================================================
   IMPRESSUM & DATENSCHUTZ
   ============================================================ */

.legal-page {
    padding: 60px 0;
    flex: 1;
}

.legal-page .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.legal-page h1 {
    color: var(--color-primary);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.legal-page h2 {
    color: var(--color-primary);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.legal-page p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-page ul {
    margin: 1rem 0 1rem 2rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

/* ============================================================
   STELLENANGEBOTE & VERKAUF
   ============================================================ */

.stellen-page,
.verkauf-page {
    padding: 60px 0;
    flex: 1;
}

.stellen-page .container,
.verkauf-page .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.stellen-page h1,
.verkauf-page h1 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.intro-text {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.stellen-list,
.verkauf-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stellen-card,
.verkauf-card {
    background: var(--color-gray-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: box-shadow var(--transition);
}

.stellen-card:hover,
.verkauf-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stellen-card h2,
.verkauf-card h2 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.meta {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background var(--transition);
}

.btn:hover {
    background: var(--color-primary-dark);
}

/* ============================================================
   GALERIE
   ============================================================ */

.galerie-page {
    padding: 60px 0;
    flex: 1;
}

.galerie-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.galerie-page h1 {
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.galerie-item {
    background: var(--color-gray-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition);
}

.galerie-item:hover {
    transform: translateY(-5px);
}

.galerie-image {
    width: 100%;
    padding-top: 66.66%;
    background-size: cover;
    background-position: center;
    background-color: var(--color-gray);
}

.galerie-caption {
    padding: 1rem;
}

.galerie-caption h3 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.galerie-caption p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ============================================================
   WARTUNGSSEITE
   ============================================================ */

.maintenance-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--color-gray-light);
    padding: 2rem;
}

.maintenance-box {
    text-align: center;
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.maintenance-box h1 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.maintenance-box p {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.notice {
    background: #fff3cd;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #856404;
}

.address-link {
    text-decoration: none;
}

.address-link:hover {
    text-decoration: underline;
}


/* ============================================================
   STARTSEITE - SPEZIFISCHE STYLES
   ============================================================ */

/* Intro Section */
.intro-section {
    padding: 100px 5%;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
}

.intro-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}

.intro-slogan {
    flex: 1.3;
}

.main-title {
    font-family: var(--font-family);
    color: #1a1a1a;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -1.5px;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-family: var(--font-family);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 25px;
}

/* Home Grid (Kacheln) */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing, 16px);
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.grid-item {
    position: relative;
    min-width: 0;
    width: 100%;
    border-radius: var(--border-radius, 8px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.grid-item:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.grid-image {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e5e7eb;
}

.grid-label {
    position: absolute;
    bottom: var(--spacing, 16px);
    left: var(--spacing, 16px);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Mobile Anpassungen Startseite */
@media (max-width: 768px) {
    .intro-section {
        padding: 60px 20px;
    }

    .intro-container {
        flex-direction: column;
        gap: 30px;
    }

    .main-title {
        font-size: 2.2rem;
        text-align: left;
    }

    .intro-text {
        padding-top: 0;
    }
    
    .home-grid {
        margin: 40px auto;
        gap: 20px;
    }
}

/* Touch-Geräte: Hover-Effekte deaktivieren */
@media (hover: none) {
    .grid-item:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* ============================================================
   ÜBER UNS SEITE - SPEZIFISCHE STYLES
   ============================================================ */

.about-page {
    flex: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-hero {
    padding: 120px 0 80px;
    background: #e9eaee;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    margin-bottom: 1rem;
    text-align: center;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 0;
    font-weight: 800;
    text-align: center;
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: #989c9c;
    margin: 20px auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.section-split {
    padding: 80px 0;
}

.flex-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.section-label {
    font-size: 1.5rem;
    position: sticky;
    top: 40px;
    color: var(--color-primary);
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #2f4f4f;
}

.quote-container {
    margin-top: 30px;
    padding-left: 20px;
    border-left: 4px solid #989c9c;
    font-weight: 500;
    color: #555;
}

.section-grid {
    padding: 80px 0;
}

.bg-light {
    background-color: #e9eaee;
}

.bg-dark {
    background-color: #d1d5db;
}

.centered-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 51, 102, 0.1);
    margin-bottom: 10px;
}

.tech-item {
    border: 1px solid rgba(4, 0, 44, 0.1);
    padding: 30px;
    border-radius: 8px;
    background: white;
}

.tech-item h3 {
    color: var(--color-primary);
    margin-top: 0;
}

.section-future {
    padding: 80px 0;
    background-color: #e9eaee;
}

.future-card {
    background: white;
    padding: 60px;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.final-statement {
    margin-top: 30px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary);
    text-transform: uppercase;
}

/* Mobile Anpassungen Über-uns-Seite */
@media (max-width: 768px) {
    .flex-layout {
        grid-template-columns: 1fr;
    }

    .section-label {
        position: static;
        margin-bottom: 10px;
    }

    .future-card {
        padding: 30px;
    }

    .section-split {
        padding: 40px 0;
    }

    .section-grid {
        padding: 40px 0;
    }

    .section-hero {
        padding: 80px 0 40px;
    }
    
    .card {
        padding: 25px;
    }
}
/* ============================================================
   KONTAKTFORMULAR - DSGVO CHECKBOX FIX
   ============================================================ */

/* Flexbox-Lösung für saubere Ausrichtung */
.form-group.checkbox {
    margin: 20px 0;
}

.form-group.checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.5;
}

.form-group.checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

.form-group.checkbox .checkbox-text {
    flex: 1;
    display: inline-block;
    color: #555;
    line-height: 1.5;
}

.form-group.checkbox a {
    color: #003366;
    text-decoration: underline;
}

.form-group.checkbox a:hover {
    text-decoration: none;
}

/* Für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .form-group.checkbox label {
        gap: 8px;
    }
    
    .form-group.checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
}

/* ============================================================
   GESCHICHTE SEITE - SPEZIFISCHE STYLES
   ============================================================ */

.geschichte-page {
    flex: 1;
    padding: 60px 0;
}

.geschichte-page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.geschichte-hero {
    text-align: center;
    margin-bottom: 60px;
}

.geschichte-hero h1 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 15px;
}

.hero-line {
    width: 80px;
    height: 3px;
    background: #003366;
    margin: 0 auto 20px;
}

.hero-text {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.geschichte-block {
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.block-text,
.block-image {
    flex: 1;
}

.block-text h2 {
    color: #003366;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.block-text p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.block-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.block-image img:hover {
    transform: scale(1.02);
}

.geschichte-block.text-only {
    display: block;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.geschichte-block.text-only h2 {
    margin-bottom: 20px;
}

.geschichte-block.text-only p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Bildergalerie für Reparatur-Bilder */
.geschichte-block.image-grid {
    display: block;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    margin-top: 60px;
}

.geschichte-block.image-grid h2 {
    color: #003366;
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-align: center;
}

.geschichte-block.image-grid p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #555;
}

.grid-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.grid-image-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.grid-image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-image-item img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .geschichte-page {
        padding: 40px 0;
    }
    
    .geschichte-hero h1 {
        font-size: 1.8rem;
    }
    
    .geschichte-block {
        flex-direction: column;
        gap: 20px;
    }
    
    .block-text h2 {
        font-size: 1.4rem;
    }
    
    .geschichte-block.text-only {
        padding: 25px;
    }
    
    .geschichte-block.image-grid {
        padding: 25px;
    }
    
    .grid-images {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* ============================================================
   STELLENANGEBOTE - KACHEL-DESIGN (optimiert)
   ============================================================ */

.stellen-page {
    flex: 1;
    padding: 60px 0;
}

.stellen-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stellen-hero {
    text-align: center;
    margin-bottom: 50px;
}

.stellen-hero h1 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 15px;
}

.hero-line {
    width: 80px;
    height: 3px;
    background: #003366;
    margin: 0 auto 20px;
}

.hero-text {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Kachel-Grid - gleichmäßige Höhe */
.stellen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stellen-kachel {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    min-height: 480px;
}

.stellen-kachel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.stellen-kachel.featured {
    border: 2px solid #003366;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.15);
}

.kachel-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #003366;
    color: white;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kachel-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #003366;
    margin: 24px 24px 12px;
    line-height: 1.3;
    min-height: 70px;
}

.kachel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 24px 16px;
    font-size: 0.8rem;
    color: #666;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f5;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 20px;
}

.kachel-description {
    margin: 0 24px 16px;
    color: #555;
    line-height: 1.5;
    flex: 1;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 5px;
}

.kachel-description p {
    margin: 0;
}

.kachel-details {
    margin: 0 24px 16px;
}

.kachel-details details {
    cursor: pointer;
}

.kachel-details summary {
    color: #003366;
    font-weight: 500;
    padding: 10px 0;
    border-top: 1px solid #eef2f5;
    border-bottom: 1px solid #eef2f5;
    font-size: 0.85rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kachel-details summary::-webkit-details-marker {
    display: none;
}

.kachel-details summary::before {
    content: "▶";
    font-size: 10px;
    transition: transform 0.2s;
}

.kachel-details details[open] summary::before {
    transform: rotate(90deg);
}

.details-content {
    padding: 16px 0 8px;
}

.details-content h4 {
    color: #003366;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 12px 0 6px;
}

.details-content p {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.5;
}

.kachel-footer {
    display: flex;
    gap: 12px;
    margin: 8px 24px 24px;
    flex-wrap: wrap;
}

.btn-bewerben {
    flex: 2;
    background: #003366;
    color: white;
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-bewerben:hover {
    background: #002244;
}

.btn-telefon {
    flex: 1;
    background: #28a745;
    color: white;
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-telefon:hover {
    background: #1e7e34;
}

.initiative-box {
    background: #e9eaee;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 20px;
}

.initiative-box h2 {
    color: #003366;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.initiative-box p {
    color: #555;
    margin-bottom: 20px;
}

.btn-secondary {
    display: inline-block;
    background: white;
    color: #003366;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid #003366;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #003366;
    color: white;
}

/* Mobile Anpassungen */
@media (max-width: 900px) {
    .stellen-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .stellen-kachel {
        min-height: auto;
    }
    
    .kachel-title {
        font-size: 1.2rem;
        margin-right: 90px;
        min-height: auto;
    }
    
    .kachel-badge {
        top: 12px;
        right: 12px;
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    
    .kachel-footer {
        flex-direction: column;
    }
    
    .btn-bewerben,
    .btn-telefon {
        width: 100%;
        text-align: center;
    }
    
    .initiative-box {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .stellen-page {
        padding: 40px 0;
    }
    
    .stellen-hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .kachel-meta {
        gap: 10px;
        margin: 0 20px 12px;
    }
    
    .kachel-description {
        margin: 0 20px 12px;
    }
    
    .kachel-details {
        margin: 0 20px 12px;
    }
    
    .kachel-footer {
        margin: 8px 20px 20px;
    }
}

/* ============================================================
   VERKAUFSEITE - SPEZIFISCHE STYLES
   ============================================================ */

.verkauf-page {
    flex: 1;
    padding: 60px 0;
}

.verkauf-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.verkauf-hero {
    text-align: center;
    margin-bottom: 50px;
}

.verkauf-hero h1 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 15px;
}

.hero-line {
    width: 80px;
    height: 3px;
    background: #003366;
    margin: 0 auto 20px;
}

.hero-text {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Kachel-Grid */
.verkauf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.verkauf-kachel {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.verkauf-kachel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.verkauf-kachel.sold {
    opacity: 0.8;
    background: #f9f9f9;
}

.sold-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #dc3545;
    color: white;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 1px;
}

.price-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #003366;
    color: white;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fahrzeug-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e5e7eb;
}

.fahrzeug-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.verkauf-kachel:hover .fahrzeug-image img {
    transform: scale(1.03);
}

.fahrzeug-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fahrzeug-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 12px;
    line-height: 1.3;
}

.fahrzeug-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: #666;
}

.fahrzeug-meta .meta-item {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fahrzeug-description {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

.fahrzeug-description p {
    margin: 0;
}

.fahrzeug-details {
    margin-bottom: 20px;
}

.fahrzeug-details details {
    cursor: pointer;
}

.fahrzeug-details summary {
    color: #003366;
    font-weight: 500;
    padding: 8px 0;
    border-top: 1px solid #eef2f5;
    border-bottom: 1px solid #eef2f5;
    font-size: 0.85rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fahrzeug-details summary::-webkit-details-marker {
    display: none;
}

.fahrzeug-details summary::before {
    content: "▶";
    font-size: 10px;
    transition: transform 0.2s;
}

.fahrzeug-details details[open] summary::before {
    transform: rotate(90deg);
}

.fahrzeug-details .details-content {
    padding: 12px 0 8px;
}

.fahrzeug-details .details-content p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.fahrzeug-footer {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.btn-anfragen {
    flex: 2;
    background: #003366;
    color: white;
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-anfragen:hover {
    background: #002244;
}

.verkauf-kachel .btn-telefon {
    flex: 1;
    background: #28a745;
    color: white;
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.verkauf-kachel .btn-telefon:hover {
    background: #1e7e34;
}

.sold-message {
    text-align: center;
    padding: 12px;
    background: #f0f0f0;
    border-radius: 8px;
    margin-top: 10px;
}

.sold-message p {
    margin: 0;
    color: #dc3545;
    font-weight: 500;
    font-size: 0.85rem;
}

.info-box-verkauf {
    background: #e9eaee;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 20px;
}

.info-box-verkauf h2 {
    color: #003366;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.info-box-verkauf p {
    color: #555;
    margin-bottom: 20px;
}

/* Mobile Anpassungen */
@media (max-width: 900px) {
    .verkauf-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .fahrzeug-image {
        height: 180px;
    }
    
    .fahrzeug-footer {
        flex-direction: column;
    }
    
    .btn-anfragen,
    .verkauf-kachel .btn-telefon {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .verkauf-page {
        padding: 40px 0;
    }
    
    .verkauf-hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .fahrzeug-title {
        font-size: 1.2rem;
    }
    
    .info-box-verkauf {
        padding: 25px;
    }
}

/* ============================================================
   GALERIE SEITE - SPEZIFISCHE STYLES
   ============================================================ */

.galerie-page {
    flex: 1;
    padding: 60px 0;
}

.galerie-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.galerie-hero {
    text-align: center;
    margin-bottom: 40px;
}

.galerie-hero h1 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 15px;
}

.hero-line {
    width: 80px;
    height: 3px;
    background: #003366;
    margin: 0 auto 20px;
}

.hero-text {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Buttons */
.galerie-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: #f5f5f5;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
    font-weight: 500;
}

.filter-btn:hover {
    background: #e0e0e0;
}

.filter-btn.active {
    background: #003366;
    color: white;
}

/* Galerie Grid */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.galerie-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galerie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.galerie-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #e5e7eb;
}

.galerie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.galerie-item:hover .galerie-image img {
    transform: scale(1.05);
}

.galerie-caption {
    padding: 16px;
}

.galerie-caption h3 {
    font-size: 1.1rem;
    color: #003366;
    margin-bottom: 6px;
    font-weight: 600;
}

.galerie-caption p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Hinweis Box */
.galerie-hinweis {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-top: 20px;
}

.galerie-hinweis p {
    margin: 5px 0;
    color: #666;
}

.galerie-hinweis a {
    color: #003366;
    text-decoration: none;
    font-weight: 500;
}

.galerie-hinweis a:hover {
    text-decoration: underline;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .galerie-page {
        padding: 40px 0;
    }
    
    .galerie-hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .galerie-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .galerie-image {
        height: 200px;
    }
    
    .filter-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

/* ============================================================
   SOCIAL MEDIA SEITE - SPEZIFISCHE STYLES
   ============================================================ */

.social-page {
    flex: 1;
    padding: 60px 0;
}

.social-page .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.social-hero {
    text-align: center;
    margin-bottom: 50px;
}

.social-hero h1 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 15px;
}

.hero-line {
    width: 80px;
    height: 3px;
    background: #003366;
    margin: 0 auto 20px;
}

.hero-text {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.social-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.social-icon {
    margin-bottom: 20px;
}

.social-icon img {
    width: 70px;
    height: auto;
    transition: transform 0.2s;
}

.social-card:hover .social-icon img {
    transform: scale(1.05);
}

.social-card h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.social-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-btn {
    display: inline-block;
    background: #003366;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s;
}

.social-btn:hover {
    background: #002244;
    transform: translateY(-2px);
}

/* Vorteile */
.social-benefits {
    margin-bottom: 60px;
    text-align: center;
}

.social-benefits h2 {
    font-size: 1.8rem;
    color: #003366;
    margin-bottom: 30px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.benefit-item {
    padding: 25px;
    background: #f9f9f9;
    border-radius: 16px;
    transition: transform 0.2s;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.benefit-item h3 {
    font-size: 1.2rem;
    color: #003366;
    margin-bottom: 10px;
}

.benefit-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Kontakt Alternativ */
.social-contact {
    text-align: center;
    background: #e9eaee;
    padding: 40px;
    border-radius: 20px;
}

.social-contact h2 {
    font-size: 1.5rem;
    color: #003366;
    margin-bottom: 10px;
}

.social-contact p {
    color: #666;
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.contact-link.phone {
    background: #28a745;
    color: white;
}

.contact-link.phone:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

.contact-link.email {
    background: #003366;
    color: white;
}

.contact-link.email:hover {
    background: #002244;
    transform: translateY(-2px);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .social-page {
        padding: 40px 0;
    }
    
    .social-hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .social-grid {
        gap: 25px;
    }
    
    .social-card {
        padding: 30px 20px;
    }
    
    .social-card h2 {
        font-size: 1.5rem;
    }
    
    .benefits-grid {
        gap: 20px;
    }
    
    .benefit-item {
        padding: 20px;
    }
    
    .social-contact {
        padding: 30px 20px;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-link {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   GALERIE SEITE - KACHEL-DESIGN MIT MODAL
   ============================================================ */

.galerie-page {
    flex: 1;
    padding: 60px 0;
}

.galerie-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.galerie-hero {
    text-align: center;
    margin-bottom: 50px;
}

.galerie-hero h1 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 15px;
}

.hero-line {
    width: 80px;
    height: 3px;
    background: #003366;
    margin: 0 auto 20px;
}

.hero-text {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Kachel-Grid */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.galerie-kachel {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.galerie-kachel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Kachel-Bild */
.kachel-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.kachel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.galerie-kachel:hover .kachel-image img {
    transform: scale(1.05);
}

/* Bildanzahl-Badge */
.image-count-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* Kachel-Inhalt */
.kachel-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.kachel-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kachel-icon {
    font-size: 1.3rem;
}

.kachel-description {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

/* Galerie öffnen Button */
.btn-galerie-open {
    background: #003366;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-galerie-open:hover {
    background: #002244;
}

/* Leere Galerie */
.galerie-empty {
    text-align: center;
    padding: 80px 20px;
    background: #f9f9f9;
    border-radius: 16px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.galerie-empty h2 {
    color: #003366;
    margin-bottom: 10px;
}

.galerie-empty p {
    color: #666;
    margin-bottom: 5px;
}

.galerie-empty code {
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Admin Hinweis */
.admin-hinweis {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 20px;
    margin: 40px 0 20px;
    border-radius: 8px;
}

.admin-hinweis p {
    margin: 5px 0;
    font-size: 0.85rem;
    color: #856404;
}

.admin-hinweis code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Hinweis Box für Besucher */
.galerie-hinweis {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-top: 20px;
}

.galerie-hinweis p {
    margin: 5px 0;
    color: #666;
}

.galerie-hinweis a {
    color: #003366;
    text-decoration: none;
    font-weight: 500;
}

.galerie-hinweis a:hover {
    text-decoration: underline;
}

/* ============================================================
   GALERIE MODAL (LIGHTBOX)
   ============================================================ */

.galerie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    overflow-y: auto;
    padding: 40px 20px;
}

.galerie-modal:target {
    display: block;
}

.modal-content {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    text-decoration: none;
    color: #666;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #003366;
}

.modal-content h2 {
    color: #003366;
    margin-bottom: 25px;
    padding-right: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
}

.modal-icon {
    font-size: 1.8rem;
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.modal-image-item {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.modal-image-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.modal-image-item:hover img {
    transform: scale(1.02);
}

.modal-footer-close {
    display: inline-block;
    background: #003366;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.modal-footer-close:hover {
    background: #002244;
}

/* Mobile Anpassungen Galerie */
@media (max-width: 768px) {
    .galerie-page {
        padding: 40px 0;
    }
    
    .galerie-hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .galerie-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .kachel-image {
        height: 200px;
    }
    
    .kachel-title {
        font-size: 1.1rem;
    }
    
    /* Modal Mobile */
    .modal-content {
        padding: 20px;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
    }
    
    .modal-images {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-close {
        top: 12px;
        right: 18px;
        font-size: 32px;
    }
}

/* Tablet Anpassungen */
@media (min-width: 769px) and (max-width: 1024px) {
    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .kachel-image {
        height: 200px;
    }
}




/* ============================================================
   SCHRIFTART IM HEADER UND FOOTER ERZWINGEN
   ============================================================ */

.site-header,
.site-header *,
.site-footer,
.site-footer * {
    font-family: var(--font-family) !important;
}


/* Navigation und Footer Schrift */
.main-nav a,
.footer-nav a,
.branding a {
    font-weight: 500;
}

/* ============================================================
   SCHRIFTSTÄRKEN FÜR ÜBERSCHRIFTEN
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

strong, b {
    font-weight: 700;
}