/*
 * Hottgenroth Digital 2026 – erster visueller Entwurf
 * Optische Leitidee: klare Editorial-Typografie, dunkle Bühnenflächen,
 * Hottgenroth-Rot als Akzent und ruhige Karten nach dem Look & Feel
 * der PV-Planer-Umsteigeraktion. Bestehendes Bootstrap-Markup bleibt erhalten.
 */

:root {
    --hg-red: #b51f1f;
    --hg-red-dark: #8f1818;
    --hg-ink: #23262a;
    --hg-charcoal: #2b2f33;
    --hg-charcoal-soft: #3c4146;
    --hg-grey-100: #f7f7f7;
    --hg-grey-200: #ececed;
    --hg-border: #e3e3e5;
    --hg-white: #ffffff;
    --hg-radius: 1.5rem;
    --hg-shadow: 0 24px 64px rgba(25, 28, 31, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--hg-white);
    color: var(--hg-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
}

body a,
body button,
body input,
body textarea {
    font-family: inherit;
}

body a:focus-visible,
body button:focus-visible,
body input:focus-visible,
body textarea:focus-visible {
    outline: 3px solid #ffcf66;
    outline-offset: 3px;
}

.container {
    max-width: 1180px;
}

.padding-top {
    padding-top: clamp(4.5rem, 8vw, 7.5rem) !important;
}

.padding-bottom {
    padding-bottom: clamp(4.5rem, 8vw, 7.5rem) !important;
}

/* Header */
.header-con {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid rgba(35, 38, 42, 0.08);
    box-shadow: none;
}

.header-con .navbar {
    min-height: 88px;
}

.header-con .navbar-brand {
    margin-right: 2.5rem;
}

.header-con .navbar-brand img,
.header-con .navbar > img {
    width: auto;
    height: 58px !important;
    object-fit: contain;
}

.header-con .navbar-nav {
    align-items: center;
    gap: 1.75rem;
}

.header-con .nav-link {
    color: var(--hg-ink) !important;
    font-size: 0.78rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.08em;
    line-height: 1.25;
}

.header-con .nav-link:hover,
.header-con .nav-link:focus-visible {
    color: var(--hg-red) !important;
}

.header-con .navbar-btn {
    margin-left: 1.75rem;
}

.header-con .navbar-btn a,
.generic-button a,
.schedule-sec button[type="submit"] {
    display: inline-flex !important;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hg-red) !important;
    border-radius: 999px !important;
    background: var(--hg-red) !important;
    color: var(--hg-white) !important;
    font-size: 0.79rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    line-height: 1.2;
    padding: 0.95rem 1.45rem !important;
    text-transform: uppercase;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.header-con .navbar-btn a:hover,
.generic-button a:hover,
.schedule-sec button[type="submit"]:hover {
    border-color: var(--hg-red-dark) !important;
    background: var(--hg-red-dark) !important;
    color: var(--hg-white) !important;
    transform: translateY(-2px);
}

/* Hero */
.banner-main-sec.post-event-hero {
    isolation: isolate;
    min-height: min(760px, calc(100vh - 88px));
    background-image:
        linear-gradient(90deg, rgba(20, 22, 25, 0.94) 0%, rgba(27, 30, 33, 0.84) 48%, rgba(27, 30, 33, 0.42) 100%),
        url("../images/hero-modernisierung-ganzheitlich-desktop-v4.webp") !important;
    background-position: center !important;
    background-size: cover !important;
}

.banner-main-sec .banner-inner-sec {
    max-width: 940px;
    padding: clamp(5rem, 9vw, 8rem) 0;
}

.banner-main-sec .banner-inner-sec > span {
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 0.62rem 1rem;
    text-transform: uppercase;
}

.banner-main-sec h1 {
    max-width: 920px;
    margin: 0 0 1.5rem !important;
    color: #fff !important;
    font-size: clamp(3.4rem, 7vw, 7.1rem) !important;
    font-weight: 850 !important;
    letter-spacing: -0.055em;
    line-height: 0.93 !important;
    text-wrap: balance;
}

.banner-main-sec h1::after {
    display: block;
    width: 88px;
    height: 8px;
    margin-top: 1.75rem;
    border-radius: 999px;
    background: var(--hg-red);
    content: "";
}

.banner-main-sec h2 {
    max-width: 750px;
    color: rgba(255, 255, 255, 0.98) !important;
    font-size: clamp(1.35rem, 2.2vw, 2rem) !important;
    font-weight: 650 !important;
    letter-spacing: -0.02em;
    line-height: 1.25 !important;
}

.banner-main-sec .banner-inner-sec > p {
    max-width: 710px;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.6vw, 1.2rem) !important;
}

.banner-main-sec .white-btn a {
    border-color: #fff !important;
    background: #fff !important;
    color: var(--hg-ink) !important;
}

