/* ==========================================================================
   Marco Horstmann – Design-Mockup
   Zwei Räume, ein Rahmen: Blog (Text) + Apps (Visuell)
   ========================================================================== */

/* ---------- Fonts (lokal, latin subset) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #fbf9f5;
  --surface: #ffffff;
  --ink: #16181a;
  --muted: #5b6168;
  --faint: #8b9096;
  --line: #e7e1d6;
  --line-2: #d6cec0;

  --accent: #0e5b57;
  --accent-strong: #0a4643;
  --accent-soft: #e9f1ef;
  --on-accent: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  --shadow-sm: 0 1px 2px rgba(22, 24, 26, 0.04);
  --shadow-md: 0 16px 40px -20px rgba(22, 24, 26, 0.28);
  --shadow-lg: 0 30px 70px -30px rgba(22, 24, 26, 0.35);

  --max: 1160px;
  --text: 720px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

[data-accent="amber"] {
  --accent: #9a5a0b;
  --accent-strong: #7a4708;
  --accent-soft: #f8efe1;
}
[data-accent="blue"] {
  --accent: #1f4fa8;
  --accent-strong: #183e85;
  --accent-soft: #e9effa;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}
p {
  margin: 0;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 44px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--plain::before {
  display: none;
}
.section {
  padding-block: clamp(36px, 5vw, 62px);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(20px, 2.6vw, 28px);
  margin-bottom: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.section-head h2 {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  margin-top: 10px;
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.link-more svg {
  transition: transform 0.2s;
}
.link-more:hover {
  color: var(--accent);
  border-color: currentColor;
}
.link-more:hover svg {
  transform: translateX(3px);
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 249, 245, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 70px;
}
.brand {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.brand span {
  color: var(--accent);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-link {
  position: relative;
  font-size: 14.5px;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s;
}
.nav-link:hover {
  color: var(--ink);
}
.nav-link.is-active {
  color: var(--ink);
}
.nav-link.is-active::after {
  transform: scaleX(1);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.icon-btn:hover {
  background: rgba(22, 24, 26, 0.05);
  color: var(--ink);
}
.nav-toggle {
  display: none;
}

/* ---------- Buttons / Tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn svg {
  transition: transform 0.2s;
}
.btn:hover svg.arrow {
  transform: translateX(3px);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}
.btn-primary:hover {
  background: var(--accent-strong);
}
.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--surface);
}
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 18px;
  border-radius: 12px;
  background: #16181a;
  color: #fff;
  transition: background 0.2s, transform 0.15s;
}
.btn-store:hover {
  background: #000;
}
.btn-store .store-small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  line-height: 1.2;
}
.btn-store .store-big {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
}
.status.is-released::before {
  background: #1e7a4d;
}
.status.is-beta::before {
  background: #b7791f;
}
.status.is-progress::before {
  background: #3b6ea5;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--muted);
  background: transparent;
  transition: all 0.18s;
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(44px, 6.5vw, 84px) 0 clamp(30px, 4vw, 48px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--paper) 96%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 88% 8%, rgba(255, 255, 255, 0.55), transparent 70%);
  pointer-events: none;
}
.hero-title {
  margin-top: 22px;
  font-size: clamp(2.7rem, 6.2vw, 4.4rem);
  line-height: 1.01;
  letter-spacing: -0.038em;
  font-weight: 500;
}
.hero-lead {
  margin-top: 22px;
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.58;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 42px;
  font-size: 13px;
  color: var(--faint);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-2);
}
.hero-meta span:first-child::before {
  display: none;
}

/* ---------- Covers ---------- */
.cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--c1, #0b3b3a), var(--c4, #1e7a6c) 58%, var(--c2, #155a54));
  isolation: isolate;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 15% 0%, rgba(255, 255, 255, 0.14), transparent 60%);
}
.cover-mark {
  position: absolute;
  right: 10px;
  bottom: 2px;
  font-family: var(--serif);
  font-size: clamp(120px, 15vw, 180px);
  line-height: 0.72;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.14);
  z-index: 1;
  user-select: none;
}
.cover-tag {
  position: absolute;
  left: 20px;
  top: 18px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Featured posts ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}
