/* Kolorit Bremen – frontend styles */
:root {
    --navy: #001538;
    --teal: #09aa8c;
    --mauve: #b66aa3;
    --orange: #e04a28;
    --text: #333333;
    --grey: #747474;
    --card-bg: #ededed;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Assistant', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: #ffffff;
}

.wrap { max-width: 1170px; margin: 0 auto; padding: 0 30px; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--teal); }

/* Icons (inline SVG masks) */
.ico {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 6px;
    background-color: currentColor;
    vertical-align: -1px;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.ico-phone {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M497 377l-23 100a24 24 0 01-23 19C202 496 0 294 0 45a24 24 0 0119-23L119 0c11-3 23 3 28 14l46 108c4 10 1 22-7 29l-54 44a371 371 0 00163 163l44-54c7-8 19-11 29-7l108 46c11 5 17 17 14 28z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M497 377l-23 100a24 24 0 01-23 19C202 496 0 294 0 45a24 24 0 0119-23L119 0c11-3 23 3 28 14l46 108c4 10 1 22-7 29l-54 44a371 371 0 00163 163l44-54c7-8 19-11 29-7l108 46c11 5 17 17 14 28z'/%3E%3C/svg%3E");
}

.ico-mail {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M502 191c4-3 10 0 10 5v204c0 27-21 48-48 48H48c-27 0-48-21-48-48V196c0-5 6-8 10-5 22 17 52 39 154 113 21 15 57 48 92 48s71-33 92-48c102-74 132-96 154-113zM256 320c23 0 56-29 73-41 131-95 141-103 171-127 6-4 12-12 12-20v-19c0-27-21-48-48-48H48C21 65 0 86 0 113v19c0 8 6 16 12 20 30 24 40 32 171 127 17 12 50 41 73 41z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M502 191c4-3 10 0 10 5v204c0 27-21 48-48 48H48c-27 0-48-21-48-48V196c0-5 6-8 10-5 22 17 52 39 154 113 21 15 57 48 92 48s71-33 92-48c102-74 132-96 154-113zM256 320c23 0 56-29 73-41 131-95 141-103 171-127 6-4 12-12 12-20v-19c0-27-21-48-48-48H48C21 65 0 86 0 113v19c0 8 6 16 12 20 30 24 40 32 171 127 17 12 50 41 73 41z'/%3E%3C/svg%3E");
}

/* Divider bar (short underline used throughout the site) */
.divider {
    display: block;
    width: 65px;
    height: 3px;
    background: var(--navy);
    margin: 14px 0 22px;
}

/* ============ 1. Header ============ */
.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0, 21, 56, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo img { width: 155px; height: auto; display: block; }

.main-nav a {
    display: inline-block;
    margin-left: 45px;
    font-weight: 700;
    font-size: 16px;
    color: var(--navy);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--navy);
    border-bottom-color: var(--navy);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 26px;
    color: var(--navy);
    cursor: pointer;
}

/* ============ 2. Hero ============ */
.hero {
    background-color: var(--navy);
    background-attachment: fixed;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 110px 0 120px;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(38px, 5.55vw, 80px);
    font-weight: 700;
    line-height: 0.944; /* +20% */
    text-align: left;
}

.hero .hl {
    position: relative;
    z-index: 0;
    color: #ffffff;
    padding: 0 14px;
    display: inline-block;
    line-height: 1.6; /* keeps line spacing */
    transition: filter 0.2s ease;
}

/* Colored box, reduced by 0.267em: 2/3 trimmed from top, 1/3 from bottom */
.hero .hl::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    top: 0.178em;
    bottom: 0.089em;
    background-color: var(--hl, #09aa8c);
    border-radius: 8px;
}

