/* Custom Styles */

/* Modernes, lebendiges Redesign */
section.bg-gradient-to-b {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: 1px;
}

/* Verbesserte Lesbarkeit für Text */
.impressum-card p, .partner-card p {
    line-height: 1.6;
    color: #4b5563;
}

/* Icon Stile */
.impressum-card .fa-icon, .partner-card .fa-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Verbesserte Überschriften */
.impressum-card h2, .partner-card h2 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Abstände und Layout */
.impressum-section .grid, .partner-section .grid {
    gap: 2rem;
}

/* Animationen */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.call-button {
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.call-button:hover {
    transform: scale(1.05);
}

.phone-icon {
    display: inline-block;
    animation: shake 1.5s infinite;
    transform-origin: 50% 50%;
}

/* Formular-Styles */
.form-field {
    transition: all 0.3s ease;
}

.form-field:focus-within {
    transform: translateY(-2px);
}

.form-field.error {
    animation: shake 0.5s ease-in-out;
}

.form-field.error input,
.form-field.error textarea,
.form-field.error select {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-field.error .error-message {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1e3a8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-submitting .loading-spinner {
    display: inline-block;
}

.form-submitting button[type="submit"] span {
    display: none;
}

/* Hero Buttons */
.hero-btn {
    height: 3.5rem;
    min-width: 160px;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: all 0.18s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    text-decoration: none;
}
.hero-btn:first-child {
    background: #fff;
    color: #1e3a8a;
    border-color: #1e3a8a;
}
.hero-btn:first-child:hover {
    background: #e0e7ff;
    color: #1e40af;
    border-color: #1e40af;
}
.hero-btn:last-child {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
    animation: pulse 2s infinite;
}
.hero-btn:last-child:hover {
    background: #15803d;
    color: #fff;
    border-color: #15803d;
}

/* Hero Bereich explizite Farben */
#home h1 {
    color: #fff !important;
}
#home .hero-btn:first-child {
    color: #1e3a8a !important;
}
#home .hero-btn:last-child {
    color: #fff !important;
}

/* --- HERO BEREICH: Aufgeräumtes, zentrales Styling --- */
#home {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    text-align: center;
}
#home h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
#home p {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}
#home .hero-btn {
    height: 3.5rem;
    min-width: 160px;
    margin: 0 0.5rem;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: all 0.18s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    text-decoration: none;
}
#home .hero-btn:first-child {
    background: #fff;
    color: #1e3a8a;
    border-color: #1e3a8a;
}
#home .hero-btn:first-child:hover {
    background: #e0e7ff;
    color: #1e40af;
    border-color: #1e40af;
}
#home .hero-btn:last-child {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
    animation: pulse 2s infinite;
}
#home .hero-btn:last-child:hover {
    background: #15803d;
    color: #fff;
    border-color: #15803d;
}
#home .hero-btn .phone-icon {
    margin-right: 0.5rem;
    font-size: 1.2em;
    animation: shake 1.5s infinite;
    transform-origin: 50% 50%;
}
/* --- ENDE HERO BEREICH --- */

/* --- TECHNISCHE DATEN: Kontaktbereich --- */
.tech-contact-section {
    box-shadow: 0 4px 16px rgba(30, 60, 114, 0.10);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    margin: 1rem 0;
}
.tech-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 18px;
    min-width: 200px;
    min-height: 80px;
    height: 80px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
    transition: all 0.18s cubic-bezier(.4,0,.2,1);
    text-align: center;
    gap: 0.5rem;
    flex-direction: row;
}
.tech-contact-tel, .tech-contact-form {
    height: 80px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}
.tech-contact-tel {
    background: #1e3a8a;
    color: #fff;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
}
.tech-contact-tel i {
    font-size: 1.3rem;
    margin-right: 0.5rem;
    margin-bottom: 0;
}
.tech-contact-tel:hover {
    background: #1e40af;
}
.tech-contact-form {
    background: #fff;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
    font-weight: 600;
}
.tech-contact-form i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}
.tech-contact-form:hover {
    background: #f1f5f9;
    color: #1e40af;
    border-color: #1e40af;
}
@media (max-width: 640px) {
    .tech-contact-section {
        padding: 1.5rem 0.5rem;
    }
    .tech-contact-btn {
        min-width: 100%;
        min-height: 56px;
        font-size: 1rem;
        flex-direction: row !important;
    }
    .tech-contact-tel {
        font-size: 1rem;
        flex-direction: row;
    }
    .tech-contact-tel i {
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
}
/* --- ENDE TECHNISCHE DATEN: Kontaktbereich --- */

/* --- TECHNISCHE DATEN: Custom Kontakt-Buttons --- */
.custom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 18px;
    min-width: 200px;
    height: 80px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
    transition: all 0.18s cubic-bezier(.4,0,.2,1);
    text-align: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
}
.custom-btn-tel {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
}
.custom-btn-tel:hover {
    background: #1e40af;
    border-color: #1e40af;
}
.custom-btn-form {
    background: #fff;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
    min-width: 320px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}
