/*
Theme Name: ZeitStift
Theme URI: https://www.zeitstift.de
Author: David Mautz
Description: Reduzierte zweisprachige Produktwebsite mit integrierter Redaktion für ZeitStift.
Version: 1.1.4
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: zeitstift
License: GPL-2.0-or-later
*/

:root {
  --paper: #f9f7f1;
  --ink: #203c35;
  --muted: #5b6b63;
  --sage: #547d6b;
  --sage-dark: #365d4c;
  --sage-pale: #e5ece4;
  --blue: #406e85;
  --clay: #b86b57;
  --line: #dce1d7;
  --surface: #ffffff80;
  --radius: 26px;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sage-dark); text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 {
  line-height: 1.13;
  font-weight: 650;
  letter-spacing: -.045em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 5.1vw, 4.45rem); }
h2 { font-size: clamp(2.1rem, 3.7vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.025em; }
p + p { margin-top: 1.15em; }
.wrap { width: min(var(--max), calc(100% - 56px)); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 100; background: white; padding: 10px; }
.skip:focus { top: 10px; }
.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Navigation stays compact; both language choices are always visible. */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 92px; display: flex; align-items: center; gap: 26px; }
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.045em;
}
.brand img { width: 42px; height: 42px; border-radius: 11px; }
.desktop-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; font-size: .86rem; }
.desktop-nav > a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.desktop-nav > a:hover { color: var(--sage-dark); text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 13px 23px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid transparent;
  line-height: 1.4;
}
.button:hover { background: var(--sage-dark); color: white; text-decoration: none; }
.button.small { min-height: 42px; padding: 10px 16px; font-size: .83rem; }
.button.pending { background: #e6eadf; color: #425446; border-color: #d9dfd0; cursor: default; }
.button .icon { width: 23px; height: 23px; }
.desktop-nav > .button { color: white; }
.desktop-nav > .button:hover { color: white; text-decoration: none; }
.language-switch { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; font-size: .76rem; line-height: 1; }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 40px; padding: 8px; color: var(--muted); border-radius: 9px; text-decoration: none; }
.language-switch a[aria-current] { color: var(--ink); background: var(--sage-pale); font-weight: 700; }
.language-switch a:hover { color: var(--ink); text-decoration: underline; }
.mobile-nav { display: none; }

