:root {
    /* Base Brand Colors */
    --brand-peach: #F7AE83;
    --brand-blue: #0064A2;
    --brand-navy: #191633;

    /* Semantic Variables (Light Mode Defaults) */
    --text-primary: #191633;
    --text-inverse: white;

    --bg-page: var(--brand-peach);
    --bg-surface: white;
    --bg-surface-alt: #FEF0E7;
    --bg-surface-dark: #EAEEF9;

    /* Legacy Map */
    --header-color: var(--brand-navy);
    --header-text-color: var(--text-inverse);
    --background-color: var(--bg-page);
    --button-background-color: var(--brand-blue);
    --button-text-color: var(--text-inverse);
    --customers-background-color: var(--bg-surface-alt);
    --cost-background-color: var(--bg-surface-dark);
    --cost-foreground-color: var(--brand-blue);
    --advantages-background-color: var(--bg-surface-dark);
    --bg-surface-rose: #FEF2F4;
    --bg-input-field: #e9eef9;
    --shadow: 0px 20px 30px 0px rgba(15, 38, 92, 0.1);
}

@font-face {
    font-family: Sora;
    src: url(/css/Sora/Sora-VariableFont_wght.ttf);
    font-display: swap;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    font-family: Sora;
    background-color: var(--bg-surface);
    color: var(--text-primary);
}

html,
body {
    margin: 0;
    padding: 0;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    overflow-wrap: break-word;
    hyphens: auto;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    overflow-wrap: break-word;
    hyphens: auto;
}

h1 {
    font-size: clamp(2.25rem, 4vw + 1.25rem, 4rem);
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-primary);
    overflow-wrap: break-word;
    hyphens: auto;
}

.section-title {
    font-size: clamp(2.25rem, 4vw + 1.25rem, 4rem);
    line-height: 1.1;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 2rem;
    overflow-wrap: break-word;
    hyphens: auto;
}

.section-subtitle {
    text-align: left;
    margin-bottom: 2rem;
    opacity: 0.7;
}

em {
    font-weight: bold;
    font-style: normal;
}

.content {
    width: 90%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/*** Header ***/

.header {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.5rem;
    background: var(--header-color);
    color: var(--header-text-color);
    box-shadow: 0 2px 8px rgba(25, 22, 51, 0.12);
}

.header .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.5rem;
}

.header-logo {
    height: 2rem;
    display: block;
}

.anchors {
    display: flex;
    align-items: center;
}

.anchors a,
.anchors a:visited {
    color: white;
    text-decoration: none;
    margin-left: 0.25rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.anchors a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    margin: 0;
    border-radius: 0.5rem;
    line-height: 0;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle svg {
    display: block;
}

.rssLink {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.rssLink img {
    width: 30px;
    height: 30px;
}

/*** Footer ***/

.footer {
    padding: 2rem;
    background: var(--header-color);
    color: var(--header-text-color);
}

.footer .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer * {
    color: white;
}

.footer img {
    width: 10rem;
}

/*** General ***/
button,
.button {
    display: inline-block;
    background-color: var(--bg-surface);
    color: var(--cost-foreground-color);
    border-radius: 5rem;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    text-decoration: none;
    margin-top: auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contact-button {
    margin-top: -3rem;
}

/*** Claim ***/

.claim {
    background-image: url(/img/background-top.svg);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    padding-top: 5rem;
    padding-bottom: 5rem;
    color: white;
}

.claim h1,
.claim h2,
.claim p {
    color: white;
}

.claim .content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    ;
}

.claim-right {
    text-align: center;
    position: relative;
    margin-top: 3rem;
}

img.empower {
    width: 200px;
}

img.macbook-iphone {
    position: absolute;
    top: 250px;
    left: 0;
    width: 100%;
}

/*** Products ***/

#products {
    margin-top: 7rem;
    margin-bottom: 7rem;
}

/*** Product Pages (shared) ***/

.product-hero {
    background-image: url(/img/background-top-rose.svg);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    padding: 8rem 0 6rem 0;
    text-align: center;
}
.product-hero .product-logo {
    max-width: 300px;
    width: 100%;
    margin: 0 auto 2rem auto;
    display: block;
}
.product-hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.product-subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.product-description {
    font-size: 1.1rem;
    color: var(--text-primary);
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.7;
}

.product-section {
    padding: 5rem 0;
}

.product-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--bg-surface);
    border-radius: 1em;
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
}
.product-card img {
    height: 4rem;
    width: auto;
    margin-bottom: 1rem;
}
.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.product-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-advantages {
    background-color: var(--bg-surface-alt);
    padding: 5rem 0;
}
.product-advantages h2 {
    margin-bottom: 3rem;
}

