/*
Theme Name: Fassura
Theme URI: https://fassura.net
Author: Mo
Description: Eigenes Theme fuer Fassura - dunkel, Serifen-Überschriften, keine externen Schriften. Legt beim Aktivieren Seiten und Menue selbst an.
Version: 1.8
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: fassura
*/
/* Fassura – Basis-Stylesheet
   Nachtblau, serifenlos, gedecktes Blaugrün als einziger Akzent.
   Keine externen Schriften (Google Fonts = DSGVO-Risiko in Deutschland). */

:root {
  --bg:        #12161C;
  --bg-soft:   #16202C;
  --bg-card:   #1B212A;
  --line:      #2A3746;
  --text:      #F2F4F6;
  --muted:     #9BA9B7;
  --accent:    #4FB3A4;
  --accent-2:  #3D7F9B;
  --accent-dk: #3C8A7F;
  --warn:      #C9A227;
  --maxw:      68rem;
  --readw:     38rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.read { max-width: var(--readw); }

/* ---------- Kopf ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: rgba(18,22,28,.92);
  backdrop-filter: blur(8px);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .9rem; padding-bottom: .9rem;
}
.brand { font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand span { display: block; height: 2px; width: 1.8rem; background: var(--accent); margin-top: .3rem; }

.nav { display: flex; gap: 1.9rem; flex-wrap: wrap; align-items: center; }
/* WordPress liefert das Menü als <li>-Elemente - ohne das erscheinen Aufzählungspunkte. */
.nav ul { display: flex; gap: 1.9rem; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav li { list-style: none; margin: 0; padding: 0; }
.nav li::marker { content: ""; }
.nav a { color: var(--muted); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: .4rem;
  background: var(--accent); color: #08131A; font-weight: 650;
  border: 0; cursor: pointer; font-size: 1rem; line-height: 1.3;
}
.btn:hover { background: var(--accent-dk); text-decoration: none; color: #08131A; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }

/* ---------- Typo ---------- */
h1, h2, h3 { line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); margin: 3.5rem 0 1rem; }
h3 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
p  { margin: 0 0 1.1rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.kicker {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
  color: var(--accent); font-weight: 650; margin-bottom: .8rem;
}
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Abschnitte ---------- */
section { padding: 3.5rem 0; }
.hero { padding: 5.5rem 0 4rem; border-bottom: 1px solid var(--line); }
.hero p.lead { max-width: 34rem; }
.cta-row { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }

.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Karten / Raster ---------- */
.grid { display: grid; gap: 1rem; }
.grid > * { min-width: 0; }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: .5rem; padding: 1.4rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Module ---------- */
.module {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  display: grid; gap: .2rem 1.4rem;
}
@media (min-width: 44rem) { .module { grid-template-columns: 4.5rem 1fr; } }
.module .num { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.module h3 { margin: 0; font-size: 1.1rem; }
.module p { margin: .3rem 0 0; color: var(--muted); }
.module.core { background: linear-gradient(90deg, rgba(79,179,164,.08), transparent 60%); }
.tag {
  display: inline-block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 2rem;
  padding: .1rem .6rem; margin-left: .6rem; vertical-align: .12em;
}

/* ---------- Preis ---------- */
.price {
  background: var(--bg-card); border: 1px solid var(--accent);
  border-radius: .6rem; padding: 2rem; text-align: center;
}
.price .amount { font-size: 3rem; font-weight: 700; line-height: 1; }
.price ul { text-align: left; }

/* ---------- Listen ---------- */
ul.check { list-style: none; padding: 0; }
ul.check li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; }
ul.check li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent);
}

/* ---------- Hinweis ---------- */
.note {
  border-left: 3px solid var(--warn); background: rgba(201,162,39,.07);
  padding: 1rem 1.2rem; border-radius: 0 .35rem .35rem 0;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
details {
  border-bottom: 1px solid var(--line); padding: 1.1rem 0;
}
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--accent); font-weight: 400; }
details[open] summary::after { content: "\2013"; }
details p { margin: .8rem 0 0; color: var(--muted); }

