/*
 * MEVOS design (2026-11)
 * Same design language as mobis.at, in the MEVOS bronze color scheme.
 * Loaded after agency.min.css; removing the <link> restores the old look.
 */

:root {
    --brand: #735d20;
    --brand-dark: #5a4818;
    --brand-light: #b39a5a;
    --ink: #2a2a2a;
    --muted: #666;
    --soft: #f6f3ec;
    --line: #e6dfcf;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(0, 0, 0, .08);
    --shadow-hover: 0 14px 40px rgba(0, 0, 0, .14);
}

/* ---------- Base ---------- */
html {
    scroll-padding-top: 90px;
}
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,
.toggleHeaderContainer:focus-visible {
    outline: 3px solid var(--brand-light);
    outline-offset: 3px;
}
@media (min-width: 768px) {
    section {
        padding: 100px 0;
    }
}

/* ---------- Section headings with accent bar ---------- */
section h2.section-heading {
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: .02em;
    position: relative;
    padding-bottom: 18px;
    margin-bottom: 30px;
}
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-light);
}
section h3.section-subheading {
    font-size: 18px;
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto 40px;
}

/* ---------- Buttons ---------- */
.btn-primary {
    border-radius: 999px;
    padding: 8px 24px;
    transition: transform .2s, background-color .2s;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: translateY(-2px);
}

/* ---------- Navbar: white, shadow when scrolled, underline for active ---------- */
@media (min-width: 768px) {
    .navbar-custom {
        transition: padding .3s, box-shadow .3s;
    }
    .navbar-custom.affix {
        box-shadow: 0 2px 20px rgba(0, 0, 0, .08);
    }
    .navbar-custom .nav li a {
        font-size: 13px;
        letter-spacing: .12em;
        position: relative;
    }
    .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: flower and band as one rounded card ---------- */
header {
    margin-bottom: 0;
    padding-bottom: 80px;
}
header .container {
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .16));
}
header img {
    max-width: 100%;
}
header img:first-of-type {
    border-radius: 18px 18px 0 0;
}
header img + img {
    border-radius: 0 0 18px 18px;
    margin-top: -1px;            /* no hairline between photo and band */
}

/* ---------- Lists with check marks ---------- */
#WARUM ul,
.wieInfo ul,
#WER .toggleHeaderContent ul {
    list-style: none;
    padding-left: 0;
}
#WARUM ul li,
.wieInfo ul li,
#WER .toggleHeaderContent ul li {
    position: relative;
    margin: .6rem 0;
    padding-left: 32px;
    font-size: 16px;
    line-height: 1.55;
}
#WARUM ul li:before,
.wieInfo ul li:before,
#WER .toggleHeaderContent ul li:before {
    content: "";
    position: absolute;
    left: 4px;
    top: 6px;
    width: 14px;
    height: 8px;
    border-left: 3px solid var(--brand-light);
    border-bottom: 3px solid var(--brand-light);
    border-radius: 0;
    background: none;
    transform: rotate(-45deg);
}
@media (min-width: 992px) {
    #WARUM ul {
        columns: 2;
        column-gap: 56px;
    }
    #WARUM ul li {
        break-inside: avoid;
    }
}
/* lists inside the accordions: small bronze dots */
.toggleHeaderContent ul {
    list-style: none;
    padding-left: 0;
}
.toggleHeaderContent ul li {
    position: relative;
    margin: .5rem 0;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.55;
}
.toggleHeaderContent ul li:before {
    content: "";
    position: absolute;
    left: 2px;
    top: .65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-light);
}

/* ---------- WAS / WIE: group headers and accordions ---------- */
.evoHeader {
    width: 100%;
}
.evoHeader h4 {
    margin: 3rem 15px 1rem;
    padding: 1.3rem 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    letter-spacing: .14em;
    box-shadow: var(--shadow);
}
.evoHeader p {
    font-size: 17px;
    font-style: italic;
    color: var(--muted);
}
.evo-item {
    align-items: center;
}
.evo-item img {
    margin: 0 auto;
}

div.toggleHeaderContainer {
    align-items: center;
    margin-bottom: .8rem;
    padding: 1.1rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
div.toggleHeaderContainer:hover,
div.toggleHeaderContainer.open {
    border-color: var(--brand-light);
    box-shadow: var(--shadow);
}
.toggleHeaderContainer .toggleHeader {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}
.toggleHeaderContainer .fa {
    margin-left: 16px;
    font-size: 22px;
    color: var(--brand);
}
.toggleHeaderContent {
    margin: 0 0 1.4rem;
    padding: .4rem 1.4rem 0;
    border-left: 3px solid var(--brand-light);
    font-size: 15px;
}
/* the "about me" list in Kontakt reuses the class, without accordion look */
#WER .toggleHeaderContent {
    border-left: 0;
    padding: 0;
    max-width: 760px;
    margin: 20px auto 0;
}