.product-advantage-card {
    background-color: var(--bg-surface);
    border-radius: 1em;
    box-shadow: var(--shadow);
    padding: 2rem;
}
.product-advantage-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.product-advantage-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-cta {
    padding: 5rem 0;
    text-align: center;
}
.product-cta h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 3rem;
}
.product-cta-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.product-back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--button-background-color);
    text-decoration: none;
    font-weight: 600;
}
.product-back-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .product-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .product-grid-3 {
        grid-template-columns: 1fr;
    }
}

.powered-by-dynamics {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 3rem;
}

.dynamics-365-logo {
    height: 3rem;
}

#hub {
    margin-top: 2rem;
}

.payment {
    width: 100%;
}

/*** Customers ***/

#customers {
    margin-top: 7rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 7rem;
    background-color: var(--customers-background-color);
}

#customers .content,
#cost .content,
#we-understand .content,
#contact .content {
    margin-top: -3rem;
    margin-bottom: -6rem;
}

/*** Cost ***/

#cost {
    margin-top: 7rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 7rem;
    background-color: var(--cost-background-color);
}

.cost-banner {
    background: var(--header-color);
    /* red */
    color: white;
    font-weight: bold;
    padding: 1.5rem;
    font-size: 1rem;
    min-height: 2.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cost-banner p {
    margin: auto;
}

.cost-options {
    /*margin-bottom:-2rem;*/
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 3rem;
    margin-bottom: 2rem;
    margin-top: 1rem;

}

.cost-option {
    background-color: var(--cost-foreground-color);
    color: white;
    text-decoration: none;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    /*padding:3rem;*/
    /*padding-top:2rem;*/
    padding-bottom: 3rem;

    display: flex;
    flex-direction: column;
    overflow: hidden;

    /*background-image:url(/img/goodnpo-white.svg);
    background-repeat:no-repeat;
    background-position:top 2rem right 3rem;
    background-size:8rem;*/
}

.cost-option h2,
.cost-option h3,
.cost-option p,
.cost-option li {
    color: white;
}

.cost-text-content {
    padding: 0 3rem;


}

.cost-text-content h2 {
    font-size: 1.5rem;
}

.cost-button {
    max-width: 50%;
    max-height: 1.2rem;
}

.cost-price {
    display: flex;
    gap: 1rem;
}

.cost-per-person {
    font-size: 0.75rem;
}

.cost-price-value {
    font-size: 2.5rem;
    margin: 0;
}

.cost-chf {
    margin-top: 0.8rem;
    margin-bottom: 0.5rem;
}

.cost-price-text {
    margin-bottom: 2rem;
}

/*** We Understand ***/

#we-understand {
    margin-top: 7rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 7rem;
    background-color: var(--cost-background-color);
    display: flow-root;
}

.spendedirekt-box {
    background-color: var(--cost-foreground-color);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spendedirekt-box:hover {
    transform: translateY(-5px);
    box-shadow: 0px 30px 50px 0px rgba(15, 38, 92, 0.18);
}

.spendedirekt-logo {
    width: 15rem;
}

/*** Team ***/

#team {
    margin-top: 7rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 7rem;
    background-color: var(--bg-surface);
    display: flow-root;
}

.team-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4rem;
}

.team-photo img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 60%;
    border-radius: 9999px;
}

.team-photo {
    margin-bottom: 3rem;
}

.team-photo h2,
.team-photo h3,
.team-photo h4 {
    text-align: center;
}

