/* ========================================
   CUSTOM THEME COLORS
   ======================================== */

:root {
    --primary-color: #F15548;      /* Hauptfarbe fuer Navigation und Akzente */
    --secondary-color: #FA8D4A;    /* Hintergrund RGB 250/141/74 */
    --primary-dark: #D9483D;       /* Dunklere Variante fuer Hover und Verlaeufe */
    --light-bg: #FFF8F5;           /* Helles Creme */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 62px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

/* ========================================
   NAVIGATION
   ======================================== */

#mainNav {
    background: #F15548;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

#mainNav .navbar-brand {
    color: var(--white) !important;
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#mainNav .navbar-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

#mainNav .navbar-brand-title {
    font-size: 1.5rem;
}

#mainNav .navbar-brand-subtitle {
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.92;
}

#mainNav .navbar-brand i {
    font-size: 1.8rem;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin-left: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

#mainNav .nav-link:hover {
    color: var(--secondary-color) !important;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1.5rem;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

#mainNav .nav-link:hover::after {
    width: calc(100% - 3rem);
}

.site-footer {
    background: #F15548;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-container picture,
.hero-bg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Interessanter Parallax & Zoom Effekt */
.hero-bg {
    animation: heroZoom 20s ease-out forwards;
    transform-origin: center;
}

@keyframes heroZoom {
    from {
        transform: scale(1.1) translateZ(0);
        filter: blur(2px);
    }
    to {
        transform: scale(1) translateZ(0);
        filter: blur(0);
    }
}

/* Overlay Effekt */
.overlay-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(241, 85, 72, 0.5) 0%,
        rgba(250, 141, 74, 0.3) 100%
    );
    animation: overlayPulse 4s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.7;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 800px;
    perspective: 1000px;
}

.hero-text {
    padding: clamp(1.1rem, 3vw, 2rem);
}

.hero-text h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow:
        0 3px 8px rgba(0, 0, 0, 0.55),
        0 10px 26px rgba(0, 0, 0, 0.45);
    letter-spacing: -1px;
    transform-origin: center;
}

.hero-text p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.75),
        0 8px 20px rgba(0, 0, 0, 0.6),
        0 0 1px rgba(0, 0, 0, 0.95);
}

.hero-text .hero-subtitle-emphasis {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.hero-flat-copy .hero-text h1,
.hero-flat-copy .hero-text h3,
.hero-flat-copy .hero-text p {
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    font-weight: 500;
    letter-spacing: 0;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.55),
        0 8px 18px rgba(0, 0, 0, 0.45);
}

.hero-flat-copy .hero-text h1 {
    margin-bottom: 0.7rem;
}

.hero-flat-copy .hero-text h3 {
    margin-bottom: 0.9rem;
    color: #F15548;
    text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.45),
    0 5px 12px rgba(0, 0, 0, 0.3);
}

.hero-flat-copy .hero-text p {
    margin-bottom: 1.25rem;
}

.hero-symbols {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}

.hero-symbols-mark {
    color: #F15548;
    font-family: "Microsoft JhengHei", "Noto Serif CJK SC", "PingFang SC", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.35rem;
    text-shadow:
        0 3px 8px rgba(0, 0, 0, 0.45),
        0 10px 24px rgba(0, 0, 0, 0.28),
        0 0 1px rgba(255, 244, 238, 0.4);
}

.hero-symbols-caption {
    color: rgba(255, 244, 238, 0.92);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-symbols-caption-strong {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.16rem;
    color: #fff7f4;
    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.78),
        0 8px 24px rgba(0, 0, 0, 0.52),
        0 0 14px rgba(241, 85, 72, 0.35);
}

/* Hero Text Animation */
.animate-fade-in {
    animation: heroPanelIn 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}

