/* ==========================================================
   apres-Immobilien CMS — Frontend Stylesheet
   Design 1:1 basierend auf apres.de-Theme
   Farben, Schriften und Layout originalgetreu übernommen
   ========================================================== */

/* --- Open Sans (variable font, 300-800) --- */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 800;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/open-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 800;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/open-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 300 800;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/open-sans-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 300 800;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/open-sans-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Annie Use Your Telescope (400 only) --- */
@font-face {
    font-family: 'Annie Use Your Telescope';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/annie-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Annie Use Your Telescope';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/annie-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Originalfarben apres.de */
    --text: #0C2B3F;
    --text-dark: #00172e;
    --text-light:#ffffff;

    --basecolor1-light-dropdown: #F3F5F8;
    --basecolor1-light-hover: #F9FAFD;
    
    --basecolor1-light:     #eee5d8;
    --basecolor1:           #EEDEC7;
    --basecolor1-dark:      #d4c2a8;
    --basecolor2-light:     #aca19b;
    --basecolor2:           #AB998F;
    --basecolor2-dark:      #8f7e74;
    --basecolor3-light:     #5a4a45;
    --basecolor3:           #59423A;
    --basecolor3-dark:      #46332c;
    --basecolor4-light:     #4b5d68;
    --basecolor4:           #3E596A;
    --basecolor4-dark:      #2f4755;
    --basecolor5-light:     #122e41;
    --basecolor5:           #0C2B3F;
    --basecolor5-dark:      #081f2e;
    --accent:               #ff5100;
    --accent-light:         #ff6a00;
    --accent-bright:        #9c3403;
    --accent-bright-fire:   #c94c35;


    /* Schriften */
    --font-body: 'Open Sans', sans-serif;
    --font-nav: 'Open Sans', sans-serif;
    --font-accent: 'Annie Use Your Telescope', cursive, sans-serif;

    /* Buttons */
    --btn-t1-bg: var(--basecolor5);
    --btn-t1-color: var(--text-light);
    --btn-t1-border: var(--basecolor5);
    --btn-t1-hover-bg: var(--basecolor4);
    --btn-t1-hover-color: var(--text-light);
    --btn-t1-hover-border: var(--basecolor4);

    --btn-t2-bg: var(--accent-bright);
    --btn-t2-color: var(--text-light);
    --btn-t2-border: var(--accent-bright);
    --btn-t2-hover-bg: var(--white);
    --btn-t2-hover-color: var(--accent-bright);
    --btn-t2-hover-border: var(--accent-bright);

    --btn-t3-color: var(--accent-bright);
    --btn-t3-hover-color: var(--accent-bright-fire);

    /* Layout */
    --container: 1140px;
    --radius: 10px;
    --radius-lg: 15px;
    --radius-card: 15px;
    --shadow: 0 2px 8px rgba(17,33,69,.08);
    --shadow-lg: 0 8px 24px rgba(17,33,69,.12);
    --shadow-light: 0 8px 24px rgba(255, 255, 255, 0.5);
    --header-height: 150px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    /* background: var(--basecolor1); */
background: linear-gradient(
    to bottom,
    var(--basecolor1-light) 30%,
    var(--basecolor1) 40%,
    var(--basecolor1-dark) 100%
    );
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--basecolor5);
    line-height: 1.2;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--basecolor5); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 5%; }

/* ==========================================================
   HEADER — Original: dunkelblau mit weißer Nav
   ========================================================== */
.site-header {
    background: var(--basecolor5);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 80px;
    box-shadow: var(--shadow-light);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.logo img {
    height: 120px;
    width: auto;
    padding: 10px;
}
.logo-text {
    font-family: var(--font-accent);
    font-size: 28px;
    font-weight: 400;
    font-style: italic;
    color: var(--text-light);
    text-decoration: none;
}
.logo-text:hover { text-decoration: none; }

.header-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-family: var(--font-nav);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}
.header-contact a { color: var(--text-light); text-decoration: none; }
.header-contact a:hover { color: var(--accent-light); text-decoration: none; }

/* Navigation */
.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}
.main-nav a {
    font-family: var(--font-nav);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 0;
    transition: color .2s;
}
.main-nav a:hover,
.main-nav a.active {
    color: #B6B6B6;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
}

/* ==========================================================
   HERO SLIDER
   ========================================================== */
.hero {
    background: var(--basecolor1-light);
    color: var(--basecolor5);
    padding: 0px 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Hintergrundbilder (sliden) */
.hero-backgrounds {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--basecolor1-light);
    opacity: 0;
    transition: opacity 1s ease;
}
.hero-bg.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--basecolor1-light) 0%, #eedec7a1 45%, #d4c2a800 100%);
    z-index: 1;
    backdrop-filter: blur(3px);
    mask-image: linear-gradient(
      to bottom,
      black 0% 100%,
      transparent 50% 100%
    );

  }


/* Layout: Text links, Person rechts */
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Text-Slides */
.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    min-height: 250px;
}
.hero-slide {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity .8s ease;
    pointer-events: none;
}
.hero-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}
.hero h1 {
    font-family: var(--font-body);
    font-size: 42px;
    font-weight: 400;
    color: var(--basecolor5);
    margin-bottom: 16px;
    line-height: 1.15;
}
.hero p {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 28px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* Personenbild (freigestellt, rechts) */
.hero-person {
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}
.hero-person img {
    max-height: 600px;
    width: auto;
    object-fit: contain;
}

/* Dot-Navigation */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--basecolor5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .3s;
}
.hero-dot.active {
    background: var(--basecolor5);
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 40px 0; min-height: auto; }
    .hero-inner { flex-direction: column-reverse; text-align: center; }
    .hero-content { max-width: 100%; min-height: auto; }
    .hero-slide { position: relative; }
    .hero-person img { max-height: 280px; }
    .hero h1 { font-size: 28px; }
    .hero-actions { justify-content: center; }
    .hero-overlay { background: rgba(255,255,255,.8); }
    .btn-t3 { font-size: 36px; }
}

