/*
Theme Name: re:set Mindful
Theme URI: https://resetmindful.de
Author: Project Mindful
Description: Ruhiges, dunkles Theme im Look der re:set-App. Blog als Startseite, Karten, Kontaktformular-Styling (Contact Form 7).
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: reset-mindful
*/

/* Schriften lokal (kein Google-Abruf, DSGVO) */
@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/montserrat-latin-500-normal.woff2) format('woff2');}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/montserrat-latin-700-normal.woff2) format('woff2');}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/open-sans-latin-400-normal.woff2) format('woff2');}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/open-sans-latin-600-normal.woff2) format('woff2');}


:root {
  --bg: #1A1611;
  --surface: #241E17;
  --surface2: #302920;
  --text: #F5F0E6;
  --muted: #A89C89;
  --card-text: #E4DCCB;
  --accent: #D6A87C;
  --card-line: rgba(214,168,124,0.45);
  --border: rgba(245,240,230,0.12);
  --rub-at: #D6A87C;
  --rub-pmr: #CD8276;
  --rub-hy: #B0A0C8;
  --font-head: 'Montserrat','Helvetica Neue',Arial,sans-serif;
  --font-body: 'Open Sans',Arial,Helvetica,sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; position: relative; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Hintergrundbild oben, abgedunkelt und nach unten ausblendend */
.rs-backdrop {
  position: absolute; top: 0; left: 0; right: 0; height: 520px; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom,#000 0%,#000 55%,transparent 100%);
          mask-image: linear-gradient(to bottom,#000 0%,#000 55%,transparent 100%);
}
.rs-backdrop::before { content: ""; position: absolute; inset: 0; background: var(--rs-back) top left / cover no-repeat; filter: blur(2px); transform: scale(1.02); }
.rs-backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(26,22,17,0.35); }

.rs-page { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 40px 20px 32px; }

/* Kopf */
.rs-head { text-align: center; margin: 0 0 28px; }
.rs-logo img, .rs-head .custom-logo { display: block; width: 168px; max-width: 100%; height: auto; margin: 0 auto; }
.rs-sitename { font-family: var(--font-head); font-size: 22px; color: var(--text); text-decoration: none; }

/* Inhalt: alles zentriert in einer Spalte, Abstand zwischen den Blöcken */
.rs-wrap { display: flex; flex-direction: column; gap: 28px; }
.rs-wrap > * { margin-top: 0; margin-bottom: 0; }
.entry-content { display: flex; flex-direction: column; gap: 28px; }
.entry-content > * { margin: 0; max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; color: var(--text); margin: 0 0 10px; line-height: 1.3; letter-spacing: normal; text-transform: none; text-wrap: balance; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; color: var(--card-text); }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { margin: 0 0 12px; padding-left: 20px; color: var(--card-text); }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
.muted, .rs-sub { color: var(--muted); font-size: 14px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Bausteine: im Editor bei "Gruppe" > Erweitert > Zusätzliche CSS-Klasse(n) eintragen ---- */
.rs-center { text-align: center; }
.rs-card {
  background: var(--surface); border: 1px solid var(--card-line); border-radius: 28px;
  padding: 24px 22px; min-width: 0;
}
.rs-card > *:last-child { margin-bottom: 0; }
.rs-card h2, .rs-card h3 { font-size: 18px; }
.rs-quiet { padding: 0 4px; }
.rs-quiet h2 { font-size: 19px; line-height: 1.4; }
.rs-title p { color: var(--muted); font-size: 14px; }

.rs-pill { display: inline-block; font-size: 12px; color: var(--accent); border: 1px solid var(--card-line); border-radius: 22px; padding: 3px 12px; margin: 0 0 10px; }
.rs-circle {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 10px 12px 0;
  border-radius: 50%; border: 1.2px solid currentColor; background: rgba(255,255,255,0.04);
  font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.04em;
}
.rs-at { color: var(--rub-at); } .rs-pmr { color: var(--rub-pmr); } .rs-hy { color: var(--rub-hy); }
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-chips span, .rs-chip { font-size: 13px; color: var(--text); background: var(--surface2); border: 1px solid var(--border); border-radius: 22px; padding: 4px 12px; }
.rs-check { width: 64px; height: 64px; margin: 0 auto 14px; display: block; }
.rs-foot-note { color: var(--muted); font-size: 14px; }

/* Bilder rund (z. B. Foto von Julia): Bild-Block > Zusätzliche CSS-Klasse "rs-round" */
.rs-round img, img.rs-round { width: 96px; height: 96px; object-fit: cover; object-position: top center; border-radius: 50%; border: 2px solid var(--accent); display: block; margin: 0 auto; }

/* Gutenberg-Buttons */
.wp-block-button__link, .rs-button {
  display: inline-block; background: var(--accent); color: var(--bg); border: 0; border-radius: 14px;
  padding: 13px 22px; font-family: var(--font-head); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
}
.wp-block-button__link:hover, .rs-button:hover { text-decoration: none; opacity: .9; }
.wp-block-image figcaption { color: var(--muted); font-size: 13px; text-align: center; }

/* Formularfelder (auch Contact Form 7) */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], textarea, select {
  display: block; width: 100%; min-height: 48px; padding: 0 16px; margin: 0;
  background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 14px;
  font: inherit; font-size: 16px; box-shadow: none; -webkit-appearance: none; appearance: none;
}
textarea { padding: 12px 16px; min-height: 120px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
input[type="submit"], button[type="submit"], .wpcf7-submit {
  display: block; width: 100%; min-height: 48px; margin: 4px 0 0; background: var(--accent); color: var(--bg);
  border: 0; border-radius: 14px; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 15px; text-transform: none;
}
.wpcf7 form { margin: 0; }
.wpcf7 form p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.wpcf7 label { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.wpcf7 br { display: none; }
.wpcf7-form-control-wrap { display: block; width: 100%; margin-top: 6px; }
.wpcf7 fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wpcf7-not-valid-tip { color: #CD8276; font-size: 12.5px; }
.wpcf7 form .wpcf7-response-output { margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--card-line); color: var(--card-text); font-size: 13px; }
.wpcf7 form.init .wpcf7-response-output, .wpcf7 form .wpcf7-response-output:empty { display: none; }
.wpcf7-spinner { display: none; }
.wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; }
.wpcf7-acceptance input { width: auto; min-height: 0; margin-top: 4px; -webkit-appearance: checkbox; appearance: auto; }

/* Fuß */
.rs-foot { margin-top: 28px; text-align: center; color: var(--muted); font-size: 12.5px; }
.rs-foot ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; }
.rs-foot a { color: var(--muted); text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; }

/* Beiträge */
.rs-post { background: var(--surface); border: 1px solid var(--card-line); border-radius: 28px; padding: 24px 22px; }
.rs-post h2 a { color: var(--text); }
.rs-meta { color: var(--muted); font-size: 13px; margin: 0 0 10px; }

body.admin-bar .rs-backdrop { top: 0; }
@media (max-width: 380px) { .rs-card, .rs-post { padding: 20px 16px; border-radius: 22px; } }

/* ===== Kopf (Icon + Menü) ===== */
.rs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; text-align: left; margin: 0 0 24px; }
.rs-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.rs-logo img, .rs-head .custom-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; margin: 0; display: block; }
.rs-wordmark { font-family: var(--font-head); font-weight: 500; font-size: 24px; }
.rs-wordmark b { color: var(--accent); font-weight: 500; }
.rs-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 26px; font-family: var(--font-head); font-size: 14px; }
.rs-nav a { color: var(--card-text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid transparent; }
.rs-nav .current-menu-item > a, .rs-nav .current_page_item > a { color: var(--text); border-bottom-color: var(--accent); }
a { color: var(--accent); }

/* ===== Breites Layout (Blog) ===== */
.rs-wide .rs-page { max-width: 1120px; padding: 12px 24px 48px; }
.rs-wide .rs-wrap { display: block; }
.rs-narrow .rs-head {
  width: min(1072px, calc(100vw - 48px));
  margin-left: 50%;
  transform: translateX(-50%);
  justify-content: space-between;
}
.rs-narrow .rs-page {
  padding-top: 12px;
}

.rs-hero { max-width: 640px; padding: 40px 0 28px; }
.rs-hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 10px; }
.rs-hero p { color: var(--card-text); font-size: 16px; margin: 0; }

