/* hubyourself Publishing — editorial, leicht, viel Luft.
   Nach dem Vorbild von hubyourself.de: Raleway in leichten Schnitten,
   Open Sans für den Fließtext, keine Kästen, großzügiger Weißraum. */

:root {
  --black:      #0d0d0e;
  --ink:        #1a1a1c;
  --ink-soft:   #52525a;
  --ink-faint:  #6f6f77;
  --white:      #ffffff;
  --paper:      #f7f6f3;
  --line:       #e7e5e1;
  --line-fine:  #eeece8;
  --line-dark:  #2a2a2f;
  --on-dark:    #f5f4f1;
  --on-dark-soft: #c2c2c6;
  --on-dark-faint:#8f8f96;

  --display: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --text:    'Open Sans', 'Helvetica Neue', Arial, sans-serif;

  --measure: 40rem;
  --wide:    74rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.shell  { max-width: var(--wide); margin: 0 auto; padding: 0 clamp(1.4rem, 5vw, 3.5rem); }
.narrow { max-width: var(--measure); }
.shell.narrow { margin: 0 auto; }
.center { text-align: center; }

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: -0.005em;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.15rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
h2.big { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.22; }
h3 { font-size: 1.15rem; font-weight: 400; }

/* Kleine Auszeichnung — sparsam, dünn, dezent */
.eyebrow {
  font-family: var(--text);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 1.6rem;
}
.hero .eyebrow, .pagehead .eyebrow, .band-dark .eyebrow { color: var(--on-dark-faint); }

.kicker {
  font-family: var(--text);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 1rem;
}

.lead p { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.55; font-weight: 300;
          font-family: var(--display); color: var(--ink-soft); margin: 0 0 1rem; }
.hero .lead p, .band-dark .lead p { color: var(--on-dark-soft); }
.lead-line { font-size: clamp(1.15rem, 1.9vw, 1.35rem); font-weight: 300; font-family: var(--display);
             color: var(--ink-soft); margin: 0 0 2rem; line-height: 1.5; }
.quiet-line { color: var(--ink-faint); font-size: 0.98rem; margin-top: 2rem; font-style: italic; }
.quiet p { color: var(--ink-faint); font-size: 0.95rem; }

.prose p { margin: 0 0 1.3rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { margin: 2.4rem 0 0.7rem; font-family: var(--display); font-weight: 400; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--ink-faint); }
.prose a:hover { text-decoration-color: currentColor; }
.prose em { font-style: italic; color: var(--ink-soft); }
.band-dark .prose em { color: var(--on-dark-soft); }
.prose strong { font-weight: 600; }

/* ---------- Header ---------- */
.site-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; color: var(--on-dark);
}
.page-home .site-head, .page-storyos .site-head { color: var(--on-dark); }
/* Innenseiten haben schwarzen pagehead — Header bleibt hell darauf */
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem;
            min-height: 5.5rem; padding: 1.5rem 0 0.6rem; }

.wordmark { text-decoration: none; display: flex; flex-direction: row; align-items: flex-start; gap: 0.85rem; padding: 0.6rem 0; }
.wm-emblem-box { display: flex; align-items: flex-start; }
/* Höhe exakt Logo-Oberkante bis PUBLISHING-Grundlinie (gemessen) */
.wm-emblem { height: 44.9px; width: auto; display: block; }
.wm-text { display: flex; flex-direction: column; gap: 0.45rem; }
.wm-logo { height: 1.75rem; width: auto; display: block; }
.wm-line { font-family: var(--display); font-weight: 300; font-size: 1.5rem; letter-spacing: 0.01em; }
.wm-hub { font-weight: 500; }
.wm-rest { font-weight: 300; }
.wm-pub {
  font-family: var(--text); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--on-dark-faint);
  line-height: 1; margin: 0;
}

.site-nav { display: flex; gap: clamp(1.4rem, 3vw, 2.8rem); }
/* Menü hängt an derselben Oberkante wie das Logo (Owner 15.09.). Der Versatz
   zieht die Zeilen-Oberluft heraus, damit die SICHTBARE Oberkante der Versalien
   exakt auf der Logo-Oberkante sitzt — gemessen, nicht geschätzt. Nur Desktop:
   unter 880px ist .site-nav ein absolut gesetztes Klappmenü. */
@media (min-width: 881px) {
  .site-nav { align-self: flex-start; margin-top: -6.1px; }
}
.site-nav a {
  font-family: var(--text);
  font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--on-dark); text-decoration: none;
  padding: 0.4rem 0; position: relative; opacity: 0.82;
  transition: opacity 0.3s ease;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { opacity: 1; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 2.8rem; height: 2.8rem; padding: 0.7rem;
  flex-direction: column; justify-content: center; gap: 7px; color: inherit;
}
.nav-toggle span { display: block; height: 1px; background: currentColor;
                   transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--black); border-top: 1px solid var(--line-dark);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.35s ease, visibility 0s linear 0.35s;
  }
  .site-nav.open { max-height: 24rem; visibility: visible; transition: max-height 0.35s ease; }
  .site-nav a { padding: 1rem clamp(1.4rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line-dark); opacity: 0.9; }
  .site-nav a::after { display: none; }
}