/* ==========================================================
   BUTTONS — Original: border-radius 20px, accent/primary
   ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-lg);
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: all .25s ease;
}
.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

/* btn-t1: Standard-Button */
.btn-t1 {
    background: var(--btn-t1-bg);
    color: var(--btn-t1-color);
    border-color: var(--btn-t1-border);
}
.btn-t1:hover {
    background: var(--btn-t1-hover-bg);
    color: var(--btn-t1-hover-color);
    border-color: var(--btn-t1-hover-border);
}

/* btn-t2: Akzent-Button */
.btn-t2 {
    background: var(--btn-t2-bg);
    color: var(--btn-t2-color);
    border-color: var(--btn-t2-border);
}
.btn-t2:hover {
    background: var(--btn-t2-hover-bg);
    color: var(--btn-t2-hover-color);
    border-color: var(--btn-t2-hover-border);
}

/* btn-t3: Display/Deko-Button (Annie-Schrift) */
.btn-t3 {
    background: transparent;
    color: var(--btn-t3-color);
    border-color: transparent;
    font-family: var(--font-accent);
    font-size: 55px;
    padding: 0;
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
}
.btn-t3:hover {
    background: transparent;
    color: var(--btn-t3-hover-color);
    transform: none;
}

/* Legacy — alte Klassen bleiben für Übergang */
.btn-primary { background: var(--btn-t2-bg); color: var(--btn-t2-color); border-color: var(--btn-t2-border); }
.btn-primary:hover { background: var(--btn-t2-hover-bg); color: var(--btn-t2-hover-color); border-color: var(--btn-t2-hover-border); }
.btn-accent { background: var(--accent); color: var(--text-light); border-color: var(--accent); }
.btn-accent:hover { background: var(--white); color: var(--accent); border-color: var(--accent); }
.btn-outline { background: var(--btn-t1-bg); color: var(--btn-t1-color); border-color: var(--btn-t1-border); }
.btn-outline:hover { background: var(--btn-t1-hover-bg); color: var(--btn-t1-hover-color); }
.btn-outline-white { background: transparent; color: var(--text-light); border: 3px solid var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--basecolor5); }

.btn-lg {
    padding: 16px 36px;
    font-size: 20px;
}
.btn-sm {
    padding: 10px 30px;
    font-size: 14px;
    border-radius: var(--radius);
}

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { 
    padding-top: 30px;
    padding-bottom: 60px; 
}
.section--alt { background: var(--basecolor1-light); }
.section--basecolor5 { background: var(--basecolor5); color: var(--text-light); }
.section-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 36px;
    text-align: center;
    color: var(--basecolor5);
}
.section--basecolor5 .section-title { color: var(--text-light); }

/* ==========================================================
   REAL ESTATE CARDS — Original: border-radius 27px, 5px border
   ========================================================== */
.real-estate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.real-estate-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffffad;
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: box-shadow .3s, transform .3s;
    z-index: 0;
}
.real-estate-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.real-estate-card-image {
    display: block;
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--basecolor1-light);
}
.real-estate-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s, opacity .6s;
}
/* Slideshow: nur aktives Bild sichtbar */
.real-estate-card-image img.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
}
.real-estate-card-image img.slide.active {
    opacity: 1;
}
.real-estate-card:hover .real-estate-card-image img {
    transform: scale(1.05);
}
/* Verkauft-Banner (schräg über der Kachel) */
.sold-banner {
    position: absolute;
    top: 22px;
    right: -34px;
    background: var(--danger, #ef4444);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 40px;
    transform: rotate(35deg);
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    pointer-events: none;
}
.real-estate-card.is-sold {
    opacity: .85;
}
.real-estate-card.is-sold:hover {
    opacity: 1;
}
.slide-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,.55);
    color: #fff;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    pointer-events: none;
}
.real-estate-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text);
    font-size: 14px;
    background: var(--basecolor1-light);
}
.real-estate-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent-bright);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.real-estate-card-external {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,.6);
    color: var(--text-light);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}
/* Video-/360°-Symbol-Links oben rechts auf der Kachel (statt dem ↗) */
.real-estate-card { position: relative; }
.real-estate-card-media {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 6px;
    z-index: 3;
}
.real-estate-card-media a {
    display: block;
    line-height: 0;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.5));
    transition: transform .15s;
}
.real-estate-card-media a:hover { transform: scale(1.1); }
.real-estate-card-media img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}
.real-estate-card-featured {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: var(--basecolor5);
    color: var(--text-light);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.real-estate-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
}
.real-estate-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 20px 24px;
}
/* Preis/Footer immer ans untere Ende der Karte schieben -> fluchtet mit Nachbarkarten */
.real-estate-card-body > *:last-child {
    margin-top: auto;
}
.real-estate-card-body h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--basecolor5);
    /* Feste Höhe: immer 3 Zeilen, längere Titel werden abgeschnitten */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.25em * 3);
}
.real-estate-card-body h3 a {
    color: var(--basecolor5);
    text-decoration: none;
    font-weight: 400;
}
.real-estate-card-body h3 a:hover { color: var(--accent); text-decoration: none; }

