/* Wertepool Immobilien – Stylesheet */

/* ---------- Schrift (lokal, Barlow) ---------- */
@font-face{font-family:Barlow;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/barlow-400.woff2) format("woff2")}
@font-face{font-family:Barlow;font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/barlow-500.woff2) format("woff2")}
@font-face{font-family:Barlow;font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/barlow-600.woff2) format("woff2")}
@font-face{font-family:Barlow;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/barlow-700.woff2) format("woff2")}

/* ---------- Variablen ---------- */
:root{
  --white:#fff;
  --paragraphs-color:#434b50;
  --heading-color:#101419;
  --main-color:#101419;
  --background-color-1:#0464af;
  --background-color-2:#035fa7;
  --footer-color:#1f2231;
  --dark-paragraphs-color:#b5b7c3;
  --subtitle-line-color:#00d98e;
  --light-background-color:#f5f8fa;
  --border:#d7dbdf;
  --header-h:92px;
  --gap:14px;
}

/* ---------- Basis ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:var(--header-h)}
body{margin:0;min-height:100%;background:var(--white);color:var(--paragraphs-color);font-family:Barlow,Arial,sans-serif;font-size:18px;font-weight:400;line-height:1.8em}
img{max-width:100%;height:auto;vertical-align:middle;border:0}
h1,h2,h3,h4,h5,h6{color:var(--heading-color);font-weight:600;line-height:1.2em;margin:20px 0 10px}
h1{font-size:58px}h2{font-size:48px}h3{font-size:36px}
h4{font-size:30px;margin-top:10px}h5{font-size:24px;margin-top:10px}h6{font-size:18px;margin-top:10px;line-height:1.3em}
p{margin:0 0 10px}
a{color:var(--main-color);text-decoration:underline;transition:color .2s}
ul{margin:24px 0;padding-left:40px}
li{margin:4px 0;padding-left:10px;font-weight:500}
strong{font-weight:600}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:14px;top:-60px;z-index:200;background:var(--main-color);color:var(--white);padding:10px 16px;text-decoration:none}
.skip-link:focus{top:14px}
:focus-visible{outline:2px solid var(--subtitle-line-color);outline-offset:3px}

/* ---------- Buttons ---------- */
.btn{display:inline-block;border:0;cursor:pointer;text-align:center;letter-spacing:1.4px;text-transform:uppercase;padding:21px 30px 22px;font:500 14px/1.5em Barlow,Arial,sans-serif;text-decoration:none;transition:color .2s,background-color .2s}
.btn-dark{background:var(--main-color);color:var(--white)}
.btn-dark:hover{background:var(--background-color-1);color:var(--white)}
.btn-white{background:var(--white);color:var(--heading-color)}
.btn-white:hover{background:var(--main-color);color:var(--white)}

