/*
 * MOBIS modern look (2026-11)
 * Loaded after design.css. Removing the <link> to this file restores the
 * look of the design-optimierung branch; the HTML only got a few hooks
 * (.card-row, .contact-actions) that fall back to plain markup.
 */

:root {
    --brand: #ffae33;
    --brand-dark: #f29a12;
    --ink: #2a2a2a;
    --muted: #666;
    --soft: #f7f5f2;
    --line: #e8e4de;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(0, 0, 0, .08);
    --shadow-hover: 0 14px 40px rgba(0, 0, 0, .14);
}

/* ---------- Base typography ---------- */
html {
    scroll-padding-top: 70px;
}
body {
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
p {
    font-size: 16px;
    line-height: 1.7;
}
.text-muted {
    color: var(--muted);
}
.bg-light-gray {
    background-color: var(--soft);
}
a:focus-visible,
.btn:focus-visible,
button:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}

/* Section headings with a short accent bar */
section h2.section-heading {
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: .02em;
    position: relative;
    padding-bottom: 18px;
}
section h2.section-heading:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 56px;
    height: 4px;
    margin-left: -28px;
    border-radius: 2px;
    background: var(--brand);
}
section h3.section-subheading {
    font-size: 18px;
    line-height: 1.6;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-xl {
    border-radius: 999px;
    transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn-primary {
    padding: 8px 24px;
}
.btn-xl {
    padding: 16px 42px;
    font-size: 17px;
    letter-spacing: .06em;
    box-shadow: 0 8px 24px rgba(255, 174, 51, .45);
}
.btn-primary:hover,
.btn-xl:hover {
    transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar-custom .navbar-toggle {
    border-radius: 8px;
}
@media (min-width: 768px) {
    .navbar-custom {
        background-color: rgba(20, 20, 20, .35);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        transition: padding .3s, background-color .3s, box-shadow .3s;
    }
    .navbar-custom.affix {
        background-color: rgba(20, 20, 20, .92);
        box-shadow: 0 2px 20px rgba(0, 0, 0, .25);
    }
    .navbar-custom .nav li a {
        font-size: 13px;
        letter-spacing: .12em;
        position: relative;
    }
    /* active item: thin underline instead of a filled orange box */
    .navbar-custom .navbar-nav > .active > a,
    .navbar-custom .navbar-nav > .active > a:hover,
    .navbar-custom .navbar-nav > .active > a:focus {
        background-color: transparent;
        color: var(--brand);
    }
    .navbar-custom .nav li a:after {
        content: "";
        position: absolute;
        left: 15px;
        right: 15px;
        bottom: 8px;
        height: 2px;
        background: var(--brand);
        transform: scaleX(0);
        transition: transform .25s;
    }
    .navbar-custom .nav li a:hover:after,
    .navbar-custom .navbar-nav > .active > a:after {
        transform: scaleX(1);
    }
}

/* ---------- Hero ---------- */
header {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .45)), url(../img/header-bg.jpg);
}
.intro-text .intro-lead-in,
.intro-text .intro-heading {
    text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}
.intro-text .intro-heading {
    letter-spacing: .01em;
}

/* ---------- WER: team ---------- */
.team-member img {
    border: none;
    box-shadow: var(--shadow);
}
.team-member h2 {
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 4px;
}

/* ---------- WIE: timeline ---------- */
.timeline:before {
    background-color: var(--line);
}
.timeline > li .timeline-image {
    border-color: #fff;
    box-shadow: var(--shadow);
}

/* ---------- WAS: tiles as cards of equal height ---------- */
#WAS .portfolio-item {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .08));
    transition: transform .25s, filter .25s;
}
#WAS .portfolio-item:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .14));
}
#WAS .portfolio-item .portfolio-link {
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}
#WAS .portfolio-item .portfolio-link img {
    display: block;
    width: 100%;
}
#WAS .portfolio-item .portfolio-link .portfolio-hover {
    background: rgba(255, 174, 51, .85);
    transition: opacity .3s;
}
#WAS .portfolio-item .portfolio-caption {
    background-color: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 22px 24px 26px;
}
#WAS .portfolio-item .portfolio-caption h4 {
    height: auto;
    margin-bottom: 10px;
}
#WAS .portfolio-item .portfolio-caption .text-muted {
    height: auto;
    padding-top: 0;
    font-size: 15px;
    line-height: 1.6;
}
#WAS .portfolio-caption .btn-md {
    margin-top: 16px;
    padding: 6px 22px;
    border: 2px solid var(--brand);
    border-radius: 999px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background-color .2s, color .2s;
}
#WAS .portfolio-caption .btn-md:hover,
#WAS .portfolio-caption .btn-md:focus {
    background-color: var(--brand);
    color: #fff;
}
@media (min-width: 768px) {
    #WAS .card-row {
        display: flex;
        flex-wrap: wrap;
    }
    /* Bootstrap 3 clearfix pseudo elements would become flex items */
    #WAS .card-row:before,
    #WAS .card-row:after {
        display: none;
    }
    #WAS .card-row > .portfolio-item {
        display: flex;
        flex-direction: column;
    }
    #WAS .card-row .portfolio-link {
        width: 100%;
    }
    #WAS .card-row .portfolio-caption {
        flex: 1;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    #WAS .card-row .portfolio-caption .text-muted {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    /* "Info" button sits at the bottom of every card */
    #WAS .card-row .portfolio-caption .btn-md {
        margin-top: auto;
        align-self: center;
    }
    #WAS .card-row .portfolio-caption .text-muted br {
        display: none;
    }
}

/* ---------- Kontakt: call / mail buttons ---------- */
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 10px;
}
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 999px;
    border: 2px solid var(--brand);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}
.contact-btn,
.contact-btn:focus {
    background-color: var(--brand);
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 174, 51, .4);
}
.contact-btn.contact-btn-outline,
.contact-btn.contact-btn-outline:focus {
    background-color: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
}
.contact-btn:hover,
.contact-btn.contact-btn-outline:hover {
    transform: translateY(-2px);
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
    text-decoration: none;
}

/* ---------- Footer ---------- */
footer {
    background-color: #1e1e1e;
    color: #aaa;
    padding: 30px 0;
    font-size: 14px;
}
footer ul.quicklinks a {
    color: #ddd;
}
footer ul.quicklinks a:hover,
footer ul.quicklinks a:focus {
    color: var(--brand);
}