.post-feature {
  display: block;
}
.post-feature .cover {
  aspect-ratio: 16 / 10;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.post-feature:hover .cover {
  transform: scale(1.012);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--faint);
}
.post-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-2);
}
.post-meta .cat {
  color: var(--accent);
  font-weight: 500;
}
.post-feature .post-meta {
  margin-top: 18px;
}
.post-feature h3 {
  margin-top: 10px;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.15;
  transition: color 0.2s;
}
.post-feature:hover h3 {
  color: var(--accent);
}
.post-feature p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}
.lang {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.post-list {
  display: flex;
  flex-direction: column;
}
.post-row {
  display: block;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.post-row:last-child {
  border-bottom: 1px solid var(--line);
}
.post-row h3 {
  margin-top: 8px;
  font-size: 1.16rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  transition: color 0.2s;
}
.post-row:hover h3 {
  color: var(--accent);
}
.post-row .post-meta {
  font-size: 12px;
}

/* ---------- Apps ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.app-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
[hidden] {
  display: none !important;
}
.app-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, box-shadow 0.25s ease, border-color 0.2s;
}
.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}
.app-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--a1, #0e5b57), var(--a2, #2f8f7f));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 14px -8px rgba(14, 91, 87, 0.6);
  flex: none;
}
.app-icon svg {
  width: 27px;
  height: 27px;
}
.app-name {
  font-size: 1.18rem;
  letter-spacing: -0.015em;
}
.app-tag {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.app-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 6px;
}

/* Apps page list */
.app-list {
  border-top: 1px solid var(--line);
}
.app-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.app-row:hover .app-name-lg {
  color: var(--accent);
}
.app-row .app-icon {
  width: 76px;
  height: 76px;
  border-radius: 19px;
}
.app-row .app-icon svg {
  width: 36px;
  height: 36px;
}
.app-name-lg {
  font-size: clamp(1.3rem, 2vw, 1.62rem);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.app-row .app-tag {
  margin-top: 5px;
  max-width: 52ch;
  font-size: 14.5px;
}
.app-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.app-row-meta .tags {
  display: flex;
  gap: 6px;
}
.arrow-link {
  color: var(--faint);
  transition: transform 0.2s, color 0.2s;
}
.app-row:hover .arrow-link {
  transform: translateX(4px);
  color: var(--accent);
}

/* ---------- Topics ---------- */
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
  padding-block: 46px 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, auto);
  gap: 32px 56px;
}
.footer-brand p {
  margin-top: 10px;
  max-width: 32ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col a {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}
.footer-bottom .mock-note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Page head (Unterseiten) ---------- */
.page-head {
  padding: clamp(40px, 5.5vw, 68px) 0 clamp(24px, 3vw, 36px);
}
.page-head h1 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.page-head p {
  margin-top: 16px;
  max-width: 56ch;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
}
/* ---------- Farbflächen ---------- */
.section--tint {
  background: var(--accent-soft);
  border-block: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
}
.section--tint .section-head {
  border-top: 0;
  padding-top: 0;
}
.page-head--tint {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--paper) 88%);
}
.page-app main {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--paper) 760px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}
.filters .count {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- App detail ---------- */
.app-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: clamp(28px, 4vw, 44px) 0 clamp(24px, 3vw, 34px);
}
.app-detail-head .app-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
}
.app-detail-head .app-icon svg {
  width: 46px;
  height: 46px;
}
.app-detail-head h1 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.app-detail-head .tagline {
  margin-top: 8px;
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
}
.app-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.app-meta .sep {
  width: 1px;
  height: 14px;
  background: var(--line-2);
  margin-inline: 4px;
}
.app-meta .m {
  font-size: 12.5px;
  color: var(--faint);
}
.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 26px;
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--accent);
}

