/* ==========================================================
   PRIMTALMUSIKSCHULE – CUSTOM.CSS
   Joomla 6 + Helix Ultimate
========================================================== */


/* ==========================================================
   01. DESIGN SYSTEM
========================================================== */

:root {
    --primary: #F28C28;
    --primary-dark: #D97706;

    --secondary: #1F365C;

    --text: #2F2F2F;
    --text-light: #666;
    --text-muted: #666;

    --white: #ffffff;
    --light: #f8f9fb;
    --accent-light: #fff3e8;

    --radius: 24px;
    --radius-lg: 36px;
    --radius-pill: 999px;

    --shadow-sm: 0 8px 24px rgba(0, 0, 0, .06);
    --shadow-md: 0 18px 45px rgba(0, 0, 0, .08);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .12);

    --max-width: 1320px;
}


/* ==========================================================
   02. GLOBAL
========================================================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: #fff;
    color: var(--text);

    font-family: "Inter", sans-serif;
    font-size: 18px;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
}

img {
    max-width: 100%;
    height: auto;
}

p {
    color: var(--text-light);
}

a {
    transition: color .2s ease;
}


/* ==========================================================
   03. TYPOGRAFIE
========================================================== */

h1,
h2,
h3,
h4,
h5 {
    margin-bottom: .8rem;

    color: var(--secondary);

    font-family: "Poppins", sans-serif;
    font-weight: 700;
    letter-spacing: -.03em;
}

h1 {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    line-height: 1.05;
}

h2 {
    font-size: clamp(2.3rem, 5vw, 3.4rem);
}


/* ==========================================================
   04. HEADER
========================================================== */

#sp-header {
    height: 72px;

    background: rgba(255, 255, 255, .95);

    box-shadow: 0 1px 15px rgba(0, 0, 0, .05);
    backdrop-filter: blur(12px);
}

#sp-header .logo img {
    max-height: 60px;
}

.sp-megamenu-parent > li > a {
    font-size: 16px;
    font-weight: 500;
}

.sp-megamenu-parent > li > a:hover {
    color: var(--primary);
}


/* ==========================================================
   05. BUTTONS
========================================================== */

.btn {
    padding: 16px 34px;

    border-radius: var(--radius-pill);

    font-weight: 600;

    transition:
        transform .25s ease,
        background .25s ease,
        color .25s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    border: 0;

    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline-dark {
    border-radius: var(--radius-pill);
}


/* ==========================================================
   06. HERO
========================================================== */

.hero-section {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 72vh;

    padding: 40px 0 70px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 92% 18%,
            rgba(242, 140, 40, .10) 0%,
            rgba(242, 140, 40, .04) 38%,
            transparent 65%
        ),
        linear-gradient(
            180deg,
            #fffdfa 0%,
            #fff8f4 55%,
            #ffffff 100%
        );
}

.hero-section::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -2;

    background:
        url("/images/hero-bg.jpg")
        right center / cover no-repeat;

    opacity: .95;
}

.hero-badge,
.section-badge {
    display: inline-block;

    padding: 8px 18px;

    border-radius: var(--radius-pill);

    background: var(--accent-light);
    color: var(--primary);

    font-weight: 600;
}

.hero-badge {
    margin-bottom: 30px;
}

.hero-text {
    max-width: 560px;

    margin: 35px 0;

    font-size: 1.25rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 18px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;

    gap: 50px;

    margin-top: 55px;
}

.hero-stats strong {
    display: block;

    color: var(--secondary);

    font-size: 2rem;
    line-height: 1;
}

.hero-stats span {
    font-size: .95rem;
}

.hero-image-wrapper {
    position: relative;

    width: 100%;
    height: min(430px, 38vw);
    max-height: 430px;

    padding-left: 40px;

    overflow: hidden;
}

.hero-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);

    transition: transform .4s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}


/* ==========================================================
   07. SECTIONS
========================================================== */

.section {
    padding: 110px 0;

    background: var(--light);
}

.section-header {
    max-width: 760px;

    margin: 0 auto 70px;

    text-align: center;
}

.section-badge {
    margin-bottom: 20px;
}


/* ==========================================================
   08. FEATURE CARDS
========================================================== */

