body,html,h1,h2,h3,h4,h5,h6,p,ul,ol,li{padding:0;margin:0;}
*,*::before,*::after{box-sizing:border-box;}
body,html{overflow: unset!important;width:100%;-webkit-font-smoothing:antialiased;-webkit-overflow-scrolling:touch;}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block;}

/* ########## Variables ########## */

* {
    --font-family: "Open Sans", sans-serif;
    --font-heading: "Playfair Display", Georgia, serif;
    --transition: .2s ease;
    --wrp-width: 1240px;
    --font-size: 16px;
    --line-height: 1.85;
    --box-shadow: 0px 5px 13px 0px rgba(0, 0, 0, 0.3);
    --border-radius: 15px;
    --primary-color: #8294AB;
    --accent-color: #C4956A;
    --text-color: #515151;
    --bg-light: #F5F7FA;
}

/* ########## Globals ########## */

html {scroll-behavior: smooth;}
body {font-size: var(--font-size); font-family: var(--font-family); line-height: var(--line-height); color: var(--text-color);}
img {-ms-interpolation-mode:bicubic; vertical-align: bottom;}
svg {width: 100%; height: 100%;}
hr {border:none;height:1px;background:#ddd; margin:0;}

#mainnav {display: none;}
.mainnav-toggle {display: none;}

.wrp {max-width: var(--wrp-width); width: 90%; margin: 0 auto; position:relative; box-sizing:border-box;}
.btn {
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    box-shadow: var(--box-shadow);
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-family: var(--font-family);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.32), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s ease;
    pointer-events: none;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(130, 148, 171, 0.5);
}
.btn:hover::before { left: 130%; }
a {color: var(--text-color); text-decoration: none;}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    padding-bottom: 16px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.zentriert h2::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {font-family: var(--font-family); font-size: 1.05rem; font-weight: 400; line-height: 1.7; margin-bottom: 20px;}
p {margin-bottom: 20px; line-height: var(--line-height);}


/* Margins */

.mb {margin-bottom: 100px;}
.mb50 {margin-bottom: 50px;}
.zentriert {text-align: center;}
.bg-light {background: var(--bg-light);}

@media (max-width: 500px) {
  .mb {margin-bottom: 60px;}
  .mb50 {margin-bottom: 30px;}
}

/* ########## Header ########## */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    color: var(--text-color);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 100%;
    max-width: 9999px;
    border-radius: 0;
    margin-top: 0;
    box-shadow: var(--box-shadow);
    transition: width 0.4s ease, max-width 0.4s ease, border-radius 0.4s ease,
                margin-top 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
}

header .wrp {display: grid; grid-template-columns: 200px auto; justify-content: space-between; align-items: center; padding: 18px 0; transition: grid-template-columns 0.4s ease, padding 0.3s ease;}
html.scrolled header {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 90px;
    margin-top: 6px;
    width: 90%;
    max-width: var(--wrp-width);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
html.scrolled header .wrp {width: 90%; grid-template-columns: 130px auto; padding: 12px 0;}

@media (max-width:600px){
    header .wrp {grid-template-columns: 150px auto; transition: var(--transition); padding: 14px 0;}
    .stage {margin-top: 80px!important;}
}

.logo img {height: 100%; width: 100%;}

/* Desktop Nav */
.nav {display: flex; gap: 24px; align-items: center;}
.nav a {color: var(--text-color); text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; position: relative; padding-bottom: 2px;}
.nav a::after {content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary-color); border-radius: 1px; transition: width 0.25s ease;}
.nav a:hover::after {width: 100%;}


/* ########## Mobile Navigation ########## */

