/* Silverharemedia – zwei Welten: Tag (Software) und Nacht (Film) */

@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400; font-display: swap; src: url(fonts/schibsted-grotesk-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400; font-display: swap; src: url(fonts/schibsted-grotesk-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 500; font-display: swap; src: url(fonts/schibsted-grotesk-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 600; font-display: swap; src: url(fonts/schibsted-grotesk-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 600; font-display: swap; src: url(fonts/schibsted-grotesk-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 700; font-display: swap; src: url(fonts/schibsted-grotesk-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-latin-400-italic.woff2) format('woff2'); }

:root {
  /* Tag */
  --day-bg: #EEF1F4;        /* Silbernebel */
  --day-surface: #FFFFFF;
  --day-ink: #1D2330;       /* Graphit */
  --day-muted: #586173;
  --day-line: #D3D9E1;
  --teal: #0E7C66;          /* SnapFormat */
  --teal-ink: #FFFFFF;
  /* Nacht */
  --night-bg: #151B30;      /* Mondnacht */
  --night-raise: #1E2640;
  --night-ink: #E6E9F0;
  --night-muted: #9AA3B8;
  --night-line: #2D3654;
  --moon: #C9CED8;          /* Hasensilber */
  --torch: #E3A857;         /* Fackellicht */

  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--sans);
  background: var(--day-bg);
  color: var(--day-ink);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.night :focus-visible, .is-night :focus-visible { outline-color: var(--torch); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; color: #000; padding: 8px 12px; }

/* ---------- Kopfzeile ---------- */
.site-head { position: relative; z-index: 3; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 18px; }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; gap: clamp(14px, 3vw, 28px); font-weight: 500; font-size: 16px; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.is-night .site-head { color: var(--night-ink); }

/* ---------- Startseite: die Naht ---------- */
.seam {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(92vh, 800px);
}
.home .site-head { position: absolute; inset: 0 0 auto; }
.seam > section { display: flex; flex-direction: column; justify-content: flex-end; padding: 120px clamp(20px, 5vw, 64px) clamp(40px, 7vw, 88px); }
/* Inhalte an der gleichen Kante ausrichten wie Kopfzeile und Rest der Seite */
.seam .day { padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.seam .night { padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.seam .day { background: var(--day-bg); color: var(--day-ink); }
.seam .night { background: var(--night-bg); color: var(--night-ink); }
.seam h1, .seam h2 { margin: 0; }
.seam .world { font-size: 15px; font-weight: 600; margin: 0 0 14px; }
.seam .day .world { color: var(--teal); }
.seam .night .world { color: var(--torch); }
.seam .big { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.01em; max-width: 12ch; }
.seam .day .big { font-family: var(--sans); font-weight: 700; letter-spacing: -0.035em; font-size: clamp(36px, 5vw, 66px); line-height: 1.02; }
.seam p { max-width: 36ch; margin: 18px 0 26px; font-size: 18px; }
.seam .day p { color: var(--day-muted); }
.seam .night p { color: var(--night-muted); }

/* Der Hase sitzt genau auf der Naht: halb Tag, halb Nacht */
.seam-hare {
  position: absolute;
  left: 50%;
  top: 25%;
  width: clamp(140px, 16vw, 220px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.seam-hare .half { position: absolute; inset: 0; }
.seam-hare .left { clip-path: inset(0 50% 0 0); color: var(--night-bg); }
.seam-hare .right { clip-path: inset(0 0 0 50%); color: var(--moon); }
.seam-hare svg { width: 100%; height: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .seam-hare { animation: hop 1.1s cubic-bezier(.2,.7,.2,1) .2s both; }
  @keyframes hop {
    0% { transform: translate(-50%, -20%) scale(.9); opacity: 0; }
    60% { transform: translate(-50%, -58%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%); }
  }
}

@media (max-width: 760px) {
  .seam { grid-template-columns: 1fr; min-height: 0; }
  .seam .day, .seam .night { padding-left: 20px; padding-right: 20px; }
  .seam > section { padding: 110px 20px 44px; min-height: 0; }
  .seam .night { padding-top: 120px; }
  .seam-hare { top: auto; left: 50%; width: 120px; transform: translate(-50%, -50%); }
  .seam-hare { top: var(--seam-y, 50%); }
  .seam-hare .left { clip-path: inset(0 0 50% 0); color: var(--night-bg); }
  .seam-hare .right { clip-path: inset(50% 0 0 0); color: var(--moon); }
  @media (prefers-reduced-motion: no-preference) { .seam-hare { animation: none; } }
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 16px/1 var(--sans);
  padding: 15px 22px; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-teal { background: var(--teal); color: var(--teal-ink); }
.btn-teal:hover { background: #0B6553; }
.btn-torch { background: var(--torch); color: #1A1406; }
.btn-torch:hover { background: #F0BC70; }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Inhaltsabschnitte ---------- */
.block { padding-block: clamp(56px, 8vw, 104px); }
.block h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 700; }
.lede { font-size: 19px; max-width: 60ch; color: var(--day-muted); margin: 0 0 32px; }
.night .lede, .is-night .lede { color: var(--night-muted); }
.prose { max-width: 66ch; }
.prose h2 { font-size: 26px; margin: 40px 0 10px; }
.prose h3 { font-size: 19px; margin: 28px 0 6px; }
.prose p, .prose li { color: inherit; }

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.about .quote { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; margin: 0; }
.about .quote cite { display: block; font: 500 15px/1.4 var(--sans); color: var(--day-muted); margin-top: 14px; font-style: normal; }

/* ---------- Software-Seite (Tag) ---------- */
.product { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.product h1 { font-size: clamp(42px, 6vw, 80px); line-height: .98; letter-spacing: -0.04em; margin: 0 0 18px; }
.product .sub { font-size: 20px; color: var(--day-muted); margin: 0 0 28px; max-width: 34ch; }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--day-line); background: #fff; box-shadow: 0 30px 60px -30px rgba(29, 35, 48, .35); }
.shot img { width: 100%; height: auto; }
.note { font-size: 14px; color: var(--day-muted); margin-top: 12px; }

.menu-demo { background: var(--day-surface); border: 1px solid var(--day-line); border-radius: 12px; padding: 8px; width: min(100%, 320px); font-size: 15px; }
.menu-demo div { padding: 8px 12px; border-radius: 6px; }
.menu-demo .on { background: var(--teal); color: #fff; }
.menu-demo hr { border: 0; border-top: 1px solid var(--day-line); margin: 6px 4px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--day-line); }
.features > div { padding: 28px 28px 32px 0; }
.features > div + div { padding-left: 28px; border-left: 1px solid var(--day-line); }
.features h3 { margin: 0 0 8px; font-size: 19px; }
.features p { margin: 0; color: var(--day-muted); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; }
.plan { background: var(--day-surface); border: 1px solid var(--day-line); border-radius: 18px; padding: 28px; }
.plan.pro { border: 2px solid var(--teal); }
.plan h3 { margin: 0; font-size: 22px; }
.plan .price { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 2px; }
.plan .per { color: var(--day-muted); margin: 0 0 18px; }
.plan ul { margin: 0; padding-left: 20px; }
.plan li { margin: 6px 0; }

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--day-line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--day-line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--day-muted); max-width: 64ch; }

/* ---------- Film-Seite (Nacht) ---------- */
.is-night { background: var(--night-bg); color: var(--night-ink); }
.film-hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.film-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8vw, 112px); line-height: .95; letter-spacing: -0.015em; margin: 0 0 22px; max-width: 13ch; }
.film-hero p { font-size: 20px; color: var(--night-muted); max-width: 52ch; margin: 0 0 28px; }

.is-night .block h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 58px); letter-spacing: -0.01em; }
.is-night .rule { border: 0; border-top: 1px solid var(--night-line); margin: 0; }

.chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 64px); counter-reset: kap; }
.chapters li { counter-increment: kap; display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--night-line); }
.chapters li::before { content: counter(kap, upper-roman); grid-row: span 2; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--torch); }
.chapters h3 { margin: 0; font-size: 19px; font-weight: 600; }
.chapters p { margin: 0; color: var(--night-muted); }

.films { columns: 3 220px; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.films li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--night-line); font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.films li small { display: block; font: 400 14px/1.4 var(--sans); color: var(--night-muted); margin-top: 2px; }

.collabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.collab h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 0 0 10px; }
.collab p { color: var(--night-muted); margin: 0 0 14px; }
.collab blockquote { margin: 0 0 14px; padding-left: 16px; border-left: 2px solid var(--torch); font-style: italic; color: var(--night-ink); }
.collab a { color: var(--moon); }

.novel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); }
.novel .title { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; margin: 0; }
.novel .title em { display: block; font-size: .5em; color: var(--night-muted); margin-top: 10px; }
.novel p { color: var(--night-muted); margin: 0 0 16px; max-width: 60ch; }
.novel .excerpt { font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--night-ink); }