.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.shots::-webkit-scrollbar {
  height: 6px;
}
.shots::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 99px;
}
.phone {
  flex: 0 0 auto;
  width: 218px;
  padding: 8px;
  border-radius: 32px;
  background: #16181a;
  box-shadow: var(--shadow-md);
  scroll-snap-align: start;
}
.phone-screen {
  display: flex;
  flex-direction: column;
  height: 436px;
  overflow: hidden;
  border-radius: 25px;
  background: #fff;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 9px 15px 5px;
  font-size: 9.5px;
  font-weight: 600;
  color: #16181a;
}
.phone-status .dots {
  letter-spacing: 1px;
  font-size: 7px;
}
.screen-hero {
  padding: 16px 15px 20px;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(150deg, var(--a1, #0e5b57), var(--a2, #2f8f7f));
  color: #fff;
}
.screen-kicker {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}
.screen-h {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.screen-pill {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 9px;
  letter-spacing: 0.03em;
}
.screen-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 15px;
}
.screen-btn {
  display: grid;
  place-items: center;
  height: 38px;
  border: 1px solid #e7e1d6;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #16181a;
}
.screen-btn.is-primary {
  border-color: transparent;
  background: var(--a1, #0e5b57);
  color: #fff;
}
.screen-label {
  font-size: 9px;
  color: #8b9096;
  letter-spacing: 0.02em;
}
.screen-task {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: -0.03em;
  text-align: center;
  color: #16181a;
}
.screen-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.screen-answers span {
  display: grid;
  place-items: center;
  height: 44px;
  border: 1px solid #e7e1d6;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
}
.screen-answers span.is-right {
  border-color: var(--a1, #0e5b57);
  background: var(--accent-soft);
  color: var(--a1, #0e5b57);
}
.screen-center {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
}
.screen-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--a1, #0e5b57);
}
.screen-badge svg {
  width: 30px;
  height: 30px;
}
.screen-stars {
  letter-spacing: 3px;
  color: #b7791f;
  font-size: 15px;
}
.screen-bar-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 92px;
  margin-top: 10px;
}
.screen-bar-row i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--a2, #2f8f7f), var(--a1, #0e5b57));
  opacity: 0.9;
}
.screen-stat {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 9.5px;
  color: #5b6168;
}
.screen-stat b {
  color: #16181a;
}

/* App content sections */
.app-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.detail-section {
  padding-block: clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--line);
}
.detail-section h2 {
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  letter-spacing: -0.02em;
}
.detail-section .section-intro {
  margin-top: 12px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 15.5px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.feature {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.feature-icon svg {
  width: 19px;
  height: 19px;
}
.feature h3 {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.feature p {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 44px;
  margin-top: 26px;
}
.story-grid p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}
.story-grid p + p {
  margin-top: 14px;
}
.roles {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  align-self: start;
}
.roles h3 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}
.roles ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.roles li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.roles .who {
  font-size: 13.5px;
  font-weight: 600;
  min-width: 58px;
}
.roles .what {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.stack {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.devlog-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.devlog-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.devlog-item h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.devlog-item:hover h3 {
  color: var(--accent);
}
.devlog-item time {
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}
.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.app-links a {
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.app-links a:hover {
  color: var(--accent);
  border-color: currentColor;
}

/* ---------- Article ---------- */
.series-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 0;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  color: var(--muted);
}
.series-bar strong {
  color: var(--ink);
  font-weight: 600;
}
.series-bar .series-nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
}
.series-bar a {
  color: var(--accent);
}
.article-head {
  padding: clamp(18px, 2.8vw, 30px) 0 clamp(22px, 3vw, 30px);
}
.article-head h1 {
  margin-top: 16px;
  max-width: 22ch;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  letter-spacing: -0.032em;
  line-height: 1.06;
}
.article-lead {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--faint);
}
.article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, var(--text));
  justify-content: center;
  gap: clamp(28px, 4vw, 56px);
  padding-top: clamp(22px, 3vw, 32px);
  padding-bottom: clamp(30px, 4vw, 50px);
}
.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  padding-top: 6px;
}
.toc h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  margin-bottom: 14px;
}
.toc ol {
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-left: 1px solid var(--line);
}
.toc a {
  display: block;
  padding-left: 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.toc a:hover,
.toc a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}
.prose {
  max-width: var(--text);
}
.prose > p {
  margin-bottom: 1.2em;
  font-size: 1.06rem;
  line-height: 1.72;
}
.prose > h2:first-child {
  margin-top: 0;
}
.prose h2 {
  margin: 2.1em 0 0.6em;
  font-size: clamp(1.4rem, 2.1vw, 1.6rem);
  letter-spacing: -0.022em;
  scroll-margin-top: 100px;
}
.prose h3 {
  margin: 1.7em 0 0.5em;
  font-size: 1.2rem;
  scroll-margin-top: 100px;
}
.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.15em;
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  margin-bottom: 0.4em;
  font-size: 1.02rem;
  line-height: 1.65;
}
.prose li::marker {
  color: var(--line-2);
}
.prose a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: border-color 0.2s;
}
.prose a:hover {
  border-bottom-color: var(--accent);
}
.prose strong {
  font-weight: 600;
}
.prose :not(pre) > code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.12em 0.38em;
  border-radius: 5px;
  background: #f1ece3;
  color: #3a2f24;
}
.code pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--line-2);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
}
.prose blockquote p {
  margin: 0;
}
.callout {
  display: flex;
  gap: 14px;
  margin: 1.6em 0;
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}
.callout svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent);
}
.callout p {
  font-size: 14.5px;
  line-height: 1.6;
}
.callout strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.code {
  margin: 1.6em 0;
  border-radius: 12px;
  overflow: hidden;
  background: #12171a;
  border: 1px solid #232a2e;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px 9px 16px;
  background: #192022;
  border-bottom: 1px solid #232a2e;
}
.code-head span {
  font-family: var(--mono);
  font-size: 11px;
  color: #8d9a9e;
  letter-spacing: 0.03em;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #9fadb1;
  transition: background 0.2s, color 0.2s;
}
.copy-btn:hover {
  background: #242d30;
  color: #dfe7e9;
}
.code pre {
  margin: 0;
  padding: 16px 18px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: #d7e0e2;
  tab-size: 2;
}
.code .c {
  color: #6b7d80;
}
.code .k {
  color: #8fc7c2;
}
.code .s {
  color: #e0b978;
}
.code .n {
  color: #c9a2e0;
}
.diagram {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1.8em 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
}
.diagram-box {
  flex: 1;
  min-width: 108px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  text-align: center;
}
.diagram-box b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}
.diagram-box span {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.diagram-arrow {
  color: var(--line-2);
  flex: none;
}
.figure {
  margin: 1.8em 0;
}
.figure .cover {
  aspect-ratio: 16 / 9;
}
.figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--faint);
}
.author-box {
  display: flex;
  gap: 16px;
  margin-top: 44px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.02em;
}
.author-box p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 4px;
}
.author-box b {
  font-size: 14px;
  color: var(--ink);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
}
.comments {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.comments h3 {
  font-size: 1.25rem;
}
.comment {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.comment .avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
  background: var(--line-2);
  color: var(--ink);
}
.comment-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--faint);
}
.comment-head b {
  font-size: 13.5px;
  color: var(--ink);
}
.comment p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

