/* Tolnapress – gemeinsames Stylesheet
   Keine externen Schriften oder Skripte (Datenschutz): nur System-Schriften. */

:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --ink: #1f2328;
  --muted: #5b6168;
  --line: #e2ddd2;
  --accent: #1e3a4c;      /* Verlag: Tintenblau */
  --accent-2: #a8834a;    /* Verlag: Messing */
  --on-accent: #ffffff;
  --head-font: Georgia, "Times New Roman", serif;
  --body-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --max: 1120px;
}

/* ---------- Autoren-Themen ---------- */
.t-pete {
  --bg: #efe5cf; --surface: #f8f1df; --ink: #2a1f17; --muted: #6a5a48; --line: #d9c9a6;
  --accent: #9e1b1b; --accent-2: #2a1f17; --on-accent: #fff8ec;
  --head-font: "Courier New", Courier, ui-monospace, monospace;
}
.t-marius {
  --bg: #0f0f10; --surface: #1a1a1c; --ink: #ece7dc; --muted: #a9a294; --line: #2e2c28;
  --accent: #c9a54c; --accent-2: #e2c477; --on-accent: #141414;
  --head-font: Georgia, "Times New Roman", serif;
}
.t-annegret {
  --bg: #f5f2ea; --surface: #ffffff; --ink: #233127; --muted: #5d6b60; --line: #dfe6dc;
  --accent: #4f7a5a; --accent-2: #b38f5a; --on-accent: #ffffff;
  --head-font: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 var(--body-font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
.t-marius a { color: var(--accent-2); }
h1, h2, h3 { font-family: var(--head-font); line-height: 1.25; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: .3em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* ---------- Kopfbereich ---------- */
.site-head { background: #fff; border-bottom: 1px solid #e2ddd2; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.site-head .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #1e3a4c; }
.brand svg { width: 34px; height: 34px; }
.brand span { font: 700 1.25rem/1 Georgia, serif; letter-spacing: .04em; }
.main-nav { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: .95rem; }
.main-nav a { color: #1f2328; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { border-bottom-color: #a8834a; }

/* Autoren-Unternavigation */
.sub-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.sub-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.sub-title { font: 700 1.05rem/1.2 var(--head-font); color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.sub-title img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.sub-nav { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: .93rem; }
.sub-nav a { color: var(--ink); text-decoration: none; opacity: .85; }
.sub-nav a:hover, .sub-nav a[aria-current] { opacity: 1; color: var(--accent); }
.t-marius .sub-nav a:hover, .t-marius .sub-nav a[aria-current] { color: var(--accent-2); }
.langs { display: flex; gap: 6px; font-size: .85rem; }
.langs a, .langs span { padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); }
.langs span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero .grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero .kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent-2); font-weight: 700; margin-bottom: .6em; }
.t-pete .hero .kicker { color: var(--accent); font-family: var(--head-font); }
.hero .lead { font-size: 1.15rem; color: var(--muted); }
.hero img.portrait { border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.18); max-height: 460px; width: auto; margin-left: auto; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.2em; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 6px; background: var(--accent); color: var(--on-accent) !important; text-decoration: none; font-weight: 600; font-size: .95rem; border: 2px solid var(--accent); }
.btn.ghost { background: transparent; color: var(--accent) !important; }
.t-marius .btn.ghost { color: var(--accent-2) !important; }
.btn.small { padding: 5px 10px; font-size: .82rem; font-weight: 600; }
.btn.disabled { opacity: .5; pointer-events: none; }

/* ---------- Abschnitte ---------- */
section { padding: 28px 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: .3em; }

/* Autorenkarten (Verlags-Startseite) */
.authors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.author-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; border: 1px solid #e2ddd2; background: #fff; transition: transform .15s, box-shadow .15s; }
.author-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.author-card .pic { aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.author-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.author-card .pic.contain img { object-fit: contain; padding: 18px; }
.author-card .body { padding: 18px 20px 22px; }
.author-card h3 { margin: 0 0 .2em; }
.author-card .genre { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.author-card p { color: #5b6168; font-size: .95rem; margin: .5em 0 0; }
.ac-pete .pic { background: #efe5cf; } .ac-pete .genre { color: #9e1b1b; }
.ac-marius .pic { background: #0f0f10; } .ac-marius .genre { color: #a8834a; }
.ac-annegret .pic { background: #e9efe6; } .ac-annegret .genre { color: #4f7a5a; }

/* ---------- Bücher ---------- */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 22px; }
.book { display: flex; flex-direction: column; min-width: 0; }
.book h3, .book p, .tcover b { overflow-wrap: anywhere; hyphens: auto; }
.book .cv { aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.18); background: var(--surface); }
.book .cv { display: flex; align-items: flex-end; box-shadow: none; background: transparent; }
.book .cv img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 6px 10px rgba(0,0,0,.22)); }
.book .cv .tcover { box-shadow: 0 6px 16px rgba(0,0,0,.18); border-radius: 4px; }
.book h3 { font-size: 1rem; margin: .8em 0 .25em; font-family: var(--body-font); font-weight: 700; }
.book p { font-size: .86rem; color: var(--muted); margin: 0 0 .7em; }
.book .buy { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.book .tag { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent-2); margin-top: .7em; }

/* Text-Cover, solange kein Bild vorliegt */
.tcover { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 14px; color: #fff; background: linear-gradient(160deg, var(--accent), #000 180%); text-align: center; }
.tcover b { font: 700 1.05rem/1.25 var(--head-font); }
.tcover small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.t-annegret .tcover { background: linear-gradient(165deg, #5f8a69, #2f4a36); }
.t-pete .tcover { background: linear-gradient(165deg, #3a2a1f, #120c08); }
.t-marius .tcover { background: linear-gradient(165deg, #2a2620, #000); color: var(--accent-2); }

/* Fallakten (Pete): Querformat-Karten */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 14px rgba(42,31,23,.10); }
.case img { aspect-ratio: 4 / 3; object-fit: contain; background: #e6d8b8; width: 100%; }
.case .body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.case h3 { margin: 0 0 .3em; font-size: 1.12rem; }
.case p { font-size: .92rem; color: var(--muted); }
.case .buy { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.stamp { align-self: flex-start; display: inline-block; border: 2px solid var(--accent); color: var(--accent); font: 700 .75rem/1 var(--head-font); padding: 5px 8px; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-2deg); margin-bottom: .8em; }

/* Schritte / Merkmale */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps div::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font: 700 1.6rem/1 var(--head-font); color: var(--accent); margin-bottom: .4em; }
.steps h3 { margin: 0 0 .3em; font-size: 1.02rem; }
.steps p { font-size: .9rem; color: var(--muted); margin: 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillars div { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; }
.pillars h3 { margin: 0 0 .4em; font-size: 1.05rem; }
.pillars p { font-size: .94rem; color: var(--muted); margin: 0; }

/* Werkzeuge (Marius) */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; }
.tool img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.tool div { padding: 14px 16px 18px; }
.tool h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.tool p { font-size: .9rem; color: var(--muted); }

/* Fließtext (Artikel, Rechtliches) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose .callout { background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; margin: 1.2em 0; }
.prose .callout p:last-child { margin: 0; }
.meta { color: var(--muted); font-size: .9rem; }
.notice { font-size: .88rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 24px 0; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: inherit; display: block; }
.post-card:hover { border-color: var(--accent); }
.post-card h3 { margin: .3em 0 .4em; font-size: 1.1rem; }
.post-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.lang-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: .6em; }

/* ---------- Fuß ---------- */
.site-foot { background: #1e3a4c; color: #d6dde2; margin-top: 48px; font-size: .9rem; }
.site-foot .wrap { padding-top: 32px; padding-bottom: 32px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.site-foot a { color: #fff; }
.site-foot h4 { margin: 0 0 .6em; color: #fff; font: 700 .85rem/1 var(--body-font); text-transform: uppercase; letter-spacing: .12em; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .35em; }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; font-size: .8rem; color: #aab6bf; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .hero .grid { grid-template-columns: 1fr; }
  .hero img.portrait { margin: 0; max-height: 360px; }
  .authors, .pillars, .tools { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .site-foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .cases { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 20px; }
}