/* ---------- Formular ---------- */
.form { display: grid; gap: .8rem; max-width: 26rem; }
.form input[type="email"], .form input[type="text"] {
  width: 100%; padding: .85rem 1rem; border-radius: .4rem;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text);
  font: inherit;
}
.form input::placeholder { color: #6C7A88; }
.form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { margin-top: .35rem; }

/* ---------- Beweis-Vergleich ---------- */
.compare { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .compare { grid-template-columns: 1fr 1fr; } }
.compare .box { background: var(--bg-card); border: 1px solid var(--line); border-radius: .5rem; padding: 1.3rem; }
.compare .box.after { border-color: var(--accent); }
.compare h4 { margin: 0 0 .7rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.compare .box.after h4 { color: var(--accent); }
.compare p { font-size: .98rem; }
.compare p:last-child { margin-bottom: 0; }

/* ---------- Blog ---------- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.post-list h3 { margin: 0 0 .3rem; }
.post-list a { color: var(--text); }
.post-list time { font-size: .85rem; color: var(--muted); }

article.post { max-width: var(--readw); }
article.post h2 { font-size: 1.4rem; margin-top: 2.5rem; }
article.post ul { padding-left: 1.2rem; }
article.post li { margin-bottom: .4rem; }

/* ---------- Fuß ---------- */
.site-foot {
  border-top: 1px solid var(--line); margin-top: 4rem;
  padding: 2.5rem 0; color: var(--muted); font-size: .9rem;
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; justify-content: space-between; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

/* ---------- Freebie (ohne Menü) ---------- */
body.landing { display: flex; flex-direction: column; min-height: 100vh; }
body.landing main { flex: 1; display: flex; align-items: center; padding: 3rem 0; }

table.matrix { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.matrix th, table.matrix td { border: 1px solid var(--line); padding: .7rem .8rem; text-align: left; vertical-align: top; }
table.matrix th { background: var(--bg-soft); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.scroll-x { overflow-x: auto; }

/* Sicherheitsnetz: hidden muss auch bei Elementen mit display-Regel greifen. */
[hidden] { display: none !important; }


/* =========================================================
   Lebendigkeit: Serifen-Überschriften, Lichtschein,
   versetzte Karten, dezente Bewegung.
   ========================================================= */

:root{
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}

h1, h2, .brand, .amount, .num-gross{
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.015em;
}
h1{ font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.07; margin-bottom: 1.9rem; }
h2{ font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3{ font-family: inherit; }

.brand{ font-weight: 400; letter-spacing: .14em; }

/* Kursiver Akzent mit gezeichneter Unterstreichung */
.betont{
  font-style: italic;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.betont svg{
  position: absolute; left: 0; right: 0; bottom: -.42em;
  width: 100%; height: .38em; overflow: visible;
}
.betont svg path{
  fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: strich 1.1s .35s ease-out forwards;
}
@keyframes strich{ to { stroke-dashoffset: 0; } }

/* Warmer bzw. kühler Lichtschein hinter dem Hero */
.hero{ position: relative; overflow: hidden; }
.hero::before{
  content: ""; position: absolute; inset: -40% -15% auto -25%; height: 170%;
  background:
    radial-gradient(58% 52% at 20% 28%, rgba(79,179,164,.17), transparent 62%),
    radial-gradient(48% 48% at 80% 8%, rgba(61,127,155,.20), transparent 66%);
  pointer-events: none;
  animation: schein 22s ease-in-out infinite alternate;
}
@keyframes schein{
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(2.5%, -1.5%, 0) scale(1.06); }
}

/* Hero zweispaltig mit Zitat */
.hero-grid{ display: grid; gap: 2.4rem; align-items: end; position: relative; }
@media (min-width: 60rem){ .hero-grid{ grid-template-columns: 1.3fr .7fr; gap: 3rem; } }

.pull{
  border-left: 2px solid var(--accent);
  padding: .3rem 0 .3rem 1.3rem;
  margin: 0;
}
.pull p{
  font-family: var(--serif); font-style: italic;
  font-size: 1.25rem; line-height: 1.5; margin: 0 0 .6rem;
}
.pull cite{ font-style: normal; font-size: .85rem; color: var(--muted); letter-spacing: .04em; }

/* Feiner Strich als Abschnittsmarke */
.strich{ width: 4rem; height: 1px; background: var(--accent); margin: 0 0 1.5rem; }

/* Versetzte Karten statt gleichmäßigem Raster */
@media (min-width: 56rem){
  .stack > :nth-child(2){ margin-top: 2.1rem; }
  .stack > :nth-child(3){ margin-top: 4.2rem; }
}
.stack .card{ position: relative; }
.stack .card::after{
  content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* Großes typografisches Fazit */
.fazit{ margin-top: 2.6rem; display: grid; gap: 1.4rem; align-items: center; }
@media (min-width: 40rem){ .fazit{ grid-template-columns: auto 1fr; } }
.num-gross{ font-size: 3.6rem; line-height: 1; color: var(--accent); opacity: .55; }
.fazit p{ margin: 0; font-size: 1.05rem; max-width: 56ch; }

/* Einblenden beim Scrollen.
   Der Startzustand gilt nur, wenn JavaScript läuft (Klasse .js am <html>).
   Ohne JavaScript ist alles sofort sichtbar - Inhalt geht nie verloren. */
.js .auf{ opacity: 0; transform: translateY(14px); }
.js .auf.da{ opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }

/* Knöpfe bekommen etwas Reaktion */
.btn{ transition: transform .18s ease, background .18s ease; }
.btn:hover{ transform: translateY(-1px); }

/* Wer keine Bewegung will, bekommt keine. */
@media (prefers-reduced-motion: reduce){
  .hero::before{ animation: none; }
  .betont svg path{ animation: none; stroke-dashoffset: 0; }
  .js .auf, .js .auf.da{ opacity: 1; transform: none; transition: none; }
  .btn:hover{ transform: none; }
}

/* Beim Drucken und in der Lesbarkeitsansicht ebenfalls alles zeigen. */
@media print{ .js .auf{ opacity: 1 !important; transform: none !important; } }

/* ---------- Preiskarten ---------- */
.preis{ font-family: var(--serif); font-size: 2.4rem; line-height: 1; margin: .2rem 0 .35rem; }
.karte-betont{ border-color: var(--accent); }
.karte-premium{
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(79,179,164,.07), transparent 40%), var(--bg-card);
}
.karte-premium .preis, .karte-betont .preis{ color: var(--accent); }


/* ---------- WordPress-spezifisch ---------- */
.screen-reader-text{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.alignwide{ max-width:100%; }
.wp-block-image img{ border-radius:.4rem; }
article.post .wp-block-quote{ border-left:3px solid var(--accent); padding-left:1.1rem; margin-left:0; font-style:normal; color:var(--muted); }
.entry-content h2{ font-size:1.4rem; margin-top:2.5rem; }
.entry-content ul{ padding-left:1.2rem; }
.entry-content li{ margin-bottom:.4rem; }
.admin-bar .site-head{ top:32px; }
@media screen and (max-width:782px){ .admin-bar .site-head{ top:46px; } }
.pagination{ margin-top:2rem; display:flex; gap:.6rem; flex-wrap:wrap; }
.pagination .page-numbers{ padding:.45rem .8rem; border:1px solid var(--line); border-radius:.35rem; color:var(--muted); }
.pagination .page-numbers.current{ border-color:var(--accent); color:var(--accent); }
.pagination a.page-numbers:hover{ color:var(--text); text-decoration:none; }
[hidden] { display: none !important; }