/* ---------- Archiv ---------- */
.archive {
  border-top: 1px solid var(--line);
}
.post-thumb-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.post-thumb-row .cover {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}
.post-thumb-row h2 {
  margin-top: 8px;
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: -0.018em;
  transition: color 0.2s;
}
.post-thumb-row:hover h2 {
  color: var(--accent);
}
.post-thumb-row p {
  margin-top: 6px;
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}
.page-link {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.page-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.page-link.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.page-link.is-disabled {
  opacity: 0.4;
  cursor: default;
}
.page-gap {
  padding: 0 4px;
  color: var(--faint);
}

@media (max-width: 600px) {
  .post-thumb-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
  }
  .post-thumb-row h2 {
    font-size: 1.05rem;
  }
  .post-thumb-row p {
    display: none;
  }
  .post-thumb-row .post-meta .dot,
  .post-thumb-row .post-meta span:nth-child(4) {
    display: none;
  }
}

/* ---------- About ---------- */
.about-hero {
  position: relative;
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0f11;
  color: #fff;
  isolation: isolate;
}
.about-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 94% center;
  opacity: 0.9;
  filter: brightness(1.45) contrast(1.05) saturate(1.05);
  z-index: -2;
}
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 14, 0.97) 0%, rgba(8, 12, 14, 0.9) 34%, rgba(8, 12, 14, 0.45) 62%, rgba(8, 12, 14, 0.12) 100%);
  z-index: -1;
}
.about-hero-inner {
  padding: clamp(34px, 6vw, 68px);
  max-width: 620px;
}
.about-hero h1 {
  margin-top: 16px;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.03em;
}
.about-hero p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}
.about-hero .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 5vw, 64px);
  padding-block: clamp(34px, 5vw, 56px);
}
.about-grid h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.about-grid p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}
.about-grid p + p {
  margin-top: 14px;
}
.principle {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.principle + .principle {
  margin-top: 12px;
}
.principle b {
  font-size: 14px;
}
.principle p {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.55;
}

/* ---------- Mock tools ---------- */
.mock-tools {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}
.mock-tools .label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.swatches {
  display: flex;
  gap: 6px;
}
.swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: border-color 0.15s, transform 0.15s;
}
.swatch:hover {
  transform: scale(1.1);
}
.swatch[aria-pressed="true"] {
  border-color: var(--ink);
}
.swatch[data-set-accent="petrol"] {
  background: #0e5b57;
}
.swatch[data-set-accent="amber"] {
  background: #9a5a0b;
}
.swatch[data-set-accent="blue"] {
  background: #1f4fa8;
}