.channels { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Fuß ---------- */
.site-foot { padding-block: 40px 56px; font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; border-top: 1px solid var(--day-line); padding-top: 28px; }
.is-night .site-foot .wrap { border-top-color: var(--night-line); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: inherit; }
.site-foot .muted { color: var(--day-muted); }
.is-night .site-foot .muted { color: var(--night-muted); }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: 24px 80px; }
.legal h1 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.03em; margin: 0 0 24px; }
.legal address { font-style: normal; }

@media (max-width: 860px) {
  .about, .product, .novel { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .features > div, .features > div + div { padding: 22px 0; border-left: 0; border-top: 1px solid var(--day-line); }
  .features { border-top: 0; }
  .plans, .collabs, .chapters { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav { gap: 14px; font-size: 15px; }
  .brand span { display: none; }
}

/* Startseite: Kopfzeile liegt über der Naht – Marke auf Tag, Navigation auf Nacht */
.home .site-head .nav { color: var(--night-ink); }
.home .site-head :focus-visible { outline-color: var(--torch); }
.home .site-head .brand:focus-visible { outline-color: var(--teal); }
@media (max-width: 760px) {
  .home .site-head .nav { color: var(--day-ink); }
  .home .site-head .nav :focus-visible { outline-color: var(--teal); }
}
