/*
 * physio-check-pot design (2026-11)
 * Same design language as mobis.at and mevos.at, in the lime color scheme.
 * Loaded after styles.css; removing the <link> restores the old look.
 */

:root {
    --brand: #bbd95d;
    --brand-dark: #93b23a;
    --brand-ink: #4f6a12;        /* readable green for text on white */
    --on-brand: #23300a;         /* dark text on lime (white has too little contrast) */
    --ink: #2a2a2a;
    --muted: #666;
    --soft: #f5f8ee;
    --line: #e3ead2;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(0, 0, 0, .08);
    --font: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Base: Roboto everywhere (template fonts are not loaded) ---------- */
html {
    scroll-padding-top: 80px;
}
body,
h1, h2, h3, h4, h5, h6,
.btn,
#mainNav .navbar-nav .nav-item .nav-link,
.masthead .masthead-subheading,
.masthead .masthead-heading {
    font-family: var(--font);
}
body {
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.text-muted {
    color: var(--muted) !important;
}
.bg-light {
    background-color: var(--soft) !important;
}
a:focus-visible,
.btn:focus-visible,
button:focus-visible {
    outline: 3px solid var(--brand-dark);
    outline-offset: 3px;
}
.page-section {
    padding: 100px 0;
}

/* ---------- Section headings with accent bar ---------- */
.page-section h2.section-heading {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 18px;
    margin-bottom: 24px;
}
.page-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);
}
.page-section h3.section-subheading {
    font-size: 18px;
    font-style: normal;
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto 50px;
}
.highlight {
    background-color: var(--brand);
    color: var(--on-brand);
    font-style: normal;
}

/* ---------- Buttons: pills, dark text on lime ---------- */
.btn-primary,
.btn-primary:focus {
    color: var(--on-brand);
    background-color: var(--brand);
    border-color: var(--brand);
    border-radius: 999px;
    font-weight: 700;
    transition: transform .2s, background-color .2s, box-shadow .2s;
}
.btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled):active {
    color: var(--on-brand);
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: translateY(-2px);
}
.btn-xl {
    padding: 16px 42px;
    font-size: 17px;
    letter-spacing: .06em;
    box-shadow: 0 8px 24px rgba(147, 178, 58, .45);
}

/* ---------- Navbar: translucent, underline for active item ---------- */
@media (min-width: 992px) {
    #mainNav {
        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;
    }
    #mainNav.navbar-shrink {
        background-color: rgba(20, 20, 20, .92);
        box-shadow: 0 2px 20px rgba(0, 0, 0, .25);
    }
    #mainNav .navbar-nav .nav-item .nav-link {
        font-size: 13px;
        letter-spacing: .12em;
        position: relative;
    }
    #mainNav .navbar-nav .nav-item .nav-link.active,
    #mainNav .navbar-nav .nav-item .nav-link:hover {
        color: var(--brand);
    }
    #mainNav .navbar-nav .nav-item .nav-link:after {
        content: "";
        position: absolute;
        left: 1rem;
        right: 1rem;
        bottom: .2rem;
        height: 2px;
        background: var(--brand);
        transform: scaleX(0);
        transition: transform .25s;
    }
    #mainNav .navbar-nav .nav-item .nav-link:hover:after,
    #mainNav .navbar-nav .nav-item .nav-link.active:after {
        transform: scaleX(1);
    }
}
#mainNav .navbar-toggler {
    color: var(--on-brand);
    background-color: var(--brand);
    border-radius: 8px;
}

/* ---------- Hero: subtle zoom, light veil, label, soft curve ---------- */
.masthead {
    position: relative;
    overflow: hidden;
    background-image: none;
}
.masthead:before {
    content: "";
    position: absolute;
    top: -2%;
    right: -2%;
    bottom: -2%;
    left: -2%;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .5) 45%, rgba(255, 255, 255, .1) 100%), url(../assets/img/header-bg.jpg);
    background-size: cover;
    background-position: center;
    animation: pcp-zoom 40s ease-in-out infinite alternate;
    z-index: 0;
}
.masthead:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 70px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C 480 0 960 0 1440 70 Z' fill='%23ffffff'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
    z-index: 1;
}
.masthead #layer {
    display: none;               /* veil is part of the background above */
}
.masthead .container {
    position: relative;
    z-index: 2;
}
@keyframes pcp-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.03); }
}
header.masthead .masthead-subheading {
    display: inline-block;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .22em;
    text-transform: uppercase;
    padding: 9px 20px;
    border-radius: 999px;
    color: var(--on-brand);
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
@media (max-width: 575px) {
    header.masthead .masthead-subheading {
        font-size: 11px;
        letter-spacing: .12em;
        padding: 7px 14px;
    }
}
header.masthead .masthead-heading {
    font-size: clamp(36px, 5.5vw, 72px);
    line-height: 1.08;
}

/* ---------- WER: organic photo shapes ---------- */
.team-member img {
    border: none;
    border-radius: 62% 38% 46% 54% / 55% 46% 54% 45% !important;
    box-shadow: 18px 18px 0 0 rgba(187, 217, 93, .45);
    object-fit: cover;
    animation: pcp-blob 14s ease-in-out infinite alternate;
}
#WER .col-sm-6:nth-child(2) .team-member img {
    animation-delay: -7s;
}
@keyframes pcp-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 h4 {
    margin-top: 34px;
}
.team-member p.text-muted {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brand-ink) !important;
}