@media (max-width: 600px) {
    .nav {display: none;}

    /* --- Hamburger Button --- */
    .mainnav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--primary-color);
        border-radius: 8px;
        cursor: pointer;
        position: relative;
        z-index: 10;
        flex-shrink: 0;
    }

    .btn-mainnav-toggle {
        width: 22px;
        height: 16px;
        position: relative;
        cursor: pointer;
    }

    .btn-mainnav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        position: absolute;
        transition: all 0.3s ease;
    }

    .btn-mainnav-toggle span:nth-child(1) {top: 0;}
    .btn-mainnav-toggle span:nth-child(2) {top: 7px;}
    .btn-mainnav-toggle span:nth-child(3) {top: 14px;}

    .btn-mainnav-toggle.active span:nth-child(1) {top: 7px; transform: rotate(45deg);}
    .btn-mainnav-toggle.active span:nth-child(2) {opacity: 0; transform: scaleX(0);}
    .btn-mainnav-toggle.active span:nth-child(3) {top: 7px; transform: rotate(-45deg);}

    /* --- Offcanvas Panel --- */
    #mainnav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 88vw);
        background: #fff;
        transform: translateX(110%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        box-shadow: -4px 0 40px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    #mainnav.active {transform: translateX(0);}

    /* --- Head: Logo + Buttons + Close --- */
    #mainnav .head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 16px 18px;
        border-bottom: 1px solid #efefef;
        flex-shrink: 0;
    }

    #mainnav .head .nav-logo {display: flex; align-items: center; flex: 1; min-width: 0;}
    #mainnav .head .nav-logo img {height: 44px; width: auto;}

    #mainnav .head .buttons {display: flex; gap: 6px; flex-shrink: 0;}

    #mainnav .head .buttons a {
        width: 40px; height: 40px;
        background: #f5f5f5; border-radius: 8px;
        display: flex; align-items: center; justify-content: center;
        transition: background var(--transition);
    }
    #mainnav .head .buttons a:hover {background: #e4e9ef;}
    #mainnav .head .buttons a img {width: 19px; height: 19px; object-fit: contain;}

    .mainnav-close {
        width: 40px; height: 40px;
        background: #f5f5f5; border: none; border-radius: 8px;
        font-size: 22px; line-height: 1; cursor: pointer;
        color: var(--text-color);
        display: flex; align-items: center; justify-content: center;
        transition: background var(--transition); flex-shrink: 0;
    }
    .mainnav-close:hover {background: #e4e9ef;}

    /* --- Navigation Links --- */
    #mainnav ul.mainnav.smart {display: block; list-style: none; padding: 8px 0; flex: 1;}
    #mainnav ul.mainnav.smart li {border-bottom: 1px solid #f5f5f5;}
    #mainnav ul.mainnav.smart li a {
        display: flex; align-items: center; justify-content: space-between;
        padding: 17px 22px; font-size: 16px; font-weight: 600;
        color: var(--text-color);
        transition: background var(--transition), color var(--transition);
    }
    #mainnav ul.mainnav.smart li a::after {content: '›'; font-size: 22px; color: #ccc; line-height: 1; transition: color var(--transition), transform var(--transition);}
    #mainnav ul.mainnav.smart li a:hover {background: #f5f7fa; color: var(--primary-color);}
    #mainnav ul.mainnav.smart li a:hover::after {color: var(--primary-color); transform: translateX(3px);}

    /* --- Contact Info (Bottom) --- */
    #mainnav ul.contact {list-style: none; padding: 18px 22px; background: #f8f9fb; border-top: 1px solid #efefef; flex-shrink: 0;}
    #mainnav ul.contact li {border: none;}
    #mainnav ul.contact li a {display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: #888; transition: color var(--transition);}
    #mainnav ul.contact li a:hover {color: var(--primary-color);}

    /* --- Overlay --- */
    #mainnav-overlay {
        position: fixed; inset: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
        opacity: 0; visibility: hidden; z-index: 99;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }
    #mainnav-overlay.active {opacity: 1; visibility: visible;}
}


/* ########## Stage / Hero ########## */

.stage {aspect-ratio: 2.2/1; width: 100%; min-height: 460px; position: relative; margin-top: 100px;}
.stage .wrp {position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; width: 90%;}
.stage img {width: 100%; height: 100%; object-fit: cover; object-position: center 50%; transform: scaleX(-1); will-change: object-position;}
.stage:before {content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(100deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.28) 100%); z-index: 1;}

