:root {
  color-scheme: light;
  --ink: #153b38;
  --dark: #102e2b;
  --cream: #f4f0e5;
  --paper: #faf7ee;
  --gold: #b59a5a;
  --orange: #d77939;
  --rust: #a64a24;
  --muted: #4c6256;
  --line: #d8d2bf;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", "Segoe UI", sans-serif;
  --max: 1280px;
  --gutter: clamp(20px, 5.55vw, 86px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.55 var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-inline-size: 100%; object-fit: cover; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .75; }
:focus-visible { outline: 3px solid #bc532a; outline-offset: 4px; }
:where(section, footer)[id] { scroll-margin-top: 24px; }
p, h1, h2, h3, dl, blockquote, figure { margin: 0; }
h1, h2, h3, .wet { font-family: var(--serif); font-weight: 400; line-height: 1.04; }
h2 { font-size: clamp(2.55rem, 5.25vw, 5.1rem); letter-spacing: -.052em; overflow-wrap: anywhere; }
h3 { font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.036em; }
h1 em, h2 em { color: var(--rust); font-weight: inherit; }
.wrap { max-inline-size: calc(var(--max) + var(--gutter) * 2); padding-inline: var(--gutter); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 118px); }
.eyebrow { display: flex; align-items: center; gap: .65em; color: var(--rust); font-size: .78rem; letter-spacing: .15em; line-height: 1.45; text-transform: uppercase; font-weight: 700; }
.eyebrow > span:empty { width: 24px; height: 1px; background: currentColor; flex: 0 0 24px; }
.skip { position: fixed; inset: .6rem auto auto .6rem; z-index: 10; background: var(--paper); padding: .65rem 1rem; transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { flex: 0 0 auto; }
.brand strong { display: block; font: bold 1.38rem/1 var(--serif); letter-spacing: -.045em; }
.brand strong span { color: var(--rust); }
.brand small { display: block; margin-top: 5px; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
nav { display: flex; gap: clamp(14px, 2.65vw, 43px); align-items: center; }
nav a { text-decoration: none; font-size: .92rem; font-weight: 700; }
nav a:hover { text-decoration: underline; }
.nav-cta { padding: .62rem .95rem; border: 1px solid var(--ink); white-space: nowrap; }
.nav-cta span { margin-left: .45em; }
.hero { display: grid; grid-template-columns: 47% 53%; min-height: clamp(550px, 45vw, 680px); }
.hero-copy { padding: clamp(55px, 6.7vw, 108px) clamp(20px, 3vw, 57px) clamp(56px, 6vw, 94px) max(var(--gutter), calc((100vw - var(--max)) / 2)); align-self: center; position: relative; }
.hero h1 { font-size: clamp(3.5rem, 6.4vw, 7.3rem); letter-spacing: -.086em; line-height: .97; margin: 28px 0 25px; }
.hero-description { color: var(--muted); font-size: clamp(1rem, 1.38vw, 1.22rem); max-width: 30ch; margin-bottom: 27px; }
.hero-figure { position: relative; min-width: 0; isolation: isolate; background: var(--dark); }
.hero-figure img { position: absolute; width: 100%; height: 100%; object-position: 66% 48%; }
.hero-figure::after { content: ""; position: absolute; inset: auto 0 0; height: 29%; background: linear-gradient(transparent, #0a211aca); pointer-events: none; }
.hero-figure figcaption { position: absolute; inset: auto clamp(20px, 3.4vw, 56px) 25px; display: flex; justify-content: space-between; align-items: end; gap: 1rem; color: var(--cream); z-index: 1; }
.hero-caption { font-size: .8rem; letter-spacing: .07em; }
.hero-caption span { color: #ecd18a; margin-inline: .2em; }
.seal { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 106px; aspect-ratio: 1; flex: 0 0 auto; border: 1px solid currentColor; border-radius: 50%; outline: 1px solid currentColor; outline-offset: -6px; color: #ecd18a; line-height: 1; transform: rotate(-10deg); text-align: center; }
.seal span { font-size: .49rem; font-weight: 700; letter-spacing: .13em; }
.seal strong { font: 1.39rem/.87 var(--serif); margin-block: .24em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .9em; border: 1px solid transparent; padding: .72rem 1.15rem; min-height: 46px; text-decoration: none; font-weight: 700; line-height: 1.25; transition: background .16s, color .16s; }
.primary { background: var(--rust); color: #fffaf0; }
.primary:hover { background: #803619; }
.stats { background: var(--ink); color: var(--cream); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 29px 34px; }
.stats-grid div { text-align: center; }
.stats-grid div + div { border-inline-start: 1px solid #ede0be44; }
.stats dt { color: #ebce91; font: clamp(2.2rem, 4.35vw, 4.25rem)/1 var(--serif); }
.stats dt span { font-size: .48em; vertical-align: .33em; }
.stats dd { margin: .61em 0 0; font-size: .83rem; letter-spacing: .04em; }
.heading { margin-bottom: clamp(26px, 3.6vw, 48px); }
.heading .eyebrow { margin-bottom: 16px; }
.heading p:not(.eyebrow, .status) { color: var(--muted); margin-top: 17px; max-width: 58ch; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18ch, 30ch); align-items: end; gap: 24px; }
.oracle-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 5.5vw, 86px); align-items: start; }
.oracle-heading { margin: 0; }
.oracle-heading h2 { font-size: clamp(2.26rem, 4.4vw, 4.65rem); }
.oracle-box, .wide-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(21px, 3.4vw, 48px); min-width: 0; }
.oracle-box { border-top: 3px solid var(--gold); }
label { display: block; font-weight: 700; margin-bottom: .5rem; }
input:not([type="radio"]), textarea { display: block; width: 100%; min-width: 0; min-height: 46px; border: 1px solid #8e9a85; border-radius: 0; color: var(--ink); background: #fffdf7; padding: .65rem .78rem; }
textarea { resize: vertical; }
::placeholder { color: #5b6d61; }
form > .button { margin-top: 13px; }
.status { color: var(--muted); font-size: .9375rem; }
.status:not(:empty) { margin-top: .82rem; }
.thinking::before { content: "◌"; display: inline-block; margin-right: .48em; color: var(--rust); animation: turn 1s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.oracle-result { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; overflow-wrap: anywhere; }
.oracle-result blockquote { margin-block: .4em; font: italic clamp(1.35rem, 2.5vw, 2rem)/1.25 var(--serif); }
.question-echo, .attribution { color: var(--muted); font-size: .88rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.actions:not(:first-child) { margin-top: .9rem; }
.actions button { padding: .52rem .72rem; min-height: 44px; border: 1px solid currentColor; background: transparent; color: inherit; text-align: start; font-size: .88rem; line-height: 1.2; }
.actions button:hover { text-decoration: underline; }
.team-section, .chat-section { background: #eae6d8; border-block: 1px solid var(--line); }
.team-grid, .lab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 32px); }
.team-card { background: var(--paper); border: 1px solid var(--line); }
.team-card img { width: 100%; height: auto; aspect-ratio: 1.2; }
.team-card > div { padding: clamp(17px, 2.15vw, 31px); }
.team-card h3 { margin-block: .35em; }
.team-card details { margin-top: 1rem; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
.team-card summary { padding-top: .65rem; font-size: .87rem; }
details > p { margin-top: .53rem; color: var(--muted); }
.quiz-track { display: grid; gap: .45rem; margin-bottom: 1.4rem; }
progress { width: 100%; height: 8px; accent-color: var(--rust); }
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
legend { padding: 0; margin-bottom: .85rem; font: clamp(1.35rem, 3vw, 2rem)/1.2 var(--serif); }
.quiz-options { display: grid; gap: .5rem; }
.quiz-options label { display: flex; align-items: center; gap: .65rem; font-weight: 400; margin: 0; min-height: 46px; padding: .55rem .75rem; border: 1px solid var(--line); cursor: pointer; }
.quiz-options label:has(:checked) { border-color: var(--ink); background: #e9eee5; }
.quiz-options input { accent-color: var(--rust); flex: 0 0 auto; }
#quiz-title { margin: .25em 0; }
.certificate-section { background: var(--dark); color: var(--cream); }
.certificate-section .heading { margin: 0; }
.certificate-section .heading :is(.eyebrow, em) { color: #edc379; }
.certificate-section .heading p:not(.eyebrow), .certificate-section .status { color: #ece4cf; }
.certificate-layout, .chat-layout { display: grid; grid-template-columns: minmax(0, .77fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 6vw, 100px); }
#certificate-form { margin-top: 1.25rem; }
.certificate-paper { background: #fbf5e3; color: var(--ink); border: 5px double #9b7a37; outline: 1px solid #ad8f4c; outline-offset: -12px; padding: clamp(23px, 4vw, 52px); text-align: center; overflow-wrap: anywhere; }
.certificate-paper > img { margin: 0 auto 10px; }
.certificate-paper .eyebrow { display: block; color: #765a29; font-size: .67rem; }
.certificate-paper h3 { font-size: clamp(1.9rem, 4vw, 3.45rem); margin-block: .23em .38em; }
.certificate-name, .certificate-rank { font: italic clamp(1.3rem, 3vw, 2.15rem)/1.12 var(--serif); margin-block: .48em; }
.certificate-name { color: var(--rust); }
.certificate-rank { font-style: normal; font-size: clamp(1.12rem, 2.1vw, 1.65rem); }
.certificate-footer { margin: .85rem 0 .42rem; display: flex; align-items: center; gap: 20px; justify-content: center; }
.certificate-footer .seal { width: 74px; color: #876529; }
.certificate-footer .seal span { font-size: .39rem; letter-spacing: .04em; }
.certificate-footer .seal strong { font-size: 1rem; }
.signature { display: block; font: italic 1.35rem/1.2 var(--serif); padding-inline: .55rem; border-bottom: 1px solid #a38b5e; }
.certificate-paper small { font-size: .75rem; }
.reports { border-top: 1px solid var(--line); }
.reports details, .faq details { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.reports summary, .faq summary { font: 1.25rem/1.35 var(--serif); }
.reports blockquote { margin-block: .65rem; padding-inline-start: .8rem; border-inline-start: 2px solid var(--gold); font: italic 1.18rem/1.4 var(--serif); }
.daily { background: var(--ink); color: var(--cream); padding: clamp(42px, 6vw, 84px) 0; }
.daily .eyebrow { color: #ecc88a; }
.daily blockquote { margin-block: .45em; font: italic clamp(1.85rem, 4.2vw, 3.85rem)/1.17 var(--serif); max-width: 27ch; }
.lab-card { padding: clamp(16px, 2.2vw, 29px); }
.lab-card h3 { margin-bottom: .55rem; }
.lab-card .button { margin-top: 1rem; }
.gauge { padding-top: .85rem; width: min(100%, 235px); margin-inline: auto; }
.gauge-face { position: relative; aspect-ratio: 2; border-radius: 100% 100% 0 0 / 200% 200% 0 0; background: radial-gradient(ellipse 80% 165% at 50% 100%, var(--paper) 49%, transparent 51%), conic-gradient(from -90deg at bottom, #63816a 0deg 58deg, #b49c5b 58deg 120deg, #af5735 120deg 180deg, transparent 180deg); overflow: hidden; }
.needle { position: absolute; bottom: 0; left: 50%; width: 4px; height: 76%; background: var(--ink); border-radius: 4px; transform-origin: bottom; transform: translateX(-50%) rotate(-90deg); transition: transform .48s cubic-bezier(.3,.8,.2,1); }
.gauge-scale { display: flex; justify-content: space-between; font-size: .75rem; }
.wet { font-size: 3.8rem; margin-top: .1em; }
.wet span { color: var(--rust); }
.weather dl { margin-top: .75rem; font-size: .89rem; }
.weather dl div { display: flex; align-items: baseline; gap: .6rem; justify-content: space-between; border-top: 1px solid var(--line); padding-block: .4rem; }
.weather dd { text-align: end; margin: 0; font-weight: 700; }
.news ul { padding-inline-start: 1.05rem; margin: 0; }
.news li + li { margin-top: .55rem; }
.pond-camera { margin-top: .9rem; background: radial-gradient(ellipse at 70% -20%, #567e67, #163c38 66%, #0d2722); padding: 2rem; min-height: 145px; color: var(--cream); }
.chat-layout .heading { margin: 0; }
#chat-log { height: 218px; overflow: auto; padding: .3rem .4rem .5rem; border-bottom: 1px solid var(--line); margin-bottom: .85rem; overflow-wrap: anywhere; }
.message { padding: .55rem .7rem; background: #edf0e4; margin-bottom: .53rem; }
.message.user { background: #f1e2cf; margin-left: 1.15rem; }
.message strong { display: block; font-size: .78rem; }
.chat-row { display: flex; gap: .55rem; }
.footer { background: var(--dark); color: var(--cream); padding-block: 46px 18px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 22px; }
.footer h2 { font: bold 1rem/1.25 var(--sans); letter-spacing: 0; }
.footer p { margin-top: .55rem; }
.footer-brand strong span { color: #e4a66e; }
.footer-end { margin-top: 29px; padding-top: 15px; display: flex; justify-content: space-between; gap: .9rem; }
.footer-end::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); margin-top: -15px; border-top: 1px solid #f4f0e55c; }
.footer-end { position: relative; }
.legal-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .55rem; }
.toast { position: fixed; z-index: 5; bottom: 15px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 22px); width: max-content; color: var(--cream); background: var(--dark); box-shadow: 0 3px 12px #0004; padding: .58rem .9rem; border: 1px solid #c7a87a; }
.toast:empty { display: none; }
dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line); width: min(560px, calc(100% - 26px)); padding: 1.3rem; }
dialog h2 { font-size: 1.9rem; margin-bottom: .7rem; }
dialog::backdrop { background: #102e2bae; }
.swimmer { position: fixed; z-index: 4; top: 62%; left: -92px; width: 84px; pointer-events: none; animation: swim 4.2s ease-in-out both; }
@keyframes swim { 50% { transform: translate(50vw, -35px) rotate(-12deg); } 100% { transform: translate(calc(100vw + 110px), 0); } }
.noscript { padding: .65rem; border-top: 1px solid var(--line); text-align: center; }
.legal-page { max-width: 81ch; min-height: 60vh; margin-inline: auto; padding: 3rem var(--gutter); }
.legal-page h1 { font-size: clamp(2.45rem, 7vw, 4.4rem); letter-spacing: -.04em; margin-bottom: 1rem; }
.legal-page h2 { font: 1.56rem/1.2 var(--serif); letter-spacing: 0; margin-top: 1.3rem; }
.legal-page p + p, .legal-page h2 + p { margin-top: .62rem; }
.legal-page .button { margin-top: 1.4rem; }
.error-page { min-height: 85vh; }
@media (max-width: 900px) {
  .stats dd { font-size: .76rem; }
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .header-inner { min-height: 0; padding-block: .8rem; flex-wrap: wrap; justify-content: center; gap: .65rem 1rem; }
  nav { width: 100%; justify-content: center; flex-wrap: wrap; gap: .33rem clamp(10px, 4vw, 26px); }
  nav a { min-height: 36px; display: inline-flex; align-items: center; font-size: .82rem; }
  .nav-cta { padding: .3rem .5rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 47px var(--gutter) 45px; }
  .hero h1 { font-size: clamp(3.25rem, 9.5vw, 5.15rem); margin-block: 20px; letter-spacing: -.076em; }
  .hero-description { margin-bottom: 20px; }
  .hero-figure { min-height: clamp(275px, 71vw, 480px); }
  .hero-figure img { object-position: 66% 47%; }
  .hero-figure figcaption { bottom: 15px; }
  .hero-figure .seal { width: 84px; }
  .hero-figure .seal strong { font-size: 1.12rem; }
  .oracle-section, .split-heading, .certificate-layout, .chat-layout { grid-template-columns: 1fr; }
  .split-heading { gap: 0; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { display: grid; grid-template-columns: minmax(110px, .65fr) minmax(0, 1fr); align-items: start; }
  .team-card img { aspect-ratio: 1 / 1.18; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 470px) {
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 19px; padding-block: 22px; }
  .stats-grid div:nth-child(3) { border-inline-start: 0; }
  .lab-grid, .footer-grid { grid-template-columns: 1fr; }
  .team-card { display: block; }
  .team-card img { aspect-ratio: 1.45; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@page { size: A4 portrait; margin: 14mm; }
@media print {
  body.print-certificate { background: white; }
  body.print-certificate > :not(main), body.print-certificate main > :not(#urkunde), body.print-certificate .certificate-layout > :not(.certificate-paper) { display: none !important; }
  body.print-certificate #urkunde, body.print-certificate .certificate-layout { display: block; background: white; padding: 0; margin: 0; }
  body.print-certificate .certificate-paper { break-inside: avoid; width: 100%; min-height: 173mm; padding: 15mm 10mm 12mm; background: #fbf5e3; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .certificate-paper h3 { font-size: 32pt; }
  .certificate-name { font-size: 23pt; }
}

.joke-share button { min-height: 40px; font-size: .8rem; }
.news li .joke-share { margin-top: .2rem; }
.message .joke-share { margin-top: .3rem; }
.guest-section { background: #eae6d8; border-block: 1px solid var(--line); }
.guest-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1fr); gap: clamp(16px,4vw,60px); align-items: start; }
.guest-stars { display: flex; flex-wrap: wrap; gap: .38rem; margin-bottom: 1rem; }
.guest-stars input { position: absolute; opacity: 0; }
.guest-stars label { margin: 0; }
.guest-stars span { display: flex; align-items: center; min-height: 44px; padding: .42rem .56rem; border: 1px solid var(--line); cursor: pointer; }
.guest-stars input:checked + span { background: var(--ink); color: var(--cream); }
.guest-stars input:focus-visible + span { outline: 3px solid var(--rust); outline-offset: 3px; }
#guest-rules { font-size: .84rem; color: var(--muted); margin-top: .6rem; }
.guest-entry { background: var(--paper); border: 1px solid var(--line); padding: .85rem 1rem; margin-block: .55rem; overflow-wrap: anywhere; }
.guest-entry blockquote { white-space: pre-wrap; }
.guest-entry time { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .78rem; }
.guest-entry .reaction { margin-top: .42rem; color: var(--rust); font: italic 1.1rem/1.3 var(--serif); }
@media(max-width:700px) { .guest-layout { grid-template-columns: 1fr; } }

#hero-emphasis { white-space: pre-line; }
