/*
 * Therammunity - one stylesheet for all public content (SEO) pages.
 * Look: the app facelift (scenic background, frosted glass cards, petrol ink,
 * teal pill buttons, line icons, no emoji).
 * Cached for a year (immutable): change the file name, not the content, when
 * this is edited (facelift_v2.css ...), and update the <link> in the pages.
 */

:root {
  --ink: #0b4f52;
  --ink-soft: #24585b;
  --text: #1d3f42;
  --text-muted: #4d6b6d;
  --teal: #227b7a;
  --teal-soft: #55b1b0;
  --teal-deep: #0e5557;
  --cream: #fff6e0;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.8);
  --line: rgba(11, 79, 82, 0.14);
  --shadow: 0 14px 40px rgba(11, 79, 82, 0.14);
  --shadow-soft: 0 6px 20px rgba(11, 79, 82, 0.1);
  --radius: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --blur: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: 920px;
  padding: 24px 20px 56px;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--text);
  background: #e6f2ee url('/images/bg-recovery_v2.webp') center top / cover fixed no-repeat;
  min-height: 100vh;
  overflow-wrap: break-word;
}

/* Every page has body > main as container; no extra padding inside. */
main {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ---------- Brand ---------- */

.tm-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  margin: 0 auto 18px;
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.tm-brand img {
  width: 44px;
  height: 44px;
  display: block;
}

.tm-brand:hover {
  text-decoration: none;
  color: var(--teal-deep);
}

/* ---------- Hero ---------- */

header,
header.hero {
  position: relative;
  margin: 0 0 26px;
  padding: 34px 32px 30px;
  text-align: center;
  color: var(--ink);
  background: linear-gradient(165deg, var(--glass-strong), rgba(255, 255, 255, 0.5));
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

header::after,
header.hero::after {
  content: none;
}

header h1 {
  margin: 0 0 14px;
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

header p,
header.hero p {
  margin: 0 auto 10px;
  max-width: 680px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  opacity: 1;
}

header p:last-child {
  margin-bottom: 0;
}

header .hero-hook,
header p.hero-hook {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}

header .summary,
header p.summary {
  font-style: italic;
}

.hero-logo {
  margin: 0;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-line);
  border-radius: 999px;
}

.breadcrumb a {
  color: var(--teal);
  font-weight: 500;
}

/* ---------- Content cards ---------- */

section,
.content-section,
.technique-card,
.story,
.insight,
.tips,
.emotional,
.practical {
  margin: 0 0 22px;
  padding: 28px 30px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* nested cards sit lighter on the card they are in */
section .technique-card,
section .stat-card,
section .app-card {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  border-radius: var(--radius-md);
}

.technique-card {
  margin: 16px 0;
  padding: 22px 24px;
}

.technique-card h3 {
  margin-top: 0;
}

.technique-card .step,
.step {
  font-weight: 700;
  color: var(--teal);
}

.insight {
  background: linear-gradient(160deg, rgba(85, 177, 176, 0.2), rgba(255, 255, 255, 0.6));
}

.tips {
  background: linear-gradient(160deg, rgba(255, 246, 224, 0.85), rgba(255, 255, 255, 0.6));
}

.article {
  max-width: none;
  margin: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

h3 {
  margin: 22px 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--teal);
}

h2:first-child,
h3:first-child {
  margin-top: 0;
}

h4 {
  margin: 18px 0 6px;
  font-size: 1.02rem;
  color: var(--ink);
}

p {
  margin: 0 0 14px;
  color: var(--text);
}

strong,
b {
  color: var(--ink);
  font-weight: 700;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 1.4rem;
}

li {
  margin-bottom: 8px;
  line-height: 1.65;
}

li::marker {
  color: var(--teal-soft);
}

ul.tm-plain {
  list-style: none;
  padding-left: 0;
}

a {
  color: var(--teal);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  max-width: 100%;
  height: auto;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

blockquote,
.quote-block {
  margin: 18px 0;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.55);
  border-left: 4px solid var(--teal-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.quote-block p {
  margin: 0 0 6px;
}

.quote-text {
  font-style: italic;
}

.quote-author {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Buttons / call to action ---------- */

.cta-btn,
a.cta-btn,
.btn-download,
.btn-send {
  display: inline-block;
  margin-top: 14px;
  padding: 14px 34px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(100deg, var(--teal), var(--teal-deep));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(14, 85, 87, 0.32);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-btn:hover,
.btn-download:hover,
.btn-send:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 85, 87, 0.38);
}

.cta,
.cta-section,
section.cta {
  margin: 0 0 22px;
  padding: 36px 30px;
  text-align: center;
  color: #fff;
  background: linear-gradient(150deg, var(--teal) 0%, var(--teal-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cta h2,
.cta-section h2,
.cta h3,
.cta-section h3 {
  color: #fff;
}

.cta p,
.cta-section p {
  color: rgba(255, 255, 255, 0.94);
}

.cta a:not(.cta-btn),
.cta-section a:not(.cta-btn) {
  color: #fff;
  text-decoration: underline;
}

.cta .cta-btn,
.cta-section .cta-btn {
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.cta .cta-btn:hover,
.cta-section .cta-btn:hover {
  color: var(--ink);
  background: #fff;
}

/* ---------- Notes / warnings ---------- */

.tm-note,
.highlight,
.inapp,
.hinweis-dritte,
.author-box,
.verdict {
  margin: 18px 0;
  padding: 16px 20px;
  background: rgba(85, 177, 176, 0.14);
  border-left: 4px solid var(--teal-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.97rem;
}

.tm-note > :last-child,
.highlight > :last-child,
.inapp > :last-child {
  margin-bottom: 0;
}

.tm-warn,
.warning,
.emergency-box {
  background: rgba(255, 190, 80, 0.2);
  border-left: 4px solid #d98a1a;
}

.tm-danger {
  background: rgba(220, 80, 60, 0.1);
  border-left: 4px solid #c8452f;
}

.tm-good {
  background: rgba(70, 160, 110, 0.14);
  border-left: 4px solid #3f9a68;
}

.emergency-box {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(217, 138, 26, 0.55);
}

.emergency-box h3 {
  margin-top: 0;
  color: #8a5300;
}

.crisis-thought {
  margin: 14px 0;
  padding: 14px 20px;
  font-style: italic;
  color: var(--text);
  background: rgba(220, 80, 60, 0.08);
  border-left: 4px solid rgba(200, 69, 47, 0.55);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.path {
  font-weight: 700;
  color: var(--ink);
}

/* ---------- FAQ / related ---------- */

.faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item h3 {
  margin-top: 0;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

.related ul {
  margin-bottom: 0;
}

/* ---------- Tables ---------- */

.tm-scroll {
  margin: 18px 0;
  overflow-x: auto;
}

table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th,
tr.tm-thead td,
tr.tm-thead th {
  color: #fff;
  background: var(--teal);
  font-weight: 700;
}

.highlight-row td,
.highlight-row th {
  background: rgba(85, 177, 176, 0.18);
}

/* ---------- Stat cards ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.stat-card {
  padding: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-md);
}

.stat-value {
  margin: 0 0 4px;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--teal);
}

.stat-label {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- App comparison ---------- */

.app-card {
  margin: 16px 0;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-md);
}

.app-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Sitemap ---------- */

.container {
  max-width: none;
  margin: 0;
}

.category {
  margin-bottom: 22px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.link-card {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
}

.link-card a {
  font-weight: 600;
}

.link-card p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

footer,
.site-footer {
  margin: 30px 0 0;
  padding: 26px 28px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

footer h2,
.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  color: var(--ink);
}

footer a,
.site-footer a {
  color: var(--teal);
}

footer nav ul,
.site-footer nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer nav li,
.site-footer nav li {
  margin: 0;
}

footer nav li a,
.site-footer nav li a {
  display: block;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

footer nav li a:hover,
.site-footer nav li a:hover {
  background: #fff;
  text-decoration: none;
}

footer p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.footer-inner {
  max-width: none;
  margin: 0;
}

.footer-legal {
  margin-top: 20px;
  padding-top: 16px;
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.footer-impressum {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  body {
    padding: 14px 12px 40px;
  }

  header,
  header.hero {
    padding: 26px 20px 24px;
    border-radius: 24px;
  }

  header h1 {
    font-size: 1.65rem;
  }

  header p,
  header.hero p {
    font-size: 1rem;
  }

  .tm-brand {
    font-size: 1.45rem;
  }

  section,
  .content-section,
  .story,
  .insight,
  .tips,
  .emotional,
  .practical,
  .cta,
  .cta-section {
    padding: 22px 18px;
    border-radius: 22px;
  }

  h2 {
    font-size: 1.35rem;
  }

  .cta-btn,
  a.cta-btn {
    display: block;
    padding: 14px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