/* ---------- Search dialog ---------- */
dialog {
  width: min(560px, calc(100% - 32px));
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
}
dialog::backdrop {
  background: rgba(22, 24, 26, 0.4);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.search-panel {
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.search-panel form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--line);
}
.search-panel input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.search-panel input::placeholder {
  color: var(--faint);
}
.search-hint {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.search-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .featured {
    grid-template-columns: 1fr;
  }
  .app-detail-head {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .store-buttons {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .article-layout {
    grid-template-columns: minmax(0, var(--text));
  }
  .toc {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 820px) {
  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px 24px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 30px -24px rgba(22, 24, 26, 0.3);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav .nav-link {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .nav-link::after {
    display: none;
  }
  .nav-toggle {
    display: grid;
  }
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-row {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 16px;
  }
  .app-row .app-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }
  .app-row .app-icon svg {
    width: 29px;
    height: 29px;
  }
  .app-row-meta .tags {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .related {
    grid-template-columns: 1fr;
  }
  .hero-meta {
    gap: 8px 16px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .app-detail-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .app-detail-head .app-icon {
    width: 76px;
    height: 76px;
    border-radius: 19px;
  }
  .app-detail-head .app-icon svg {
    width: 36px;
    height: 36px;
  }
  .app-row {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
  }
  .app-row-meta {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
  }
  .app-row .app-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }
  .app-row .app-icon svg {
    width: 26px;
    height: 26px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .article-head h1 {
    max-width: none;
  }
  .mock-tools {
    display: none;
  }
  .hero-meta {
    gap: 4px 16px;
  }
  .hero-meta span::before {
    display: none;
  }
  .series-bar .series-nav {
    margin-left: 0;
    width: 100%;
  }
  .phone {
    width: 196px;
  }
  .phone-screen {
    height: 392px;
  }
  .about-hero::after {
    background: linear-gradient(180deg, rgba(8, 12, 14, 0.85), rgba(8, 12, 14, 0.65));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   WordPress-Anpassungen
   ========================================================================== */

body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

.site-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.site-nav li { margin: 0; }
.site-nav .nav-link { display: inline-block; }

@media (max-width: 820px) {
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav .nav-link { display: block; padding: 14px 0; font-size: 16px; }
}

.archive-desc p { margin-top: 10px; max-width: 60ch; color: var(--muted); font-size: 15px; }

/* Inhalte */
.prose img { height: auto; border-radius: 12px; }
.prose figure { margin: 1.8em 0; }
.prose figcaption,
.prose .wp-caption-text { margin-top: 10px; font-size: 12.5px; color: var(--faint); }
.prose .alignleft { float: left; margin: 0 1.4em 1em 0; }
.prose .alignright { float: right; margin: 0 0 1em 1.4em; }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose .alignwide { width: min(100%, 960px); margin-inline: auto; }
.prose .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

.prose pre,
.prose .wp-block-code {
  margin: 1.6em 0;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 12px;
  background: #12171a;
  color: #d7e0e2;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
}
.prose pre code,
.prose .wp-block-code code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.tag-row a { color: var(--muted); border: 1px solid var(--line); }
.tag-row a:hover { border-color: var(--accent); color: var(--accent); }

/* Pagination */
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 36px; }
.page-numbers {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-numbers.dots { border: 0; }
a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }

/* Kommentare */
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body { position: relative; padding: 20px 0 20px 48px; border-bottom: 1px solid var(--line); }
.comment-body .avatar { position: absolute; left: 0; top: 20px; width: 34px; height: 34px; border-radius: 50%; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: 12.5px; color: var(--faint); }
.comment-author .fn { font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.comment-author .fn a { color: var(--ink); }
.comment-metadata a { color: var(--faint); }
.comment-content p { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.comment-list .children { list-style: none; margin: 0 0 0 48px; padding: 0; }
.comment-list .children .comment-body { padding-left: 48px; }
.reply a { font-size: 12.5px; color: var(--accent); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  font: inherit;
  font-size: 14px;
}
.comment-form .submit {
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* Kontaktformular (Contact Form 7) */
.wpcf7 { max-width: 560px; }
.wpcf7 p { margin-bottom: 14px; }
.wpcf7 label { display: block; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
.wpcf7 textarea { min-height: 130px; resize: vertical; }
.wpcf7 input[type="submit"] {
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--accent-strong); }
.wpcf7 .wpcf7-list-item { margin: 0 0 10px; }
.wpcf7 .wpcf7-list-item label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.wpcf7 .wpcf7-list-item input { margin-top: 3px; }
.wpcf7-not-valid-tip { margin-top: 4px; color: #b3261e; font-size: 12px; }
.wpcf7-response-output { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; background: var(--accent-soft); font-size: 13px; }
.wpcf7-spinner { margin-left: 8px; }

/* Apps */
.app-icon .initial { font-family: var(--serif); font-size: 28px; line-height: 1; letter-spacing: -0.02em; }
.app-detail-head .app-icon .initial { font-size: 44px; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.shots img {
  height: 420px;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-md);
}

/* App-Platzhalter */
.app-placeholder { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.app-placeholder h2 { font-size: 1.4rem; }
.app-placeholder p { margin-top: 6px; max-width: 60ch; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.apps-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 28px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.apps-empty p { margin: 0; max-width: 62ch; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.apps-empty strong { color: var(--ink); }
.apps-empty .btn { flex: none; }

/* Cookie-Hinweis */
.cookie-note {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 520px;
  margin-inline: auto;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
  font-size: 13px;
}
.cookie-note p { margin: 0; color: var(--muted); line-height: 1.5; }
.cookie-note a { color: var(--accent); text-decoration: underline; }
.cookie-note-ok {
  flex: none;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.cookie-note-ok:hover { border-color: var(--ink); }
@media (max-width: 600px) {
  .cookie-note { flex-direction: column; align-items: flex-start; }
}

/* Artikel ohne Inhaltsverzeichnis: kein schmaler Spaltensprung */
.article-main { grid-column: 2; }
.article-layout--no-toc { grid-template-columns: minmax(0, var(--text)); justify-content: center; }
.article-layout--no-toc .article-main { grid-column: 1; }
@media (max-width: 1000px) {
  .article-main { grid-column: 1; }
}

/* Kommentare: Feinschliff */
.comment-list .says { display: none; }
.comment-list .comment-meta { gap: 6px; }
.comment-list .comment-author { display: flex; align-items: baseline; gap: 6px; }
.comment-metadata::before { content: "·"; margin-right: 8px; color: var(--line-2); }
.comment-list .comment-body { padding-top: 22px; padding-bottom: 22px; }
.comment-list .comment-content p { margin-top: 6px; }
.comment-respond h3 { font-size: 1.35rem; margin-bottom: 4px; }
.comment-notes { margin: 6px 0 18px; font-size: 13px; color: var(--muted); }
.comment-form textarea { min-height: 150px; height: 150px; }
.comment-form .form-submit { margin-top: 6px; }
#cancel-comment-reply-link { margin-left: 10px; font-size: 12.5px; color: var(--faint); }
#cancel-comment-reply-link:hover { color: var(--accent); }