.stage .stagecontent {position: absolute; left: 0; top: 50%; color: #fff; transform: translateY(-50%); max-width: 680px;}
.stage h1 {color: #fff; margin-bottom: 12px; line-height: 1.25;}
.stage h2::after {display: none;}
.stage h3 {color: rgba(255,255,255,0.85); font-size: 1.1rem; font-weight: 400; line-height: 1.7; margin-bottom: 32px;}
.stage .btn {background: var(--primary-color); border: 2px solid rgba(255,255,255,0.3);}
.stage .btn:hover {background: #6e82a0;}

.stage-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 16px;
}
.stage-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    margin-bottom: 30px;
    max-width: 520px;
}
.stage-links {display: flex; flex-wrap: wrap; gap: 12px;}
.stage-links a {
    display: inline-block;
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.35);
    padding: 9px 22px;
    border-radius: 30px;
    transition: background .2s, color .2s, border-color .2s;
    letter-spacing: 0.02em;
}
.stage-links a:hover {background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.6); color: #fff;}

.stage.subpage {aspect-ratio: 2.8/1; min-height: 380px; width: 100%; position: relative;}
.stage.subpage h1 {font-size: clamp(2rem, 5vw, 3.2rem);}
.stage.subpage .stagecontent {max-width: 700px;}


/* ########## Content Sections ########## */

.text .wrp {padding-top: 0;}
.text.zentriert .wrp {max-width: 720px;}
.text.zentriert p {font-size: 1.05rem; color: #666;}

.bg-light .wrp {padding-top: 60px; padding-bottom: 60px;}

.textbild .wrp {gap: 60px; display: grid; align-items: center; justify-content: space-between; box-sizing: border-box; background: transparent; grid-template-columns: 45% 50%;}
.textbild .text {box-sizing: border-box; padding: 15px 0;}
.textbild .bild {width: 100%; height: 100%; aspect-ratio: 1.5/1;}
.textbild .bild img {width: 100%; height: 100%; object-fit: cover; border-radius: var(--border-radius); box-shadow: var(--box-shadow);}

@media (max-width:800px){
    .textbild .text {padding: 0;}
    .textbild .bild {order: 2}
    .textbild .wrp {grid-template-columns: 100%; gap: 30px;}
}

.zitat {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    padding: 12px 20px;
    margin: 4px 0 24px;
    background: rgba(130, 148, 171, 0.06);
    border-radius: 0 8px 8px 0;
    display: block;
}

.bildtrenner {height: 320px; width: 100%; overflow: hidden;}
.bildtrenner img {height: 100%; width: 100%; object-fit: cover; object-position: center; transition: transform 0.6s ease;}
.bildtrenner:hover img {transform: scale(1.02);}


/* ########## Leistungen Cards ########## */

.leistungen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 8px 0 40px;
}

.leistung-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 28px 30px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.leistung-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.leistung-card ul {list-style: none;}
.leistung-card ul li {
    padding: 8px 0 8px 22px;
    position: relative;
    font-size: 15px;
    color: #666;
    border-bottom: 1px solid #f5f5f5;
    line-height: 1.5;
}
.leistung-card ul li:last-child {border-bottom: none; padding-bottom: 0;}
.leistung-card ul li::before {content: '›'; position: absolute; left: 0; color: var(--primary-color); font-size: 18px; line-height: 1.3;}

.leistungen-hinweis {
    background: rgba(130, 148, 171, 0.08);
    border-left: 4px solid var(--primary-color);
    padding: 18px 22px;
    border-radius: 0 8px 8px 0;
    margin: 0 0 48px;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

.preise-section h2 {margin-top: 16px;}

.preise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 8px 0 32px;
}

.preis-card {
    background: #fdf8f2;
    border-radius: var(--border-radius);
    padding: 32px 24px 28px;
    text-align: center;
    border: 1px solid #ede5d8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.preis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(196, 149, 106, 0.15);
}

.preis-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.preis-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.preis-label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.preis-dauer {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.4;
}
.preis-betrag {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-top: auto;
}
.preis-card--anfrage .preis-betrag {
    font-size: 1.2rem;
    color: var(--primary-color);
}
.preis-card--anfrage .preis-icon {
    background: var(--accent-color);
}