.feature-card {
    display: block;

    height: 100%;

    overflow: hidden;

    border-radius: var(--radius);

    background: #fff;
    color: inherit;

    box-shadow: var(--shadow-sm);

    text-decoration: none;

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.feature-card:hover {
    transform: translateY(-10px);

    box-shadow: var(--shadow-md);
}

.feature-image {
    display: block;

    width: 100%;
    height: 280px;

    object-fit: cover;

    transition: transform .5s ease;
}

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

.feature-content {
    padding: 22px 24px 26px;
}

.feature-content h3 {
    margin-bottom: 12px;
}

.feature-content p {
    margin: 0;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    margin-bottom: 24px;

    border-radius: 50%;

    background: rgba(242, 140, 40, .10);
    color: var(--primary);

    font-size: 30px;

    transition:
        background .35s ease,
        color .35s ease,
        transform .35s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #fff;

    transform: rotate(-8deg) scale(1.05);
}


/* ==========================================================
   09. FOOTER
========================================================== */

#sp-footer {
    position: relative;

    padding: 70px 0 35px;

    background:
        linear-gradient(
            180deg,
            #314767 0%,
            #273B59 100%
        );

    color: rgba(255, 255, 255, .78);
}

#sp-footer::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 180px;
    height: 4px;

    border-radius: 0 10px 10px 0;

    background: var(--primary);
}

#sp-footer h3 {
    margin-bottom: 24px;

    color: #fff;

    font-size: 20px;
    font-weight: 600;
}

#sp-footer p {
    margin-bottom: 18px;

    color: rgba(255, 255, 255, .72);

    line-height: 1.9;
}

#sp-footer a {
    color: rgba(255, 255, 255, .85);

    text-decoration: none;
}

#sp-footer a:hover {
    color: var(--primary);
}

#sp-footer i {
    width: 22px;

    color: var(--primary);
}

#sp-footer .sp-module {
    margin-bottom: 30px;
}


/* Footer-Menüs */

#sp-footer ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none;

    text-align: left !important;
}

#sp-footer ul > li {
    display: block !important;

    width: 100% !important;

    margin: 0 0 10px !important;
    padding: 0 !important;

    text-align: left !important;
}

#sp-footer ul > li > a {
    display: block !important;

    width: 100% !important;

    padding: 0 !important;

    text-align: left !important;
}


/* Copyright */

#sp-copyright {
    padding: 22px 0;

    border-top: 1px solid rgba(255, 255, 255, .08);

    background: #22334d;
    color: rgba(255, 255, 255, .65);

    font-size: 15px;
}

#sp-copyright a {
    margin-left: 18px;

    color: rgba(255, 255, 255, .78);

    text-decoration: none;
}

#sp-copyright a:hover {
    color: var(--primary);
}


/* ==========================================================
   10. RECHTLICHE SEITEN
========================================================== */

.page-hero-small {
    display: flex;
    align-items: center;

    min-height: 420px;

    padding: 90px 0;
}

.legal-content {
    max-width: 900px;

    margin: 0 auto;
}

.legal-intro {
    margin-bottom: 60px;
    padding: 45px;

    border-radius: var(--radius);

    background: var(--accent-light);
}

.legal-intro h2 {
    margin-bottom: 25px;
}

.legal-contact p {
    margin-bottom: 22px;
}

.legal-contact p:last-child {
    margin-bottom: 0;
}

.legal-block {
    margin-bottom: 45px;
    padding-bottom: 45px;

    border-bottom: 1px solid #e7e9ed;
}

.legal-block:last-child {
    margin-bottom: 0;

    border-bottom: 0;
}

.legal-block h2 {
    margin-bottom: 22px;

    font-size: 2rem;
}

.legal-block p {
    margin-bottom: 18px;
}

.legal-block a,
.legal-contact a,
.legal-contact-box a {
    color: var(--secondary);

    font-weight: 500;

    text-decoration: none;
}

.legal-block a:hover,
.legal-contact a:hover,
.legal-contact-box a:hover {
    color: var(--primary);
}


/* Widerruf */

.legal-contact-box {
    margin-top: 35px;
    padding: 30px 35px;

    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;

    background: var(--accent-light);
}

.legal-contact-box p {
    margin-bottom: 18px;
}

.legal-contact-box p:last-child {
    margin-bottom: 0;
}


/* Datenschutz */

.legal-overview {
    margin-top: 30px;
    padding: 25px 30px;

    border-radius: var(--radius);

    background: var(--light);
}

.legal-overview ol {
    margin: 15px 0 0 20px;
    padding: 0;
}

.legal-overview li {
    margin-bottom: 7px;
}

.legal-list {
    margin: 25px 0;
    padding-left: 25px;
}