.custom-btn-form:hover {
    background: #f1f5f9;
    color: #1e40af;
    border-color: #1e40af;
}
.custom-btn i {
    font-size: 1.3rem;
    margin-right: 0.5rem;
}
@media (max-width: 640px) {
    .custom-btn {
        min-width: 100%;
        height: 56px;
        font-size: 1rem;
    }
    .custom-btn i {
        font-size: 1.1rem;
    }
}
/* --- ENDE TECHNISCHE DATEN: Custom Kontakt-Buttons --- */

/* --- DATENSCHUTZ: Eigene Regeln --- */
.privacy-main {
    background: transparent;
    box-shadow: none;
    padding: 3rem 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 900px;
}
.privacy-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.privacy-main h1 {
    color: #1e3a8a;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}
.privacy-main h2 {
    color: #1e3a8a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.privacy-main h3 {
    color: #1e3a8a;
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.privacy-main p {
    color: #222;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.1rem;
}
.privacy-main ul {
    margin-left: 1.5rem;
    margin-bottom: 1.1rem;
}
.privacy-main li {
    color: #222;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
@media (max-width: 640px) {
    .privacy-main {
        padding: 1.2rem 0.5rem;
        border-radius: 8px;
    }
    .privacy-main h1 {
        font-size: 1.5rem;
    }
    .privacy-main h2 {
        font-size: 1.1rem;
    }
    .privacy-main h3 {
        font-size: 1rem;
    }
}
/* --- ENDE DATENSCHUTZ: Eigene Regeln --- */

/* --- PARTNER: Custom Buttons --- */
.partner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 18px;
    min-width: 220px;
    height: 56px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
    transition: all 0.18s cubic-bezier(.4,0,.2,1);
    text-align: center;
    gap: 0.7rem;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    padding: 0 2rem;
}
.partner-btn-tel {
    background: #2563eb;
    color: #fff;
    border-color: #fff;
    font-weight: 700;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.12), 0 4px 20px rgba(37,99,235,0.18);
}
.partner-btn-tel:hover {
    background: #1d4ed8;
    border-color: #fff;
}
.partner-btn-tel i {
    color: #fff;
    font-size: 1.5rem;
}
.partner-btn-link {
    background: #fff;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}
.partner-btn-link:hover {
    background: #e0e7ff;
    color: #1e40af;
    border-color: #1e40af;
}
.partner-btn i {
    font-size: 1.3rem;
    margin-right: 0.5rem;
}
@media (max-width: 640px) {
    .partner-btn {
        min-width: 100%;
        height: 48px;
        font-size: 1rem;
        padding: 0 1rem;
    }
    .partner-btn i {
        font-size: 1.1rem;
    }
}
/* --- ENDE PARTNER: Custom Buttons --- */

.custom-btn i, .partner-btn i {
    animation: shake 1.5s infinite;
    transform-origin: 50% 50%;
}
.animated-pulse {
    animation: none;
}
.custom-btn-form:hover, .partner-btn-link:hover {
    background: #e0e7ff;
    color: #1e3a8a;
    border-color: #1e3a8a;
}
.custom-btn-tel:hover, .partner-btn-tel:hover {
    background: #1e40af;
    color: #fff;
    border-color: #1e40af;
}

/* --- Lesbarkeit & Kontrast für Buttons und weiße Schrift verbessern --- */
/* Entfernt: .text-white, .text-white:hover { ... } */

/* Nur für Buttons mit weißer Schrift auf dunklem Hintergrund: */
.bg-\[\#1e3a8a\], .bg-\[\#1e3a8a\]:hover,
.hover\:bg-\[\#1e40af\]:hover,
.btn-cta, .btn-cta:hover,
.hero-btn:last-child, .hero-btn:last-child:hover,
.tech-contact-tel, .tech-contact-tel:hover {
    color: #fff !important;
    text-shadow: 0 1px 8px rgba(30,64,175,0.25), 0 0px 2px #000;
}

/* Noch helleres Blau beim Hover für mehr Kontrast */
.hover\:bg-\[\#1e40af\]:hover,
.bg-\[\#1e3a8a\]:hover,
.btn-cta:hover {
    background-color: #2563eb !important;
    color: #fff !important;
    text-shadow: 0 1px 8px rgba(30,64,175,0.25), 0 0px 2px #000;
} 