/* honeydew.ch, Variante Bento: die Seite als Feld aus Haarlinien, wie die Melone im Logo */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --mute: #6e6e6e;
  --line: #d9d9d9;
  /* offizielle Markenfarben (Brand Style Guide) */
  --red: #FE1438;
  --apricot: #FFCEB5;
  --green: #A9F2C4;
  --hair: 1px;
  --wide: 76rem;
  --edge: clamp(.75rem, 3vw, 2.5rem);
  --pad: clamp(1.25rem, 2.6vw, 2.25rem);
  --f: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.7 var(--f); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; background: linear-gradient(var(--hov), var(--hov)) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; }
a:hover { color: var(--ink); }
/* beim Darueberfahren nur die Linie unter Textlinks rot, nie eine Flaeche */
main a:not(.tile):hover { background: linear-gradient(var(--hov), var(--hov)) 0 100% / 100% 3px no-repeat; color: var(--ink); }
.brand:hover { background: var(--paper); }
:focus-visible { outline: var(--hair) solid var(--ink); outline-offset: -6px; }
h1, h2, h3 { font-weight: 300; margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; }
figure { margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 10; }

/* Achsen: alles teilt sich in Haelften und Vierteln, jede Linie trifft auf eine andere */
/* Rahmen: Kopf, Inhalt und Fuss teilen sich dieselben Aussenlinien */
.top, main, .foot { width: calc(100% - 2 * var(--edge)); max-width: var(--wide); margin-inline: auto; border-inline: var(--hair) solid var(--line); }
.top { margin-top: var(--edge); border-top: var(--hair) solid var(--line); }
.foot { margin-bottom: var(--edge); }

/* Jedes Band ist ein 12er-Raster; die Linien entstehen aus 1px Abstand auf Linienfarbe */
.top, .page-head, .row, .tiles, .foot-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--hair); background: var(--line); border-bottom: var(--hair) solid var(--line); }
.top > *, .page-head > *, .row > *, .tiles > *, .foot-in > * { background: var(--paper); padding: var(--pad); margin: 0; }

/* Farbakzente: rot als Hauptakzent, die drei Melonenfarben nur versteckt */
::selection { background: var(--hov); color: var(--ink); }
svg .cut { fill: var(--hov); }
svg .s1 { stroke: var(--apricot); }
svg .s2 { stroke: var(--green); }
svg .s3 { stroke: var(--apricot); }
.seed { color: var(--hov); font-weight: 700; }
/* Zwischentitel: ein Kern am Ende, abwechselnd in den drei Melonenfarben */
.row-h::after { content: ""; display: inline-block; width: .3em; height: .3em; border-radius: 50%; margin-left: .12em; background: var(--hov); }
/* Zitatquelle mit kurzem Strich */
blockquote footer::before { content: ""; display: inline-block; width: 1.6rem; height: 1.5px; background: var(--hov); vertical-align: middle; margin-right: .6rem; }

/* CI: ausser Fliesstext ist alles kleingeschrieben */
.menu-btn, .page-head:not(.home) h1, .row-h, .tile h2, .tile h3, .tile .more, .tile.brand span, .links a, .btn,
.form label, address, .legal, .head-foot blockquote footer, blockquote footer, .faq summary { text-transform: lowercase; }

/* Kopf */
.top { align-items: stretch; }
.brand { grid-column: 1 / 7; display: flex; align-items: center; background: var(--paper); padding-bottom: var(--pad); }
.brand svg { height: 30px; width: auto; display: block; }
.top nav { grid-column: 7 / 13; display: flex; align-items: center; justify-content: flex-end; }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: .95rem; }
.top nav a { background: none; color: var(--mute); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); background: none; }
.top nav a[aria-current="page"] { background: linear-gradient(var(--hov), var(--hov)) 0 100% / 100% 1.5px no-repeat; }
/* ein Buchstabe pro Menuepunkt: fett per Kontur, damit nichts verrutscht */
.top nav .k { transition: color .15s, -webkit-text-stroke-color .15s; -webkit-text-stroke: 0 transparent; }
/* der Buchstabe zeigt die Farbe der Seite, zu der der Link führt */
.k-red { --c: var(--red); } .k-green { --c: var(--green); } .k-apricot { --c: var(--apricot); }
.top nav a:hover .k { color: var(--c); -webkit-text-stroke: .9px var(--c); }
/* eine Rollover-Farbe pro Seite */
.hov-red { --hov: var(--red); } .hov-green { --hov: var(--green); } .hov-apricot { --hov: var(--apricot); }
.menu-btn { display: none; }