.legal-list li {
    margin-bottom: 18px;
    padding-left: 8px;
}

.legal-note {
    margin-top: 20px;
    padding: 25px 30px;

    border-radius: var(--radius);

    background: var(--accent-light);
    color: var(--text);
}

.legal-note p {
    margin: 0;
}


/* ==========================================================
   11. FORMULARE & DOWNLOADS
========================================================== */

.download-card {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;

    gap: 20px;

    height: 100%;

    padding: 28px;

    border-radius: var(--radius-lg);

    background: #fff;
    color: var(--text);

    box-shadow: var(--shadow-sm);

    text-decoration: none;

    cursor: pointer;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.download-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow-lg);
}

.download-card * {
    pointer-events: none;
}

.download-icon {
    flex: 0 0 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    border-radius: 50%;

    background: var(--accent-light);
    color: var(--primary);

    font-size: 1.25rem;
}

.download-content {
    flex: 1;
}

.download-content h3 {
    margin: 0 0 7px;

    color: var(--secondary);

    font-size: 1.2rem;
}

.download-content p {
    margin: 0;

    color: var(--text-muted);

    font-size: .95rem;
    line-height: 1.5;
}

.download-arrow {
    color: var(--primary);

    font-size: 1rem;
}


/* ==========================================================
   12. SERVICE-BOXEN
========================================================== */

.service-box,
.contact-service-box {
    display: flex;
    align-items: center;

    gap: 25px;

    padding: 35px;

    border-radius: var(--radius-lg);

    background: var(--accent-light);
}

.service-box {
    margin-top: 20px;
}

.contact-service-box {
    margin-top: 45px;
    padding: 28px;
}

.service-box-icon,
.contact-service-icon {
    flex: 0 0 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    border-radius: 50%;

    background: #fff;
    color: var(--primary);

    font-size: 1.4rem;
}

.contact-service-icon {
    flex-basis: 52px;

    width: 52px;
    height: 52px;

    font-size: 1.2rem;
}

.service-box-content,
.contact-service-content {
    flex: 1;
}

.service-box-content h3,
.contact-service-content h3 {
    margin: 0 0 8px;

    color: var(--secondary);
}

.contact-service-content h3 {
    font-size: 1.2rem;
}

.service-box-content p,
.contact-service-content p {
    margin: 0 0 18px;

    color: var(--text-muted);
}


/* ==========================================================
   13. GEBÜHRENORDNUNG
========================================================== */

.fee-table-wrapper {
    margin-top: 35px;

    overflow-x: auto;

    border-radius: var(--radius-lg);

    background: #fff;

    box-shadow: var(--shadow-sm);
}

.fee-table {
    width: 100%;

    border-collapse: collapse;
}

.fee-table th,
.fee-table td {
    padding: 18px 24px;

    border-bottom: 1px solid rgba(0, 0, 0, .07);

    text-align: left;
}

.fee-table th {
    background: var(--secondary);
    color: #fff;

    font-weight: 600;
}

.fee-table th:last-child,
.fee-table td:last-child {
    text-align: right;

    white-space: nowrap;
}

.fee-table tbody tr:last-child td {
    border-bottom: 0;
}

.fee-table tbody tr:hover {
    background: #fff8f1;
}

.fee-card {
    height: 100%;

    padding: 30px;

    border-radius: var(--radius-lg);

    background: #fff;

    box-shadow: var(--shadow-sm);
}

.fee-card h3 {
    margin: 15px 0 10px;
}

.fee-card p {
    margin-bottom: 0;
}

.fee-price {
    margin: 12px 0;

    color: var(--primary);

    font-size: 1.8rem;
    font-weight: 700;
}

.fee-note {
    display: flex;
    align-items: flex-start;

    gap: 15px;

    margin-top: 30px;
    padding: 20px 25px;

    border-radius: var(--radius);

    background: var(--accent-light);
}

.fee-note i {
    margin-top: 4px;

    color: var(--primary);
}

.fee-note p {
    margin: 0;
}


/* ==========================================================
   14. JEVENTS – VERANSTALTUNGEN
   Seitenklasse: primtal-events
========================================================== */

.primtal-events table {
    width: 100% !important;

    border-collapse: collapse !important;

    background: transparent !important;
}


/* Tabellenkopf */

.primtal-events table thead th {
    padding: 14px 16px !important;

    border: 0 !important;
    border-bottom: 2px solid rgba(242, 140, 40, .28) !important;

    background: transparent !important;

    color: var(--primary) !important;

    font-size: 0 !important;

    text-align: left !important;
}