.real-estate-card-location {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 12px;
}
.real-estate-card-desc {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 20px;
    /* Feste Höhe: immer 3 Zeilen reservieren, längeren Text abschneiden */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.5em * 3);
}
.real-estate-card-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 0px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent);
}
.real-estate-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.real-estate-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 55px;
}
.real-estate-card-price {
    font-size: 45px;
    font-style: italic;
    font-family: var(--font-accent);
    font-weight: 400;
    color: var(--accent-bright);

}
/* "Preis auf Anfrage" – kleiner & gut lesbar statt großer Preisschrift.
   Größe ist relativ (em) zum jeweiligen Preis-Container (Karte 45px, Modal/Detail 32px). */
.price-on-request {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.55em;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: normal;
    white-space: nowrap;
    vertical-align: middle;
}
.btn-mehr {
    white-space: nowrap;
    background: var(--basecolor4);
    border-color: var(--basecolor4);
    color: var(--text-light);
    font-weight: 600;
}
.btn-mehr:hover {
    background: var(--basecolor5);
    color: #fff;
}

/* === Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-content {
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
    background: var(--basecolor1-light);
    padding: 52px 36px;
    border: 3px solid var(--basecolor5);
}
.modal-header {
    flex-shrink: 0;
    padding: 32px 32px 0;
}
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 32px 32px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: var(--text-muted, #999); }
.modal-close {
    position: absolute;
    top: 24px;
    right: 28px;
    z-index: 2;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted, #666);
    line-height: 1;
}
.modal-close:hover { color: #000; }
.modal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    padding-right: 40px;
}
.modal-keyfacts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 16px 0 0;
    padding: 14px 0 16px;
    border-top: 1px solid var(--border, #e5e7eb);
    font-size: 14px;
}
.modal-keyfacts span strong {
    display: block;
    font-size: 22px;
    color: var(--basecolor5, #2c5f7c);
}
.modal-price {
    font-size: 32px !important;
    font-weight: 400;
    color: var(--accent);
    margin-left: auto;
}
.modal-section {
    margin-bottom: 20px;
}
.modal-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--basecolor5, #2c5f7c);
}
.modal-section .prose {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text, #333);
}
.modal-cta {
    margin-top: 24px;
    text-align: center;
}
/* === Energieeffizienzklasse-Skala === */
.energy-scale {
    position: relative;
    margin: 12px 0 50px;
}
.energy-scale-bar {
    display: flex;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(to right, #00a651, #59b946, #c8d841, #fff200, #fcb814, #f37021, #ed1c24, #c1272d, #8b0000);
}
.energy-class {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
    border-right: 1px solid rgba(255,255,255,.25);
}
.energy-class:last-child { border-right: none; }
.energy-class.is-active {
    font-size: 16px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.energy-values {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted, #888);
    padding: 2px 0;
}
.energy-gradient {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #00a651, #59b946, #c8d841, #fff200, #fcb814, #f37021, #ed1c24, #c1272d, #8b0000);
    margin-bottom: 4px;
}
.energy-arrow {
    position: relative;
    width: 0;
    transform: translateX(-50%);
}
.energy-arrow::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 9px solid var(--basecolor5, #2c5f7c);
}
.energy-arrow-label {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    color: var(--basecolor5, #2c5f7c);
    background: var(--basecolor4, #eff4ff);
    padding: 2px 8px;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .modal-header { padding: 20px 20px 0; }
    .modal-body { padding: 0 20px 20px; }
    .modal-keyfacts { gap: 10px; }
    .energy-class { font-size: 10px; }
    .energy-class.is-active { font-size: 14px; }
}

/* ==========================================================
   PROPERTY DETAIL
   ========================================================== */
.property-detail { margin-top: 24px; }
.property-gallery { margin-bottom: 32px; }
.gallery-main img { border-radius: var(--radius-card); width: 100%; }
.gallery-thumbs {
    display: flex; gap: 8px; margin-top: 12px; overflow-x: auto;
}
.gallery-thumbs img {
    width: 100px; height: 70px; object-fit: cover;
    border-radius: var(--radius); cursor: pointer;
    border: 2px solid transparent; transition: border-color .2s;
}
.gallery-thumbs img:hover { border-color: var(--accent); }

.property-price-big {
    font-size: 32px; font-weight: 400; color: var(--basecolor5);
    margin: 16px 0 20px;
}
.property-key-facts {
    display: flex; gap: 24px; flex-wrap: wrap;
    margin-bottom: 28px; padding: 20px;
    background: var(--basecolor1-light); border-radius: var(--radius-lg);
}
.property-key-facts .fact {
    text-align: center; min-width: 100px;
}
.property-key-facts .fact strong {
    display: block; font-size: 22px; font-weight: 400; color: var(--basecolor5);
}
.property-key-facts .fact span {
    font-size: 12px; color: var(--text); text-transform: uppercase;
    letter-spacing: .5px;
}

.property-section { margin-bottom: 28px; }
.property-section h2 {
    font-size: 22px; font-weight: 400; color: var(--basecolor5);
    margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 2px solid var(--basecolor1-light);
}

.prose { line-height: 1.7; color: var(--text); }
.prose p { margin-bottom: 16px; }
.prose h2 { font-size: 1.4em; margin-top: 1.5em; margin-bottom: .5em; }
.prose h3 { font-size: 1.2em; margin-top: 1.3em; margin-bottom: .4em; }
.prose h4 { font-size: 1.05em; margin-top: 1.2em; margin-bottom: .3em; }
.prose ul, .prose ol { margin: 0 0 16px 24px; }
.prose li { margin-bottom: 4px; }

/* Häkchen-Liste */
.prose ul.list-check { list-style: none; padding-left: 0; margin-left: 0; }
.prose ul.list-check li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.prose ul.list-check li::before { content: "\2713"; position: absolute; left: 0; color: var(--basecolor3, #2a6496); font-weight: 700; font-size: 1.1em; }

/* Pfeil-Liste */
.prose ul.list-arrow { list-style: none; padding-left: 0; margin-left: 0; }
.prose ul.list-arrow li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.prose ul.list-arrow li::before { content: "\276F"; position: absolute; left: 0; color: var(--basecolor4, #e94560); font-weight: 700; }

/* Nummerierte Akzent-Liste */
.prose ol.list-accent { list-style: none; padding-left: 0; margin-left: 0; counter-reset: accent-counter; }
.prose ol.list-accent li { position: relative; padding-left: 36px; margin-bottom: 10px; counter-increment: accent-counter; }
.prose ol.list-accent li::before { content: counter(accent-counter); position: absolute; left: 0; width: 24px; height: 24px; background: var(--basecolor1, #1a1a2e); color: var(--text-light, #fff); border-radius: 50%; font-size: 13px; font-weight: 700; text-align: center; line-height: 24px; }

.prose blockquote { border-left: 4px solid var(--basecolor3, #ccc); margin: 20px 0; padding: 12px 20px; font-style: italic; color: var(--basecolor5, #555); }
.prose table { border-collapse: collapse; width: 100%; margin: 20px 0; }
.prose td, .prose th { border: 1px solid #ddd; padding: 8px 12px; text-align: left; }
.prose th { background: var(--basecolor1-light, #f5f5f5); font-weight: 600; }

/* Bild-Positionierung */
.prose .img-left, .prose figure.img-left { float: left; margin: 4px 24px 12px 0; max-width: 45%; }
.prose .img-right, .prose figure.img-right { float: right; margin: 4px 0 12px 24px; max-width: 45%; }
.prose .img-center, .prose figure.img-center { display: block; margin: 24px auto; text-align: center; }
.prose .img-full { display: block; width: 100%; height: auto; margin: 24px 0; }
.prose figure { margin: 20px 0; }
.prose figcaption { font-size: 0.85em; color: var(--basecolor5, #666); margin-top: 6px; text-align: center; }
.prose img { max-width: 100%; height: auto; border-radius: 6px; }

/* Spalten-Layouts (CSS Grid) */
.prose .cols { display: grid; gap: 24px; margin: 24px 0; }
.prose .cols.cols-2 { grid-template-columns: 1fr 1fr; }
.prose .cols.cols-2-1 { grid-template-columns: 2fr 1fr; }
.prose .cols.cols-1-2 { grid-template-columns: 1fr 2fr; }
.prose .cols.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.prose .cols .col { min-width: 0; }
.prose .cols .col > *:first-child { margin-top: 0; }

/* Info-Box / CTA */
.prose .content-box { background: var(--basecolor1-light, #f0f4f8); border-left: 4px solid var(--basecolor3, #2a6496); padding: 16px 20px; margin: 24px 0; border-radius: 4px; }
.prose .content-box > *:first-child { margin-top: 0; }
.prose .content-box > *:last-child { margin-bottom: 0; }
.prose .content-cta { background: var(--basecolor1, #1a1a2e); color: #fff; padding: 32px; margin: 32px 0; border-radius: 8px; text-align: center; }
.prose .content-cta h3, .prose .content-cta h2 { color: #fff; margin-top: 0; }
.prose .content-cta p { color: rgba(255,255,255,.85); }
.prose .cta-link { display: inline-block; background: var(--basecolor4, #e94560); color: #fff; padding: 12px 28px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: opacity .2s; }
.prose .cta-link:hover { opacity: .85; }

/* Responsive: Spalten und Float-Bilder */
@media (max-width: 768px) {
    .prose .cols { grid-template-columns: 1fr !important; gap: 16px; }
    .prose .img-left, .prose figure.img-left,
    .prose .img-right, .prose figure.img-right { float: none; max-width: 100%; margin: 16px 0; }
}

.data-list { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; }
.data-list dt { font-weight: 600; color: var(--basecolor5); }
.data-list dd { color: var(--text); }

.feature-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    list-style: none;
    font-size: 14px;
    font-weight: 700;
}
.feature-list li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.property-cta {
    background: var(--basecolor1-light); border-radius: var(--radius-card);
    padding: 32px; text-align: center; margin-top: 32px;
    border: 3px solid var(--accent);
}
.property-cta h3 { font-size: 24px; margin-bottom: 8px; }
.property-cta p { color: var(--text); margin-bottom: 20px; }
.property-cta .btn { margin: 0 6px; }

/* ==========================================================
   PROPERTY FILTERS
   ========================================================== */
.real-estate-filters {
    display: flex; gap: 12px; flex-wrap: nowrap; align-items: normal;
    margin-bottom: 32px; padding-top: 20px; padding-bottom: 0px;
    background: var(--basecolor1-light); border-radius: var(--radius-lg);
}
.real-estate-filters input,
.real-estate-filters select {

}
.real-estate-filters input:focus,
.real-estate-filters select:focus {
    outline: none; border-color: var(--basecolor5);
}

/* ==========================================================
   CONSULTING CARDS
   ========================================================== */
.consulting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.consulting-card {
    display: block;
    padding: 36px;
    background: var(--basecolor4-light);
    border-radius: var(--radius-card);
    border: 3px solid transparent;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: all .3s;
}
.consulting-card:hover {
    background: var(--basecolor5);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    text-decoration: none;
}
.consulting-card h3 {
    color: var(--text-light);
    font-size: 22px;
    margin-bottom: 10px;
}
.consulting-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================================
   CTA BOX
   ========================================================== */
.cta-box {
    text-align: center;
    background: var(--basecolor1-light);
    border-radius: var(--radius-card);
    padding: 52px 36px;
    border: 3px solid var(--basecolor5);
}
.cta-box h2 {
    font-size: 30px;
    margin-bottom: 10px;
    color: var(--basecolor5);
}
.cta-box p {
    color: var(--text);
    margin-bottom: 24px;
    font-size: 22px;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================
   BLOG / NEWS
   ========================================================== */
.blog-list { display: grid; gap: 24px; }
.blog-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    background: var(--basecolor1-light);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .3s;
}
.blog-card:hover { box-shadow: var(--shadow-lg); }
.blog-card-image { overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body {
    padding: 24px 24px 24px 0;
    display: flex; flex-direction: column; justify-content: center;
}
.blog-card-body time {
    font-size: 14px; color: var(--text); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: .5px;
}
.blog-card-body .card-meta-row {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 6px;
}
.blog-card-body .card-meta-row time {
    margin-bottom: 0;
}
.blog-card-body .card-meta-row span::before {
    content: "|";
    margin: 0 8px;
    color: var(--basecolor2);
}
.blog-card-body h2 { font-size: 20px; margin-bottom: 8px; }
.blog-card-body h2 a { color: var(--basecolor5); text-decoration: none; }
.blog-card-body h2 a:hover { color: var(--accent); }
.blog-card-body p { font-size: 15px; color: var(--text); margin-bottom: 10px; }
.blog-card-body > a.btn-mehr { align-self: flex-end; margin-top: auto; }

/* ==========================================================
   BREADCRUMB
   ========================================================== */
.breadcrumb {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 20px;
    padding: 12px 0;
}
.breadcrumb a { color: var(--accent); }


/* ==========================================================
   CONTACT FORM
   ========================================================== */

.ct-panel {
    position: relative;
    isolation: isolate;
    width: 1024px;
    max-width: 100%;
    background: var(--basecolor1-light);
    border-radius: var(--radius-card);
    padding: 30px;
    border: 3px solid var(--basecolor5);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

/* ==========================================================
   FORMS
   ========================================================== */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; margin-bottom: 5px;
    font-weight: 600; font-size: 15px; color: var(--basecolor5);
}
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="url"], input[type="tel"],
input[type="date"], input[type="datetime-local"],
select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--basecolor1-dark);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background-color: var(--basecolor1-light-dropdown);
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--basecolor5);
    box-shadow: 0 0 0 3px rgba(17,33,69,.08);
}
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-help { font-size: 14px; color: var(--text); margin-top: 4px; opacity: .7; }

/* Checkbox / Consent */
input[type="checkbox"] {
    width: 18px; height: 18px; margin-right: 8px;
    accent-color: var(--basecolor5); vertical-align: middle;
}

/* ==========================================================
   FOOTER — Original: dunkelblau #112145
   ========================================================== */
.site-footer {
    background: var(--basecolor5);
    color: rgba(255,255,255,.85);
    padding: 52px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    margin-bottom: 36px;
}
.footer-col h4 {
    color: var(--text-light);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
}
.footer-col p, .footer-col li {
    font-size: 15px;
    line-height: 1.9;
}
.footer-col ul { list-style: none; }
.footer-col a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-col a:hover { color: var(--text-light); text-decoration: none; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.footer-social { display: flex; gap: 20px; }
.footer-social a {
    color: rgba(255,255,255,.6);
    font-weight: 600;
    font-size: 14px;
    transition: color .2s;
}
.footer-social a:hover { color: var(--text-light); text-decoration: none; }

/* ==========================================================
   UTILITIES
   ========================================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text); opacity: .6; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
    .header-inner { flex-wrap: wrap; }
    .container { padding: 0 8%; }
}

@media (max-width: 900px) {
    .hero h1 { font-size: 32px; }
    .hero { padding: 40px 0; }
    .consulting-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .real-estate-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .blog-card { grid-template-columns: 1fr; }
    .blog-card-body { padding: 20px; }
    .data-list { grid-template-columns: 1fr; }
    .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    :root { --header-height: 65px; }
    body { font-size: 16px; }

    .site-header { min-height: 65px; }
    .header-inner { padding: 8px 0; }
    .logo img { height: 40px; }
    .logo-text { font-size: 22px; }
    .header-contact { display: none; }

    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--basecolor5);
        padding: 16px 5%;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0,0,0,.2);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .nav-toggle { display: block; }

    .hero h1 { font-size: 26px; }
    .section { padding: 40px 0; }
    .section-title { font-size: 24px; }
    .container { padding: 0 5%; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

    .real-estate-grid { grid-template-columns: 1fr; }
    .property-key-facts { gap: 16px; }
    .property-cta { padding: 24px 20px; }
    .real-estate-filters { flex-direction: column; }
    .real-estate-filters input,
    .real-estate-filters select { width: 100%; }

    /* Valuation Tool responsive */
    .vt-progress-step { font-size: 0; padding: 10px 4px; }
    .vt-progress-step .vt-step-num { font-size: 13px; margin: 0; }
    .vt-type-cards { flex-direction: column; }
    .vt-factors { grid-template-columns: 1fr; }
    .vt-result-price { font-size: 36px; }
    .vt-result-details { grid-template-columns: 1fr; }
    .vt-result-cta { padding: 24px 16px; }
}
/* --- Static pages Detail --- */
.static-page h2  {
    padding: 20px 0;
}

.static-page h1  {
    font-size: 55px;
    font-weight: 400;
}

.static-page h2  {
    font-size: 30px;
    font-weight: 400;
}

.static-page .prose h2 {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: var(--basecolor5);
    color: var(--text-light);
    padding: 0.5em;
    padding-left: max(1em, calc((100vw - 100%) / 2));
    margin-top: 5px;
}

.static-page h4  {
    font-size: 22px;
    font-weight: 400;
    padding-bottom: 10px;
}

.static-page .prose p {
font-size: 14px;
}

.static-page .prose li {
font-size: 14px;
}


.static-page h3  {
    background: transparent;
    color: var(--accent-bright);
    font-family: var(--font-accent);
    font-size: 55px;
    padding: 0;
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    margin-top: 5px;
    transform: rotate(-5deg);
    margin-bottom: 5px;
    position: relative;
    top: -35px;
    text-shadow:
        -1px -1px 0 var(--basecolor1),
        1px -1px 0 var(--basecolor1),
        -1px  1px 0 var(--basecolor1),
        1px  1px 0 var(--basecolor1);
}

/* --- immo Index --- */



/* --- News Index --- */

.news-page, .news-index-page {
    padding: 0 0 20px;
}
.news-index-page h1 {
    background: transparent;
    color: var(--accent-bright);
    font-family: var(--font-accent);
    font-size: 80px;
    padding: 0;
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    transform: rotate(-5deg);
    position: relative;
    top: 0;
    text-shadow: -1px -1px 0 var(--basecolor1), 1px -1px 0 var(--basecolor1), -1px 1px 0 var(--basecolor1), 1px 1px 0 var(--basecolor1);
}
.news-card-readtime {
    color: var(--text-light);
    font-size: 13px;
}
.news-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 8px 0;
}
.news-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}
.news-pagination-info {
    padding: 6px 12px;
    color: var(--text-light);
}

/* --- News Detail --- */

.news-page .news-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}
.news-page .news-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-page .news-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.news-page .news-hero-content {
    position: relative;
    padding: 32px;
    color: #fff;
}
.news-page .news-hero-content h1 {
    width: 100vw;
    margin-left: calc(-50vw + 60%);
    background: var(--basecolor5);
    color: var(--text-light);
    padding: 0.5em;
    padding-left: max(1em, calc((100vw - 100%) / 2));
}
.news-page .news-hero-badge {
    margin-bottom: 8px;
    display: inline-block;
}
.news-page .news-hero-meta {
    font-size: 14px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: .9;
    padding-left: max(1em, calc((100vw - 100%) / 2));
    margin-left: calc(-50vw + 60%);
}
.news-page .news-detail-header {
    max-width: 1024px;
    margin: 0 auto 24px;
}
.news-page .news-detail-header h1 {
    margin-bottom: 8px;
}
.news-page .news-detail-meta {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.news-page .news-detail-excerpt {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.news-page .prose p {
    font-size: 14px;
}
.news-page .prose li {
    font-size: 14px;
}
.news-page .news-detail-tags {
    display: none;
    margin-top: 24px;
    gap: 8px;
    flex-wrap: wrap;
}
.news-page .news-detail-sources {
    margin-top: 32px;
    padding: 16px 20px;
    background: var(--basecolor1-light, #f5f5f5);
    border-radius: var(--radius);
    font-size: 14px;
}
.news-page .news-detail-sources ul {
    margin: 8px 0 0 20px;
    padding: 0;
}
.news-page .news-detail-linked {
    margin-top: 24px;
}
.news-page .news-detail-linked-label {
    font-size: 14px;
    font-weight: 700;
}
.news-page .news-detail-linked-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* --- Blog Detail --- */

.blog-page, .blog-index-page {
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 20px;
    padding-left: 0px;
}

.blog-index-page h1 {
    background: transparent;
    color: var(--accent-bright);
    font-family: var(--font-accent);
    font-size: 80px;
    padding: 0;
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    transform: rotate(-5deg);
    position: relative;
    top: 0px;
    text-shadow: -1px -1px 0 var(--basecolor1), 1px -1px 0 var(--basecolor1), -1px 1px 0 var(--basecolor1), 1px 1px 0 var(--basecolor1);
}

.blog-page .prose p {
    font-size: 14px;
}
.blog-page .prose li {
    font-size: 14px;
}
.blog-page .blog-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}
.blog-page .blog-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-page .blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.blog-page .blog-hero-content {
    position: relative;
    padding: 32px;
    color: #fff;
}
.blog-page .blog-hero-content h1 {
    width: 100vw;
    margin-left: calc(-50vw + 60%);
    background: var(--basecolor5);
    color: var(--text-light);
    padding: 0.5em;
    padding-left: max(1em, calc((100vw - 100%) / 2));
}
.blog-page .blog-hero-meta {
    font-size: 14px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: .9;
    padding-left: max(1em, calc((100vw - 100%) / 2));
    margin-left: calc(-50vw + 60%);
}
.blog-page .blog-detail-header {
    max-width: 1024px;
    margin: 0 auto 24px;
}
.blog-page .blog-detail-header h1 {
    margin-bottom: 8px;
}
.blog-page .blog-detail-meta {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.blog-page .blog-detail-excerpt {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.blog-page .blog-detail-tags {
    display:none;
    margin-top: 24px;
    gap: 8px;
    flex-wrap: wrap;
}
.blog-page .blog-detail-sources {
    margin-top: 32px;
    padding: 16px 20px;
    background: var(--basecolor1-light, #f5f5f5);
    border-radius: var(--radius);
    font-size: 14px;
}
.blog-page .blog-detail-sources ul {
    margin: 8px 0 0 20px;
    padding: 0;
}
.blog-page .blog-detail-linked {
    margin-top: 24px;
}
.blog-page .blog-detail-linked-label {
    font-size: 14px;
    font-weight: 700;
}
.blog-page .blog-detail-linked-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.blog-page .blog-detail-back {
    margin-top: 32px;
}

/* ==========================================================
   Wertermittlung Wizard — 16:9 Bühne mit Slide-Animation
   ========================================================== */

/* --- Intro --- */
.vt-page .vt-intro {
    font-size: 17px;
    color: var(--basecolor4);
    margin-bottom: 32px;
    text-align: left;
    padding: 0px;
}

/* --- Wizard Container: feste 16:9 Bühne --- */
.vt-wizard {
    position: relative;
    isolation: isolate;
    width: 1024px;
    max-width: 100%;
    height: 600px;
    background: var(--basecolor1-light);
    border-radius: var(--radius-card);
    padding: 0px;
    border: 3px solid var(--basecolor5);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

/* --- Dots Progress --- */
.vt-dots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: var(--basecolor5);
  z-index: 1;
}
.vt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--basecolor1-dark);
    transition: all .3s ease;
    cursor: default;
}
.vt-dot.active {
    background: var(--accent-bright);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(156,52,3,.15);
}
.vt-dot.done {
    background: var(--basecolor4);
}
.vt-step-label {
    display:none;
    text-align: center;
    font-size: 12px;
    color: var(--basecolor2);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* --- Viewport & Track (Slide) --- */
.vt-viewport {
    position: relative;
    z-index: 2;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}
.vt-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s cubic-bezier(.4, 0, .2, 1);
}
.vt-screen {
    position: relative;
    isolation: isolate;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--basecolor2-light) transparent;
}

/* --- Screen headings --- */
.vt-screen h2 {
    position: relative;
    z-index: 3;
    top: -5px;
    left: 5px;
    background: transparent;
    color: var(--accent-bright);
    font-family: var(--font-accent);
    font-size: 65px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    transform: rotate(-5deg);
    text-shadow: -1px -1px 0 var(--basecolor1), 1px -1px 0 var(--basecolor1), -1px 1px 0 var(--basecolor1), 1px 1px 0 var(--basecolor1);
}
.vt-hint {
    text-align: center;
    font-size: 30px;
    color: var(--basecolor2-dark);
    margin-bottom: 0px;
    flex-shrink: 0;
    margin-top: 10px;
}

/* --- Navigation: immer sichtbar am unteren Rand --- */
.vt-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
    background: var(--basecolor1-dark);
}

.vt-nav button {
margin: 10px;
}

/* --- Type Cards (Screen 1) --- */
.vt-type-cards {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 12px;
}
.vt-type-card {
    flex: 1;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    border: 2px solid var(--basecolor1-dark);
    border-radius: var(--radius-lg);
    background: #fff;
    cursor: pointer;
    transition: all .25s ease;
    text-align: center;
}
.vt-type-card input { position: absolute; opacity: 0; pointer-events: none; }
.vt-type-card:hover {
    border-color: var(--basecolor4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.vt-type-card.active {
    border-color: var(--accent-bright);
    background: linear-gradient(135deg, rgba(156,52,3,.03), rgba(156,52,3,.09));
    box-shadow: 0 4px 20px rgba(156,52,3,.15);
}
.vt-type-icon { font-size: 40px; line-height: 1; }
.vt-type-label { font-size: 15px; font-weight: 700; color: var(--basecolor5); }

/* --- Form Fields --- */
.vt-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    padding: 30px;
}
.vt-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--basecolor5);
    margin-bottom: 4px;
}
.vt-field input,
.vt-field select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--basecolor1-dark);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background-color: var(--basecolor1-light-dropdown);
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
.vt-field input:focus,
.vt-field select:focus {
    border-color: var(--basecolor4);
    box-shadow: 0 0 0 3px rgba(62,89,106,.12);
    outline: none;
}
.vt-field-sm { max-width: 140px; }
.vt-field-full { grid-column: 1 / -1; }

/* --- Factor Columns (Screen 3 & 4) --- */
.vt-page .vt-factors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--basecolor2-light) transparent;
    padding: 30px;
}
.vt-factor-col {
    padding: 10px 12px;
    width: 400px;
}
.vt-factor-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--basecolor1-dark);
}
.vt-factor-pos-title { color: var(--basecolor4-dark); border-color: var(--basecolor4); }
.vt-factor-neg-title { color: var(--accent-bright); border-color: var(--accent-bright); }

/* --- Chips (kompakt) --- */
.vt-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.vt-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border: 2px solid var(--basecolor1-dark);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background: var(--basecolor1-light-hover);
    transition: all .2s ease;
    user-select: none;
}
.vt-chip input { position: absolute; opacity: 0; pointer-events: none; }
.vt-chip:hover { border-color: var(--basecolor4); }
.vt-chip-pos.selected {
    background: var(--basecolor1-light-dropdown);
    border-color: var(--basecolor4);
    color: var(--basecolor4-dark);
}
.vt-chip-neg.selected {
    background: rgba(156,52,3,.1);
    border-color: var(--accent-bright);
    color: var(--accent-bright);
}

/* --- Gate Banner (Screen 6) --- */
.vt-gate {
    padding: 24px 20px;
}
.vt-gate p {
    text-align: center;
    font-size: 30px;
    color: var(--basecolor2-dark);
    margin-bottom: 0px;
    flex-shrink: 0;
    margin-top: 10px;
}

.vt-gate-icon { font-size: 44px; display: block; margin-bottom: 8px; }
.vt-gate h2 {
    position: relative;
    z-index: 3;
    top: -5px;
    left: 5px;
    background: transparent;
    color: var(--accent-bright);
    font-family: var(--font-accent);
    font-size: 65px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    transform: rotate(-5deg);
    text-shadow: -1px -1px 0 var(--basecolor1), 1px -1px 0 var(--basecolor1), -1px 1px 0 var(--basecolor1), 1px 1px 0 var(--basecolor1);
}

/* --- PLZ/Ort Autocomplete --- */
.vt-autocomplete {
    background: #fff;
    border: 2px solid var(--basecolor1-dark);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}
.vt-ac-item {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    color: var(--basecolor5);
}
.vt-ac-item:hover {
    background: var(--basecolor1-light);
    color: var(--accent-bright);
}

/* --- Consent --- */
.vt-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--basecolor4);
    padding-left: 30px;
    padding-right: 30px;
    cursor: pointer;
    margin-top: 12px;
    line-height: 1.5;
}
.vt-consent input { margin-top: 2px; flex-shrink: 0; }
.vt-consent a { color: var(--accent-bright); }

/* --- Result: Hero --- */
.vt-result-hero {
    text-align: center;
    color: var(--text-light);
    padding: 30px;
    flex-shrink: 0;
}
.vt-result-label {
    position: relative;
    z-index: 3;
    top: -5px;
    left: 5px;
    background: transparent;
    color: var(--accent-bright);
    font-family: var(--font-accent);
    font-size: 65px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    transform: rotate(-5deg);
    text-shadow: -1px -1px 0 var(--basecolor1), 1px -1px 0 var(--basecolor1), -1px 1px 0 var(--basecolor1), 1px 1px 0 var(--basecolor1);
}
.vt-result-price {
    font-size: 90px;
    font-weight: 700;
    color: var(--accent-bright);
    line-height: 1.1;
}
.vt-result-range {
    text-align: center;
    font-size: 30px;
    color: var(--basecolor2-dark);
    margin-bottom: 0px;
    flex-shrink: 0;
}
.vt-result-sqm {
    font-size: 14px;
    color: var(--accent-bright);
    opacity: .6;
    margin-top: 4px;
}

/* --- Result: Cards --- */
.vt-result-grid {
    display: none;
}
.vt-result-card {
    background: #fff;
    border: 1px solid var(--basecolor1-dark);
    border-radius: var(--radius);
    padding: 16px 18px;
}
.vt-result-card h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--basecolor5);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--basecolor1-light);
}
.vt-result-card dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 12px;
    font-size: 12px;
}
.vt-result-card dt { font-weight: 600; color: var(--basecolor4); }
.vt-result-card dd { color: var(--basecolor5); }

/* --- Result: Factor chips --- */
.vt-rfgroup { margin-bottom: 8px; }
.vt-rfgroup strong { font-size: 12px; display: block; margin-bottom: 4px; color: var(--basecolor5); }
.vt-rfchips { display: flex; flex-wrap: wrap; gap: 5px; }
.vt-rfchip {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}
.vt-rfchip-pos { background: rgba(62,89,106,.1); color: var(--basecolor4-dark); }
.vt-rfchip-neg { background: rgba(156,52,3,.08); color: var(--accent-bright); }

/* --- Result: Download --- */
.vt-result-download {
    text-align: center;
    margin-bottom: 20px;
}

/* --- Result: Disclaimer --- */
.vt-result-disclaimer {
    padding: 30px;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

/* --- Result: CTA --- */
.vt-result-cta {
    text-align: center;
    padding: 30px;
    color: var(--text-dark);
    background: var(--basecolor1-dark);
}
.vt-result-cta strong {
    color: var(--text-dark);
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
}
.vt-result-cta p {
    color: var(--text-dark);
    margin-bottom: 16px;
    font-size: 14px;
}
.vt-result-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Shake animation --- */
@keyframes vtShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
.vt-shake { animation: vtShake .4s ease; }

/* --- Responsive: unter 1024px füllt der Wizard die Breite --- */
@media (max-width: 1080px) {
    .vt-wizard {
        width: 100%;
        height: auto;
        min-height: 520px;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 700px) {
    .vt-wizard {
        padding: 20px 16px 0;
        border-width: 2px;
        aspect-ratio: auto;
        min-height: 480px;
        height: auto;
    }
    .vt-screen { min-height: 400px; }
    .vt-type-cards { flex-direction: column; align-items: stretch; }
    .vt-type-card {
        max-width: none;
        flex-direction: row;
        justify-content: flex-start;
        padding: 14px 18px;
        gap: 12px;
    }
    .vt-type-icon { font-size: 28px; }
    .vt-form-grid { grid-template-columns: 1fr; }
    .vt-field-sm { max-width: none; }
    .vt-page .vt-factors { grid-template-columns: 1fr; }
    .vt-result-grid { grid-template-columns: 1fr; }
    .vt-result-price { font-size: 30px; }
    .vt-result-hero { padding: 20px 14px; }
    .vt-result-cta { padding: 20px 14px; }
    .vt-gate { padding: 18px 14px; }
    .vt-screen h2 { font-size: 22px; }
}