.team-photo h2,
.team-photo h3 {
    margin-bottom: 0;
}

.team-photo h3,
.team-photo h4 {
    margin-top: 0;
}



/*** Kontakt ***/

#contact {
    background-color: var(--advantages-background-color);
    margin-top: 11rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-bottom: 7rem;
}

.contact-button {
    box-sizing: border-box;

    background-color: var(--button-background-color);
    width: 100%;
    max-width: 500px;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: var(--shadow);
}

.button:hover {
    background-color: var(--header-color);
    color: white;
}

.link-button {
    color: white;
    text-decoration: none;
}

.contact-button img {
    width: 3rem;
    margin-right: 0.5rem;
    border-radius: 200px;
}

.email-sent {
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
    margin-top: 3rem;
}

.contact-form {
    background-color: var(--bg-surface);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    border: none;
    background-color: var(--bg-input-field);
    color: var(--text-primary);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    height: 2rem;
}

.contact-form textarea {
    height: 10rem;
}

.contact-form button {
    background-color: var(--button-background-color);
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 5rem;
    cursor: pointer;
    display: block;
    margin: 1.5rem auto 0;
}

.contact-form .contact-form-row:last-child {
    text-align: center;
}

.arrow-up {
    background-color: var(--button-background-color);
    color: white;
    padding: 0;
    width: 2rem;
    height: 2rem;
    text-align: center;
    border-radius: 2rem;
    box-shadow: var(--shadow);
    float: right;
    text-decoration: none;
    font-weight: bold;
}

/*** Thank you page ***/
body.thankyou {
    background-color: var(--header-color);
}

body.thankyou .popup {
    background-color: var(--bg-surface);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-left: auto;
    margin-right: auto;
    width: 40%;
    min-width: 400px;
    margin-top: 7rem;
    border-radius: 1rem;
    text-align: center;
}

body.thankyou .popup a {
    text-decoration: none;
    background-color: var(--button-background-color);
    color: white;
    border: none;
    border-radius: 10rem;
    display: inline-block;

    padding: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

/*** Garuda Card Highlight ***/
.product-highlight {
    border: 2px solid var(--button-background-color);
}

.product-highlight-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--button-background-color);
    font-weight: bold;
    text-decoration: none;
}

/*** Team Closing Statement ***/
.team-closing {
    text-align: center;
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.4;
    max-width: 800px;
    margin: 3rem auto 0;
    color: var(--text-primary);
    quotes: '„' '"' '‚' '"';
}
.team-closing::before { content: open-quote; }
.team-closing::after { content: close-quote; }

/*** Contact Booking Wrapper ***/
.contact-booking-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

/*** AGB Page ***/
.agb {
    margin-top: 5rem;
}

/*** Blog ***/
.blog {
    margin-top: 5rem;
}

.blog h3 a {
    color: var(--header-color);
    text-decoration: none;
}

.blogtext img {
    max-width: 100%;
}

.blogtext em {
    font-weight: normal;
    font-style: italic;
}

/*** Micro-Animations & Hover States ***/

.cost-option {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cost-option:hover {
    transform: translateY(-5px);
    box-shadow: 0px 30px 50px 0px rgba(15, 38, 92, 0.18);
}

button,
.button {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

button:not(.mobile-menu-toggle):hover,
.button:hover {
    transform: translateY(-2px);
}

a {
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

/*** Scroll Reveal Animations ***/

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease-out,
        transform 0.4s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children slightly for grid layouts */
.reveal-children>*:nth-child(1) {
    transition-delay: 0s;
}

.reveal-children>*:nth-child(2) {
    transition-delay: 0.05s;
}

.reveal-children>*:nth-child(3) {
    transition-delay: 0.1s;
}

.reveal-children>*:nth-child(4) {
    transition-delay: 0.12s;
}

.reveal-children>*:nth-child(5) {
    transition-delay: 0.15s;
}

.reveal-children>*:nth-child(6) {
    transition-delay: 0.18s;
}

.reveal-children>*:nth-child(7) {
    transition-delay: 0.2s;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .cost-option,
    button,
    .button,
    a {
        transition: none;
    }
}