.hero .hl { color: var(--title-color, #fff); }
.hero .hl:hover { filter: brightness(1.15); color: var(--title-color, #fff); }

/* ============ 3. Intro (full-width white, two columns) ============ */
.intro { background: #ffffff; padding: 55px 0; }

.intro h2 { color: var(--navy); margin-bottom: 18px; }

.intro-columns {
    column-count: 2;
    column-gap: 60px;
    font-size: 16px;
    line-height: 1.7;
}

.intro-columns p { margin-bottom: 1em; }
.intro-columns p:last-child { margin-bottom: 0; }

/* ============ 4. Cards ============ */
.cards-section { background: var(--card-bg); padding: 50px 0; }

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5%;
    align-items: stretch;
}

.card {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 21, 56, 0.12);
    filter: saturate(100%);
    transition: filter 0.3s ease;
    color: inherit;
}

.card:hover { filter: saturate(200%); color: inherit; }

.card-top {
    display: flex;
    align-items: flex-end;
    min-height: 172px; /* -20% */
    padding: 28px 40px;
    border-radius: 15px 15px 0 0;
}

.card-top h2 {
    color: #ffffff;
    font-size: 27px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.card-bottom {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 32px 40px 40px;
    border-radius: 0 0 15px 15px;
}

.card-list { list-style: none; }

.card-list li {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.75;
    color: var(--navy);
}

.card-text { font-size: 16px; line-height: 1.65; }
.card-text p { margin-bottom: 1em; }
.card-text p:last-child { margin-bottom: 0; }

/* ============ 4b. Full-width image band (fixed, not scrolling) ============ */
.image-band {
    height: 460px;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ============ 5. Contact (parallax building background) ============ */
.contact-section { position: relative; background: #ffffff; padding: 55px 0 60px; overflow: hidden; }

.contact-bg {
    position: absolute;
    top: -30%;
    left: 0;
    right: 0;
    height: 160%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
}

.contact-content { position: relative; }

.contact-section h2 {
    color: var(--navy);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-card {
    width: 300px;
    max-width: 100%;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 21, 56, 0.18);
}

.contact-card .portrait { width: 100%; height: auto; display: block; }

.contact-info { padding: 26px 28px 30px; }

.contact-info h3 {
    color: var(--navy);
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info .divider { width: 50px; margin: 10px 0 18px; }

.contact-info p { font-size: 14px; margin-bottom: 6px; color: var(--navy); }

.contact-info a { color: var(--navy); }
.contact-info a:hover { color: var(--teal); }

/* ============ 6. Address section ============ */
.address-section { background: var(--navy); padding: 48px 0 56px; }

.address-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-icon { width: 55px; height: auto; margin-bottom: 12px; display: block; }

.address-col p { color: #ffffff; font-size: 14px; line-height: 1.75; }

.address-col a { color: #ffffff; }
.address-col a:hover { color: var(--teal); }

.address-col .ico { width: 12px; height: 12px; }

.footer-links { display: flex; flex-direction: column; justify-content: flex-end; }

.footer-links a {
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.85;
}

.footer-links a:hover { color: var(--teal); }

/* ============ 7. Copyright bar ============ */
.copyright-bar {
    background: #001028;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-align: center;
    padding: 14px 20px;
}

/* ============ Content pages ============ */
.page-main { background: #ffffff; padding: 60px 0 70px; }

/* ============ GDPR map embed ============ */
.gdpr-map {
    background: #ffffff;
    color: var(--navy);
}
.gdpr-map__canvas { width: 100%; height: clamp(300px, 50vw, 480px); }
.gdpr-map__canvas[hidden] { display: none; }
.gdpr-map__load {
    font: inherit;
    color: #ffffff;
    background: var(--navy);
    border: 0;
    padding: 12px 20px;
    cursor: pointer;
    margin-bottom: 16px;
}
.gdpr-map__load:disabled { cursor: wait; opacity: 0.65; }
.gdpr-map__notice { font-size: 14px; margin-top: 12px; }
.gdpr-map .gdpr-map__route { color: var(--navy); text-decoration: underline; }
.gdpr-map__status:empty { display: none; }
.gdpr-map__load:focus-visible, .gdpr-map__route:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }

/* ============ Page hero (subpage header with overlay box) ============ */
.page-hero {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 90px 0 100px;
}

.page-hero-box {
    background: rgba(0, 21, 56, 0.9);
    color: #ffffff;
    max-width: 760px;
    padding: 50px 56px;
}

.page-hero-box h1 {
    font-size: 52px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 22px;
    line-height: 1.1;
}

.page-hero-box p { margin-bottom: 1em; font-size: 17px; line-height: 1.7; }
.page-hero-box p:last-child { margin-bottom: 0; }

/* ============ Generic block band ============ */
.block {
    background-color: #ffffff;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 65px 0;
    color: var(--text);
}

.block-title {
    color: var(--navy);
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.15;
}

.block .divider { margin: 22px 0 34px; width: 240px; height: 4px; }

.block-body p { margin-bottom: 1em; }
.block-body p:last-child { margin-bottom: 0; }

.block-body h3 {
    color: var(--navy);
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.25;
    margin: 18px 0 10px;
}

.block-body h3::after {
    content: '';
    display: block;
    width: 240px;
    height: 4px;
    background: var(--navy);
    margin: 22px 0 10px;
}

.block-dark .block-body h3 { color: #ffffff; }
.block-dark .block-body h3::after { background: #ffffff; }

.block-dark { color: #ffffff; }
.block-dark .block-title { color: #ffffff; }
.block-dark .divider { background: #ffffff; }
.block-dark a { color: #ffffff; text-decoration: underline; }

/* Column helpers for block/html content */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: start; }
.cols3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px 48px; align-items: start; }
.cols2 img, .cols3 img { max-width: 100%; height: auto; display: block; }
.cols2-keep {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 64px;
    align-items: start;
}

.cols2-keep > div:not(.before-after) > img {
    width: auto;
    height: clamp(220px, 30vw, 360px);
    max-width: 100%;
    object-fit: contain;
    margin-inline: auto;
}

.cols2-keep > .before-after.is-ready {
    width: fit-content;
    height: clamp(220px, 30vw, 360px);
    max-width: 100%;
    justify-self: center;
}

.cols2-keep > .before-after.is-ready .before-after__before {
    width: auto;
    height: 100%;
}

.row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.row + .row { margin-top: 24px; }

.row > .before-after {
    flex: var(--before-after-ratio, 1) 1 0px;
    min-width: 0;
    margin-bottom: 0;
}

/* Before/after image comparison */
.before-after { margin-bottom: 20px; }
.before-after img { display: block; max-width: 100%; height: auto; }
.before-after__range, .before-after__handle { display: none; }

.before-after.is-ready {
    position: relative;
    overflow: hidden;
}

.before-after.is-ready .before-after__before {
    width: 100%;
    height: auto;
}

.before-after.is-ready .before-after__after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(0 0 0 var(--before-after-position, 50%));
}

.before-after.is-ready .before-after__range {
    display: block;
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    touch-action: none;
}

.before-after.is-ready .before-after__handle {
    display: block;
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: var(--before-after-position, 50%);
    width: 2px;
    background: #ffffff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.65);
    transform: translateX(-50%);
    pointer-events: none;
}

.before-after__handle::before {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--teal);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    text-shadow: none;
    transform: translate(-50%, -50%);
}

.before-after__range:focus-visible + .before-after__handle::before {
    outline: 3px solid var(--navy);
    outline-offset: 3px;
}

/* Arrow link list (LEISTUNGEN) */
ul.arrows { list-style: none; margin: 0; }

ul.arrows li { margin-bottom: 26px; }

ul.arrows a {
    color: var(--teal);
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

ul.arrows a::before { content: '→'; margin-right: 16px; }

ul.arrows a:hover { color: var(--navy); }

ul.arrows-mauve a { color: var(--mauve); }
ul.arrows-orange a { color: var(--orange); }
ul.arrows-mauve a:hover, ul.arrows-orange a:hover { color: var(--navy); }

/* Icon bullet list */
ul.icons { list-style: none; margin: 0; }

ul.icons li {
    display: block;
    position: relative;
    padding-left: 44px;
    margin-bottom: 20px;
    line-height: 1.5;
}

ul.icons li::before {
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
}

ul.icons li:not(.fa-solid)::before {
    content: '';
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438 278L278 438c-13 13-33 13-46 0L10 216c-13-13-13-33 0-46l23-22c13-13 33-13 45 0l177 177 155-155c12-13 32-13 45 0l23 22c13 13 13 33 0 46z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438 278L278 438c-13 13-33 13-46 0L10 216c-13-13-13-33 0-46l23-22c13-13 33-13 45 0l177 177 155-155c12-13 32-13 45 0l23 22c13 13 13 33 0 46z'/%3E%3C/svg%3E") no-repeat center / contain;
}

ul.icons li.fa-solid {
    font-family: inherit;
    font-weight: inherit;
}

ul.icons li.fa-solid::before {
    color: currentColor;
    background: none;
    -webkit-mask: none;
    mask: none;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 18px;
    line-height: 20px;
    text-align: center;
}

/* Quote card */
blockquote.quote {
    background: var(--navy);
    color: #ffffff;
    padding: 46px 52px 70px;
    position: relative;
    margin: 0 0 18px;
}

blockquote.quote::before,
blockquote.quote::after {
    position: absolute;
    font-size: 70px;
    font-weight: 800;
    line-height: 1;
}

blockquote.quote::before {
    content: '\201E';
    top: -15px;
    left: 48px;
}

blockquote.quote::after {
    content: '\201C';
    bottom: 5px;
    right: 48px;
}

blockquote.quote p {
    font-style: italic;
    font-size: 17px;
    margin: 14px 0 0;
}

p.quote-by { font-size: 15px; }

/* Light quote variant (white card, e.g. on dark sections) */
blockquote.quote-light { background: #ffffff; color: var(--navy); }
.block-dark blockquote.quote-light a { color: var(--navy); }

/* Button link */
.btn-link {
    display: inline-block;
    background: var(--navy);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 4px;
    margin-top: 10px;
}

.btn-link:hover { background: var(--teal); }

.block-dark .btn-link { background: #ffffff; color: var(--navy) !important; }

.page-content h1 {
    color: var(--navy);
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.page-content h1::after {
    content: '';
    display: block;
    width: 65px;
    height: 3px;
    background: var(--navy);
    margin: 14px 0 26px;
}

.page-content h2 { color: var(--navy); font-size: 26px; margin: 34px 0 12px; }
.page-content .html-section-title { margin-top: 0; }
.page-content h3 { color: var(--navy); font-size: 20px; margin: 26px 0 10px; }
.page-content p { margin-bottom: 1em; }
.page-content ul, .page-content ol { margin: 0 0 1em 22px; }
.page-content a { color: var(--teal); }
.page-content a:hover { text-decoration: underline; }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
    .cards { grid-template-columns: 1fr; gap: 24px; }
    .card-top { min-height: 120px; }
    .address-grid { grid-template-columns: 1fr 1fr; }
    .intro-columns { column-count: 1; }
    .cols2, .cols3 { grid-template-columns: 1fr; }
    .page-hero-box h1 { font-size: 36px; }
    .block-title { font-size: 28px; }
    ul.arrows a { font-size: 22px; }
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .cols2-keep { grid-template-columns: 1fr; }
    .row { flex-direction: column; align-items: stretch; }
    .row > .before-after { flex: none; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 6px 30px 18px;
        box-shadow: 0 8px 16px rgba(0, 21, 56, 0.15);
    }
    body.nav-open .main-nav { display: flex; flex-direction: column; }
    .main-nav a { margin: 10px 0 0; align-self: flex-start; }
    .hero { padding: 60px 0 70px; background-attachment: scroll; }
    .image-band { background-attachment: scroll; height: 300px; }
    .address-grid { grid-template-columns: 1fr; }
    .footer-links { margin-top: 10px; }
    .page-content h1 { font-size: 30px; }
}