.animate-fade-in h1 {
    animation: hero3DTitleIn 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.animate-fade-in p {
    animation: hero3DSubIn 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.animate-fade-in .hero-symbols {
    animation: fadeInUp 0.9s ease-out 0.72s both;
}

.animate-fade-in .btn {
    animation: fadeInUp 0.8s ease-out 0.85s both;
}

@keyframes heroPanelIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hero3DTitleIn {
    from {
        opacity: 0;
        transform: rotateX(64deg) rotateY(-14deg) translateZ(-130px) translateY(56px);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: rotateX(0) rotateY(0) translateZ(0) translateY(0);
        filter: blur(0);
    }
}

@keyframes hero3DSubIn {
    from {
        opacity: 0;
        transform: rotateX(48deg) rotateY(10deg) translateZ(-90px) translateY(40px);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: rotateX(0) rotateY(0) translateZ(0) translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Styles */
.btn {
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 40px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(241, 85, 72, 0.3);
}

.btn-primary:focus {
    background-color: var(--primary-dark);
    box-shadow: 0 0 0 0.25rem rgba(241, 85, 72, 0.25);
}

/* ========================================
   SECTIONS
   ======================================== */

section {
    padding: 5rem 0;
    scroll-margin-top: 70px;
}

@media (max-width: 991.98px) {
    section {
        scroll-margin-top: 62px;
    }
}

section h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

section.bg-light {
    background-color: var(--light-bg);
}

/* ========================================
   CARDS CUSTOM STYLE
   ======================================== */

.card {
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-custom {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border-left: 4px solid var(--secondary-color);
}

.card-custom:hover {
    box-shadow: 0 8px 25px rgba(250, 141, 74, 0.2);
    transform: translateY(-8px);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
    border-radius: 10px;
}

.card-icon i {
    font-size: 1.75rem;
    line-height: 1;
}

.tcm-card {
    border-left: 4px solid var(--primary-color) !important;
}

.tcm-card .card-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.tcm-card .list-unstyled li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.tcm-card .list-unstyled li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.service-category {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.services-overview {
    gap: 1.5rem 0;
}

.service-panel {
    border-left-width: 6px;
}

.service-panel-body {
    padding: 2.5rem;
}

.service-panel-image {
    min-height: 100%;
    max-height: 100%;
}

.service-panel-intro {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.service-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.service-list li {
    position: relative;
    padding-left: 1.8rem;
    color: var(--text-light);
    font-size: 0.98rem;
}

.service-list li::before {
    content: '\2022';
    position: absolute;
    left: 0.45rem;
    top: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1.4;
}

.news-card {
    border-left: 6px solid var(--primary-color);
}

.news-card-body {
    padding: 2.5rem;
}

.news-content {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.75;
}

.news-content > :last-child {
    margin-bottom: 0;
}

.news-content p,
.news-content ul,
.news-content ol {
    margin-bottom: 1rem;
}

.news-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.news-meta {
    margin-top: 1.25rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.card-team {
    text-align: center;
}

.team-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    margin: 0 auto 1.5rem;
    border-radius: 50%;
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Card Animation on Scroll */
.animate-card {
    opacity: 1;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-card-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Staggered Animation */
.col-md-6:nth-child(1) .animate-card,
.col-lg-4:nth-child(1) .animate-card {
    animation-delay: 0.1s;
}

.col-md-6:nth-child(2) .animate-card,
.col-lg-4:nth-child(2) .animate-card {
    animation-delay: 0.2s;
}

.col-md-6:nth-child(3) .animate-card,
.col-lg-4:nth-child(3) .animate-card {
    animation-delay: 0.3s;
}

.col-md-6:nth-child(4) .animate-card,
.col-lg-4:nth-child(4) .animate-card {
    animation-delay: 0.4s;
}

.col-md-6:nth-child(5) .animate-card,
.col-lg-4:nth-child(5) .animate-card {
    animation-delay: 0.5s;
}

.col-md-6:nth-child(6) .animate-card,
.col-lg-4:nth-child(6) .animate-card {
    animation-delay: 0.6s;
}

/* Hover Animation */
.card-custom:hover .card-icon {
    animation: iconBounce 0.6s ease-out;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    #mainNav .nav-link {
        margin-left: 1rem;
    }

    #mainNav .nav-link::after {
        left: 1rem;
    }

    #mainNav .nav-link:hover::after {
        width: calc(100% - 2rem);
    }

    .card-body {
        padding: 1.5rem;
    }

    .service-panel-body {
        padding: 1.75rem;
    }

    .news-card-body {
        padding: 1.75rem;
    }

    .service-panel-image {
        height: auto !important;
        max-height: none;
        min-height: 0;
    }
}

/* Mobile */
@media (max-width: 576px) {
    section {
        padding: 2rem 0;
    }

    .hero-section {
        height: 80vh;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .btn-lg {
        padding: 10px 30px;
    }

    section h2 {
        font-size: 1.8rem;
    }

    #mainNav .navbar-brand {
        font-size: 1.2rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .team-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background-color: var(--text-dark);
    color: var(--white);
    text-align: center;
    margin-top: 5rem;
}

footer p {
    margin: 0.5rem 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-link:hover,
.footer-link:focus {
    color: var(--secondary-color);
}

.impressum-modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
}

.impressum-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-bottom: none;
}

.impressum-modal-header .btn-close {
    filter: invert(1) grayscale(100%);
}

.notice-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.notice-modal-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    border-bottom: none;
}

.notice-modal-header .btn-close {
    filter: invert(1) grayscale(100%);
}

.notice-modal-text {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.65;
}

.notice-modal-meta {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.85rem;
}


/* ========================================
   ACCESSIBILITY
   ======================================== */

a:focus,
button:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.lead {
    color: var(--text-light);
}

/* Blockquote Styles */
blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-light);
}

/* Image Styling */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

.rounded-lg {
    border-radius: 15px;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Print Styles */
@media print {
    .navbar,
    footer {
        display: none;
    }
}