/* ---------- Lists: check marks, timeline dots ---------- */
#WER ul.text-left,
#WARUM .list-group,
.portfolio-modal .list-group {
    list-style: none;
    padding-left: 0;
    margin: 0 auto 20px;
    display: table;
    text-align: left;
}
#WER ul.text-left li,
#WARUM .list-group .list-group-item,
.portfolio-modal .list-group .list-group-item {
    position: relative;
    padding: 6px 0 6px 32px;
    border: 0;
    background: transparent;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
}
#WER ul.text-left li:before,
#WARUM .list-group .list-group-item:before,
.portfolio-modal .list-group .list-group-item:before {
    content: "";
    position: absolute;
    left: 4px;
    top: 11px;
    width: 14px;
    height: 8px;
    border-left: 3px solid var(--brand-dark);
    border-bottom: 3px solid var(--brand-dark);
    transform: rotate(-45deg);
}
.timeline .timeline-body ul {
    list-style: none;
    padding-left: 0;
}
.timeline .timeline-body ul li {
    position: relative;
    padding-left: 18px;
    margin: 4px 0;
}
.timeline .timeline-body ul li:before {
    content: "";
    position: absolute;
    left: 2px;
    top: .65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-dark);
}
.timeline > li.timeline-inverted .timeline-body ul li,
.timeline > li .timeline-body .text-left ul li {
    text-align: left;
}

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

/* ---------- WAS: tiles as cards of equal height ---------- */
#WAS .row > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}
#WAS .portfolio-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}
#WAS .portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .14);
}
#WAS .portfolio-item img {
    display: block;
    width: 100%;
}
#WAS .portfolio-item .portfolio-caption {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 24px 26px;
}
#WAS .portfolio-item .portfolio-caption .btn {
    order: 3;
    margin-top: auto;
    padding: 6px 22px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
#WAS .portfolio-item .portfolio-caption .portfolio-caption-heading {
    margin-bottom: 8px;
    font-size: 21px;
    font-weight: 700;
}
#WAS .portfolio-item .portfolio-caption .portfolio-caption-subheading {
    margin-bottom: 18px;
    font-size: 15px;
    font-style: normal;
    line-height: 1.6;
}

/* ---------- Videos: number pills ---------- */
#Videos li {
    display: flex;
    align-items: center;
    margin: 6px 0;
    color: var(--ink);
}
#Videos li button {
    width: 3.2rem;
    padding: 4px 0;
    margin: 0 14px 0 0;
}

/* ---------- Kontakt: tinted band, buttons ---------- */
#Kontakt {
    background: linear-gradient(135deg, #f6fae9 0%, #e7f1c6 100%);
}
.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-dark);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, background-color .2s, color .2s;
}
.contact-btn img {
    width: 20px;
    height: 20px;
}
.contact-btn,
.contact-btn:focus {
    background-color: var(--brand);
    color: var(--on-brand);
    box-shadow: 0 8px 24px rgba(147, 178, 58, .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: var(--on-brand);
    text-decoration: none;
}

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

/* ---------- Modals: centered cards instead of full-screen overlays ---------- */
.portfolio-modal .modal-dialog {
    max-width: 560px;
    margin: 100px auto;
}
#impressumModal .modal-dialog {
    max-width: 720px;
}
#video .modal-dialog {
    max-width: 960px;
    margin: 60px auto;
}
@media (max-width: 767px) {
    .portfolio-modal .modal-dialog,
    #video .modal-dialog {
        margin: 10px;
    }
}
.portfolio-modal .modal-content {
    padding: 40px 30px 30px;
    border: 0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.portfolio-modal .modal-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
}
#impressumModal .modal-body {
    text-align: left;
}
#impressumModal h4,
#impressumModal h5 {
    margin-top: 18px;
    font-size: 18px;
}
.portfolio-modal a:not(.btn),
.page-section a:not(.btn):not(.contact-btn) {
    color: var(--brand-ink);
}
.portfolio-modal .close-modal {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    z-index: 2;
}
.portfolio-modal .close-modal img {
    width: 100%;
    height: 100%;
}
#video video {
    width: 100%;
    border-radius: 10px;
}

/* ---------- Advent calendar badge (shown by script in index.html) ---------- */
.advent-badge {
    position: fixed;
    top: 110px;
    right: 24px;
    z-index: 1029;
    width: 170px;
    padding: 14px 14px 12px;
    background: #fff;
    border: 3px solid var(--brand-dark);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
    text-align: center;
    transform: rotate(-4deg);
    transition: transform .25s;
    animation: pcp-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-ink);
}
.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: 110px;
    right: 24px;
    z-index: 1029;
    width: 64px;
    height: 64px;
    padding: 8px;
    border: 3px solid var(--brand-dark);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: transform .2s;
    animation: pcp-pop .3s ease-out;
}
.advent-mini:hover {
    transform: scale(1.1);
}
.advent-mini img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@keyframes pcp-wiggle {
    0%, 100% { transform: rotate(-4deg); }
    25%      { transform: rotate(4deg); }
    50%      { transform: rotate(-6deg); }
    75%      { transform: rotate(2deg); }
}
@keyframes pcp-pop {
    from { transform: scale(.4); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
@media (max-width: 767px) {
    .advent-badge {
        top: 80px;
        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: 80px;
        right: 12px;
        width: 50px;
        height: 50px;
        padding: 6px;
    }
}

/* ---------- Respect users who turned animations off ---------- */
@media (prefers-reduced-motion: reduce) {
    .masthead:before,
    .team-member img,
    .advent-badge,
    .advent-mini {
        animation: none;
    }
}