/* ---------- Header / Navigation ---------- */
.site-header{position:fixed;inset:0 0 auto;z-index:100}
.header-bar{position:relative;display:flex;justify-content:space-between;align-items:center;height:var(--header-h);padding:0 14px}
.header-bg{position:absolute;inset:0;background:var(--white);box-shadow:0 0 5px #00000026;transform:scaleY(0);transform-origin:50% 0;transition:transform .35s ease}
.site-header.dark .header-bg{background:var(--background-color-1)}
.site-header.scrolled .header-bg{transform:scaleY(1)}
.header-left,.header-right{position:relative;display:flex;align-items:center}
.logo-link{display:flex;align-items:center;padding:15px;transition:transform .2s}
.logo-link:hover{transform:scale(1.05)}
.logo{height:58px;width:auto}
.main-nav{display:flex;align-items:center}
.nav-link{display:block;padding:20px 26px;color:var(--heading-color);letter-spacing:1.4px;text-transform:uppercase;font-size:14px;font-weight:500;line-height:1.5em;text-decoration:none;transition:color .2s}
.nav-link:hover{color:var(--background-color-1)}
.site-header.dark .nav-link{color:var(--white)}
.site-header.dark .nav-link:hover{color:var(--dark-paragraphs-color)}
.nav-link[aria-current=page]{color:var(--background-color-1)}
.site-header.dark .nav-link[aria-current=page]{color:var(--white)}
.header-cta{flex:none}
.nav-toggle{display:none;background:none;border:0;padding:20px 18px;cursor:pointer;color:var(--heading-color)}
.site-header.dark .nav-toggle{color:var(--white)}
.nav-toggle svg{display:block;width:24px;height:24px}

/* ---------- Sektionen ---------- */
.band-blue{background-image:linear-gradient(150deg,var(--background-color-1),var(--background-color-2))}
.band-white,.band-light{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:140px 14px}
.band-white{background:var(--white)}
.band-light{background:var(--light-background-color)}
.band-light.first{margin-top:var(--header-h)}
.band{display:flex;flex-direction:column;align-items:center;padding:0 14px}
.page-top{display:flex;flex-direction:column;align-items:center;margin:var(--header-h) 14px 14px}
.intro{display:flex;flex-direction:column;align-items:center;max-width:1000px;margin:0 30px}

/* Untertitel mit Linie */
.eyebrow{display:inline-block}
.eyebrow-text,.eyebrow-text-light{text-align:center;font-size:16px;font-weight:500;line-height:1.3em}
.eyebrow-text{color:var(--heading-color)}
.eyebrow-text-light{color:var(--white)}
.eyebrow-line{width:100%;height:2px;margin-top:2px;background:var(--dark-paragraphs-color)}

.heading{margin-top:5px;margin-bottom:30px}
.is-centered{text-align:center}
.text-center{text-align:center;max-width:900px}
.lead{max-width:900px;text-align:center;margin-bottom:30px;font-size:22px;line-height:1.8em}
.heading-light{color:var(--white);margin-top:5px;margin-bottom:30px}
.text-muted{color:var(--dark-paragraphs-color)}

/* ---------- Bild-Blöcke + Reveal-Animation ---------- */
.media,.media-offset,.project-card,.media-wide{position:relative;overflow:hidden}
.cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.img-mask{position:absolute;inset:0;z-index:10;background:var(--footer-color);display:none;transform-origin:100% 50%;pointer-events:none}
.img-mask.light{background:#e8eaee}
.js .reveal .img-mask{display:block;transition:transform 1s cubic-bezier(.77,0,.175,1)}
.js .reveal .cover{transform:scale(1.15);transition:transform 1.4s cubic-bezier(.165,.84,.44,1)}
.js .reveal.is-visible .img-mask{transform:scaleX(0)}
.js .reveal.is-visible .cover{transform:scale(1)}
.js .fade{opacity:0;transform:translateY(30px);transition:opacity .9s ease,transform .9s ease}
.js .fade.is-visible{opacity:1;transform:none}

/* ---------- Startseite: Hero ---------- */
.hero-grid{position:relative;top:30px;display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:.9fr 1fr;gap:var(--gap);min-height:95vh;margin:0 14px;padding-top:62px}
.hero-grid .hero-media-1{grid-row:span 2}
.hero-copy{grid-column:span 2;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:0 55px 40px 80px}
.hero-inner{margin:55px 0}
.hero-title{max-width:700px;color:var(--white);margin:5px 0 20px}

/* ---------- 2-Spalten-Raster (Text + Bild) ---------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap)}
.copy-wrap{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:140px 0;padding:0 30px}
.copy{max-width:550px;margin-right:14px}
.media-offset{z-index:10;min-height:500px;margin-top:-30px;top:30px}
.band .split .media-offset{top:0;margin-top:0}

/* ---------- Projekte (Startseite) ---------- */
.project-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:minmax(400px,25vw);gap:var(--gap);width:100%;margin:30px 0 40px;padding:0;list-style:none}
.project-grid li{margin:0;padding:0;font-weight:400}
.project-card{display:block;height:100%;text-decoration:none}
.project-card .cover{transition:transform .6s ease}
.js .reveal.is-visible.link-project-block:hover .cover,.project-card:hover .cover{transform:scale(1.06)}
.project-card-label{position:absolute;inset:auto 0 0;z-index:2;padding:60px 30px 30px;background-image:linear-gradient(to bottom,transparent,var(--background-color-1))}
.project-card-title{color:var(--white);margin:0 0 5px}

/* ---------- Unterseiten-Kopf ---------- */
.page-head{display:flex;flex-direction:column;align-items:center;width:100%;padding:65px 0 70px}
.page-title{max-width:700px;color:var(--heading-color);text-align:center;margin:5px 0 20px}
.media-wide{width:100%;height:470px}

/* ---------- Fließtext ---------- */
.prose-wrap{width:100%;max-width:940px;margin:70px auto}
.prose-wrap.margin-top{margin-top:140px}
.prose h2{margin-top:0}
.prose h3{margin-bottom:24px}
.prose p strong{color:var(--heading-color)}
.prose ul{margin:10px 0 20px}
.prose li{font-weight:400}
.prose a{word-break:break-word}
.prose .spacer{height:20px}

/* ---------- Team (Über uns) ---------- */
.media-portrait{min-height:650px}
.heading-light.dark,.text-muted.dark{color:var(--main-color)}
.text-muted.dark{color:var(--paragraphs-color)}
.team-role{display:block;margin-top:-18px;margin-bottom:24px;font-size:16px;font-weight:500;color:var(--dark-paragraphs-color)}
.is-dark + .team-role,.team-role.dark{color:var(--paragraphs-color)}

/* ---------- Projekt-Detailseite ---------- */
.gallery{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:1fr 1fr;gap:var(--gap);width:100%;min-height:85vh}
.gallery .img-1{grid-row:span 2}
.gallery .img-4{grid-column:span 2}
.gallery.single{grid-template-columns:1fr;grid-template-rows:1fr;min-height:75vh}
.gallery.single .img-1{grid-row:auto}
.gallery-label{position:absolute;inset:auto 0 0;z-index:2;padding:60px 50px 50px;background-image:linear-gradient(to bottom,transparent,var(--background-color-1))}
.gallery-title{color:var(--white);margin:0 0 5px}
.breadcrumb{width:100%;max-width:940px;margin:30px auto 0;font-size:15px}
.breadcrumb ol{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;color:var(--paragraphs-color)}
.breadcrumb li{margin:0;padding:0;font-weight:400}
.breadcrumb li+li::before{content:"/";margin-right:6px;color:var(--border)}
.breadcrumb a{color:var(--paragraphs-color);text-decoration:none}
.breadcrumb a:hover{color:var(--background-color-1)}
.project-nav{display:flex;justify-content:space-between;gap:20px;width:100%;max-width:940px;margin:0 auto 70px;padding-top:30px;border-top:1px solid var(--border);font-size:16px;font-weight:500}
.project-nav a{text-decoration:none;color:var(--heading-color)}
.project-nav a:hover{color:var(--background-color-1)}

/* ---------- Formulare ---------- */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.form-grid .full{grid-column:span 2}
.field{display:flex;flex-direction:column}
.field label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.input-dark,.input-light,.input-area{width:100%;margin:0;padding:22px 0;border:0;border-bottom:2px solid;background:transparent;font:500 16px/1.8em Barlow,Arial,sans-serif;border-radius:0;transition:border-color .2s}
.input-dark{color:var(--white);border-bottom-color:#b5b7c366}
.input-dark:focus{outline:none;border-bottom-color:var(--white)}
.input-dark::placeholder{color:#d7d9e0}
.input-light,.input-area{color:var(--heading-color);border-bottom-color:var(--border)}
.input-light:focus,.input-area:focus{outline:none;border-bottom-color:var(--heading-color)}
.input-light::placeholder,.input-area::placeholder{color:#6b7177}
.input-area{min-height:120px;max-height:300px;resize:vertical}
.form-wrap{width:100%;margin-top:15px}
.form-note{font-size:14px;line-height:1.6em;margin:0}
.form-note a{color:inherit}
.band-blue .form-note{color:var(--dark-paragraphs-color)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-grid .btn{justify-self:start}

/* ---------- Footer ---------- */
.site-footer{display:flex;flex-direction:column;align-items:center;padding:0 38px;background:var(--footer-color)}
.footer-top{width:100%;max-width:1300px;margin:95px 0}
.footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap)}
.footer-title{color:var(--white);margin-bottom:37px}
.footer-links{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;margin:0;padding:0;list-style:none}
.footer-links li{margin:0;padding:0}
.footer-link{display:block;margin-bottom:8px;padding:5px 0;color:var(--dark-paragraphs-color);letter-spacing:1.4px;text-transform:uppercase;font-size:14px;font-weight:500;line-height:1.5em;text-decoration:none;transition:color .2s}
.footer-link:hover{color:var(--white)}
.footer-text{color:var(--dark-paragraphs-color);font-size:16px;line-height:1.8em}
.site-footer .btn-white{margin-top:16px}
.site-footer .btn-white:hover{background:var(--background-color-1)}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;width:100%;max-width:1300px;min-height:90px;border-top:1px solid #3c3e4c}
.footer-logo{display:flex;padding:15px 0;transition:transform .2s}
.footer-logo:hover{transform:scale(1.05)}
.footer-legal{display:flex;align-items:center}
.footer-legal-link{margin:0 15px;color:var(--dark-paragraphs-color);font-size:16px;text-decoration:none;transition:color .2s}
.footer-legal-link:hover{color:var(--white)}

/* ---------- 404 / Danke ---------- */
.is-simple{min-height:70vh}

/* ---------- Tablet ---------- */
@media (max-width:991px){
  h1{font-size:48px}h2{font-size:38px}h3{font-size:32px}h4{font-size:26px}h5{font-size:22px}
  .nav-toggle{display:block}
  .main-nav{position:absolute;top:var(--header-h);left:0;right:0;flex-direction:column;align-items:stretch;padding:10px 0;background:var(--light-background-color);box-shadow:0 8px 16px #0000001a;visibility:hidden;opacity:0;transform:translateY(-10px);transition:opacity .25s,transform .25s,visibility .25s}
  .site-header.dark .main-nav{background:var(--background-color-1)}
  .site-header.open .main-nav{visibility:visible;opacity:1;transform:none}
  .site-header.open .header-bg{transform:scaleY(1)}
  .header-left{position:static}
  .nav-link{padding:16px 28px}
  .hero-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto;min-height:0}
  .hero-grid .hero-media-1{grid-column:span 2;grid-row:auto;min-height:60vw}
  .hero-grid .hero-media-2,.hero-grid .hero-media-3{min-height:34vw}
  .hero-copy{padding-left:50px}
  .hero-inner{margin:45px 0}
  .band-white,.band-light{padding-top:100px;padding-bottom:100px}
  .split{grid-template-columns:1fr}
  .split .media-offset{order:2}
  .media-offset{height:100%;min-height:500px;margin-top:0;top:0}
  .copy{max-width:800px;margin:0 30px}
  .copy-wrap{margin:70px 0}
  .project-grid{grid-template-columns:1fr 1fr;grid-auto-rows:minmax(360px,45vw)}
  .project-card-label{padding:40px 20px 20px}
  .footer-top{margin:70px 0}
  .footer-legal-link{margin:0 5px}
  .prose-wrap{margin:50px auto}
  .page-head{padding:45px 0 50px}
  .gallery{grid-template-columns:1fr 1fr;grid-template-rows:auto}
  .gallery .img-1{grid-column:span 2;grid-row:auto;min-height:60vw}
  .gallery .img-2,.gallery .img-3{min-height:34vw}
  .gallery .img-4{min-height:40vw}
  .gallery-label{padding:40px 30px 30px}
}

/* ---------- Smartphone quer ---------- */
@media (max-width:767px){
  h1{font-size:40px;margin:17px 0 7px}h2{font-size:34px;margin:17px 0 7px}h3{font-size:28px;margin:17px 0 7px}
  h4{font-size:24px}h5{font-size:20px}h6{font-size:16px}
  p{font-size:17px;line-height:1.7em}
  .hero-copy{grid-column:span 2;padding-left:40px;padding-right:40px}
  .hero-inner{margin:10px 0}
  .band-white,.band-light{padding-top:70px;padding-bottom:70px}
  .intro{margin:0 20px}
  .lead{font-size:19px;line-height:1.7em}
  .media-offset{min-height:50vw}
  .copy{margin:0 20px}
  .copy-wrap{margin:55px 0;padding:0 20px}
  .project-grid{grid-template-columns:1fr;grid-auto-rows:minmax(320px,80vw)}
  .footer-top{margin:50px 0 60px}
  .footer-bottom{flex-direction:column;padding:10px 0}
  .footer-grid{grid-template-columns:1fr}
  .media-portrait{min-height:60vw}
  .prose-wrap{margin:40px auto}
  .media-wide{height:300px}
}

/* ---------- Smartphone ---------- */
@media (max-width:479px){
  h1{font-size:36px}h2{font-size:32px}h3{font-size:26px}h4{font-size:23px}h5{font-size:19px}
  .header-cta{display:none}
  .hero-grid{grid-template-columns:1fr}
  .hero-grid .hero-media-1,.hero-copy{grid-column:auto}
  .hero-grid .hero-media-2,.hero-grid .hero-media-3{min-height:60vw}
  .hero-title{margin-bottom:10px}
  .hero-copy{padding:0 15px 20px}
  .band-white,.band-light{padding-top:50px;padding-bottom:50px}
  .heading{margin-bottom:20px}
  .intro{margin:0 15px}
  .media-offset{min-height:300px}
  .heading-light{margin-bottom:20px}
  .copy{margin:0 15px}
  .copy-wrap{margin:50px 0;padding:0 15px}
  .project-grid{margin-bottom:30px}
  .site-footer{padding:0 30px}
  .footer-top{margin:40px 0}
  .footer-title{margin-bottom:20px}
  .form-grid{grid-template-columns:1fr}
  .form-grid .full{grid-column:auto}
  .prose-wrap{margin:20px auto}
  .prose-wrap.margin-top{margin-top:100px}
  .page-head{padding:25px 0 30px}
  .gallery{grid-template-columns:1fr}
  .gallery .img-1,.gallery .img-4{grid-column:auto}
  .gallery .img-2,.gallery .img-3,.gallery .img-4{min-height:60vw}
  .gallery-label{padding:40px 20px 20px}
  .project-nav{flex-direction:column}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
  .js .reveal .img-mask{display:none}
  .js .fade{opacity:1;transform:none}
  .js .reveal .cover{transform:none}
}

/* ---------- Ergänzungen ---------- */
.h2{font-size:48px}.h4{font-size:30px}.h5{font-size:24px}
.band-team{background:var(--white);padding:0 14px}
.band-team .media-offset{top:0;margin-top:0}
.form-status{padding:10px 15px;font-size:16px;line-height:1.6em}
.msg-success{border:2px solid var(--subtitle-line-color);color:inherit}
.msg-error{border:2px solid #f35b5e;color:#f35b5e}
.band-blue .msg-success{color:var(--white)}
@media (max-width:991px){.h2{font-size:38px}.h4{font-size:26px}.h5{font-size:22px}}
@media (max-width:767px){.h2{font-size:34px}.h4{font-size:24px}.h5{font-size:20px}}
@media (max-width:479px){.h2{font-size:32px}.h4{font-size:23px}.h5{font-size:19px}}