/* ---------- Bänder ---------- */
.band { padding: clamp(4.5rem, 10vw, 9rem) 0; }
.band-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.band-white { background: var(--white); }
.band-paper { background: var(--paper); }
.band-dark  { background: var(--black); color: var(--on-dark); }
.band-dark .prose p { color: var(--on-dark-soft); }
.band-dark .prose strong { color: var(--on-dark); }
.band-dark h2 { color: var(--on-dark); }

/* ---------- Hero ---------- */
.hero {
  background: var(--black); color: var(--on-dark);
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  padding: 9rem 0 5rem;
  position: relative; overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 54rem; }
.hero-has-img .hero-img {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center right;
  opacity: 0.9;
}
.hero-has-img::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(13,13,14,0.92) 0%, rgba(13,13,14,0.6) 46%, rgba(13,13,14,0.15) 100%),
    linear-gradient(0deg, rgba(13,13,14,0.5) 0%, rgba(13,13,14,0) 40%);
}
.hero h1 { margin-bottom: 1.8rem; font-weight: 300; }
.hero .lead { max-width: 40rem; }

/* Innenseiten-Kopf */
.pagehead {
  background: var(--black); color: var(--on-dark);
  padding: clamp(9rem, 14vw, 13rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.pagehead h1 { margin-bottom: 1rem; }
.pagehead .lead { max-width: 40rem; }

/* ---------- Startseite: editoriale Dreiteilung, randlos ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr; gap: 0; } }
.tile {
  display: flex; flex-direction: column; gap: 0.9rem;
  text-decoration: none; color: inherit;
  padding-top: 2rem; border-top: 1px solid var(--ink);
  transition: opacity 0.3s ease;
}
@media (max-width: 820px) { .tile { padding: 2.2rem 0; border-top: 1px solid var(--line); } }
.tile:hover { opacity: 0.62; }
.tile-kicker { font-family: var(--display); font-weight: 400; font-size: 1.45rem; letter-spacing: -0.01em; margin: 0; }
.tile-text p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.tile-more { margin-top: auto; padding-top: 1.4rem; font-size: 0.82rem; font-weight: 600;
             letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.tile-more::after { content: " →"; transition: transform 0.3s ease; }

/* ---------- Buttons — fein, textnah ---------- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--text); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1rem 2rem; border: 1px solid; border-radius: 0;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-line, .btn-dark { color: var(--ink); border-color: var(--ink); }
.btn-line:hover, .btn-dark:hover { background: var(--ink); color: var(--white); }
.btn-solid { color: var(--on-dark); border-color: var(--on-dark-faint); }
.btn-solid:hover { background: var(--on-dark); color: var(--black); border-color: var(--on-dark); }

/* ---------- StoryOS: Zahlenreihe ---------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 620px) { .figures { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; } }
.fig { text-align: left; }
.fig b { display: block; font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4rem);
         font-weight: 200; line-height: 1; letter-spacing: -0.02em; }
.fig span { display: block; font-size: 0.82rem; color: var(--on-dark-faint); margin-top: 0.7rem;
            letter-spacing: 0.06em; }
.band-white .fig b { color: var(--ink); }
.band-white .fig span { color: var(--ink-faint); }

/* ---------- USP-Liste ---------- */
.usp-list { margin: 0; padding: 0; list-style: none; }
.usp-list li { padding: 1.4rem 0; border-bottom: 1px solid var(--line-fine);
               font-size: 1.08rem; line-height: 1.65; color: var(--ink-soft); }
.usp-list li:first-child { border-top: 1px solid var(--line-fine); }

/* ---------- Feature-Blöcke: editorial, luftig ---------- */
.feature-block { padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line-fine); }
.feature-block:first-child { padding-top: 0; }
.feature-block:last-child { border-bottom: 0; padding-bottom: 0; }
.feature-block h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1.2rem; }

/* ---------- Einwände ---------- */
.section-title { margin-bottom: 3rem; }
.qa-block { padding: 0 0 2.6rem; margin: 0 0 2.6rem; border-bottom: 1px solid var(--line-fine); }
.qa-block:last-child { border-bottom: 0; margin-bottom: 0; }
.qa-q { font-family: var(--display); font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 1.9rem);
        margin-bottom: 1rem; letter-spacing: -0.01em; }

