/* UPDATE / Mob, 04.10. Desktop keeps the Web layout and its scroll behavior. */
.header-brand .header-wordmark,.menu-close-icon,.footer-symbol,.quote-symbol,.value-pagination,.map-progress{display:none}
.footer-bottom{margin-top:auto}
.map-viewport{width:100%;min-width:0}


@media(max-width:700px){
  :root{--gutter:24px;--small:15px;--body:16px;--large:24px;--huge:50px;--section-space:60px;--logo-width:158px}
  body{line-height:1.45}
  .body-copy{line-height:1.45}
  .site-header{inset:30px var(--gutter) auto;min-height:39px;align-items:flex-start}
  .header-brand{order:-1}
  .header-brand .header-symbol{display:none}
  .header-brand .header-wordmark{display:block;width:158px;height:39px;object-fit:contain}
  .menu-button{display:grid;place-items:center;width:44px;height:44px;padding:14px;margin:-14px -14px 0 0;position:relative}
  .menu-button img{width:16px;height:16px;object-fit:contain}
  .menu-button .menu-close-icon{display:none}
  .menu-open .menu-button .menu-open-icon{display:none}
  .menu-open .menu-button .menu-close-icon{display:block}
  body[data-page=contact] .menu-button img{filter:brightness(0) saturate(100%) invert(34%) sepia(20%) saturate(1220%) hue-rotate(151deg)}
  .menu-open .header-brand img,body[data-page=contact].menu-open .menu-button img{filter:none}
  .site-nav{padding:119px var(--gutter) 40px;gap:8px;font:20px/1.4 var(--sans);overflow-y:auto;overscroll-behavior:contain}
  .site-nav a{min-height:40px;display:flex;align-items:center}
  .menu-open .header-brand,.menu-open .menu-button{position:fixed;top:30px}
  .menu-open .header-brand{left:var(--gutter)}
  .menu-open .menu-button{right:var(--gutter)}
  .hero-logo{display:none}
  .hero-image{object-position:center}
  .hero-quote{right:calc(var(--gutter) + 42px);bottom:30px;font-size:15px}
  .slideshow-toggle{width:30px;height:30px;bottom:30px}
  .center-heading{padding:60px var(--gutter) 0}
  .center-heading h2{margin:25px auto 20px}
  .pill{min-height:36px;padding:9px 14px}
  .values {
    height: 100svh;
    min-height: 0;
    padding-block: clamp(12px, 3svh, 24px);
  }
  .values .split-intro {
    flex: 0 1 auto;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(10px, 2.5svh, 20px);
  }
  .values .split-intro > div {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
  }
  .values-intro-copy {
    flex: 0 1 auto;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #57aabf transparent;
  }
  .values .split-intro .pill {
    flex-shrink: 0;
    margin-top: 15px;
  }
  .values .body-copy { font-size: 15px; line-height: 1.5; }
  .values .values-intro-more { margin-top: 10px; }
  .split-intro{gap:30px}
  .split-intro .pill{margin-top:20px}
  .values>h2{text-align:left;margin:clamp(24px,calc((100svh - 590px) * .25),120px) 0 clamp(12px,3svh,30px)}
  .value-grid{display:flex;flex:none;justify-content:flex-start;gap:15px;margin-inline-end:calc(-1 * var(--gutter));overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:0 0 6px;scroll-padding-left:0;overscroll-behavior-x:contain}
  .value-grid::-webkit-scrollbar{display:none}
  .value-card{flex:0 0 min(275px,calc(100% - var(--gutter) - 40px),43svh);--value-gradient-bottom:#b4dcbe;--value-padding-top:22px;--value-title-gap:12px;padding-inline:16px;border-radius:24px;scroll-snap-align:start;background:linear-gradient(180deg,#57aabf 2%,var(--value-gradient-bottom) 100%)}
  .value-card h3{font-size:clamp(20px,6vw,24px);line-height:1.25}
  .value-card>picture>img{width:42px;object-fit:contain;object-position:left}
  .value-card p{font-size:min(calc((clamp(20px, 6vw, 24px) + var(--body)) / 2), 6.5cqw);padding-top:7px}
  .value-pagination{display:flex;justify-content:center;margin:0 auto;gap:0}
  .value-pagination button{border:0;background:none;padding:12px 6px;min-width:28px;min-height:32px}
  .value-pagination span{display:block;width:6px;height:6px;border-radius:50%;background:#ffffff59;transition:background .2s}
  .value-pagination [aria-current=true] span{background:white}
  .quote{background:linear-gradient(180deg,#d1ffdc 0%,#57aabf 47%,#2d6b84 100%)}
  .quote>.panel-image,.quote-bracket{display:none}
  .quote-symbol{display:block;position:absolute;top:30px;left:50%;transform:translateX(-50%);width:65px;height:55px;object-fit:contain}
  .quote blockquote{padding:100px var(--gutter);align-items:center}
  .quote blockquote>p{font-size:clamp(30px,7.5vw,42px);line-height:1.25;max-width:480px}
  .quote blockquote footer{bottom:30px;left:var(--gutter);right:var(--gutter)}
  .numbers{display:flex;flex-direction:column;gap:30px}
  .numbers-content{flex:1}
  .statistics{margin:50px 0 0;gap:28px;align-content:space-between}
  .statistics>div{padding-bottom:20px;border-bottom:1px solid #2d6b8466}
  .statistics>div:last-child{border-bottom:0;padding-bottom:0}
  .statistics dd{margin-bottom:15px;line-height:1.2}
  .statistics dt{font-size:var(--small)}
  .numbers .body-copy{font-size:15px;line-height:1.5}
  .projects-section{height:auto;min-height:100svh}
  body[data-page="home"] h2.eyebrow { font: 400 var(--large)/1.35 var(--serif); }
  .section-topline{margin-bottom:30px;align-items:baseline}
  .section-topline .text-link{font-size:var(--small)}
  .project-track{display:grid;grid-template-columns:minmax(0,1fr);gap:45px;overflow:visible;padding:0;scroll-snap-type:none}
  .project-track>.project-card:nth-child(n+3){display:none}
  .carousel-controls{display:none}
  .project-visual,.projects-section .project-visual,.projects-page .project-visual{aspect-ratio:345/255;min-height:0;max-height:none;border-radius:15px}
  .project-card h3{margin-top:20px;font-size:20px;line-height:1.5}
  .project-card:has(.project-photo:not([hidden])) h3{font-size:30px;line-height:1.4}
  .project-meta{font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:rgb(255 255 255 / .35);gap:8px;margin-top:10px}
  .project-meta>span+span{padding-left:6px}
  .project-placeholder{font-size:20px}
  .partner-logo{width:24%;right:14px;top:14px}
  .geography{justify-content:flex-start;gap:30px;min-height:100svh;padding:calc(var(--section-space) - 16px) var(--gutter) var(--section-space)}
  .geography>h2{text-align:left;width:100%;margin-bottom:16px}
  .map-viewport {
    align-self: stretch;
    width: auto;
    margin-inline-end: calc(-1 * var(--gutter));
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .map-viewport::-webkit-scrollbar{display:none}
  .world-map{width:max(900px,calc(120svh - 200px));height:auto;max-width:1200px;max-height:none;margin:0;aspect-ratio:1200/708}
  
  .map-progress{display:block;width:61px;height:5px;border-radius:5px;background:#ffffff35;overflow:hidden;margin:0 auto}
  .map-progress span{display:block;width:30%;height:100%;border-radius:5px;background:white;transform:translateX(var(--map-progress,0px))}
  .help{height:auto;min-height:100svh;padding-bottom:60px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:100px}
  .help-symbol{position:static;transform:none;width:min(270px,calc(100% - 48px));height:auto;max-height:none;object-fit:contain}
  .site-footer{display:flex;flex-direction:column;min-height:100svh;gap:60px;padding:30px var(--gutter);font-size:var(--small)}
  .footer-brand{display:block}
  .footer-brand p{max-width:345px}
  .footer-brand>.brand-link{display:none}
  .footer-right{flex:1;gap:70px}
  .footer-columns{display:flex;flex-direction:column;gap:30px}
  .footer-columns h2{margin-bottom:10px}
  .footer-columns a{margin-bottom:10px}
  .footer-columns a:last-child{margin-bottom:0}
  .footer-columns .address-heading{margin-top:24px;margin-bottom:10px}
  .footer-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
  .footer-symbol{display:block;flex-shrink:0}
  .footer-symbol img{width:49px;height:42px;object-fit:contain}
  .copyright{text-align:right}
  .subpage{padding:155px var(--gutter) 100px;min-height:100svh}
  .subpage h1{font-size:30px;line-height:1.4}
  .subpage .body-copy{font-size:15px;line-height:1.5}
  .page-grid{gap:30px}
  .page-copy p+p{margin-top:23px}
  .about-page{padding-bottom:80px}
  .about-background{object-position:center top;opacity:1}
  .about-page .page-grid{gap:30px}
  .about-desktop-title{display:none}
  .about-mobile-title{display:inline}
  .about-page,.contact-page,.impressum-page{padding-top:189px}
  .contact-page{min-height:max(794px,100svh)}
  .contact-page .page-copy > p{max-width:345px;white-space:normal}
  .impressum-page{min-height:max(909px,100svh)}
  .projects-intro{margin-bottom:60px}
  .projects-grid{gap:45px}
  .impressum-page+.site-footer,.projects-page+.site-footer{background:var(--ink)}
}

@media (max-width: 700px) and (max-height: 580px) {
  .values .split-intro { gap: 8px; }
  .values .split-intro .pill { margin-top: 12px; }
  .values > h2 { margin-block: 18px 8px; }
  .value-card {
    --value-padding-top: 14px;
    --value-icon-height: 30px;
    --value-title-gap: 8px;
    padding-inline: 12px;
  }
  .value-card h3 { font-size: clamp(16px, 4.5vw, 20px); }
}

@media (max-width: 700px) and (orientation: landscape) and (max-height: 450px) {
  .values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto minmax(0, 1fr) auto;
    column-gap: 16px;
  }
  .values .split-intro {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: stretch;
  }
  .values > h2 {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 8px;
  }
  .values .value-grid {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    align-self: start;
  }
  .values .value-card { flex-basis: min(100%, 260px, 62svh); }
  .values .value-pagination {
    grid-column: 2;
    grid-row: 3;
  }
}