.wieInfo h5 {
    margin-top: 20px;
    color: var(--brand);
    letter-spacing: .1em;
}
.wieInfo > div:empty {
    display: none;
}

/* ---------- Kontakt: photo shape, tinted band, buttons ---------- */
#WER {
    background: linear-gradient(135deg, #f8f3e8 0%, #efe4c9 100%);
}
#WER .col-sm-6:first-child .team-member img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 62% 38% 46% 54% / 55% 46% 54% 45%;
    box-shadow: 18px 18px 0 0 rgba(115, 93, 32, .25);
    animation: mevos-blob 14s ease-in-out infinite alternate;
}
/* car illustration: same height as the photo so both names line up */
#WER .col-sm-6:last-child .team-member img {
    width: auto;
    height: 260px;
}
@keyframes mevos-blob {
    0%   { border-radius: 62% 38% 46% 54% / 55% 46% 54% 45%; }
    50%  { border-radius: 42% 58% 60% 40% / 45% 60% 40% 55%; }
    100% { border-radius: 55% 45% 38% 62% / 60% 40% 60% 40%; }
}
.team-member h2 {
    margin-top: 34px;
    font-size: 24px;
}
#WER .team-member p.text-muted {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brand);
}
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
}
.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, background-color .2s, color .2s;
}
.contact-btn,
.contact-btn:focus {
    background-color: var(--brand);
    color: #fff;
    box-shadow: 0 8px 24px rgba(115, 93, 32, .35);
}
.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-light);
}

/* ---------- Impressum: centered card instead of full-screen overlay ---------- */
.portfolio-modal .modal-dialog {
    height: auto;
    width: auto;
    margin: 10px;
}
@media (min-width: 768px) {
    .portfolio-modal .modal-dialog {
        width: 720px;
        margin: 100px auto;
    }
}
.portfolio-modal .modal-content {
    min-height: 0;
    padding: 40px 30px 30px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    text-align: left;
}
.portfolio-modal .modal-content .container {
    width: auto;
    padding: 0;
}
.portfolio-modal .modal-content .row {
    margin: 0;
}
.portfolio-modal .close-modal {
    width: 32px;
    height: 32px;
    top: 14px;
    right: 14px;
    z-index: 2;
}
.portfolio-modal .close-modal .lr,
.portfolio-modal .close-modal .lr .rl {
    height: 32px;
    width: 2px;
    background-color: #999;
}
.portfolio-modal .close-modal .lr {
    margin-left: 15px;
}

/* ---------- Advent calendar badge (shown by script in index.html) ---------- */
.advent-badge {
    position: fixed;
    top: 130px;
    right: 24px;
    z-index: 1029;
    width: 170px;
    padding: 14px 14px 12px;
    background: #fff;
    border: 3px solid var(--brand);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
    text-align: center;
    transform: rotate(-4deg);
    transition: transform .25s;
    animation: mevos-wiggle 1s ease-in-out 1.2s 2;
}
.advent-badge:hover {
    transform: rotate(0deg) scale(1.05);
}
.advent-badge-link,
.advent-badge-link:hover,
.advent-badge-link:focus {
    display: block;
    color: var(--ink);
    text-decoration: none;
}
.advent-badge-link img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 8px;
}
.advent-badge-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.advent-badge-cta {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
}
.advent-badge-link:hover .advent-badge-cta {
    text-decoration: underline;
}
.advent-badge-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #666;
    font-size: 22px;
    line-height: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    cursor: pointer;
}
.advent-badge-close:hover {
    color: var(--ink);
}
.advent-mini {
    position: fixed;
    top: 130px;
    right: 24px;
    z-index: 1029;
    width: 64px;
    height: 64px;
    padding: 8px;
    border: 3px solid var(--brand);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: transform .2s;
    animation: mevos-pop .3s ease-out;
}
.advent-mini:hover {
    transform: scale(1.1);
}
.advent-mini img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@keyframes mevos-wiggle {
    0%, 100% { transform: rotate(-4deg); }
    25%      { transform: rotate(4deg); }
    50%      { transform: rotate(-6deg); }
    75%      { transform: rotate(2deg); }
}
@keyframes mevos-pop {
    from { transform: scale(.4); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
@media (max-width: 767px) {
    .advent-badge {
        top: 90px;
        right: 12px;
        width: 112px;
        padding: 8px 8px 6px;
        border-radius: 14px;
    }
    .advent-badge-title {
        font-size: 11px;
        letter-spacing: .02em;
    }
    .advent-badge-cta {
        display: none;
    }
    .advent-mini {
        top: 90px;
        right: 12px;
        width: 50px;
        height: 50px;
        padding: 6px;
    }
}

/* ---------- Respect users who turned animations off ---------- */
@media (prefers-reduced-motion: reduce) {
    #WER .col-sm-6:first-child .team-member img,
    .advent-badge,
    .advent-mini {
        animation: none;
    }
}