.rs-chips-nav { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 28px; }
.rs-chips-nav a { font-size: 13px; color: var(--text); background: var(--surface2); border: 1px solid var(--border); border-radius: 22px; padding: 7px 16px; text-decoration: none; }
.rs-chips-nav a.is-active { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.rs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rs-tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--card-line); border-radius: 28px; overflow: hidden; color: var(--text); text-decoration: none; }
.rs-tile:hover { text-decoration: none; border-color: var(--accent); }
.rs-tile-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.rs-tile h3 { font-size: 18px; line-height: 1.35; margin: 0; }
.rs-tile h2 { font-size: 26px; line-height: 1.3; margin: 0; }
.rs-tile-text { color: var(--card-text); }
.rs-tile-img img { display: block; width: 100%; height: auto; }
.rs-tile-img--back { display: block; min-height: 240px; background-size: cover; background-position: top center; }
.rs-tile--feat { grid-column: 1 / -1; flex-direction: row; }
.rs-tile--feat .rs-tile-img { flex: 1 1 45%; min-width: 0; }
.rs-tile--feat .rs-tile-img img { height: 100%; object-fit: cover; }
.rs-tile--feat .rs-tile-body { flex: 1 1 55%; justify-content: center; padding: 32px 30px; gap: 12px; }
.rs-more { color: var(--accent); font-family: var(--font-head); font-size: 14px; }
.rs-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--rub-at); }
.rs-label.rs-pmr { color: var(--rub-pmr); }
.rs-label.rs-hy { color: var(--rub-hy); }

