/* IT-SCHNITTSTELLE P1.3A
   Additive Modernisierungsschicht.
   Wird nach new-style.css und lightbox.css geladen.
   Keine bestehende CSS-Datei muss ersetzt werden.
*/

:root {
    --its-brand: #006B8F;
    --its-text: #20262d;
    --its-muted: #5f6973;
    --its-line: #e3e8ec;
    --its-soft: #f6f8f9;
    --its-radius: 10px;
    --its-content: 1120px;
}

/* Grundtypografie */
html {
    font-size: 16px;
}

body {
    color: var(--its-text);
    font-family: "Inter", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#content p,
#content li {
    line-height: 1.65;
}

#content h1,
#content h2,
#content h3,
#content h4 {
    letter-spacing: -0.018em;
}

#content h2 {
    line-height: 1.22;
}

#content h3 {
    line-height: 1.3;
}

/* Ruhigere Inhaltsbreite und vertikaler Rhythmus */
#content .container {
    max-width: var(--its-content);
}

#content .frame {
    margin-bottom: 0;
}

.list-block,
.mission-block {
    padding-top: 72px;
    padding-bottom: 72px;
}

/* Hero: bestehendes Element behalten, visuell entlasten */
#heroCarouselslide.carousel-portal-slider .carousel-caption .container {
    max-width: 820px;
    padding: 38px 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 16px 50px rgba(19, 32, 43, 0.10);
}

#heroCarouselslide .carousel-caption h1,
#heroCarouselslide .carousel-caption h2,
#heroCarouselslide.innerBanner .carousel-caption h1,
#heroCarouselslide.innerBanner .carousel-caption h2 {
    font-size: clamp(38px, 4.2vw, 56px);
    line-height: 1.08;
    margin-bottom: 18px;
    letter-spacing: -0.035em;
}

#heroCarouselslide .carousel-caption p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.5;
}

#heroCarouselslide.innerBanner {
    min-height: 330px;
}

#heroCarouselslide.innerBanner .fill {
    min-height: 330px;
}

/* Buttons */
.btn,
#content .btn,
#heroCarouselslide .carousel-caption .btn {
    border: 0;
    border-radius: 7px !important;
    box-shadow: none;
    min-height: 42px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn:hover,
#content .btn:hover,
#heroCarouselslide .carousel-caption .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 107, 143, 0.16);
}

/* Drei Leistungsblöcke: weniger Theme-Demo, mehr ruhige Fachkarten */
.list-block .col-md-4 {
    padding: 24px 28px;
}

.list-block .col-md-4 h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.list-block .col-md-4 p {
    color: var(--its-muted);
}

/* Accordion */
#content .accordion {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

#content .accordion .accordion-box {
    float: none;
    margin-bottom: 8px;
}

#content .accordion .accordionRow {
    float: none;
    padding: 15px 18px;
    border: 1px solid var(--its-line);
    border-radius: 8px;
    background: #fff;
}

#content .accordion .accordionRow .label {
    font-size: 17px;
    line-height: 1.45;
    color: #424b54;
    font-weight: 500;
}

#content .accordion .accordionOpen {
    float: none;
    margin-top: -8px;
    padding: 18px 20px 20px;
    border: 1px solid var(--its-line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #fff;
}

#content .accordion .accordionOpen p {
    margin-bottom: 10px;
}

/* Kontaktformular: TYPO3 Form Framework gegen alte Float-Regeln stabilisieren */
.kontakt-form form {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.kontakt-form fieldset {
    padding: 0;
    margin: 0;
    border: 0;
}

.kontakt-form .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-left: -10px;
    margin-right: -10px;
}

.kontakt-form .row > [class*="col-"] {
    float: none;
    padding-left: 10px;
    padding-right: 10px;
}

.kontakt-form .form-group,
.kontakt-form .form-element {
    width: 100%;
    clear: both;
    margin-bottom: 18px;
}

.kontakt-form label,
.kontakt-form .control-label {
    display: block;
    width: 100%;
    margin: 0 0 7px;
    color: var(--its-text);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    text-align: left;
}

.kontakt-form .form-control {
    display: block;
    width: 100% !important;
    max-width: none;
    height: 48px !important;
    padding: 11px 13px;
    border: 1px solid #cbd3d9;
    border-radius: 7px !important;
    background: #fff;
    color: var(--its-text);
    font-size: 16px;
    line-height: 1.4;
    box-shadow: none;
}

.kontakt-form textarea.form-control {
    height: auto !important;
    min-height: 142px;
    resize: vertical;
}

.kontakt-form .form-control:focus {
    border-color: var(--its-brand);
    box-shadow: 0 0 0 3px rgba(0, 107, 143, 0.10);
    outline: 0;
}

.kontakt-form input[type="checkbox"] {
    margin-right: 8px;
}

/* Footer: Inhalte und SEO-Begriffe bleiben, Darstellung wird ruhiger */
#footer {
    padding-top: 42px;
}

#footer .fotRow {
    min-height: 0;
    padding-bottom: 42px;
}

#footer .fotRow h4,
#footer .footerMenu h4 {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    text-align: left;
}

#footer .fotRow p,
#footer .fotRow ul li {
    font-size: 13px;
    line-height: 1.55;
}

#footer .fotRow ul {
    border-top: 0;
}

#footer .fotRow ul li {
    line-height: 1.35;
    padding: 8px 0;
    border-bottom-color: rgba(140, 145, 149, 0.35);
}

#footer .fotRow .btn {
    float: none;
    height: auto;
    margin-top: 8px;
    padding: 7px 11px;
    font-size: 12px;
    line-height: 1.35;
}

/* Responsive */
@media (max-width: 991px) {
    body {
        font-size: 16px;
    }

    #heroCarouselslide.carousel-portal-slider .carousel-caption .container {
        width: calc(100% - 40px);
        padding: 28px 30px;
    }

    .list-block,
    .mission-block {
        padding-top: 52px;
        padding-bottom: 52px;
    }
}

@media (max-width: 767px) {
    #heroCarouselslide .carousel-caption h1,
    #heroCarouselslide .carousel-caption h2,
    #heroCarouselslide.innerBanner .carousel-caption h1,
    #heroCarouselslide.innerBanner .carousel-caption h2 {
        font-size: 34px;
    }

    #heroCarouselslide .carousel-caption p {
        font-size: 17px;
    }

    .kontakt-form .row {
        display: block;
        margin-left: 0;
        margin-right: 0;
    }

    .kontakt-form .row > [class*="col-"] {
        width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }

    #footer .fotRow h4,
    #footer .footerMenu h4 {
        margin-top: 22px;
    }
}