/* Product introduction. */
.eyebrow { font-size: .73rem; letter-spacing: .13em; font-weight: 650; color: var(--sage-dark); margin-bottom: 21px; }
.hero { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: 42px; align-items: center; padding-block: 66px 80px; }
.hero-copy { padding-block: 15px; }
.hero h1 { max-width: 580px; }
.hero .intro { color: var(--muted); max-width: 520px; font-size: 1.03rem; margin: 26px 0 30px; line-height: 1.85; }
.hero-note { font-size: .78rem; color: var(--muted); margin-top: 16px; }
.hero-visual { min-width: 0; }
.hero-visual picture { overflow: hidden; border-radius: var(--radius); }
.hero-visual img { width: 100%; }
.hero-visual figcaption { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 17px; }
.hero-visual figcaption span { display: block; font-size: .72rem; margin-top: 3px; }
.section { padding-block: 92px; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head > p:not(.eyebrow) { margin-top: 23px; color: var(--muted); }

/* Real app views introduce the two daily essentials. */
.feature-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 47%;
  align-items: center;
  gap: 9px;
  min-height: 470px;
  padding: 34px 22px 0 32px;
  overflow: hidden;
  border: 1px solid #dce4da;
  border-radius: var(--radius);
  background: var(--sage-pale);
}
.categories-card { background: #eeeee4; border-color: #e4e4d9; }
.feature-highlight-copy { padding-bottom: 34px; min-width: 0; }
.feature-highlight-copy > .icon { color: var(--sage); margin-bottom: 29px; }
.categories-card .feature-highlight-copy > .icon { color: var(--blue); }
.feature-highlight h3 { font-size: clamp(1.65rem, 2.5vw, 2.15rem); line-height: 1.12; letter-spacing: -.04em; }
.feature-highlight p { font-size: .94rem; line-height: 1.75; color: var(--muted); margin-top: 18px; }
.feature-device { align-self: end; width: 112%; max-width: 256px; justify-self: end; margin-right: -12px; margin-bottom: -7px; }
.feature-device img { width: 100%; }
.screen-note { color: var(--muted); font-size: .73rem; margin: 14px 0 29px; text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 17px; }
.feature-card { grid-column: span 2; padding: 27px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.feature-card:nth-child(n + 4) { grid-column: span 3; }
.feature-card > .icon { width: 24px; height: 24px; color: var(--sage); margin-bottom: 23px; }
.feature-card:nth-child(3n + 2) > .icon { color: var(--blue); }
.feature-card:nth-child(3n) > .icon { color: var(--clay); }
.feature-card p { font-size: .92rem; line-height: 1.75; color: var(--muted); margin-top: 12px; }
.text-link { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: .93rem; margin-top: 28px; }
.text-link .icon { width: 17px; height: 17px; }

/* Screenshots keep the report examples faithful to the app. */
.analysis-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; margin-bottom: 40px; }
.analysis-intro h2 { max-width: 510px; }
.analysis-intro .prose { color: var(--muted); }
.analysis-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.analysis-gallery picture { overflow: hidden; border-radius: var(--radius); background: var(--sage-pale); }
.analysis-gallery img { width: 100%; }
.analysis-gallery figcaption { font-size: .92rem; font-weight: 550; padding: 18px 7px 0; text-align: center; }
.analysis .screen-note { margin-bottom: 0; }

/* A quiet, dark surface echoes the supplied privacy artwork. */
.privacy-section { padding-block: 0 90px; }
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) 200px; align-items: center; gap: 70px; border-radius: 30px; padding: 62px; background: var(--ink); color: var(--paper); }
.privacy .eyebrow { color: #b8d1c4; }
.privacy h2 { max-width: 600px; font-size: clamp(2.1rem, 3.8vw, 3rem); }
.privacy .prose { max-width: 650px; margin-top: 22px; color: #d4dfd8; }
.privacy .text-link { color: #e2efe4; }
.privacy a:focus-visible, .cta a:focus-visible { outline-color: #b8d1c4; }
.privacy-device { width: 156px; height: 280px; border: 2px solid #85b79f; border-radius: 30px; display: grid; place-items: center; position: relative; justify-self: center; }
.privacy-device::before, .privacy-device::after { content: ""; position: absolute; background: #85b79f; height: 2px; width: 42px; left: calc(50% - 21px); }
.privacy-device::before { top: 18px; }
.privacy-device::after { bottom: 18px; }
.privacy-device .icon { width: 64px; height: 64px; stroke-width: 1; color: #dce9df; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 80px; }
.about .eyebrow { margin-top: 8px; }
.about-lead { font-size: 1.55rem; line-height: 1.45; letter-spacing: -.025em; margin-bottom: 23px; }
.about .prose { color: var(--muted); }
.signature { margin-top: 30px; font-weight: 650; color: var(--ink); }
.cta { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 49px; border-radius: 28px; background: var(--ink); color: var(--paper); margin-bottom: 85px; }
.cta > img { width: 72px; border-radius: 18px; }
.cta h2 { max-width: 580px; font-size: clamp(1.9rem, 3vw, 2.65rem); }
.cta p { margin-top: 13px; color: #d4dfd8; font-size: .96rem; }
.cta .button { background: var(--paper); color: var(--ink); }
.cta .button:hover { background: #dbe7dc; }
.cta .button.pending { background: #dbe7dc; color: #314e40; border-color: transparent; }
.site-footer { border-top: 1px solid var(--line); padding-block: 30px; font-size: .82rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Documentation and editorial pages. */
.page-head { padding: 64px 0 44px; }
.page-head h1 { font-size: clamp(2.5rem, 4.5vw, 3.7rem); }
.page-head p { color: var(--muted); margin-top: 19px; max-width: 620px; }
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 75px; padding-bottom: 90px; }
.toc { align-self: start; position: sticky; top: 28px; border-right: 1px solid var(--line); padding-right: 24px; font-size: .87rem; max-height: calc(100vh - 70px); overflow: auto; }
.toc strong { display: block; margin-bottom: 15px; }
.toc a { display: block; text-decoration: none; padding: 6px 0; color: var(--muted); }
.toc a:hover, .toc a[aria-current] { color: var(--sage-dark); text-decoration: underline; }
.article { padding: 35px 0; border-top: 1px solid var(--line); scroll-margin-top: 30px; }
.article h2 { font-size: 1.7rem; margin-bottom: 22px; }
.prose p { line-height: 1.85; }
.prose h2 { margin-top: 2em; margin-bottom: .8em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.5em; margin-bottom: .6em; }
.prose a { overflow-wrap: anywhere; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose figure { margin-block: 25px; }
.prose img { border-radius: 16px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { font-weight: 600; padding: 19px 30px 19px 0; cursor: pointer; }
.faq-item .prose { padding: 0 0 24px; color: var(--muted); }
.legal { max-width: 760px; padding-bottom: 95px; }
.legal h1 { font-size: clamp(2.3rem, 4.5vw, 3.7rem); margin: 60px 0 45px; overflow-wrap: anywhere; }
.legal h2 { font-size: 1.28rem; line-height: 1.4; letter-spacing: -.02em; margin-top: 35px; margin-bottom: 13px; }
.legal .prose { color: var(--muted); }
.article-footer { margin-top: 30px; color: var(--muted); font-size: .9rem; }
.translation-note { padding: 18px 22px; margin-bottom: 28px; background: var(--sage-pale); border-radius: 14px; color: var(--muted); font-size: .9rem; }
.not-found { text-align: center; padding: 100px 0 150px; }
.not-found p { margin: 24px; }

@media (min-width: 960px) {
  .brand { font-size: 1.55rem; }
  .brand img { width: 48px; height: 48px; }
}
@media (min-width: 1400px) {
  .hero { gap: 66px; padding-block: 82px 95px; }
}
@media (max-width: 1099px) {
  .header-inner { gap: 19px; }
  .desktop-nav { gap: 18px; }
  .hero { gap: 30px; }
  .hero h1 { font-size: clamp(2.8rem, 5.2vw, 3.55rem); }
  .analysis-intro { gap: 45px; }
  .privacy { padding: 48px; gap: 42px; }
  .about { gap: 50px; }
  .cta { padding: 40px; gap: 24px; }
}
@media (max-width: 999px) {
  .feature-highlight { display: flex; flex-direction: column; align-items: stretch; padding: 30px 30px 0; gap: 22px; }
  .feature-highlight-copy { padding: 0; }
  .feature-highlight-copy > .icon { margin-bottom: 21px; }
  .feature-highlight h3 { font-size: 1.85rem; }
  .feature-device { width: 190px; align-self: center; margin: auto 0 -6px; }
  .feature-card { padding: 23px; }
  .docs { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
  .cta { grid-template-columns: 66px minmax(0, 1fr); }
  .cta > img { width: 66px; }
  .cta > .button { grid-column: 2; justify-self: start; }
}
@media (max-width: 959px) {
  .header-inner { min-height: 82px; gap: 18px; }
  .desktop-nav { display: none; }
  .language-switch { margin-left: auto; }
  .mobile-nav { display: block; }
  .mobile-nav summary { cursor: pointer; font-size: .86rem; list-style: none; padding: 10px 0 10px 5px; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary .icon { width: 22px; margin-left: 5px; }
  .mobile-nav nav { position: absolute; top: 81px; left: 0; right: 0; background: var(--paper); padding: 20px max(28px, calc((100% - var(--max)) / 2)); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px #1f24240d; }
  .mobile-nav nav > a { display: block; padding: 12px 10px; color: var(--ink); text-decoration: none; }
  .mobile-nav nav .button { display: inline-flex; margin-top: 10px; }
  .mobile-nav nav a.button { color: white; }
  .hero { padding-block: 50px 66px; }
  .hero .intro { font-size: .95rem; line-height: 1.8; margin-block: 22px 26px; }
  .hero .eyebrow { font-size: .65rem; letter-spacing: .1em; }
  .hero-note { max-width: 280px; }
  .hero-visual figcaption span { font-size: .68rem; }
  .section { padding-block: 72px; }
  .privacy-section { padding-bottom: 72px; }
  .privacy { grid-template-columns: minmax(0, 1fr) 135px; padding: 40px; gap: 35px; }
  .privacy-device { width: 125px; height: 230px; border-radius: 25px; }
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 35px; }
}
@media (max-width: 679px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 76px; gap: 11px; }
  .brand { font-size: 1.24rem; gap: 8px; }
  .brand img { width: 35px; height: 35px; border-radius: 9px; }
  .language-switch { font-size: .71rem; gap: 0; }
  .language-switch a { min-width: 31px; padding-inline: 5px; }
  .mobile-nav summary { font-size: .78rem; }
  .mobile-nav summary .icon { width: 20px; margin-left: 2px; }
  .mobile-nav nav { top: 75px; padding-inline: 20px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 39px 54px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(2.7rem, 11.2vw, 4rem); max-width: 500px; }
  .eyebrow, .hero .eyebrow { font-size: .68rem; letter-spacing: .12em; margin-bottom: 18px; }
  .hero .intro { margin: 23px 0 26px; font-size: 1rem; }
  .hero-note { font-size: .75rem; max-width: none; }
  .hero-visual { padding: 28px 20px 22px; border-radius: var(--radius); background: var(--sage-pale); }
  .hero-visual picture { max-width: 280px; margin-inline: auto; border-radius: 0; overflow: visible; }
  .hero-visual figcaption { margin-top: 13px; }
  .hero-visual figcaption span { font-size: .7rem; }
  .section { padding-block: 58px; }
  .section-head { margin-bottom: 28px; }
  .section-head > p:not(.eyebrow) { margin-top: 20px; }
  .feature-highlights { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .feature-highlight { padding: 28px 28px 0; gap: 28px; min-height: 0; }
  .feature-highlight h3 { max-width: 350px; font-size: 2rem; }
  .feature-highlight p { max-width: 420px; margin-top: 15px; }
  .feature-device { width: 230px; }
  .screen-note { font-size: .7rem; margin: 13px 0 25px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feature-card, .feature-card:nth-child(n + 4) { grid-column: auto; padding: 25px; }
  .feature-card > .icon { margin-bottom: 18px; }
  .analysis-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 30px; }
  .analysis-gallery { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .analysis-gallery figcaption { font-size: .86rem; padding-top: 13px; }
  .analysis-gallery picture { border-radius: 20px; }
  .privacy-section { padding-block: 0 58px; }
  .privacy { padding: 34px 27px; grid-template-columns: minmax(0, 1fr); gap: 30px; border-radius: 24px; }
  .privacy-device { width: 94px; height: 166px; border-radius: 20px; justify-self: start; }
  .privacy-device .icon { width: 43px; height: 43px; }
  .privacy-device::before, .privacy-device::after { width: 27px; left: calc(50% - 13.5px); }
  .privacy-device::before { top: 13px; }
  .privacy-device::after { bottom: 13px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .about-lead { font-size: 1.4rem; }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 34px 27px; gap: 26px; border-radius: 24px; margin-bottom: 58px; }
  .cta > img { width: 62px; border-radius: 16px; }
  .cta h2 { font-size: 2.25rem; }
  .cta > .button { grid-column: auto; justify-self: start; }
  .footer-inner { gap: 14px; }
  .footer-links { gap: 19px; }
  .docs { display: block; padding-bottom: 55px; }
  .toc { position: static; border: 1px solid var(--line); padding: 22px; border-radius: 18px; max-height: none; margin-bottom: 35px; columns: 2; column-gap: 20px; font-size: .82rem; }
  .toc strong { column-span: all; }
  .toc a { break-inside: avoid; }
  .page-head { padding-block: 42px 28px; }
  .article h2 { font-size: 1.6rem; }
  .legal h1 { margin-top: 45px; }
  .legal { padding-bottom: 60px; }
  .site-footer { font-size: .8rem; }
}
@media (max-width: 359px) {
  .header-inner { gap: 5px; }
  .brand { font-size: 1.13rem; gap: 6px; }
  .brand img { width: 31px; height: 31px; }
  .language-switch a { min-width: 28px; }
  .feature-highlight { padding-inline: 23px; }
  .toc { columns: 1; }
}
@media print {
  .site-header, .site-footer, .toc, .cta { display: none; }
  .docs { display: block; }
  .wrap { width: 100%; }
  body { background: white; color: black; font-size: 12pt; }
  .article { break-inside: avoid; }
  .hero { display: block; }
  .hero-visual { display: none; }
  .privacy { background: white; color: black; border: 1px solid #aaa; }
  .privacy .prose, .privacy .eyebrow, .privacy .text-link { color: black; }
  .privacy-device { display: none; }
}

/* Page context is visible in both navigation variants. */
.desktop-nav > a[aria-current], .mobile-nav nav > a[aria-current] {
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .4em;
}
.feature-links { display: flex; flex-wrap: wrap; gap: 0 32px; }
.overview-page { padding-bottom: 75px; }
.overview-content > p { max-width: 760px; }
.overview-content { max-width: 960px; }
.overview-content .feature-legend { color: var(--muted); font-size: .86rem; margin-top: 18px; }
.overview-content h2 { margin-top: 46px; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.overview-content .feature-table { margin: 22px 0 32px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.overview-content .feature-table table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .98rem; line-height: 1.6; }
.overview-content .feature-table th, .overview-content .feature-table td { padding: 17px 22px; text-align: left; vertical-align: middle; border: 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.overview-content .feature-table th { background: var(--sage-pale); font-weight: 700; }
.overview-content .feature-table th:last-child, .overview-content .feature-table td:last-child { width: 108px; text-align: center; }
.feature-table strong { font-weight: 600; }
.feature-note { display: inline-block; margin-top: 3px; color: var(--muted); font-size: .86rem; font-weight: 400; }
.feature-status { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.25rem; font-weight: 700; line-height: 1; }
.feature-status.is-included { color: var(--sage-dark); background: var(--sage-pale); }
.feature-status.is-unavailable { color: #874735; background: #f3e8e2; }
.feature-table tbody tr:nth-child(even) { background: var(--surface); }
.overview-content .feature-table tbody tr:last-child td { border-bottom: 0; }
.overview-help { margin-top: 26px; }
@media (max-width: 679px) {
  .feature-links { gap: 0 24px; }
  .feature-links .text-link { margin-top: 20px; }
  .overview-content .feature-table table { font-size: .94rem; line-height: 1.55; }
  .overview-content .feature-table th, .overview-content .feature-table td { padding: 14px 15px; }
  .overview-content .feature-table th:last-child, .overview-content .feature-table td:last-child { width: 90px; padding-inline: 10px; white-space: nowrap; overflow-wrap: normal; }
  .feature-note { font-size: .85rem; }
}