.navigation.pagination { padding-top: 32px; }
.navigation.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; font-family: var(--font-head); font-size: 14px; }
.navigation.pagination .page-numbers { min-width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--surface2); border: 1px solid var(--border); color: var(--text); border-radius: 14px; text-decoration: none; }
.navigation.pagination .page-numbers.current { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 700; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Einzelner Beitrag ===== */
.rs-single { max-width: 680px; margin: 0 auto; padding-top: 24px; display: flex; flex-direction: column; gap: 24px; }
.rs-back { font-family: var(--font-head); font-size: 14px; padding: 8px 0; }
.rs-single-head { display: flex; flex-direction: column; gap: 12px; }
.rs-single-head h1 { font-size: 28px; line-height: 1.3; margin: 0; }
.rs-single-img img { width: 100%; height: auto; border-radius: 22px; display: block; }
.rs-prose { display: block; font-size: 17px; line-height: 1.75; color: var(--card-text); }
.rs-prose > * { margin: 0 0 18px; }
.rs-prose h2 { font-size: 24px; line-height: 1.35; margin: 30px 0 12px; }
.rs-prose h3 { font-size: 20px; margin: 24px 0 10px; }
.rs-prose ul, .rs-prose ol { padding-left: 1.3em; }
.rs-prose img { max-width: 100%; height: auto; border-radius: 18px; }
.rs-prose blockquote { margin: 6px 0 18px; padding: 6px 0 6px 22px; border-left: 2px solid var(--accent); font-family: var(--font-head); font-weight: 500; font-size: 20px; line-height: 1.5; color: var(--text); }
.rs-author { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; background: var(--surface); border: 1px solid var(--card-line); border-radius: 28px; padding: 24px; margin-top: 16px; }
.rs-author img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; object-position: top center; border: 2px solid var(--accent); }
.rs-author div { flex: 1 1 280px; min-width: 0; }
.rs-author strong { font-family: var(--font-head); font-weight: 500; font-size: 17px; }
.rs-author p { margin: 4px 0 0; color: var(--card-text); font-size: 14px; }
.rs-cta { max-width: 680px; margin: 48px auto 0; padding: 28px 26px; }
.rs-more-posts { padding-top: 56px; }
.rs-more-posts h2 { font-size: 24px; margin: 0 0 20px; }

@media (max-width: 900px) { .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .rs-grid { grid-template-columns: 1fr; }
  .rs-tile--feat { flex-direction: column; }
  .rs-tile--feat .rs-tile-body { padding: 24px; }
  .rs-tile h2 { font-size: 22px; }
  .rs-hero h1 { font-size: 30px; }
  .rs-head { gap: 0 16px; }
}

/* ===== Hintergrund ===== */
:root { --rs-post-dim: .65; }
/* Beitrag: Beitragsbild abgedunkelt */
.rs-backdrop--post::after { background: rgba(26,22,17,var(--rs-post-dim)); }
/* Beitragsbild unverändert: 150px hoch, links/rechts auf Spaltenbreite beschnitten */
.rs-single-img img { width: 100%; height: 150px; object-fit: cover; object-position: center; border-radius: 22px; display: block; }
.rs-tile:not(.rs-tile--feat) .rs-tile-img img { height: 150px; object-fit: cover; }

/* ===== Wischen: Seiten mit Punkten und Pfeilen ===== */
.rs-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; outline: none; }
.rs-track::-webkit-scrollbar { display: none; }
.rs-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.rs-slider-nav { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 26px; }
.rs-dots { display: flex; gap: 4px; align-items: center; }
.rs-dot { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.rs-dot::after { content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .5; }
.rs-dot.is-active::after { background: var(--accent); opacity: 1; }
.rs-arrow { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-size: 18px; cursor: pointer; }
.rs-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.rs-arrow:disabled { opacity: .35; cursor: default; }