/* Seitenkopf: Bild links randlos im Feld, Titel und Text rechts */
.page-head .head-img { grid-column: 1 / 7; grid-row: 1; padding: 0; position: relative; overflow: hidden; aspect-ratio: 1 / 1; }
/* Foto ist hoeher als sein Rahmen und gleitet beim Scrollen schneller nach oben (site.js) */
.head-img img { position: absolute; left: 0; top: 0; width: 100%; height: 140%; max-width: none; object-fit: cover; will-change: transform; filter: grayscale(1) sepia(.18) contrast(1.04) brightness(1.03); }
.page-head .head-t { grid-column: 7 / 13; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.head-t h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.08; max-width: 14ch; margin-top: -.12em; }
.page-head.home h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.12; max-width: 17ch; }
.head-foot { max-width: 32rem; }
.head-foot p { margin: 0; }
.head-desc { color: var(--mute); }
.head-foot blockquote { margin: 0; }
.head-foot blockquote p { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 300; line-height: 1.4; margin-bottom: .5rem; }
.head-foot blockquote footer { color: var(--mute); font-size: .95rem; }

/* Zeilen: Titelfeld links, Inhaltsfeld rechts */
.row-h { grid-column: 1 / 7; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; }
.row-b { grid-column: 7 / 13; }
.row-b > :last-child, .row-b .prose > :last-child { margin-bottom: 0; }
.prose { max-width: 38rem; }
.prose p { hyphens: auto; }
.big { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 300; line-height: 1.45; font-style: normal; margin-bottom: 1.4rem; }
.note { color: var(--mute); font-size: .95rem; }
.links { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 0; }

/* Kacheln */
.tiles.t4 > .tile { grid-column: span 3; min-height: 11rem; }
.tile { display: flex; flex-direction: column; }
.tile.lab h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; margin-bottom: .8rem; }
.tile.link { background-image: none; padding-bottom: var(--pad); transition: box-shadow .2s; }
.tile.link:hover { color: var(--ink); }
.tile.link:hover .more { background-image: linear-gradient(var(--hov), var(--hov)); }
.tile.link h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.tile.link p { color: var(--mute); font-size: .95rem; flex: 1; }
.tile .more { font-size: .9rem; align-self: flex-start; background: linear-gradient(currentColor, currentColor) 0 100% / 100% var(--hair) no-repeat; }
.tile.brand { justify-content: space-between; align-items: flex-start; background-image: none; min-height: 10rem; gap: 1.2rem; transition: box-shadow .2s; }
.tile.brand:hover { color: var(--ink); }
.tile.brand img { width: auto; max-width: 75%; object-fit: contain; opacity: .85; transition: opacity .2s; }
.tile.brand > img { flex: 0 0 auto; margin-top: auto; margin-bottom: auto; }
.tile.brand:hover img { opacity: 1; }
.tile.brand span { font-size: .85rem; color: var(--mute); }
.row.brand-head .row-b .note { margin: 0; }
.row.brand-head { border-bottom: 0; }

/* Listen in Feldern */
.svc, .lines, .media { list-style: none; margin: 0; padding: 0; }
.svc li, .lines li, .media li { border-bottom: var(--hair) solid var(--line); padding: .9rem 0; }
.svc li:first-child, .lines li:first-child, .media li:first-child { padding-top: 0; }
.svc li:last-child, .lines li:last-child, .media li:last-child { border-bottom: 0; padding-bottom: 0; }
.svc a { display: grid; gap: .2rem; background: none; }
.svc-n { font-size: 1.2rem; font-weight: 300; }
.svc-t { color: var(--mute); font-size: .95rem; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; }
.steps li::before { content: counter(s); color: var(--hov); }
.media li { display: flex; flex-direction: column; }
.media li span { color: var(--mute); font-size: .92rem; }
.brandlist { list-style: none; margin: 0; padding: 0; }
.brandlist li { padding: .6rem 0; border-bottom: var(--hair) solid var(--line); font-size: 1.15rem; font-weight: 300; }

/* FAQ */
.faq details { border-bottom: var(--hair) solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-size: 1.15rem; font-weight: 300; list-style: none; position: relative; }
.faq details:first-child summary { padding-top: 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .25rem; top: 50%; width: 11px; height: var(--hair); background: var(--hov); }
.faq summary::before { content: ""; position: absolute; right: calc(.25rem + 5px); top: calc(50% - 5px); width: var(--hair); height: 11px; background: var(--hov); }
.faq details:first-child summary::after { top: calc(50% - .5rem); }
.faq details:first-child summary::before { top: calc(50% - .5rem - 5px); }
.faq details[open] summary::before { display: none; }
.faq details p { color: var(--mute); }

/* Formular */
.form { max-width: 34rem; }
.form label { display: block; margin-bottom: 1.4rem; font-size: .9rem; color: var(--mute); }
.form input, .form textarea { display: block; width: 100%; margin-top: .3rem; font: inherit; font-size: 1.05rem; color: var(--ink); background: transparent; border: 0; border-bottom: var(--hair) solid var(--line); padding: .45rem 0; border-radius: 0; }
.form input:focus, .form textarea:focus { border-bottom-color: var(--hov); outline: none; }
.btn { font: inherit; font-size: .98rem; color: var(--ink); background: transparent; border: var(--hair) solid var(--ink); padding: .7rem 1.5rem; cursor: pointer; border-radius: 0; }
.btn:hover { border-color: var(--hov); color: var(--hov); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; }
address { font-style: normal; }