/* ---------- Strecke (dunkel) ---------- */
.strecke-block { padding: clamp(2.5rem, 5vw, 3.5rem) 0; border-bottom: 1px solid var(--line-dark); }
.strecke-block:first-child { padding-top: 0; }
.strecke-block:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- Tarife: luftige Spalten, Haarlinien statt Kästen ---------- */
.tarife { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 3rem 0; }
@media (max-width: 900px) { .tarife { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tarife { grid-template-columns: 1fr; } }
.tarif { padding: 1.8rem clamp(1.2rem, 2vw, 1.8rem); border-top: 1px solid var(--ink);
         display: flex; flex-direction: column; gap: 0.5rem; }
.tarif + .tarif { border-left: 1px solid var(--line-fine); }
@media (max-width: 900px) { .tarif:nth-child(odd) { border-left: 0; } }
@media (max-width: 520px) { .tarif { border-left: 0 !important; border-top: 1px solid var(--line-fine); }
                            .tarif:first-child { border-top: 1px solid var(--ink); } }
.tarif-name { font-family: var(--text); font-size: 0.72rem; font-weight: 600;
              letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.6rem; }
.tarif-preis { font-family: var(--display); font-size: 1.7rem; font-weight: 300; margin: 0; letter-spacing: -0.01em; }
.tarif-founding { color: var(--ink-soft); font-size: 0.92rem; margin: 0.3rem 0 0; }
.founding-note { padding-left: 1.4rem; border-left: 1px solid var(--ink); margin-bottom: 1.4rem; font-style: italic; color: var(--ink-soft); }

/* ---------- Medien (Bücher/Hörbücher): editorial, randlos ---------- */
.media-list { display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 5rem); }
.media-card { display: grid; grid-template-columns: minmax(160px, 240px) 1fr;
              gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 680px) { .media-card { grid-template-columns: 1fr; gap: 1.8rem; }
                            .media-cover { max-width: 220px; } }
.media-cover img, .cover-placeholder { aspect-ratio: 2 / 3; width: 100%; object-fit: cover; }
.cover-placeholder {
  background: var(--paper); color: var(--ink-faint); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 1.4rem; text-align: center;
}
.cover-placeholder span { font-family: var(--display); font-weight: 300; font-size: 1rem; line-height: 1.5; }
.media-title { font-family: var(--display); font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.1rem);
               margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.media-meta { color: var(--ink-faint); font-size: 0.9rem; margin: 0 0 1.2rem; letter-spacing: 0.02em; }
.media-status {
  display: inline-block; font-family: var(--text); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint);
  border: 1px solid var(--line); padding: 0.4rem 0.8rem; margin: 0 0 1.3rem;
}
.media-body .prose p { color: var(--ink-soft); }
.media-body .btn { margin-top: 1rem; }
.empty-note { padding: 2.2rem 0; color: var(--ink-soft); max-width: var(--measure);
              font-family: var(--display); font-weight: 300; font-size: 1.2rem; line-height: 1.6;
              border-top: 1px solid var(--line); }

/* ---------- Kontakt ---------- */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
@media (max-width: 560px) { .kontakt-grid { grid-template-columns: 1fr; } }
.kontakt-item p { margin: 0.4rem 0 0; }
.kontakt-item .foot-head { color: var(--ink-faint); }

/* ---------- Seiten-Abbildung ---------- */
.page-figure { margin: 0 0 clamp(2.5rem, 5vw, 4rem); }
.page-figure img { width: 100%; }

/* Breites Bild-Band über die volle Fensterbreite */
.band-figure { margin: 0; }
.band-figure img {
  width: 100%; height: clamp(320px, 52vh, 600px); object-fit: cover;
  object-position: center 42%; display: block;
}

/* ---------- Legal ---------- */
.legal h2, .legal h3 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; margin: 2.6rem 0 0.7rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-soft); }

/* ---------- Skip-Link ---------- */
.skip-link { position: absolute; left: -999rem; top: 0; z-index: 100;
  background: var(--white); color: var(--ink); padding: 0.7rem 1.2rem; font-weight: 600; text-decoration: none; }
.skip-link:focus-visible { left: 0.5rem; top: 0.5rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--black); color: var(--on-dark); padding: clamp(3.5rem, 7vw, 5.5rem) 0 0; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem;
             padding-bottom: 3.5rem; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.brand-lockup { display: flex; flex-direction: row; align-items: flex-start; gap: 0.85rem; margin: 0 0 1.2rem; }
.foot-wordmark .wm-pub { letter-spacing: 0.4em; font-size: 0.52rem; margin-left: 0.5rem; color: var(--on-dark-faint); }
.foot-head { font-family: var(--text); font-size: 0.68rem; font-weight: 600;
             letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-faint); margin: 0 0 1rem; }
.foot-col p { margin: 0 0 0.5rem; color: var(--on-dark-soft); font-size: 0.95rem; }
.foot-col a { display: block; color: var(--on-dark-soft); text-decoration: none; font-size: 0.95rem;
              margin-bottom: 0.6rem; transition: color 0.25s ease; }
.foot-col a:hover { color: var(--on-dark); }
.foot-note { max-width: 24rem; line-height: 1.7; }
.foot-legal { border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding: 1.6rem 0; font-size: 0.85rem; color: var(--on-dark-faint); }
.foot-legal p { margin: 0; }
.foot-legal a { color: var(--on-dark-faint); text-decoration: none; }
.foot-legal a:hover { color: var(--on-dark-soft); }

/* ---------- Sanftes, langsames Erscheinen ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s ease, transform 0.9s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Fokus ---------- */
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
