/*
 * TSK – site styles (no framework).
 * Flat look of the previous tsk.ch theme (gi_t3_base / mad-styles): thin #B2B2B2 lines instead of shadows,
 * no rounded corners, National 2 Light for text, Tiempos for titles, turquoise accents, beige footer.
 */

@font-face { font-family: "National 2"; src: url("../fonts/national-2-web-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "National 2"; src: url("../fonts/national-2-web-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "National 2"; src: url("../fonts/national-2-web-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "National 2 Condensed"; src: url("../fonts/national-2-condensed-web-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tiempos Headline"; src: url("../fonts/tiempos-headline-web-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tiempos Text"; src: url("../fonts/tiempos-text-web-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tiempos Text"; src: url("../fonts/tiempos-text-web-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --brand: #00CCC2;
  --brand-light: #d0eeec;
  --green: #009992;
  --dark: #000023;
  --text: #000023;
  --text-light: #55556a;
  --lines: #B2B2B2;
  --grey: #F2F2F2;
  --lightgrey: #FAFAFA;
  --beige: #F1EFEA;
  --beige-dark: #EBE8E0;
  --yellow: #FFB800;
  --pink: #FF4C77;
  --blue: #4C54FF;
  --purple: #864CFF;
  --red: #E62E46;
  --error: #FF554D;
  --link: #000023;
  --wrap: 1440px;
  --pad: 80px;
  --sans: "National 2", Arial, sans-serif;
  --condensed: "National 2 Condensed", Arial, sans-serif;
  --headline: "Tiempos Headline", "Times New Roman", Times, serif;
  --serif: "Tiempos Text", "Times New Roman", Times, serif;
  --fs: clamp(16px, .9vw, 20px);
  --fs-small: 16px;
  --fs-hint: clamp(12px, .6vw, 13px);
  --fs-lead: clamp(18px, 1vw, 22px);
  --fs-h1: clamp(36px, 2.6vw, 60px);
  --fs-h2: clamp(30px, 1.8vw, 38px);
  --fs-h3: clamp(24px, 1.5vw, 30px);
  --fs-h4: clamp(20px, 1.2vw, 26px);
}
@media (max-width: 1200px) { :root { --pad: 40px; } }
@media (max-width: 640px) { :root { --pad: 20px; } }

/* Scrollbar like the old site: turquoise thumb on a blue → midnight track */
* { scrollbar-color: var(--brand) var(--dark); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--brand); }
::-webkit-scrollbar-track { background: linear-gradient(#4da6ff, var(--dark)); }
::selection { background: var(--brand); color: var(--dark); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font: 300 var(--fs)/1.45 var(--sans); color: var(--text); background: var(--lightgrey); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; border-bottom: 1px solid currentColor; }
/* Only links in running text get the thicker underline – never the L lines of cards and menus */
p a:not([class]):hover, li a:not([class]):hover, td a:not([class]):hover { border-bottom-width: 2px; }
a.plain, .plain a, nav a, .card, .tile, .btn, .level, .header a, .footer__bottom a { border-bottom: 0; }
h1, h2, h3, h4 { color: var(--dark); margin: 0 0 .6em; font-weight: 500; }
h1 { font: 500 var(--fs-h1)/.95 var(--headline); }
h2 { font: 500 var(--fs-h2)/1 var(--serif); }
h3 { font: 500 var(--fs-h3)/1.05 var(--serif); }
h4 { font: 500 var(--fs-h4)/1.1 var(--serif); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong, b { font-weight: 500; }
hr { border: 0; border-top: 1px solid var(--lines); margin: 40px 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 900px; }
.section { padding: 64px 0; }
.section:not([class*="section--"]) + .section:not([class*="section--"]),
.section--white + .section--white, .section--beige + .section--beige { padding-top: 0; }
.section--white { background: #fff; }
.section--beige { background: var(--beige); }
.section--reason { background: var(--beige-dark); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark h2, .section--dark h3, .section--dark a { color: #fff; }
.surtitle { display: block; font: 400 clamp(18px, 1.1vw, 20px)/1.1 var(--sans); color: var(--green); margin-bottom: .5em; }
.lead { font: 500 var(--fs-lead)/1.3 var(--sans); }
.muted { color: var(--text-light); }
.hint { font-size: var(--fs-hint); }
.italic { font-style: italic; }
.center { text-align: center; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
@media (max-width: 640px) { .section { padding: 44px 0; } }

/* Buttons – flat, 4px radius, 1px border that thickens on hover */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .7em 1.4em; border: 1px solid var(--dark); border-radius: 0;
  background-color: transparent; color: var(--dark); font: 500 var(--fs)/1 var(--sans); cursor: pointer; text-decoration: none;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease); }
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none;
  background: linear-gradient(120deg, var(--dark) 30%, var(--brand) 50%, var(--dark) 70%) 110% 0 / 250% 100% no-repeat var(--dark); opacity: 0; transition: opacity var(--t) var(--ease); }
.btn:not([disabled]):hover, .btn:focus-visible { color: #fff; border-color: transparent; border-bottom-width: 1px; }
.btn:not([disabled]):hover::before, .btn:focus-visible::before { opacity: 1; animation: shine-btn 1.3s linear; }
@keyframes shine-btn { from { background-position: 110% 0; } to { background-position: -10% 0; } }
.btn--brand { background-color: var(--brand); border-color: var(--brand); }
.btn--dark { background-color: var(--dark); border-color: var(--dark); color: #fff; }
.btn--light { border-color: #fff; color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn, .btn::before { transition: none; animation: none !important; } }
.btn--small { padding: .45em 1em; font-size: var(--fs-small); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
/* underline: turquoise at rest; on hover the turquoise → navy gradient draws in from the left (like the card L) */
.more { --more-to: var(--dark); font-weight: 500; border-bottom: 0; padding-bottom: 2px;
  background: linear-gradient(to right, var(--brand), var(--more-to)) left bottom / 0% 2px no-repeat,
              linear-gradient(var(--brand), var(--brand)) left bottom / 100% 2px no-repeat;
  transition: background-size .5s var(--ease); }
.more::after { content: "→"; display: inline-block; margin-left: .3em; transition: transform var(--t) var(--ease); }
.more:hover, .more:focus-visible, a.card:hover .more, a.card:focus-visible .more { background-size: 100% 2px, 100% 2px; }
.section--dark .more { --more-to: #fff; }
a.more:hover::after, a.more:focus-visible::after, a.card:hover .more::after, a.card:focus-visible .more::after { transform: translateX(5px); }

/* Header – midnight bar with a flat mega menu */
:root { --ease: cubic-bezier(0.42, 0, 0.175, 1); --t: .3s; }
/* Header: 100px, shrinks smoothly to 72px while scrolling (--header-h set by site.js, as before) */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--dark); color: #fff; }
body { padding-top: 100px; }
@media (max-width: 1200px) { body { padding-top: 72px; } }
.header__bar { display: flex; align-items: center; gap: 48px; height: var(--header-h, 100px); }
.logo img { height: 40px; width: auto; }
.nav { flex: 1; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav > ul > li > a { display: inline-flex; align-items: center; gap: .35em; height: var(--header-h, 100px); padding: 0 12px; color: #fff; font: 400 20px/1 var(--sans); transition: color var(--t) var(--ease); }
.nav > ul > li > a .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid currentColor; margin-top: 2px; }
.nav > ul > li > a[aria-current], .nav > ul > li.is-open > a, .nav > ul > li > a:hover { color: var(--brand); }
.meta-nav { display: flex; gap: 16px; align-items: center; font-size: var(--fs-small); }
.meta-nav a { color: #fff; }
.meta-nav a:hover { color: var(--brand); }
.meta-nav .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 4px; background: var(--brand); color: var(--dark); font-size: 12px; font-weight: 500; }

/* Mega menu: opens on hover and stays open until another top item is hovered or the shade is clicked */
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--lightgrey); color: var(--dark); }
.nav li.is-open > .mega, .nav li:focus-within > .mega { display: block; }
@media (min-width: 1201px) {
  .nav li.is-open > .mega { animation: mega-in .3s var(--ease); }
  .page-shade.show { animation: shade-in .3s var(--ease); }
}
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes shade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nav li.is-open > .mega, .page-shade.show { animation: none; } }
.mega__inner { display: flex; min-height: 400px; }
.mega__info { width: 300px; flex: none; padding: 40px 40px 40px 0; }
.mega__info strong { display: block; font: 500 var(--fs-h4)/1 var(--serif); margin-bottom: 24px; }
.mega__info p { font-weight: 300; }
.mega__links { padding: 40px 0; display: flex; flex-direction: column; align-items: flex-start; }
.mega__links a { position: relative; display: block; margin-top: 8px; padding: 0 16px 8px; color: var(--dark); border: 0; border-left: 1px solid var(--lines); border-bottom: 1px solid var(--lines); font-weight: 300; transition: all var(--t) var(--ease); }
.mega__links a:first-child { margin-top: 0; }
.mega__links a:hover, .mega__links a:focus-visible { padding-left: 24px; }
.mega__links a[aria-current] { color: var(--green); }
/* same gradient L as the cards: turquoise out of the corner, fading to navy at the ends */
.mega__links a::before, .mega__links a::after { --to: var(--dark); content: ""; position: absolute; left: -1px; bottom: -1px; pointer-events: none; transition: transform .5s var(--ease); }
.mega__links a::before { top: 0; width: 1px; background: linear-gradient(to top, var(--brand), var(--to)); transform: scaleY(0); transform-origin: bottom; }
.mega__links a::after { right: 0; height: 1px; background: linear-gradient(to right, var(--brand), var(--to)); transform: scaleX(0); transform-origin: left; }
.mega__links a:hover::before, .mega__links a:focus-visible::before, .mega__links a[aria-current]::before { transform: scaleY(1); }
.mega__links a:hover::after, .mega__links a:focus-visible::after, .mega__links a[aria-current]::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .mega__links a, .mega__links a::before, .mega__links a::after { transition: none; } }
.mega__img { margin-left: auto; width: 45%; display: flex; flex-direction: column; justify-content: center; background: var(--beige); padding: 40px calc(var(--pad)) 40px 80px; margin-right: calc(-1 * var(--pad)); }
.mega__img figure { margin: 0; max-width: 420px; }
.mega__img img { border: 16px solid var(--lightgrey); width: 100%; max-height: 320px; aspect-ratio: 3/2; object-fit: cover; }
.mega__img figcaption { margin-top: 16px; font-weight: 300; }
.page-shade { display: none; position: fixed; inset: 0; z-index: 40; background: linear-gradient(110deg, rgba(77, 166, 255, .4), rgba(0, 0, 35, 1)); }
.page-shade.show { display: block; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 28px; height: 2px; background: #fff; margin: 6px 0; }
@media (max-width: 1200px) {
  .header__bar { height: 72px; gap: 20px; }
  .nav-toggle { display: block; }
  .meta-nav .hide-sm { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); max-height: calc(100vh - 72px); overflow: auto; padding: 8px var(--pad) 32px; }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li > a { height: auto; padding: 16px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.2); }
  .nav > ul > li > a .caret { display: none; }
  .mega { display: block; position: static; background: transparent; border: 0; }
  .mega__inner { display: block; min-height: 0; padding: 0; }
  .mega__links { margin-left: 0 !important; }
  .mega__info, .mega__img { display: none; }
  .mega__links { padding: 8px 0 16px 16px; }
  .mega__links a { color: #fff; border-color: rgba(255,255,255,.3); }
  .mega__links a::before, .mega__links a::after { --to: #fff; }
  .page-shade { display: none !important; }
}

/* Hero – full width on the home page, boxed with title bottom-left on subpages (as before) */
.hero { position: relative; color: #fff; background: var(--dark); overflow: hidden; display: flex; align-items: flex-end; min-height: min(78vh, 820px); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,35,0) 40%, rgba(0,0,35,.65) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 56px; }
.hero h1, .hero p, .hero .surtitle { color: #fff; text-shadow: 0 0 16px rgba(0,0,35,.6); }
.hero p { font-size: var(--fs-lead); max-width: 680px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.banner { position: relative; min-height: 400px; display: flex; align-items: flex-end; color: #fff; background: var(--dark); overflow: hidden; }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,35,.15) 0%, rgba(0,0,35,.25) 45%, rgba(0,0,35,.75) 100%); }
.banner__text { position: relative; z-index: 1; width: 100%; padding-top: 96px; padding-bottom: 48px; }
.banner h1 { color: #fff; margin: 0; max-width: 900px; text-shadow: 0 0 16px rgba(0,0,35,.5); }
.banner .surtitle { color: #fff; font-weight: 300; margin-bottom: .3em; text-shadow: 0 0 12px rgba(0,0,35,.6); }
.banner__lead { font-size: var(--fs-lead); max-width: 720px; margin: 16px 0 0; text-shadow: 0 0 12px rgba(0,0,35,.6); }
.banner .breadcrumb, .banner .breadcrumb a { color: #fff; border-color: rgba(255,255,255,.5); }
.pagehead--plain { padding: 56px 0 0; }
.pagehead--plain h1 { margin: 0; }
.breadcrumb { font-size: var(--fs-small); margin: 0 0 16px; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); border-bottom: 1px solid var(--lines); }
@media (max-width: 640px) { .banner { min-height: 300px; } .banner__text { padding-bottom: 28px; } .hero { min-height: 72vh; } }

/* Lists of items: thin left + bottom line, as on the old list views */
.list { display: grid; gap: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1300px) { .list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1200px) { .list, .list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .list, .list--2, .list--4 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; padding: 20px 20px 32px 32px; border-left: 1px solid var(--lines); border-bottom: 1px solid var(--lines); color: var(--dark); height: 100%; position: relative; }
/* L line: navy → turquoise → navy (like the button) draws out of the bottom-left corner, up the left edge and along the bottom */
a.card::before, a.card::after { content: ""; position: absolute; left: -1px; bottom: -1px; background: var(--brand); pointer-events: none; transition: transform .5s var(--ease); }
a.card::before { top: 0; width: 2px; background: linear-gradient(to top, var(--brand), var(--dark)); transform: scaleY(0); transform-origin: bottom; }
a.card::after { right: 0; height: 2px; background: linear-gradient(to right, var(--brand), var(--dark)); transform: scaleX(0); transform-origin: left; }
a.card:hover::before, a.card:focus-visible::before { transform: scaleY(1); }
a.card:hover::after, a.card:focus-visible::after { transform: scaleX(1); }
.card__img img { transition: transform .6s var(--ease); }
a.card:hover .card__img img, a.card:focus-visible .card__img img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { a.card::before, a.card::after, .card__img img, .more, .more::after { transition: none; } }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 16px; min-height: 1.2em; }
.card__top .surtitle { margin: 0; font-size: var(--fs-small); }
.card__img { margin-bottom: 20px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--grey); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.card__kicker { font-size: var(--fs-small); font-weight: 400; margin-bottom: 4px; }
.card__title { font: 500 var(--fs-h4)/1.1 var(--serif); margin: 0 0 16px; }
.card__meta { font-size: var(--fs-small); margin: 0 0 8px; }
.card__foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.price { font: 400 var(--fs-h4)/1 var(--sans); color: var(--brand); }
.price del { color: var(--lines); font-size: .8em; margin-right: .4em; }
.price--promo { color: var(--pink); }
@media (max-width: 640px) { .card { padding: 0 0 32px; border-left: 0; } a.card::before { display: none; } }

/* Tags: small outline boxes ("Neu", "8 Farben") */
.tag { display: inline-block; font: 400 var(--fs-hint)/1 var(--sans); padding: 5px 7px; border: 1px solid var(--dark); color: var(--dark); white-space: nowrap; }
.tag--full { border-color: var(--error); color: var(--error); }
.tag--few { border-color: #b88600; color: #8a6400; }
.tag--ok { border-color: var(--green); color: var(--green); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #2CCC29; flex: none; }
.dot--few { background: var(--yellow); }
.dot--full { background: var(--error); }

/* Level badges: solid colour blocks */
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; font: 400 var(--fs-small)/1 var(--sans);
  background: var(--badge-bg, var(--brand)); color: var(--badge-fg, var(--dark)); }
.levels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.level { display: flex; flex-direction: column; justify-content: space-between; min-height: 140px; padding: 24px; background: var(--badge-bg, var(--brand)); color: var(--badge-fg, var(--dark)); position: relative; overflow: hidden; isolation: isolate; }
.level::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%) no-repeat; background-size: 250% 100%; background-position: 120% 0; }
.level strong { font: 500 var(--fs-h3)/1.05 var(--headline); color: inherit; }
.level span { font: 400 var(--fs-small)/1 var(--sans); }
.level:hover::after, .level:focus-visible::after { animation: shine-tile 1.4s linear; }
@keyframes shine-tile { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@media (prefers-reduced-motion: reduce) { .level:hover::after, .level:focus-visible::after { animation: none; } }

/* Big tiles (home, service, about) */
.tiles { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tile { position: relative; min-height: 360px; overflow: hidden; color: #fff; display: flex; align-items: flex-end; padding: 32px; background: var(--dark); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,35,.75)); }
.tile > div { position: relative; z-index: 1; }
.tile h3 { color: #fff; font-family: var(--headline); margin: 0 0 .3em; }
.tile p { margin: 0; }

/* Split section */
.split { display: grid; gap: 56px; grid-template-columns: 1fr 1fr; align-items: start; }
.split--center { align-items: center; }
.split img { width: 100%; object-fit: cover; }
.framed { border: 16px solid #fff; background: #fff; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* Content */
.prose { max-width: 900px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul li { margin-bottom: .35em; }
.prose img { margin: 1.5em 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 24px; margin: 2rem 0; padding: 20px 24px; background: #fff; }
.facts > div { padding: 0; }
.facts dt { font: 400 var(--fs-small)/1.2 var(--sans); color: var(--text-light); }
.facts dd { margin: .3em 0 0; font: 400 var(--fs-h4)/1.1 var(--serif); }
.accordion { border-top: 1px solid var(--lines); }
.accordion details { border-bottom: 1px solid var(--lines); }
.accordion summary { cursor: pointer; padding: 20px 0; font: 500 var(--fs-h4)/1.1 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font: 300 1.5em/0.8 var(--sans); color: var(--dark); }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding: 0 0 24px; }
.quote { font: 400 var(--fs-h4)/1.35 var(--serif); margin: 2.5rem 0; padding-left: 24px; border-left: 1px solid var(--brand); }
.quote cite { display: block; font: 300 var(--fs-small) var(--sans); margin-top: .6rem; font-style: italic; }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 2rem 0; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; }

/* Team (as on the old location pages): framed photo, serif name, italic role */
.team { display: grid; gap: 40px 48px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }
.person img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--dark); background: #fff; margin-bottom: 20px; }
.person h3 { margin: 0 0 12px; }
.person p { margin: 0; font-style: italic; font-size: var(--fs-small); }

/* Detail layout with sticky booking box */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; }
.detail__aside { position: sticky; top: 104px; }
@media (max-width: 1100px) { .detail { grid-template-columns: 1fr; gap: 48px; } .detail__aside { position: static; } }
.bookbox { background: #fff; padding: 32px; }
.bookbox h2 { font-size: var(--fs-h3); }
.bookbox .price { font-size: var(--fs-h3); }

/* Forms */
label { display: block; font: 400 var(--fs-small)/1.2 var(--sans); margin-bottom: .4rem; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input:not([type]), select, textarea {
  width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--dark); border-radius: 0; background: var(--grey); font: 300 var(--fs)/1.3 var(--sans); color: var(--dark); }
input:focus, select:focus, textarea:focus { outline: 0; border-bottom: 2px solid var(--brand); background: #fff; }
[aria-invalid="true"] { border-bottom-color: var(--error) !important; }
.field { margin-bottom: 20px; }
.fields { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--lightgrey); border-left: 2px solid transparent; margin-bottom: 8px; cursor: pointer; font-weight: 300; font-size: var(--fs-small); }
.choice:hover { border-left-color: var(--lines); }
.choice:has(input:checked) { border-left-color: var(--brand); }
.choice:has(input:checked) { background: var(--brand-light); }
.choice input { margin-top: .2rem; accent-color: var(--dark); }
.choice.is-disabled { opacity: .5; cursor: not-allowed; }
.choice__main { flex: 1; }
.choice__side { text-align: right; white-space: nowrap; }
.choice .price { font-size: var(--fs); }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font: 500 var(--fs)/1 var(--serif); padding: 0 0 16px; display: block; }
fieldset { min-width: 0; }
.notice { padding: 16px 20px; background: var(--beige); margin: 16px 0; border-left: 3px solid var(--dark); }
.notice--error { background: #ffefee; border-color: var(--error); }
.notice--ok { background: var(--brand-light); border-color: var(--green); }
.step-title { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; font: 500 var(--fs)/1 var(--serif); }
.step-title b { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--brand); font: 500 14px/1 var(--sans); }
.hidden { display: none !important; }
.spinner { width: 22px; height: 22px; border: 2px solid var(--lines); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Basket */
.basket-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--dark); }
.basket-table td, .basket-table th { padding: 18px 8px; border-bottom: 1px solid var(--lines); text-align: left; vertical-align: top; }
.basket-table th { font: 400 var(--fs-small) var(--sans); color: var(--text-light); }
.basket-table .num { text-align: right; white-space: nowrap; }
.basket-total td { font: 500 var(--fs-h4) var(--serif); border-bottom: 1px solid var(--dark); }
.linkbtn { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0; color: var(--dark); cursor: pointer; font: inherit; font-size: var(--fs-small); }

/* One location (contact block) */
.location { padding: 0; }
.location h3 { font-family: var(--headline); }
.hours { width: 100%; border-collapse: collapse; font-size: var(--fs-small); margin-top: .5rem; }
.hours td { padding: 4px 0; }
.hours td:last-child { text-align: right; padding-left: 1rem; }
/* Opening hours in the location blocks: compact, times next to the days */
.hours--opening { width: auto; min-width: 280px; max-width: 100%; font-size: var(--fs-small); margin-top: 1.5rem; font-variant-numeric: tabular-nums; }
.hours--opening td { padding: 0; line-height: 1.45; }
.hours--opening td:first-child { padding-right: 2.5rem; }
.hours--opening td:last-child { padding-left: 0; white-space: nowrap; }
.hours-note { margin-top: 10px; font-size: var(--fs-small); color: var(--text-light); }
.contact-block { display: grid; gap: 80px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 960px) { .contact-block { grid-template-columns: 1fr; gap: 40px; } }

/* Filter bar: underline links */
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 32px; }
.filters a { padding: 4px 0; color: var(--dark); border-bottom: 2px solid transparent; font-weight: 300; }
.filters a[aria-current] { border-bottom-color: var(--brand); font-weight: 400; }
/* hover: the button's turquoise shine sweeps through the letters (text stays navy at rest, the band waits off to the left) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .filters a { background: linear-gradient(120deg, var(--dark) 30%, var(--brand) 50%, var(--dark) 70%) 110% 0 / 250% 100% repeat-x;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .filters a:hover, .filters a:focus-visible { animation: shine-btn 1.3s linear; }
}
/* filtered lists: old cards fade out, new ones pop in one after another */
[data-filter-results] { transition: opacity .15s var(--ease); }
[data-filter-results].is-leaving { opacity: 0; }
.pop { animation: pop-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes pop-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pop { animation: none; } [data-filter-results] { transition: none; } }
@media (prefers-reduced-motion: reduce) { .filters a:hover, .filters a:focus-visible { animation: none; -webkit-text-fill-color: var(--brand); } }

/* Reason why + footer (beige, columns split by times next to the days) */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.reasons > div { padding: 0 40px 0 0; }
.reasons h3 { font-size: var(--fs-h4); }
@media (max-width: 860px) { .reasons { grid-template-columns: 1fr; gap: 32px; } }
.footer { background: var(--beige); font-size: var(--fs-small); padding: 64px 0 0; border-top: 1px solid var(--lines); }
.footer__grid { display: grid; gap: 40px 0; grid-template-columns: repeat(4, 1fr); padding-bottom: 48px; }
.footer__grid > div { padding: 0 32px 0 0; }
.footer h4 { font: 500 var(--fs)/1.1 var(--serif); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { border-bottom: 0; }
.footer a:hover { border-bottom: 1px solid var(--dark); }
.footer__logos { display: flex; gap: 20px; align-items: center; margin-top: 24px; }
.footer__logos img { height: 48px; width: auto; }
.footer__bottom { background: var(--dark); color: #fff; padding: 20px 0; font-size: var(--fs-hint); }
.footer__bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer__bottom a { color: #fff; margin-left: 16px; }
.footer__bottom a:hover { color: var(--brand); }
@media (max-width: 1100px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.hero__claim { font: 500 clamp(48px, 5vw, 110px)/.95 var(--headline) !important; margin: .1em 0 0; max-width: none !important; }
.hero h1.surtitle { font-size: var(--fs-h4); margin: 0; }
.footer__logos img[src*="ECO"] { filter: brightness(0); }
.prose > :first-child, .split > div > :first-child { margin-top: 0; }
.detail article > :first-child { margin-top: 0; }



/* ---------- Blog article (dark) ----------
 * The content area (wrap width) is the frame. Every block spans it completely; the text column (--col) sits
 * inside, left or right, always --inset away from the content edge. Lines live exactly on the content edges:
 * verticals on the left/right edge, horizontals from edge to edge – nothing sticks out, nothing stops midway.
 */
.banner--tall { min-height: min(86vh, 900px); }
.banner--tall::after { background: linear-gradient(180deg, rgba(0,0,35,.1) 0%, rgba(0,0,35,.3) 50%, var(--dark) 100%); }
.banner--tall h1 { font-size: clamp(40px, 4vw, 80px); max-width: 1000px; }

.post { --line: rgba(255, 255, 255, .22); --inset: var(--post-inset); --c: .56; /* text column = 56 % of the content width */
  background: var(--dark); color: rgba(255, 255, 255, .84); overflow-x: clip; padding: 48px 0 112px; }
.post h2, .post h3, .post strong, .post .lead { color: #fff; }
.post a:not(.btn) { color: var(--brand); border-color: var(--brand); }
.post__body { position: relative; }

/* head: aligned with the left text column */
.post__meta, .post__intro, .post__facts { margin-left: var(--inset); margin-right: var(--inset); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: var(--fs-small); margin-bottom: 40px; color: rgba(255,255,255,.7); }
.post__meta .surtitle { margin: 0; font-size: var(--fs-small); color: var(--brand); }
.post__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post .tag { border-color: rgba(255,255,255,.45); color: #fff; }
.post__intro { font: 400 clamp(22px, 1.7vw, 32px)/1.4 var(--serif); color: #fff; max-width: 980px; margin-bottom: 56px; }
.post__intro::first-letter { font: 500 3.3em/.8 var(--headline); float: left; margin: .06em .12em 0 0; color: var(--brand); }
.post__intro--short::first-letter { font: inherit; float: none; margin: 0; color: inherit; }
.post__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; }
.post__facts dt { font: 400 var(--fs-hint)/1.2 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.post__facts dd { margin: 6px 0 0; font: 400 var(--fs)/1.25 var(--serif); color: #fff; }

/* blocks: full content width, text column inside.
 * --I = width of the text column, --F = free space on the other side (between --pad and the column) */
.post__body { container-type: inline-size; }
.pb { --I: calc(var(--c) * 100cqw); --F: calc(100cqw - var(--I) - 2 * var(--inset)); position: relative; padding: 0; }
/* all vertical spacing lives in the inner block, so every line runs the full block height and lines meet */
.pb__inner { position: relative; z-index: 1; width: var(--I); padding-top: 56px; padding-bottom: 64px; }
.pb--align-l .pb__inner { margin-left: var(--inset); }
.pb--align-r .pb__inner { margin-left: auto; margin-right: var(--inset); }
.pb__inner > :first-child, .pb .prose > :first-child, .pb .prose > figure:first-child + * { margin-top: 0; }
.pb .prose > :last-child { margin-bottom: 0; }
.pb .prose::after { content: ""; display: table; clear: both; }
.pb h2 { font-size: var(--fs-h3); margin-bottom: .5em; }
.pb h3 { font-size: var(--fs-h4); margin: 1.4em 0 .4em; }
.pb .lead { font: 500 var(--fs-h4)/1.25 var(--serif); }

/* lines: plain borders, so neighbouring blocks connect at the corners */
/* lines are drawn by .ln elements (see «Line drawing» below); inner lines keep the text --inset away */
.pb--line-inner-l .pb__inner { padding-left: var(--inset); }
.pb--line-inner-r .pb__inner { padding-right: var(--inset); }

/* images float towards the open side and end --pad before the content edge, like the text */
.post__float { width: calc(var(--F) + .2 * var(--I)); margin-top: 6px; margin-bottom: 24px; }
.post__float--small { width: calc(.62 * var(--F) + .06 * var(--I)); }
.post__float--right { float: right; margin-left: 40px; margin-right: calc(-1 * var(--F)); }
.post__float--left { float: left; margin-right: 40px; margin-left: calc(-1 * var(--F)); }
/* with an inner line on that side the image sits completely beyond the line, --pad away from it */
.pb--line-inner-l .post__float--left { width: calc(var(--F) - var(--inset)); margin-left: calc(-1 * var(--F) - var(--inset)); margin-right: 0; }
.pb--line-inner-r .post__float--right { width: calc(var(--F) - var(--inset)); margin-right: calc(-1 * var(--F) - var(--inset)); margin-left: 0; }
.post .prose img, .post__float img, .post__fig img { width: 100%; height: auto; margin: 0; background: rgba(255,255,255,.05); }
.post figcaption { font-size: var(--fs-small); font-style: italic; color: rgba(255,255,255,.6); margin-top: 8px; line-height: 1.3; }
.post__float--right figcaption { text-align: right; }
.post__fig { margin: 0; }
.pb--image .pb__inner, .pb--gallery .pb__inner { width: calc(100% - 2 * var(--inset)); margin-left: var(--inset); margin-right: var(--inset); }
.post__gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; align-items: start; }
.post__gallery figure { margin: 0; }
.post__gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.post__list { list-style: none; padding: 0; }
.post__list li { padding: 6px 0; }
.post__list li::before { content: ""; display: inline-block; vertical-align: middle; width: 10px; margin-right: 12px; border-top: 1px solid var(--brand); }

/* quotes: centred within the content */
.pb--quote .pb__inner { padding-top: 80px; padding-bottom: 88px; }
.pb--quote .pb__inner { width: min(900px, calc(100% - 2 * var(--inset))); margin: 0 auto; text-align: center; }
.post__quote { margin: 0; font: 500 clamp(28px, 2.4vw, 46px)/1.12 var(--serif); color: #fff; }
.post__quote::before { content: "«"; color: var(--brand); margin-right: .1em; }
.post__quote::after { content: "»"; color: var(--brand); margin-left: .1em; }
.post__quote cite { display: block; font: 300 var(--fs-small) var(--sans); font-style: italic; margin-top: 12px; color: rgba(255,255,255,.6); }

/* full-width band: sharp photo in the middle (max +15 % for small files), blurred copy fills the sides */
.pb.pb--bleed { margin: 64px calc(50% - 50vw); padding: 0; }
.post__bleed { margin: 0; }
.post__bleed-band { position: relative; overflow: hidden; background: var(--dark); }
.post__bleed-frame { position: relative; z-index: 1; margin: 0 auto; }
.post__bleed-frame img { display: block; width: 100%; height: auto; }
.post__bleed:not(.post__bleed--fill) .post__bleed-frame img { height: min(80vh, 780px); object-fit: cover; }
.post__bleed--fill .post__bleed-band::before { content: ""; position: absolute; inset: -40px; background: var(--img) center / cover no-repeat; filter: blur(36px) brightness(.92) saturate(1.05); transform: scale(1.1); }
.post__bleed figcaption { padding-top: 10px; }
.banner--fill { background: var(--dark); }
.banner--fill::before { content: ""; position: absolute; inset: -40px; background: var(--img) center / cover no-repeat; filter: blur(36px) brightness(.9); transform: scale(1.1); }
.banner__frame { position: absolute; inset: 0; margin: 0 auto; }
.banner__frame .banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner--fill::after { z-index: 0; }
.banner--fill .banner__text { z-index: 2; }
.post__bleed--fill .post__bleed-frame img, .banner--fill .banner__img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.post__cta { margin: 80px var(--inset) 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.post__cta p { margin: 0; font: 500 var(--fs-h3)/1.1 var(--serif); color: #fff; }

@media (max-width: 1100px) { .post { --c: .62; } }
@media (max-width: 860px) {
  .pb__inner, .pb--align-r .pb__inner { width: auto; margin-left: var(--inset); margin-right: var(--inset); }
  .post__float, .post__float--small, .pb .post__float { float: none; width: 100% !important; margin: 0 0 24px !important; }
  .post__float figcaption { text-align: left !important; }
  .post__facts { grid-template-columns: 1fr 1fr; }
  .post__gallery { grid-template-columns: 1fr 1fr; }
  .post__bleed img { height: auto !important; }
}
/* caption of a full-width photo starts where the text starts: page padding + article inset */
.post__bleed figcaption.wrap { padding-left: calc(var(--pad) + var(--inset)); padding-right: calc(var(--pad) + var(--inset)); }
/* single photos in the flow (e.g. the crew picture): 75 % of the text area, centred */
.pb--image .post__fig { width: 75%; margin: 0 auto; }
@media (max-width: 860px) { .pb--image .post__fig { width: 100%; } }

/* ---------- Images hang outside the content width ----------
 * Wider text column; images keep a moderate size (--w) and move outwards so that about half of them hangs
 * past the content edge (--hang) – less when the page margin is narrower. */
.post { --c: .66; }
.post__body .pb {
  --w: clamp(340px, 38cqw, 620px);
  --hang: min(calc(var(--w) / 2), max(0px, calc((100vw - 100cqw) / 2 - 24px)));
}
.post__float--right { width: var(--w); margin-left: 40px; margin-right: calc(-1 * (var(--F) + var(--inset) + var(--hang))); }
.post__float--left { width: var(--w); margin-right: 40px; margin-left: calc(-1 * (var(--F) + var(--inset) + var(--hang))); }
.post__float--small { width: calc(var(--w) * .75); }
/* beside an inner line: same position, the line stays clear */
.pb--line-inner-l .post__float--left { width: min(var(--w), calc(var(--F) + var(--hang))); margin-left: calc(-1 * (var(--F) + var(--hang) + 2 * var(--inset))); margin-right: 0; }
.pb--line-inner-r .post__float--right { width: min(var(--w), calc(var(--F) + var(--hang))); margin-right: calc(-1 * (var(--F) + var(--hang) + 2 * var(--inset))); margin-left: 0; }
@media (max-width: 1100px) { .post { --c: .7; } }
@media (max-width: 860px) { .post__body .pb { --hang: 0px; } }
/* 'hang' => false: smaller and inside the content width, starting at the same inset as the text */
.post__float--inside { width: clamp(220px, 20cqw, 340px) !important; }
.post__float--inside.post__float--left { margin-left: calc(-1 * var(--F)) !important; }
.post__float--inside.post__float--right { margin-right: calc(-1 * var(--F)) !important; }
@media (max-width: 860px) { .post__float--inside { width: 100% !important; margin: 0 0 24px !important; } }
/* image block 'full' => true: exactly the content width, caption aligned with the text */
.pb--image-full .pb__inner { width: 100%; margin: 0; }
.pb--image-full .post__fig { width: 100%; }
.pb--image-full figcaption { padding-left: var(--inset); }
/* captions of floating images sit on the inner edge, facing the text */
.post__float--right figcaption { text-align: left; }
.post__float--left figcaption { text-align: right; }
@media (max-width: 860px) { .post__float figcaption { text-align: left; } }
/* captions of full-width images (content width or edge to edge) are centred */
.pb--image-full figcaption, .post__bleed figcaption, .post__bleed figcaption.wrap { text-align: center; padding-left: var(--inset); padding-right: var(--inset); }
.post__bleed figcaption.wrap { padding-left: calc(var(--pad) + var(--inset)); padding-right: calc(var(--pad) + var(--inset)); }

/* ---------- Line drawing ----------
 * Each line is a 1px element that scales from 0 to its full length. site.js draws them as one chain along
 * the path: top → verticals (downwards) → bottom (out of the corner) → next block, waiting for each block to
 * scroll into view.
 * Without JS (no .js on <html>) or with reduced motion, the lines are simply there. */
.ln { position: absolute; z-index: 0; background: var(--line); pointer-events: none; }
.ln--l, .ln--il { left: 0; top: 0; bottom: 0; width: 1px; }
.ln--r, .ln--ir { right: 0; top: 0; bottom: 0; width: 1px; }
.ln--t { top: 0; left: 0; right: 0; height: 1px; }
.ln--b { bottom: 0; left: 0; right: 0; height: 1px; }
.ln--b.ln--from-l, .ln--t.ln--from-l { transform-origin: left center; }
.ln--b.ln--from-r, .ln--t.ln--from-r { transform-origin: right center; }
/* inner line sits at the text column's edge: the bottom line grows out from there */
.pb--align-r .ln--from-inner-l { transform-origin: calc(100% - var(--inset) - var(--I)) center; }
.pb--align-l .ln--from-inner-r { transform-origin: calc(var(--inset) + var(--I)) center; }
.ln--l, .ln--r, .ln--il, .ln--ir { transform-origin: center top; }

/* site.js draws the lines one after another along the path, at constant speed (linear, no fading):
 * it sets the transition duration per line from its length and adds .is-on when it's that line's turn. */
html.js .post .ln--l, html.js .post .ln--r, html.js .post .ln--il, html.js .post .ln--ir { transform: scaleY(0); }
html.js .post .ln--t, html.js .post .ln--b { transform: scaleX(0); }
html.js .post .ln.is-on { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .post .ln { transition: none !important; transform: none !important; }
}

/* «Weitere Beiträge» after a dark article: same dark style, so the page doesn't end in a bright block */
.post-more { --line: rgba(255, 255, 255, .22); border-top: 1px solid var(--line); padding-top: 80px; }
.post-more .surtitle { color: var(--brand); }
.post-more .card { border-color: var(--line); color: rgba(255, 255, 255, .84); }
.post-more a.card:hover { border-color: rgba(255, 255, 255, .6); }
.post-more a.card::before { background: linear-gradient(to top, var(--brand), #fff); }
.post-more a.card::after { background: linear-gradient(to right, var(--brand), #fff); }
.post-more--light a.card::before { background: linear-gradient(to top, var(--brand), var(--dark)); }
.post-more--light a.card::after { background: linear-gradient(to right, var(--brand), var(--dark)); }
.post-more .card__title { color: #fff; }
.post-more .card__meta, .post-more .hint { color: rgba(255, 255, 255, .7); }
.post-more .card .surtitle { color: var(--brand); }
.post-more .more { color: #fff; --more-to: #fff; }
.post-more .card__img { background: rgba(255, 255, 255, .05); }

/* ---------- Light blog article (posts without 'dark' => true) ----------
 * Same layout, lines and drawing; dark text and faint dark lines on the page background. */
.post--light { --line: rgba(0, 0, 35, .2); background: var(--lightgrey); color: var(--text); }
.post--light h2, .post--light h3, .post--light strong, .post--light .lead, .post--light .post__intro, .post--light .post__quote,
.post--light .post__facts dd, .post--light .post__cta p { color: var(--dark); }
.post--light .post__meta { color: var(--text-light); }
.post--light .post__meta .surtitle, .post--light .post__facts dt { color: var(--green); }
.post--light .tag { border-color: var(--dark); color: var(--dark); }
.post--light .post__intro::first-letter { color: var(--green); }
.post--light .post__quote::before, .post--light .post__quote::after { color: var(--green); }
.post--light figcaption, .post--light .post__quote cite { color: var(--text-light); }
.post--light a:not(.btn) { color: var(--dark); border-color: var(--brand); }
.post--light .post .prose img, .post--light .post__float img, .post--light .post__fig img { background: var(--grey); }
.post-more--light { --line: rgba(0, 0, 35, .2); background: var(--lightgrey); border-top: 1px solid var(--line); } /* same background as the light article, a line in between (like the dark one) */
.post-more--light .card { border-color: var(--lines); color: var(--dark); }
.post-more--light .card__title { color: var(--dark); }
.post-more--light .card__meta, .post-more--light .hint { color: var(--text-light); }
.post-more--light .more { color: var(--dark); --more-to: var(--dark); }
.post-more--light .card__img { background: var(--grey); }
.post--light .post__intro--short::first-letter { color: inherit; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.breadcrumb__sep { opacity: .6; }
.breadcrumb [aria-current] { opacity: .85; }
/* breadcrumb on blog posts: below the picture, above the meta line, aligned with the text */
.post__crumbs { margin: 0 var(--inset) 16px; color: rgba(255, 255, 255, .6); }
.post__crumbs a { color: rgba(255, 255, 255, .75) !important; border-color: rgba(255, 255, 255, .35) !important; }
.post--light .post__crumbs { color: var(--text-light); }
.post--light .post__crumbs a { color: var(--text-light) !important; border-color: var(--lines) !important; }

/* article inset shared by the blog text and the blog header, so the title starts where the text starts */
:root { --post-inset: 48px; }
@media (max-width: 1100px) { :root { --post-inset: 32px; } }
@media (max-width: 860px) { :root { --post-inset: 20px; } }
.banner--post .banner__text { padding-left: calc(var(--pad) + var(--post-inset)); padding-right: calc(var(--pad) + var(--post-inset)); }
/* drop cap exactly as tall as three lines: from the first line's cap height to the third line's baseline */
.post__intro:not(.post__intro--short)::first-letter { font-size: 4.65em; line-height: .78; margin: .03em .1em 0 0; }
@supports ((initial-letter: 3) or (-webkit-initial-letter: 3)) {
  .post__intro:not(.post__intro--short)::first-letter {
    -webkit-initial-letter: 3; initial-letter: 3;
    float: none; font-size: inherit; line-height: inherit; margin: 0 .14em 0 0;
  }
}
/* Tiempos Headline's web font places initial-letter too high (cap-height metric); Tiempos Text (same family
   as the intro) sits right. A little more air on the right. */
@supports ((initial-letter: 3) or (-webkit-initial-letter: 3)) {
  .post__intro:not(.post__intro--short)::first-letter { font-family: var(--serif); font-weight: 500; margin: 0; padding-right: .35em; }
}
.post__intro:not(.post__intro--short)::first-letter { margin-right: .22em; }

/* ---------- Calm article (.post--calm, 'blog_style' => 'calm' or ?style=calm) ----------
 * Title, breadcrumb, meta line and facts sit at the content edge / span the content width, no inset padding.
 * Intro and article text are one column (--calm-w) centred in the content width; intro text centred, article
 * text left-aligned. Nothing
 * switches sides, nothing is drawn while scrolling; the only lines are static ones above and below the intro,
 * across the content width. Images span the full content width; 'hang' => false images (portrait/square) stay small and
 * float right beside the text.
 * --col = real column width, --gap = space between content edge and column. */
.post--calm, .banner--calm { --calm-w: 780px; }
.post--calm { --inset: 0px; }
.post--calm .post__body { --col: min(var(--calm-w), 100cqw); --gap: calc((100cqw - var(--col)) / 2); }
.post--calm .post__intro, .post--calm .pb .pb__inner, .post--calm .post__cta {
  width: auto; max-width: var(--calm-w); margin-left: auto; margin-right: auto;
}
.post--calm .post__intro { position: relative; margin-top: 40px; margin-bottom: 0; padding: 48px 0; text-align: center; }
.post--calm .post__intro::before { content: ""; position: absolute; top: 0; left: calc(-1 * var(--gap)); width: 100cqw; height: 1px; background: var(--line); }
.post--calm .post__intro::after { content: ""; position: absolute; bottom: 0; left: calc(-1 * var(--gap)); width: 100cqw; height: 1px; background: var(--line); }
.post--calm .post__facts { margin-top: 56px; margin-bottom: 0; } /* facts come before the intro in calm */
.post--calm .pb .pb__inner { padding: 40px 0; }
.post--calm .pb:not(.pb--bleed) + .pb:not(.pb--bleed) .pb__inner { padding-top: 0; }
/* images: full content width, caption starts where the text starts */
.post--calm .post__float { float: none; width: 100cqw !important; max-width: none; margin: 8px 0 32px calc(-1 * var(--gap)) !important; }
.post--calm figcaption { text-align: left !important; padding-left: var(--gap) !important; padding-right: var(--gap) !important; }
.post--calm .pb--image .pb__inner, .post--calm .pb--gallery .pb__inner { max-width: none; }
.post--calm .pb--image .post__fig { width: 100%; }
.post--calm .pb--gallery figcaption { padding-left: 0 !important; padding-right: 0 !important; }
.post--calm .post__bleed figcaption.wrap { padding-left: var(--pad) !important; padding-right: var(--pad) !important; max-width: calc(var(--calm-w) + 2 * var(--pad)); }
/* 'hang' => false (e.g. the manta beside the list): small, on the right, text runs beside it */
.post--calm .post__float.post__float--inside { float: right; width: clamp(200px, 32%, 300px) !important; margin: 4px 0 24px 40px !important; }
.post--calm .post__float--inside figcaption { padding-left: 0 !important; padding-right: 0 !important; }
@media (max-width: 600px) {
  .post--calm .post__float.post__float--inside { float: none; width: 100% !important; margin: 0 0 24px !important; }
}
/* quotes: same column, left-aligned */
.post--calm .pb--quote .pb__inner { text-align: left; padding-top: 24px; padding-bottom: 56px; }
.post--calm .post__quote { font-size: clamp(24px, 1.9vw, 36px); line-height: 1.2; }
.post--calm .post__cta { margin-top: 64px; }
/* post title on the picture: at the content edge, like breadcrumb and meta line */
.banner--calm .banner__text { padding-left: var(--pad); padding-right: var(--pad); }
/* breadcrumb closer to the picture, more room between it and the article */
.post--calm { padding-top: 22px; }
.post--calm .post__crumbs { margin-bottom: 44px; }
/* no drop cap on the centred intro: it would push the first lines off-centre */
.post--calm .post__intro:not(.post__intro--short)::first-letter {
  -webkit-initial-letter: normal; initial-letter: normal; float: none;
  font: inherit; color: inherit; margin: 0; padding: 0;
}
/* calm intro a little smaller, so long intros don't turn into a wall of large text */
.post--calm .post__intro { font-size: clamp(19px, 1.35vw, 25px); line-height: 1.45; }
/* calm quotes: a line above and below, as wide as the text column */
.post--calm .post__quote { padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* opening « hangs outside the text column, so the quote's words line up with the text */
.post--calm .post__quote { position: relative; }
.post--calm .post__quote::before { position: absolute; left: 0; transform: translateX(-100%); margin: 0; padding-right: .12em; }
/* big «: 3× the quote text, vertically centred on the quote (padding above and below is equal) */
.post--calm .post__quote::before { font-size: 3em; line-height: 1; top: 41%; transform: translate(-100%, -50%); } /* centred on the whole quote (41 %: the glyph sits low in its box) */
/* phones: no room beside the column, the « stays in the text */
@media (max-width: 860px) {
  .post--calm .post__quote::before { position: static; transform: none; font-size: inherit; line-height: inherit; padding: 0; margin-right: .1em; }
}
/* gallery 'portrait' => true: upright photos stay upright, equal columns */
.post__gallery--portrait { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.post__gallery--portrait img { aspect-ratio: 3 / 4; }
/* blog post without a picture banner ('hero' => false): title on the article's own background */
.pagehead--plain.banner--post { padding: 72px 0 8px; }
.pagehead--plain.banner--post .wrap { padding-left: calc(var(--pad) + var(--post-inset)); padding-right: calc(var(--pad) + var(--post-inset)); }
.pagehead--plain.banner--calm .wrap { padding-left: var(--pad); padding-right: var(--pad); }
.pagehead--plain.banner--post h1 { margin-top: 8px; max-width: 1000px; }
.pagehead--dark { background: var(--dark); color: #fff; }
.pagehead--dark h1 { color: #fff; }
.pagehead--dark .surtitle { color: var(--brand); }
.pagehead--light { background: var(--lightgrey); }

/* ---------- Gallery slider on phones and tablets ----------
 * The gallery row becomes a swipe strip: native scroll-snap, the next photo peeks in, the strip runs to the
 * screen edge. site.js adds the markers below (times next to the days, current one turquoise). Desktop: normal row. */
.slider-dots { display: none; }
@media (max-width: 1100px) {
  .post .post__gallery, .post .post__gallery--portrait {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-left: 0; scrollbar-width: none;
    margin-right: calc(-1 * var(--pad)); padding-right: var(--pad);
  }
  .post .post__gallery::-webkit-scrollbar { display: none; }
  /* phones: one photo plus a peek; tablets: about two and a half */
  .post .post__gallery figure { flex: 0 0 clamp(260px, 42%, 460px); scroll-snap-align: start; }
  .post .post__gallery--portrait figure { flex-basis: clamp(230px, 36%, 340px); }
  .slider-dots { display: flex; gap: 6px; margin-top: 18px; }
  .slider-dots button { flex: 0 0 auto; width: 22px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
  .slider-dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line); transition: background .2s, width .2s; }
  .slider-dots button.is-on::after { background: var(--brand); }
  .post--light .slider-dots button.is-on::after { background: var(--green); }
}

/* ---------- Geschichte: timeline with the old photos ----------
 * Year column sticks while its chapter scrolls by; a navy → turquoise line runs down the timeline (like the card L);
 * photos sit as slightly tilted prints that straighten on hover and open large in a lightbox. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.history-intro { padding-bottom: 0; }
.history { padding-top: 48px; padding-bottom: 120px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 220px; width: 1px; background: linear-gradient(to bottom, var(--dark), var(--brand) 60%, var(--dark)); }
.timeline__entry { display: grid; grid-template-columns: 220px minmax(0, 1fr); padding: 0 0 96px; position: relative; }
.timeline__entry::before { content: ""; position: absolute; left: 216px; top: .9em; width: 9px; height: 9px; background: var(--brand); box-shadow: 0 0 0 4px var(--lightgrey); }
.timeline__year { position: sticky; top: calc(var(--header-h, 72px) + 24px); align-self: start; padding-right: 32px;
  font: 500 clamp(44px, 4.4vw, 84px)/1 var(--headline); letter-spacing: -.01em;
  background: linear-gradient(120deg, var(--dark) 35%, var(--brand)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.timeline__body { padding-left: 56px; max-width: 860px; }
.timeline__body h2 { font: 500 var(--fs-h3)/1.15 var(--serif); margin: .35em 0 .7em; }
.timeline__body > p { max-width: 680px; }
.timeline__quote { margin: 28px 0 8px; padding: 4px 0 4px 24px; border-left: 2px solid var(--brand); max-width: 640px; }
.timeline__quote p { font: 400 var(--fs-h4)/1.35 var(--serif); font-style: italic; margin: 0 0 .5em; }
.timeline__quote footer { font-size: var(--fs-small); color: var(--text-light); }
.timeline__logo { width: 220px; height: auto; margin: 24px 0; }
.timeline__entry--now { padding-bottom: 0; }
.timeline__claim { font: 500 var(--fs-h4)/1.2 var(--serif); }

.prints { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 24px; margin-top: 36px; }
.print { padding: 10px 10px 28px; border: 0; background: #fff; cursor: zoom-in; box-shadow: 0 1px 2px rgba(0,0,35,.08), 0 10px 28px -12px rgba(0,0,35,.35);
  transform: rotate(var(--tilt, -1.5deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.print:nth-child(3n+2) { --tilt: 1.2deg; }
.print:nth-child(3n+3) { --tilt: -.6deg; }
.print img { height: 220px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.print:hover, .print:focus-visible { transform: rotate(0) translateY(-4px) scale(1.03); box-shadow: 0 2px 4px rgba(0,0,35,.08), 0 22px 40px -16px rgba(0,0,35,.4); position: relative; z-index: 1; }
.print--logo { padding: 18px; background: transparent; box-shadow: none; --tilt: 0deg; }
.print--logo img { height: 110px; }
.print--logo:hover, .print--logo:focus-visible { box-shadow: none; }

/* entries rise in once they scroll into view (only with JS) */
html.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 35, .85); }
.lightbox[open] { animation: pop-in .35s var(--ease); }
.lightbox figure { margin: 0; background: #fff; padding: 14px 14px 18px; }
.lightbox img { max-width: 100%; max-height: calc(92vh - 90px); width: auto; height: auto; margin: 0 auto; }
.lightbox figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--text-light); }
.lightbox__close { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; border: 0; background: none; color: #fff; font: 300 36px/1 var(--sans); cursor: pointer; }

@media (max-width: 900px) {
  .timeline::before { left: 4px; }
  .timeline__entry { grid-template-columns: 1fr; padding: 0 0 64px 32px; }
  .timeline__entry::before { left: 0; top: .5em; }
  .timeline__year { position: static; padding: 0; font-size: 44px; }
  .timeline__body { padding-left: 0; }
  .print img { height: 150px; }
  .print--logo img { height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .print, .lightbox[open] { transition: none; animation: none; }
}

/* location in a side box (shop pages): one column */
.contact-compact .location h3 { font-size: var(--fs-h4); margin-top: 0; }
.contact-compact .hours { width: 100%; }

/* breadcrumb strip right below a picture banner */
.crumbs-bar { padding: 20px 0 0; }
.crumbs-bar .breadcrumb { margin: 0; }
.crumbs-bar + .section { padding-top: 40px; }