/* Fuss */
.foot-in { font-size: .88rem; color: var(--mute); }
.foot-brand { grid-column: 1 / 7; line-height: 0; }
.foot-brand svg { height: 22px; width: auto; display: block; color: var(--ink); }
.foot address { grid-column: 7 / 10; }
.foot-links { grid-column: 10 / 13; list-style: none; }
.foot a { background: none; }
.foot a:hover { color: var(--ink); background: linear-gradient(var(--hov), var(--hov)) 0 100% / 100% var(--hair) no-repeat; }
.legal { grid-column: 1 / 13; font-size: .78rem; }

@media (max-width: 60rem) {
  .tiles.t4 > .tile { grid-column: span 6; }
}
@media (max-width: 46rem) {
  /* Handy: randlos, ein Raster, weniger Linien, Titel sichtbar ohne Scrollen */
  :root { --edge: 0px; --pad: 1.25rem; }
  .top, main, .foot { width: 100%; border-inline: 0; }
  .top { position: sticky; top: 0; z-index: 10; margin-top: 0; border-top: 0; }
  .brand { grid-column: 1 / 9; padding-block: 1.05rem; }
  .brand svg { height: 26px; }
  .menu-btn { display: block; grid-column: 9 / 13; font: inherit; font-size: .9rem; letter-spacing: .02em; background: var(--paper); border: 0; color: var(--ink); cursor: pointer; text-align: right; padding: 0 var(--pad); -webkit-tap-highlight-color: transparent; }
  .top nav { grid-column: 1 / 13; display: none; padding: .25rem var(--pad) 1.25rem; }
  .top nav.open { display: block; max-height: calc(100vh - 4rem); overflow-y: auto; }
  .top nav ul { flex-direction: column; gap: 0; font-size: 1.45rem; font-weight: 300; }
  .top nav li { border-bottom: var(--hair) solid var(--line); }
  .top nav li a { display: block; padding: .8rem 0; color: var(--ink); }
  .top nav li.lang { border-bottom: 0; }
  .top nav li.lang a { font-size: .95rem; color: var(--mute); padding-top: 1.1rem; }
  .top nav a[aria-current="page"] { background: none; }
  .top nav a[aria-current="page"]::after { content: "."; color: var(--hov); font-weight: 700; }

  .page-head, .row { row-gap: 0; }
  .page-head .head-img, .page-head .head-t { grid-row: auto; }
  .page-head .head-img { order: -1; }
  .page-head .head-img, .page-head .head-t, .row-h, .row-b, .tiles.t4 > .tile, .foot-brand, .legal { grid-column: 1 / 13; }
  .page-head .head-img { aspect-ratio: 4 / 3; }
  .page-head .head-t { gap: 2rem; padding-top: 1.6rem; padding-bottom: 1.8rem; }
  .head-t h1 { font-size: 2.35rem; line-height: 1.08; margin-top: 0; }
  .page-head.home h1 { font-size: 2.05rem; line-height: 1.14; }
  .head-foot blockquote p { font-size: 1.1rem; }

  .row-h { font-size: 1.3rem; padding-bottom: 0; padding-top: 1.7rem; }
  .row-b { padding-top: .9rem; padding-bottom: 1.9rem; }
  .big { font-size: 1.2rem; }
  .prose p { hyphens: auto; -webkit-hyphens: auto; }
  .links { gap: .9rem 1.6rem; }

  .tiles.t4 > .tile { min-height: 0; }
  .tile.link h3 { font-size: 1.2rem; }
  .tile.brand { padding-block: 1.1rem; min-height: 8rem; gap: 1rem; }
  .tiles.t4 > .tile.brand { grid-column: span 6; }
  .tile.brand img { max-width: 85%; }

  .foot address { grid-column: 1 / 7; }
  .foot-links { grid-column: 7 / 13; }
  .foot-in { font-size: .85rem; }
  .legal { padding-bottom: calc(var(--pad) + env(safe-area-inset-bottom)); }
  .form input, .form textarea { font-size: 16px; }
}
/* Touch-Geräte: kein Darüberfahren, darum sind die Akzente dort dauerhaft sichtbar, in der Seitenfarbe */
@media (hover: none) {
  main a:not(.tile), .tile .more, .foot a { background: linear-gradient(var(--hov), var(--hov)) 0 100% / 100% var(--hair) no-repeat; }
  /* Menü auf dem Handy: keine fetten Buchstaben, die aktuelle Seite endet mit einem Kern wie die Seitentitel */
  .top nav .k, .top nav a[aria-current="page"] .k { color: inherit; -webkit-text-stroke: 0 transparent; }
  .top nav a[aria-current="page"]::after { content: "."; color: var(--hov); font-weight: 700; }
  .top nav a:active .k { color: var(--c); }
  .btn { border-color: var(--hov); }
  .tile.brand img { opacity: 1; }
  /* kurzes Feedback beim Antippen: nur Linie und Buchstabe, keine Fläche */
  .tile:active, a:active { background-color: transparent; }
  .tile.link:active h3, .tile.brand:active span { text-decoration: underline; text-decoration-color: var(--hov); text-decoration-thickness: var(--hair); text-underline-offset: .25em; }
  .btn:active { color: var(--hov); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
