/* Kumpfmüller Landschaftsplanung — relaunch styles (design palette/type). */

/* ---------- Self-hosted fonts (no external CDN — see /wwwroot/fonts) ---------- */
/* Mulish is a variable font: one file per subset covers weights 400–700. */
@font-face {
  font-family: 'Mulish'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/mulish-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: 'Mulish'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/mulish-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;
}
/* Spectral ships one file per weight. */
@font-face {
  font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/spectral-400-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: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/spectral-400-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: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/spectral-500-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: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/spectral-500-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: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/spectral-600-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: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/spectral-600-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;
}

:root {
  --green: #6B9959; --green-deep: #4F7C43; --sage: #A1AE80;
  --gold: #C0913A; --sand: #D8C89A; --sky: #C3D8DA;
  --ink: #34362D; --muted: #6B7060; --paper: #FCFCF8; --line: #E7E8DE;
  --rail: 284px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Mulish', system-ui, -apple-system, sans-serif; font-weight: 400; color: var(--ink); background: var(--paper); line-height: 1.65; }
h1, h2, h3, h4 { font-family: 'Spectral', Georgia, serif; font-weight: 500; line-height: 1.18; color: var(--ink); margin: 0 0 .5em; }
a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Layout ---------- */
.layout { display: flex; align-items: flex-start; min-height: 100vh; }
.content { flex: 1 1 auto; min-width: 0; padding: 56px clamp(24px, 5vw, 72px) 80px; max-width: 1100px; }

/* ---------- Sidebar ---------- */
.sidebar {
  flex: 0 0 var(--rail); width: var(--rail); align-self: stretch;
  background: var(--green); color: #EEF2E8;
  display: flex; flex-direction: column; gap: 18px; padding: 22px 18px;
}
.brand-card { display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 12px; padding: 16px 18px; color: var(--ink); box-shadow: 0 2px 8px rgba(52,54,45,.12); }
.brand-card:hover { text-decoration: none; }
.brand-name { font-family: 'Spectral', serif; font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.brand-sub { font-size: .82rem; letter-spacing: .04em; color: var(--green-deep); text-transform: uppercase; }

.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a { display: block; color: #EEF2E8; font-size: .95rem; padding: 10px 13px; border-radius: 8px; transition: background-color .16s ease, color .16s ease; }
.side-nav a:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.side-nav a.active { background: #fff; color: var(--green-deep); font-weight: 600; }
.nav-top { font-weight: 500; }
.sub-nav { list-style: none; margin: 2px 0 6px; padding: 0 0 0 10px; border-left: 1px solid rgba(255,255,255,.25); display: flex; flex-direction: column; gap: 1px; }
.sub-nav a { font-size: .88rem; padding: 7px 12px; color: rgba(238,242,232,.88); }
/* Second level: a subtle translucent highlight instead of the solid white pill. */
.sub-nav a.active { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }

/* Imprint block — one styling shared by the desktop sidebar (.side-contact) and the mobile footer (.site-footer). */
.imprint { font-size: .92rem; line-height: 1.5; color: rgb(221,230,207); }
.imprint-label { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 800; color: rgb(223,234,207); margin: 0 0 10px; }
.imprint strong { display: block; font-size: 1.06rem; font-weight: 800; color: #fff; margin: 0; }
.imprint span { display: block; }
.imprint span:first-of-type { margin-bottom: 12px; }          /* role → gap before address */
.imprint span:not(:first-of-type) { margin-bottom: 5px; }     /* address line spacing */
.imprint a { display: inline-block; margin-top: 8px; color: rgb(240,220,166); font-weight: 700; text-decoration: none; }
.imprint a:hover { text-decoration: underline; }

/* Container layout (the imprint typography above is shared). */
.side-contact { margin-top: auto; padding: 22px 13px 8px; border-top: 1px solid rgba(255,255,255,.25); }
.site-footer { display: none; background: var(--green); padding: 24px 22px 28px; }

/* ---------- Mobile bar + drawer ---------- */
.mobile-bar { display: none; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; padding: 12px 18px; background: var(--green); color: #fff; }
.m-brand { font-family: 'Spectral', serif; font-size: 1.1rem; font-weight: 600; color: #fff; }
.m-brand span { font-size: .7em; opacity: .85; }
.hamburger { display: inline-flex; flex-direction: column; gap: 5px; background: rgba(255,255,255,.15); border: 0; border-radius: 8px; padding: 11px 10px; cursor: pointer; }
.hamburger span { width: 22px; height: 2px; background: #fff; display: block; transition: transform .2s ease, opacity .2s ease; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(52,54,45,.45); z-index: 25; opacity: 0; transition: opacity .2s ease; }

/* ---------- Page header ---------- */
.page-header { margin-bottom: 28px; }
/* Combined breadcrumb + pre-headline: a single gold overline (see Partials/Overline.cshtml). */
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .15em; font-size: .76rem; font-weight: 700; color: var(--gold); margin: 0 0 14px; }
.eyebrow a { color: var(--gold); }
.eyebrow a:hover { text-decoration: underline; }
.eyebrow-sep { color: var(--sand); font-weight: 400; }
.page-header h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); margin: 0 0 18px; }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 60ch; margin: 0; }
.rte { max-width: 68ch; }
.rte p { margin: 0 0 1.1em; }
.section { margin: 28px 0; }

/* ---------- Image grid / gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 30px 0; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: 12px; }
.gallery img { aspect-ratio: 16/10; object-fit: cover; width: 100%; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 12px; bottom: 10px; color: #fff; font-family: 'Spectral', serif; font-size: 1.15rem; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.gallery img.zoomable { cursor: zoom-in; }

/* ---------- Lightbox ---------- */
body.lb-locked { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 4vw, 48px);
  background: rgba(20, 22, 18, .92); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lb-img {
  max-width: min(92vw, 1400px); max-height: 82vh; width: auto; height: auto; object-fit: contain;
  border-radius: 8px; box-shadow: 0 18px 60px rgba(0, 0, 0, .5); background: rgba(255, 255, 255, .04);
  opacity: 0; transform: scale(.985); transition: opacity .25s ease, transform .25s ease;
}
.lb-img.is-loaded { opacity: 1; transform: none; }
.lb-caption { color: #EEF2E8; font-family: 'Spectral', serif; font-size: 1.05rem; text-align: center; max-width: 60ch; }
.lb-counter { position: absolute; top: 18px; left: 0; right: 0; text-align: center; color: rgba(238, 242, 232, .8); font-size: .82rem; letter-spacing: .08em; pointer-events: none; }
.lb-close, .lb-nav {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 50%; cursor: pointer;
  transition: background-color .16s ease, transform .16s ease; -webkit-tap-highlight-color: transparent;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .24); }
.lb-close svg, .lb-nav svg { display: block; }
.lb-close { top: 14px; right: 16px; width: 46px; height: 46px; padding: 0; }
.lb-close svg { width: 22px; height: 22px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; padding: 0; }
.lb-nav svg { width: 28px; height: 28px; }
.lb-nav:hover { transform: translateY(-50%) scale(1.06); }
.lb-prev { left: clamp(8px, 2vw, 26px); }
.lb-next { right: clamp(8px, 2vw, 26px); }
@media (max-width: 560px) {
  .lb-img { max-height: 74vh; }
  .lb-nav { width: 44px; height: 44px; font-size: 2rem; bottom: 18px; top: auto; transform: none; }
  .lb-nav:hover { transform: none; }
  .lb-prev { left: 18px; }
  .lb-next { right: 18px; }
}


/* Project overview: large image tiles with the category name overlaid (see design). */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0; }
.cat-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--green); box-shadow: 0 2px 8px rgba(52,54,45,.1); transition: transform .16s ease, box-shadow .16s ease; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(52,54,45,.18); text-decoration: none; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card .cap { position: absolute; inset: auto 0 0 0; padding: 18px 16px 15px; background: linear-gradient(to top, rgba(31,42,24,.95), rgba(31,42,24,0)); }
.cat-card .nm { display: block; font-family: 'Spectral', serif; font-size: 1.18rem; font-weight: 600; line-height: 1.2; color: #fff; }
.cat-card .cap-meta { display: block; margin-top: 4px; font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.85); }

/* Larger variant — single-project listings have room for bigger cards and pics. */
.cat-grid-lg { grid-template-columns: repeat(2, 1fr); }
.cat-grid-lg .cat-card { aspect-ratio: 3 / 2; }
.cat-grid-lg .nm { font-size: 1.35rem; }

/* Wide variant — gallery overview: 2 up on desktop, shorter (landscape) tiles. */
.cat-grid-wide { grid-template-columns: repeat(2, 1fr); }
.cat-grid-wide .cat-card { aspect-ratio: 16 / 9; }
.cat-grid-wide .nm { font-size: 1.35rem; }

/* ---------- News ---------- */
.news-group { margin: 30px 0; }
.news-group > h2 { font-size: 1.5rem; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.news-list { display: grid; gap: 18px; margin: 18px 0 0; }
.news-item { display: grid; grid-template-columns: 200px 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .16s ease, transform .16s ease; }
.news-item:hover { box-shadow: 0 8px 22px rgba(52,54,45,.1); transform: translateY(-2px); }
.news-item .thumb { background: var(--sand); }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item .body { padding: 18px 20px; }
.news-item.no-thumb { grid-template-columns: 1fr; }
.news-meta { font-size: .82rem; color: var(--gold); font-weight: 700; margin: 0 0 6px; letter-spacing: .02em; }
.news-item h3 { margin: 0 0 8px; font-size: 1.3rem; }
.news-item p { margin: 0 0 10px; color: var(--muted); }
.more { font-weight: 600; color: var(--green-deep); }

/* ---------- Downloads ---------- */
.dl-group { margin: 30px 0; }
.dl-group h2 { font-size: 1.4rem; color: var(--green-deep); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.dl-card { display: flex; align-items: center; gap: 16px; padding: 13px 18px; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.dl-card:hover { border-color: var(--green); box-shadow: 0 8px 22px rgba(79,124,67,.12); transform: translateY(-2px); }
.dl-badge { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 50px; border-radius: 6px; background: rgba(107,153,89,.1); color: var(--green-deep); font-size: .62rem; font-weight: 700; letter-spacing: .06em; }
.dl-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dl-info strong { font-weight: 600; color: var(--ink); }
.dl-meta { display: flex; align-items: baseline; gap: 8px; min-width: 0; color: var(--muted); font-size: .88rem; }
.dl-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dl-sep, .dl-size { flex: 0 0 auto; }
.dl-btn { flex: 0 0 auto; background: var(--green); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .02em; padding: 9px 16px; border-radius: 8px; transition: background-color .16s ease; }
.dl-btn:hover { background: var(--green-deep); text-decoration: none; }
@media (max-width: 560px) {
  .dl-card { flex-wrap: wrap; }
  .dl-info { flex-basis: calc(100% - 58px); }
  .dl-btn { margin-left: 58px; }
}

/* ---------- Partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 30px 0; }
.partner { display: flex; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .16s ease; }
.partner:hover { box-shadow: 0 8px 22px rgba(52,54,45,.08); }
.partner .logo { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.partner .logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner .badge { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; background: var(--sage); color: #fff; display: grid; place-items: center; font-family: 'Spectral', serif; font-size: 1.1rem; font-weight: 600; }
.partner h3 { margin: 0 0 4px; font-size: 1.1rem; }
.partner .role { color: var(--green-deep); font-size: .9rem; margin: 0 0 8px; }
.partner .meta { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.partner-body { flex: 1 1 auto; min-width: 0; }
.partner .meta a { color: var(--green-deep); font-weight: 600; margin-right: 14px; }

/* ---------- Detail meta ---------- */
.detail-meta { color: var(--gold); font-weight: 700; font-size: .9rem; letter-spacing: .02em; margin: 0 0 16px; }
.ext-link { display: inline-block; margin-top: 8px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .mobile-bar { display: flex; height: 78px; padding: 0 16px; }
  /* Logo sits in a white rounded card for contrast against the green bar. */
  .m-brand { background: #fff; border-radius: 11px; padding: 8px 13px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.25); display: inline-flex; align-items: center; color: var(--ink); }
  .m-brand-logo { max-height: 46px; width: auto; display: block; }
  .m-brand span { color: var(--green-deep); }
  .layout { display: block; }
  /* Menu rolls down from behind the header (not a left drawer). */
  .sidebar {
    position: fixed; top: 78px; left: 0; right: 0; width: 100%; max-width: none; height: auto;
    gap: 0; padding: 10px 14px 18px; z-index: 28; overflow-y: auto;
    max-height: calc(100vh - 78px); max-height: calc(100dvh - 78px);
    transform: translateY(-110%); transition: transform .28s ease;
    box-shadow: 0 16px 26px -12px rgba(0,0,0,.4);
  }
  body.nav-open .sidebar { transform: translateY(0); }
  body.nav-open .scrim { display: block; opacity: 1; }
  .scrim { top: 78px; }
  .brand-card { display: none; }   /* logo already in the mobile bar */
  .side-contact { display: none; } /* imprint moves to the green footer */
  .site-footer { display: block; }
  body.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
  body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .content { padding: 28px 20px 60px; max-width: none; }
  .news-item { grid-template-columns: 1fr; }
  .news-item .thumb { height: 190px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
}