.leistungen-cta {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

@media (max-width: 800px) {
    .leistungen-grid {grid-template-columns: 1fr;}
    .preise-grid {grid-template-columns: 1fr 1fr;}
}

@media (max-width: 500px) {
    .preise-grid {grid-template-columns: 1fr 1fr;}
    .preis-card {padding: 24px 16px;}
    .preis-betrag {font-size: 1.5rem;}
}


/* ########## Form / Kontakt ########## */

.kontakt-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.kontakt-form-wrap {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 44px 48px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}
.kontakt-form-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.kontakt-info-wrap {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 36px 30px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}
.kontakt-info-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}
.kontakt-info-wrap h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-color);
}
.kontakt-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}
.kontakt-info-item:last-child {border-bottom: none; padding-bottom: 0;}
.kontakt-info-icon {
    width: 42px; height: 42px;
    background: rgba(130,148,171,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.kontakt-info-icon img {width: 19px; height: 19px; object-fit: contain;}
.kontakt-info-item strong {display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #bbb; margin-bottom: 4px; font-weight: 700;}
.kontakt-info-item a {color: var(--text-color); font-weight: 600; font-size: 14px; transition: color var(--transition);}
.kontakt-info-item a:hover {color: var(--primary-color);}

form {background: transparent; border-radius: 0; max-width: 100%;}

label {
    display: block;
    margin-top: 20px;
    font-weight: 700;
    color: #999;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
label:first-of-type {margin-top: 0;}

input, textarea {
    width: 100%; padding: 13px 16px; margin-top: 7px;
    border: 1.5px solid #e8e8e8; border-radius: 10px;
    font-size: 15px; font-family: var(--font-family);
    color: var(--text-color);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    background: #f8f9fb;
}

input:focus, textarea:focus {
    outline: none; background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(130, 148, 171, 0.15);
}

form button {
    margin-top: 28px; cursor: pointer;
    position: relative; overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 12px 30px; border-radius: 30px; border: none;
    box-shadow: var(--box-shadow); background: var(--primary-color);
    color: #fff; font-size: 13px; font-family: var(--font-family);
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
form button::before {
    content: '';
    position: absolute;
    top: 0; left: -80%; width: 55%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.32), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s ease;
    pointer-events: none;
}
form button:hover {transform: translateY(-2px); box-shadow: 0 8px 24px rgba(130,148,171,0.5);}
form button:hover::before {left: 130%;}
form button:disabled {opacity: 0.6; cursor: not-allowed; transform: none;}

textarea {resize: vertical; height: 120px; margin-bottom: 4px;}

.form-message {margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 14px;}
.form-message.success {background: #e6f4ea; color: #2e7d32; border: 1px solid #a8d5ae;}
.form-message.error {background: #fdecea; color: #c62828; border: 1px solid #f5c6c6;}

@media (max-width: 750px) {
    .kontakt-layout {grid-template-columns: 1fr;}
    .kontakt-form-wrap {padding: 30px 24px;}
}


/* ########## Footer ########## */

.footer-main {
    background: #2c2c2c;
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.footer-brand img {
    filter: brightness(0) invert(1);
    opacity: 0.85;
    width: 160px;
    height: auto;
}

.footer-brand p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.75;
    margin-top: 18px;
    max-width: 280px;
}

.footer-nav h4, .footer-contact h4 {
    color: #fff;
    font-family: var(--font-family);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}

.footer-nav a, .footer-contact a {
    display: block;
    color: #aaa;
    font-size: 14px;
    padding: 5px 0;
    transition: color var(--transition);
}
.footer-nav a:hover, .footer-contact a:hover {color: #fff;}

.footer-bottom {
    background: #222;
    padding: 14px 0;
    border-top: 1px solid #383838;
}

.footerflex {display: flex; justify-content: space-between; align-items: center; color: #888;}
.footerflex p {margin-bottom: 0; font-size: 13px; color: #888;}
.footernavi {display: flex; gap: 20px;}
.footernavi a {font-size: 13px; color: #888; transition: color var(--transition);}
.footernavi a:hover {color: #fff;}

@media (max-width: 700px) {
    .footer-grid {grid-template-columns: 1fr; gap: 36px;}
    .footer-brand p {max-width: 100%;}
    .footerflex {flex-direction: column; gap: 8px; text-align: center;}
}


/* ########## Wissen & Tools (Homepage) ########## */

.wissen-section { background: var(--bg-light); padding: 64px 0; }
.wissen-section > .wrp > h2 { margin-bottom: 10px; }
.wissen-section > .wrp > p { color: #777; font-size: 1.05rem; margin-bottom: 36px; max-width: 560px; }
.wissen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wissen-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 40px 36px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    text-decoration: none;
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    color: var(--text-color);
}
.wissen-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.wissen-card.quiz::before { background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); }
.wissen-card.guide::before { background: linear-gradient(90deg, var(--accent-color), var(--primary-color)); }
.wissen-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.1); }
.wissen-card-icon {
    width: 52px; height: 52px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
}
.wissen-card.quiz .wissen-card-icon { background: rgba(130,148,171,0.12); }
.wissen-card.guide .wissen-card-icon { background: rgba(196,149,106,0.12); }
.wissen-card-icon svg { width: 24px; height: 24px; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.wissen-card.quiz .wissen-card-icon svg { stroke: var(--primary-color); }
.wissen-card.guide .wissen-card-icon svg { stroke: var(--accent-color); }
.wissen-card h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 10px; }
.wissen-card > p { color: #777; font-size: 14px; line-height: 1.75; margin-bottom: 24px; }
.wissen-card-cta { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; }
.wissen-card.quiz .wissen-card-cta { color: var(--primary-color); }
.wissen-card.guide .wissen-card-cta { color: var(--accent-color); }
@media (max-width: 620px) { .wissen-grid { grid-template-columns: 1fr; } }


/* ########## Quiz ########## */

.quiz-wrap { max-width: 680px; margin: 0 auto; padding: 56px 0 72px; }
.quiz-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.quiz-counter { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #bbb; }
.quiz-progress-wrap { background: #e8ecf0; border-radius: 999px; height: 5px; margin-bottom: 36px; overflow: hidden; }
.quiz-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); border-radius: 999px; transition: width 0.4s ease; }
.quiz-step { display: none; animation: fadeIn 0.3s ease; }
.quiz-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.quiz-step-label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary-color); margin-bottom: 14px; }
.quiz-question { font-family: var(--font-heading); font-size: clamp(1.25rem, 3vw, 1.75rem); color: #2d3748; margin-bottom: 28px; line-height: 1.35; }
.quiz-options { display: flex; flex-direction: column; gap: 11px; margin-bottom: 32px; }
.quiz-option {
    display: block; width: 100%;
    padding: 15px 20px 15px 54px;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-color);
    background: #fff;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    text-align: left;
    line-height: 1.5;
    position: relative;
    font-family: var(--font-family);
}
.quiz-option::before {
    content: '';
    position: absolute;
    left: 20px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px;
    border: 2px solid #d0d8e0;
    border-radius: 50%;
    transition: border-color 0.2s, background 0.2s;
}
.quiz-option:hover { border-color: var(--primary-color); background: rgba(130,148,171,0.04); transform: translateX(3px); }
.quiz-option:hover::before { border-color: var(--primary-color); }
.quiz-option.selected { border-color: var(--primary-color); background: rgba(130,148,171,0.07); font-weight: 600; }
.quiz-option.selected::before { background: var(--primary-color); border-color: var(--primary-color); }
.quiz-next {
    display: inline-block;
    padding: 12px 36px;
    background: var(--primary-color);
    color: #fff; border: none;
    border-radius: 30px;
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 16px rgba(130,148,171,0.3);
    font-family: var(--font-family);
}
.quiz-next:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(130,148,171,0.4); }
.quiz-next:disabled { opacity: 0.35; cursor: not-allowed; }

.quiz-result { text-align: center; padding: 8px 0 16px; animation: fadeIn 0.4s ease; }
.quiz-result-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 22px;
}
.badge-green { background: rgba(76,175,80,0.1); color: #2e7d32; }
.badge-orange { background: rgba(255,152,0,0.1); color: #e65100; }
.badge-red { background: rgba(196,149,106,0.15); color: #7d3c0f; }
.quiz-result h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 16px; color: #2d3748; }
.quiz-result > p { color: #666; font-size: 15px; line-height: 1.85; max-width: 500px; margin: 0 auto 36px; }
.quiz-result-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.quiz-reset-btn {
    background: transparent; border: 2px solid #dde1e7;
    color: #999; padding: 11px 24px;
    border-radius: 30px; font-size: 13px;
    font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; cursor: pointer;
    font-family: var(--font-family);
    transition: border-color 0.2s, color 0.2s;
}
.quiz-reset-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }


/* ########## Pferdesprache ########## */

.ps-intro { max-width: 660px; margin-bottom: 60px; }
.ps-intro p { font-size: 1.05rem; color: #666; line-height: 1.85; }
.ps-section { margin-bottom: 64px; }
.ps-section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.ps-section-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(130,148,171,0.1);
}
.ps-section-icon svg { width: 22px; height: 22px; stroke: var(--primary-color); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ps-section-head h2 { margin-bottom: 0; font-size: clamp(1.2rem, 3vw, 1.6rem); }
.ps-section-head h2::after { display: none; }
.ps-section-sub { color: #999; font-size: 14px; margin-bottom: 24px; padding-left: 60px; }
.ps-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ps-card { border-radius: 12px; padding: 22px 20px; border: 1px solid transparent; }
.ps-card.green { background: #f3faf3; border-color: #c8e6c9; }
.ps-card.orange { background: #fff9f2; border-color: #ffe0b2; }
.ps-card.red { background: #fdf3f0; border-color: #ffccbc; }
.ps-card-label {
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 7px;
}
.ps-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ps-card.green .ps-dot { background: #43a047; }
.ps-card.orange .ps-dot { background: #fb8c00; }
.ps-card.red .ps-dot { background: #e64a19; }
.ps-card.green .ps-card-label { color: #2e7d32; }
.ps-card.orange .ps-card-label { color: #bf360c; }
.ps-card.red .ps-card-label { color: #bf360c; }
.ps-card h4 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 8px; color: #333; font-weight: 600; }
.ps-card p { font-size: 13px; color: #666; line-height: 1.65; margin: 0; }
.ps-cta-box {
    background: linear-gradient(135deg, rgba(130,148,171,0.08), rgba(196,149,106,0.08));
    border-radius: var(--border-radius);
    padding: 48px 40px;
    text-align: center;
    border: 1px solid rgba(130,148,171,0.15);
    margin-bottom: 16px;
}
.ps-cta-box h2 { margin-bottom: 12px; }
.ps-cta-box h2::after { display: none; }
.ps-cta-box p { color: #777; font-size: 15px; max-width: 480px; margin: 0 auto 28px; line-height: 1.75; }
@media (max-width: 720px) {
    .ps-cards { grid-template-columns: 1fr; }
    .ps-section-sub { padding-left: 0; }
    .ps-cta-box { padding: 36px 24px; }
}


/* ########## Animations & UX Refinements ########## */

/* Page fade-in on load */
body { animation: pageIn 0.3s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body.page-leaving { opacity: 0; transition: opacity 0.22s ease; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: rippleOut 0.6s linear forwards;
    pointer-events: none;
    width: 140px; height: 140px;
    margin-left: -70px; margin-top: -70px;
}
@keyframes rippleOut { to { transform: scale(4); opacity: 0; } }

/* Active nav link */
.nav a.nav-active { color: var(--primary-color) !important; font-weight: 700; }
html:not(.scrolled) .nav a.nav-active { opacity: 1;}
.nav a.nav-active::after { width: 100% !important; }

/* Horse runner */
.horse-runner {
    position: absolute;
    bottom: 22px;
    left: 0;
    z-index: 3;
    pointer-events: none;
    transform: translateX(calc(100vw + 140px));
}
.horse-runner.horse-go {
    animation: horseRun 4s cubic-bezier(0.4, 0, 0.55, 1) forwards;
}
@keyframes horseRun {
    0%   { transform: translateX(calc(100vw + 140px)); }
    100% { transform: translateX(-180px); }
}
.horse-inner {
    animation: horseGallop 0.3s ease-in-out infinite;
}
@keyframes horseGallop {
    0%, 100% { transform: translateY(0) rotate(0.8deg); }
    50%       { transform: translateY(-9px) rotate(-0.8deg); }
}
.horse-runner img {
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.28;
    display: block;
}