.banner-main-sec .white-btn a:hover {
    border-color: var(--hg-red) !important;
    background: var(--hg-red) !important;
    color: #fff !important;
}

.hero-note-line {
    margin-top: 1rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.03em;
}

.banner-social-icons {
    display: none !important;
}

/* Editorial intro */
.conference-sec {
    position: relative;
    background: var(--hg-grey-100);
}

.confernce-text-sec {
    padding-right: clamp(0rem, 3vw, 3.5rem);
}

.conference-sec h2,
.generic-title h2,
.blog-main-sec h2 {
    margin-bottom: 1.25rem !important;
    color: var(--hg-ink) !important;
    font-size: clamp(2.35rem, 4.8vw, 4.5rem) !important;
    font-weight: 820 !important;
    letter-spacing: -0.05em;
    line-height: 0.98 !important;
    text-wrap: balance;
}

.conference-sec p,
.generic-title p {
    color: #5b6065;
    font-size: 1.06rem !important;
}

.conference-sec strong {
    color: var(--hg-red);
    font-size: 1.06rem;
    font-weight: 780;
}

.post-event-benefits {
    display: grid;
    gap: 1rem;
}

.post-event-benefit {
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    margin: 0 !important;
    border: 1px solid var(--hg-border);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(35, 38, 42, 0.06);
    gap: 1.2rem;
    padding: 1.25rem 1.4rem;
}

.post-event-benefit figure {
    display: grid;
    width: 76px;
    height: 76px;
    margin: 0;
    place-items: center;
    border-radius: 1rem;
    background: #f4e9e9;
}

.post-event-benefit figure img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.post-event-benefit h3 {
    margin: 0 0 0.3rem;
    color: var(--hg-ink);
    font-size: 1.13rem;
    font-weight: 780;
}

.post-event-benefit p {
    margin: 0;
    font-size: 0.92rem !important;
    line-height: 1.5;
}

.bgred,
.conference-sec + span {
    display: none !important;
}

/* Lead form and supporting card */
#aufzeichnung {
    position: relative;
    background: var(--hg-charcoal) !important;
    color: #fff;
}

#aufzeichnung .generic-title h2,
#aufzeichnung .generic-title p {
    color: #fff !important;
}

#aufzeichnung .generic-title p {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.72) !important;
}

#aufzeichnung .tabs-content {
    height: 100%;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--hg-radius) !important;
    background: #fff !important;
    box-shadow: var(--hg-shadow);
    color: var(--hg-ink) !important;
    padding: clamp(1.5rem, 3.5vw, 2.7rem) !important;
    text-align: left;
}

#aufzeichnung .tabs-content h5 {
    margin-bottom: 0.7rem;
    color: var(--hg-ink) !important;
    font-size: 1.35rem;
    font-weight: 780;
}

#aufzeichnung .form-control {
    min-height: 52px;
    border: 1px solid #d4d6d8;
    border-radius: 0.75rem;
    background: #fff;
    color: var(--hg-ink);
    padding: 0.8rem 0.95rem;
}

#aufzeichnung textarea.form-control {
    min-height: 168px;
}

#aufzeichnung .form-control:focus {
    border-color: var(--hg-red);
    box-shadow: 0 0 0 0.2rem rgba(181, 31, 31, 0.12);
}

#aufzeichnung .text-info {
    color: var(--hg-red) !important;
    text-decoration: underline;
}

/* Programme */
#dates {
    background: var(--hg-grey-100) !important;
}

.generic-title {
    max-width: 850px;
    margin-right: auto;
    margin-bottom: clamp(2.5rem, 5vw, 4rem) !important;
    margin-left: auto;
}

.compact-program {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.compact-program-day {
    overflow: hidden;
    border: 1px solid var(--hg-border);
    border-radius: var(--hg-radius);
    background: #fff;
    box-shadow: 0 18px 45px rgba(35, 38, 42, 0.07);
}

.compact-program-heading {
    display: flex;
    min-height: 116px;
    align-items: flex-start;
    justify-content: space-between;
    background: var(--hg-charcoal);
    color: #fff;
    gap: 1rem;
    padding: 1.6rem;
}

.compact-program-heading > span {
    display: inline-flex;
    border-radius: 999px;
    background: var(--hg-red);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.75rem;
    text-transform: uppercase;
}

.compact-program-heading small {
    max-width: 250px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.45;
    text-align: right;
}

.compact-program-list {
    padding: 0 1.5rem;
}

.compact-talk {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    border-bottom: 1px solid var(--hg-border);
    gap: 1rem;
    padding: 1.2rem 0;
}

.compact-talk:last-child {
    border-bottom: 0;
}

.compact-talk img {
    width: 58px;
    height: 58px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--hg-grey-200);
    box-shadow: 0 0 0 1px var(--hg-border);
    object-fit: cover;
}

