/* =============================================
   MODERN.CSS — Modernisierung des Designs
   Schriftart: Inter (Body) + Playfair Display (Headlines)
   ============================================= */

/* --- Basis-Typografie --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #2d3436;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); }
h5 { font-family: 'Inter', sans-serif; font-weight: 600; }

p {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: #444;
    line-height: 1.7;
}

/* --- Header modernisiert --- */
header {
    background: linear-gradient(135deg, #2d3436 0%, #3d3d3d 100%) !important;
    padding: 12px 24px !important;
}
header a {
    transition: color 0.2s ease;
}
header .txt:hover {
    color: #f6e58d !important;
}

/* --- Logo-Bereich --- */
.logo-menu {
    background-color: #ffffff !important;
    padding: 12px 24px !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* --- Navigation modernisiert --- */
.large-screen .menu,
.small-screen .menu {
    background-color: #1a1a2e !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}
#menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: background 0.2s ease;
}
#menu li:hover {
    background: rgba(255, 255, 255, 0.05);
}
#menu li a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
    letter-spacing: 0.3px;
}
#menu li.active a,
#menu li:hover a {
    color: #f6e58d !important;
}

/* --- Slider / Hero modernisiert --- */
.slider-containerbegin {
    border-radius: 20px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
}
.sliderbegin-btn {
    border-radius: 50% !important;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
}
.sliderbegin-btn:hover {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* --- About-Bereich --- */
.expandable-box {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
    padding: 32px !important;
    margin-top: 40px !important;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.headline {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #1a1a2e !important;
    margin-bottom: 16px;
}
#toggleButton {
    background-color: #1a1a2e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 20px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.2) !important;
    margin-top: 12px;
}
#toggleButton:hover {
    background-color: #2d3436 !important;
    transform: translateY(-1px);
}

/* --- Service-Bereich --- */
.service_section {
    padding: 48px 0 !important;
}
.heading_container h2 {
    font-family: 'Playfair Display', Georgia, serif !important;
    position: relative;
    padding-bottom: 12px;
}
.heading_container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f6e58d, #f9ca24);
    border-radius: 2px;
}
.carousel {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
}
.box {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    padding: 28px !important;
}
.boxallow.box:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
}
.img-box i.fa {
    color: #1a1a2e;
    transition: color 0.3s ease;
}
.boxallow.box:hover .img-box i.fa {
    color: #f9ca24;
}
.detail-box h5 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    color: #1a1a2e;
}
.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(26, 26, 46, 0.6) !important;
    border-radius: 8px !important;
    width: 36px;
    height: 36px;
    top: 50%;
    padding: 8px !important;
    transition: background 0.3s ease;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(26, 26, 46, 0.9) !important;
}

/* --- Kontaktformular --- */
.contact_section {
    padding: 48px 0;
}
.contact-heading_container h2 {
    font-family: 'Playfair Display', Georgia, serif !important;
}
.contact-contact-divider {
    background: linear-gradient(90deg, #f6e58d, #f9ca24) !important;
    height: 3px !important;
    width: 60px !important;
}
.contact-contact-form form input,
.contact-contact-form form textarea {
    border-radius: 10px !important;
    border: 1px solid #e0e0e0 !important;
    padding: 14px 16px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafafa !important;
}
.contact-contact-form form input:focus,
.contact-contact-form form textarea:focus {
    outline: none;
    border-color: #1a1a2e !important;
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
    background-color: #ffffff !important;
}
input[required], textarea[required] {
    border: 1px solid #e0e0e0 !important;
    background-color: #fafafa !important;
}
input[required]:focus, textarea[required]:focus {
    border-color: #1a1a2e !important;
    background-color: #ffffff !important;
}
.contact-contact-form button {
    background: #1a1a2e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 32px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    width: auto !important;
    line-height: 1.4 !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.2) !important;
}
.contact-contact-form button:hover {
    background: #2d3436 !important;
    transform: translateY(-2px);
}
#osm-map {
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* --- Footer modernisiert --- */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3436 100%) !important;
    padding: 32px 0 !important;
}
.footer-section h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #f6e58d;
}
.footer-section ul li {
    opacity: 0.85;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    opacity: 0.7;
}
.agbImp a:hover {
    color: #f6e58d !important;
}

/* --- Cookie-Banner --- */
.cookie-banner {
    backdrop-filter: blur(8px);
    background-color: rgba(26, 26, 46, 0.95) !important;
}
.cookie-btn {
    background-color: #f6e58d !important;
    color: #1a1a2e !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    transition: background 0.3s ease !important;
}
.cookie-btn:hover {
    background-color: #f9ca24 !important;
}

/* --- Service-Detail-Seiten (maler.php etc.) --- */
.content-wrapper {
    gap: 32px !important;
    padding: 24px 0;
}
.text-container h1 {
    margin-bottom: 16px;
}
.text-container p {
    line-height: 1.8;
}
.carousel-inner img {
    border-radius: 12px !important;
}

/* --- AGB / Impressum --- */
.agb-container,
.impressum-container {
    max-width: 800px;
    margin: 32px auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.agb-container h1,
.impressum-container h1 {
    border-bottom: 3px solid #f6e58d;
    padding-bottom: 12px;
    margin-bottom: 24px;
}
.agb-container h2,
.impressum-container h2 {
    font-size: 1.2rem;
    margin-top: 24px;
    color: #1a1a2e;
}

/* --- Mobile-Optimierungen --- */
.small-screen .expandable-box {
    margin-left: 12px !important;
    margin-right: 12px !important;
    padding: 20px !important;
}
.small-screen .headline {
    font-size: 1.2rem !important;
}
.small-screen .service_section {
    padding: 24px 8px !important;
}
.small-screen .contact-container {
    padding: 12px !important;
}
.small-screen .contact-row {
    flex-direction: column;
}
.small-screen .contact-contact-form,
.small-screen .osm-map {
    flex: 1 1 100% !important;
}
.small-screen .osm-map {
    height: 300px !important;
}
.small-screen .content-wrapper {
    padding: 12px !important;
}
.small-screen .carousel-container,
.small-screen .text-container {
    width: 100% !important;
}
.small-screen .agb-container,
.small-screen .impressum-container {
    margin: 16px 8px;
    padding: 20px;
}
.small-screen footer .footer-container {
    flex-direction: column;
}
.small-screen .footer-section {
    width: 100%;
    padding-left: 16px;
}

/* --- Sanfte Animationen --- */
@media (prefers-reduced-motion: no-preference) {
    .expandable-box,
    .box,
    .contact-contact-form button,
    #toggleButton {
        transition: all 0.3s ease;
    }
}

/* --- Scroll-Behavior --- */
html {
    scroll-behavior: smooth;
}