.primtal-events table thead th::after {
    color: var(--primary);

    font-size: .78rem;
    line-height: 1.3;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .10em;
}

.primtal-events table thead th:nth-child(1)::after {
    content: "Veranstaltung";
}

.primtal-events table thead th:nth-child(2)::after {
    content: "Datum";
}

.primtal-events table thead th:nth-child(3)::after {
    content: "Uhrzeit";
}

.primtal-events table thead th:nth-child(4)::after {
    content: "Ort";
}

.primtal-events table thead th:nth-child(5)::after {
    content: "Kategorie";
}


/* Eventzeilen */

.primtal-events table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, .10);

    transition: background .2s ease;
}

.primtal-events table tbody tr:hover {
    background: rgba(242, 140, 40, .045);
}


/* Zellen */

.primtal-events table tbody td {
    padding: 22px 16px !important;

    border: 0 !important;

    background: transparent !important;

    color: var(--text);

    vertical-align: middle;
}


/* Veranstaltung */

.primtal-events table tbody td:first-child {
    color: var(--text) !important;

    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}


/* Datum / Uhrzeit / Ort / Kategorie */

.primtal-events table tbody td:nth-child(2),
.primtal-events table tbody td:nth-child(3),
.primtal-events table tbody td:nth-child(4),
.primtal-events table tbody td:nth-child(5) {
    color: var(--primary) !important;

    font-family: inherit !important;
    font-size: .92rem !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;

    letter-spacing: 0 !important;
    text-transform: none !important;
}

.primtal-events table tbody td:nth-child(3) {
    white-space: nowrap;
}


/* Links */

.primtal-events table a {
    color: inherit !important;

    text-decoration: none !important;
}

.primtal-events table a:hover {
    color: var(--primary) !important;
}


/* ==========================================================
   15. RESPONSIVE
========================================================== */

@media (max-width: 991px) {

    .hero-section {
        padding: 70px 0;

        text-align: center;
    }

    .hero-text {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .hero-stats {
        gap: 30px;
    }

    .hero-image-wrapper {
        margin-top: 40px;
        padding-left: 0;
    }


    /* Footer */

    #sp-footer {
        padding: 55px 0 30px;

        text-align: center;
    }

    #sp-footer::before {
        left: 50%;

        width: 120px;

        transform: translateX(-50%);
    }

    #sp-footer .sp-module {
        margin-bottom: 40px;
    }

    #sp-copyright {
        text-align: center;
    }

    #sp-copyright a {
        display: inline-block;

        margin: 10px 8px 0;
    }

}


@media (max-width: 767px) {

    h1 {
        font-size: 3rem;
    }

    .section {
        padding: 75px 0;
    }

    .section-header {
        margin-bottom: 45px;
    }

    .hero-image-wrapper {
        height: 320px;
    }

    .hero-image {
        border-radius: 24px;
    }

    .feature-image {
        height: 220px;
    }


    /* Rechtliches */

    .page-hero-small {
        min-height: 340px;

        padding: 70px 0;
    }

    .legal-intro {
        padding: 30px;
    }

    .legal-block h2 {
        font-size: 1.7rem;
    }


    /* Service */

    .service-box,
    .contact-service-box {
        flex-direction: column;
        align-items: flex-start;
    }


    /* Gebühren */

    .fee-table th,
    .fee-table td {
        padding: 15px;
    }

    .fee-price {
        font-size: 1.5rem;
    }


    /* JEvents */

    .primtal-events table thead {
        display: none !important;
    }

    .primtal-events table,
    .primtal-events table tbody,
    .primtal-events table tr,
    .primtal-events table td {
        display: block;

        width: 100% !important;
    }

    .primtal-events table tbody tr {
        padding: 20px 0;
    }

    .primtal-events table tbody td {
        padding: 3px 0 !important;
    }

    .primtal-events table tbody td:first-child {
        margin-bottom: 8px;

        font-size: 1.25rem !important;
    }

    .primtal-events table tbody td:nth-child(2),
    .primtal-events table tbody td:nth-child(3),
    .primtal-events table tbody td:nth-child(4),
    .primtal-events table tbody td:nth-child(5) {
        font-size: .84rem !important;
    }

    .primtal-events table tbody td:nth-child(4),
    .primtal-events table tbody td:nth-child(5) {
        margin-top: 6px;
    }

}