.compact-talk small {
    color: var(--hg-red);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.compact-talk h5 {
    margin: 0.25rem 0 !important;
    color: var(--hg-ink) !important;
    font-size: 0.96rem !important;
    font-weight: 760 !important;
    line-height: 1.35 !important;
}

.compact-talk span {
    color: #777c81;
    font-size: 0.8rem;
}

/* Product cards */
.blog-main-sec {
    background: var(--hg-charcoal) !important;
}

.blog-main-sec .generic-title h2,
.blog-main-sec .generic-title p {
    color: #fff !important;
}

.blog-main-sec .generic-title p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.blog-main-sec .card {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--hg-radius) !important;
    background: var(--hg-charcoal-soft) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
    transition: transform 180ms ease, border-color 180ms ease;
}

.blog-main-sec .card:hover {
    border-color: rgba(255, 255, 255, 0.22) !important;
    transform: translateY(-5px);
}

.blog-main-sec .card-img-top {
    height: 210px;
    object-fit: contain;
    padding: 1.5rem !important;
}

.blog-main-sec .card-title {
    color: #fff !important;
    font-size: 1.28rem !important;
    font-weight: 780;
}

.blog-main-sec .card-text {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.93rem !important;
    line-height: 1.55 !important;
}

.blog-main-sec .btn-danger,
.blog-main-sec .btn-outline-light {
    min-height: 42px;
    border-radius: 999px !important;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.7rem 1rem;
    text-transform: uppercase;
}

.blog-main-sec .btn-danger {
    border-color: var(--hg-red) !important;
    background: var(--hg-red) !important;
}

.blog-main-sec .btn-danger:hover {
    border-color: var(--hg-red-dark) !important;
    background: var(--hg-red-dark) !important;
}

/* Footer */
.footer-main-sec {
    background: #191b1e !important;
}

.footer-main-sec .form-sec {
    border-radius: var(--hg-radius);
    background: var(--hg-red) !important;
    box-shadow: none !important;
    padding: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.footer-main-sec .green-btn a {
    border-color: #fff !important;
    background: #fff !important;
    color: var(--hg-ink) !important;
}

.footer-main-sec .green-btn a:hover {
    border-color: var(--hg-charcoal) !important;
    background: var(--hg-charcoal) !important;
    color: #fff !important;
}

.footer-social-sec > img,
.footer-social-sec figure img {
    height: 58px !important;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

/* Reduce legacy entrance effects and respect motion preferences. */
.wow {
    animation-name: none !important;
    visibility: visible !important;
}

@media (max-width: 991.98px) {
    .header-con .navbar {
        min-height: 74px;
        padding: 0.75rem 0 !important;
    }

    .header-con .navbar > img {
        display: block;
        height: 48px !important;
    }

    .header-con .navbar-collapse {
        margin-top: 0.75rem;
        border-radius: 1rem;
        background: #fff;
        box-shadow: var(--hg-shadow);
        padding: 1.25rem;
    }

    .header-con .navbar-nav {
        align-items: flex-start;
        gap: 1rem;
    }

    .header-con .navbar-btn {
        margin: 1.25rem 0 0;
    }

    .banner-main-sec.post-event-hero {
        min-height: 680px;
        background-position: 58% center !important;
    }

    .conference-sec .row > [class*="col-"] + [class*="col-"] {
        margin-top: 2.5rem;
    }

    .compact-program {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .padding-top {
        padding-top: 4rem !important;
    }

    .padding-bottom {
        padding-bottom: 4rem !important;
    }

    .banner-main-sec.post-event-hero {
        min-height: 620px;
        background-position: 62% center !important;
    }

    .banner-main-sec .banner-inner-sec {
        padding: 4.5rem 0;
    }

    .banner-main-sec h1 {
        font-size: clamp(2.8rem, 14vw, 4.4rem) !important;
    }

    .banner-main-sec .banner-inner-sec > div.d-none {
        display: block !important;
    }

    .hero-note-line {
        display: none;
    }

    .post-event-benefit {
        grid-template-columns: 58px 1fr;
        padding: 1rem;
    }

    .post-event-benefit figure {
        width: 58px;
        height: 58px;
    }

    .post-event-benefit figure img {
        width: 36px;
        height: 36px;
    }

    .compact-program-heading {
        min-height: auto;
        flex-direction: column;
    }

    .compact-program-heading small {
        max-width: none;
        text-align: left;
    }

    .compact-program-list {
        padding: 0 1rem;
    }

    .compact-talk {
        grid-template-columns: 50px 1fr;
    }

    .compact-talk img {
        width: 50px;
        height: 50px;
    }

    .footer-main-sec .form-sec {
        display: block !important;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
