/*
 * Seitenspezifische Gestaltung.
 *
 * Dieses CSS stand frueher in den Seiten selbst, jeweils in einem
 * <style>-Block mit fest eingetragenen Farben. Jetzt liegt es hier und holt
 * sich die Farben aus theme.json. Eine Aenderung am Schema wirkt damit
 * ueberall, ohne dass Inhalte angefasst werden muessen.
 */

/* Bilder in Blockform: die <figure> verschwindet aus dem Layout, damit das
   <img> sich genau so verhaelt wie vorher. */
.js-hero-img-figur {
	display: contents;
}

/* ── Seite Über mich, ID 202 ── */
/* ============================================
   ÜBER MICH, Jonas Surmann
   ============================================ */

.js-ueber {
  --bg:      var(--wp--preset--color--background);
  --bg2:     var(--wp--preset--color--tertiary);
  --bg3:     #323739;
  --text:    var(--wp--preset--color--foreground);
  --muted:   #A3AAB2;
  --accent:  var(--wp--preset--color--primary);
  --border:  rgba(255,255,255,0.07);

  font-family: var(--wp--preset--font-family--figtree);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);

  position: relative;
}

.js-ueber *, .js-ueber *::before, .js-ueber *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── INNER WRAPPER ── */
.js-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── HERO ── */
.js-hero-outer {
  background: var(--bg);
  padding: 4rem 0;
}
.js-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}
.js-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.js-hero-label::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--muted);
}
.js-hero-title {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.js-hero-title em {
  font-style: normal;
  color: var(--muted);
}
.js-hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.js-hero-socials {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.js-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
  background: transparent;
}
.js-social-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(241,242,242,0.1);
}
.js-hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.js-hero-img {
  width: 100%;
  max-width: 380px;
  height: 440px;
  border-radius: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  object-fit: cover;
}
.js-hero-badge {
  position: absolute;
  bottom: -14px; left: -10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.js-badge-dot {
  width: 8px; height: 8px;
  border-radius: 0;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(241,242,242,0.5);
  flex-shrink: 0;
}
.js-badge-text { font-size: 0.78rem; line-height: 1.4; color: var(--muted); }
.js-badge-text strong { display: block; color: var(--text); font-size: 0.83rem; }

/* ── STATS ── */
.js-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.js-stat {
  background: var(--bg);
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.js-stat:last-child { border-right: none; }
.js-stat-num { font-size: 2.5rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 0.4rem; }
.js-stat-label { font-size: 0.82rem; color: var(--muted); }

/* ── SECTIONS ── */
.js-section { background: var(--bg); padding: 5rem 0; }
.js-section-alt { background: var(--bg2); padding: 5rem 0; }
.js-section-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.js-section-title { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; color: var(--text); }
.js-section-sub { color: var(--muted); max-width: 560px; margin-bottom: 3rem; font-size: 0.95rem; }

/* ── FEATURE CARDS ── */
.js-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.js-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.js-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.js-card:hover { border-color: rgba(241,242,242,0.35); transform: translateY(-3px); }
.js-card:hover::before { opacity: 1; }
.js-card-icon { width: 44px; height: 44px; background: rgba(241,242,242,0.12); border-radius: 0; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1.2rem; }
.js-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text); }
.js-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* ── BERUF GRID ── */
.js-beruf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.js-beruf-grid p { color: var(--muted); margin-bottom: 1rem; font-size: 0.95rem; }
.js-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.js-tag { padding: 0.35rem 0.85rem; background: var(--bg3); border: 1px solid var(--border); border-radius: 0; font-size: 0.78rem; color: var(--muted); }
.js-tag-hl { border-color: rgba(241,242,242,0.4); color: var(--text); background: rgba(241,242,242,0.1); }

/* ── TIMELINE ── */
.js-timeline { position: relative; margin-top: 1.5rem; }
.js-timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.js-tl-item { padding-left: 1.8rem; padding-bottom: 2rem; position: relative; }
.js-tl-item::before { content: ''; position: absolute; left: -4px; top: 8px; width: 9px; height: 9px; border-radius: 0; background: var(--accent); box-shadow: 0 0 8px rgba(241,242,242,0.4); }
.js-tl-date { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.2rem; }
.js-tl-role { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.15rem; color: var(--text); }
.js-tl-company { color: var(--muted); font-size: 0.85rem; }

/* ── TECH STACK ── */
.js-tech-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3rem; }
.js-tech-group h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--border); }
.js-tech-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.js-tech-list li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; color: var(--text); }
.js-tech-list li::before { content: ''; width: 5px; height: 5px; border-radius: 0; background: var(--accent); flex-shrink: 0; }

/* ── CTA ── */
.js-cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }
.js-cta-inner h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; color: var(--text); }
.js-cta-inner h2 em { font-style: normal; color: var(--muted); }
.js-cta-inner p { color: var(--muted); margin-top: 0.4rem; font-size: 0.95rem; }
.js-cta-btns { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.js-btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.8rem; background: var(--accent); color: var(--wp--preset--color--background); font-weight: 500; border-radius: 0; text-decoration: none; font-size: 0.9rem; white-space: nowrap; transition: all 0.2s; }
.js-btn-primary:hover { background: #FFFFFF; color: var(--wp--preset--color--background); transform: translateY(-1px); }
.js-btn-secondary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.8rem; border: 1px solid var(--border); color: var(--text); font-weight: 400; border-radius: 0; text-decoration: none; font-size: 0.9rem; white-space: nowrap; transition: all 0.2s; background: transparent; }
.js-btn-secondary:hover { border-color: var(--accent); background: rgba(241,242,242,0.1); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .js-hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .js-hero-img { max-width: 100%; height: 300px; }
  .js-hero-badge { display: none; }
  .js-stats { grid-template-columns: 1fr; }
  .js-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .js-features { grid-template-columns: 1fr; }
  .js-beruf-grid { grid-template-columns: 1fr; gap: 3rem; }
  .js-tech-cols { grid-template-columns: 1fr 1fr; }
  .js-cta-inner { grid-template-columns: 1fr; }
  .js-wrap { padding: 0 1.5rem; }
}

/* ── Seite Kontakt, ID 234 ── */
/* ============================================
   KONTAKT, Jonas Surmann
   Bulletproof Full-Width Breakout
   ============================================ */

.js-kontakt {
  --bg:      var(--wp--preset--color--background);
  --bg2:     var(--wp--preset--color--tertiary);
  --bg3:     #323739;
  --text:    var(--wp--preset--color--foreground);
  --muted:   #A3AAB2;
  --accent:  var(--wp--preset--color--primary);
  --border:  rgba(255,255,255,0.07);

  font-family: var(--wp--preset--font-family--figtree);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);

  position: relative;
  overflow-x: hidden;
}

.js-kontakt *, .js-kontakt *::before, .js-kontakt *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.js-k-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── HERO ── */
.js-k-hero {
  background: var(--bg);
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.js-k-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.js-k-label::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--muted);
}
.js-k-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text);
}
.js-k-title em { font-style: normal; color: var(--muted); }
.js-k-intro {
  font-size: 1rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.8;
}

/* ── KONTAKT SECTION ── */
.js-k-section {
  background: var(--bg);
  padding: 5rem 0;
}
.js-k-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ── KONTAKT KARTEN ── */
.js-k-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.js-k-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.js-k-card:hover {
  border-color: rgba(241,242,242,0.4);
  transform: translateY(-2px);
}
.js-k-card-icon {
  width: 48px; height: 48px;
  background: rgba(241,242,242,0.12);
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.js-k-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.js-k-card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.js-k-card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.js-k-card-arrow {
  margin-left: auto;
  color: var(--muted);
  flex-shrink: 0;
  align-self: center;
  transition: transform 0.2s, color 0.2s;
}
.js-k-card:hover .js-k-card-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ── RECHTE SEITE ── */
.js-k-info {
  position: sticky;
  top: 2rem;
}
.js-k-info-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text);
}
.js-k-info-title em { font-style: normal; color: var(--muted); }
.js-k-info-text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.js-k-note {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  padding: 1.4rem 1.6rem;
}
.js-k-note p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}
.js-k-note p strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}
.js-k-note a {
  color: var(--accent);
  text-decoration: none;
}
.js-k-note a:hover {
  text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .js-k-wrap { padding: 0 1.5rem; }
  .js-k-grid { grid-template-columns: 1fr; gap: 3rem; }
  .js-k-info { position: static; }
}

/* ── Seite FAQ, ID 252 ── */
/* ============================================
   FAQ, Jonas Surmann
   ============================================ */

/* ── Volle Breite für die drei eigenen Seiten ──
   Die drei Seitenlayouts sollen über die ganze Fensterbreite laufen, stehen
   aber in einem Container, den WordPress auf die Inhaltsbreite begrenzt.
   Statt die Layoutregeln global auszuhebeln, was frueher alle anderen Seiten
   mitgerissen hat, brechen die drei Wurzelelemente selbst aus.
   `max-width` muss !important tragen, weil die Layoutregel von WordPress
   ebenfalls auf die direkten Kinder des Containers zielt. */
.js-ueber,
.js-kontakt,
.js-faq {
	max-width: none !important;
	width: auto;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Der 50vw-Trick rechnet die senkrechte Bildlaufleiste nicht mit. Ohne diese
   Zeile entsteht dadurch eine waagerechte Leiste von wenigen Pixeln. */
.wp-site-blocks:has(.js-ueber),
.wp-site-blocks:has(.js-kontakt),
.wp-site-blocks:has(.js-faq) {
	overflow-x: hidden;
}

.js-faq {
  --bg:      var(--wp--preset--color--background);
  --bg2:     var(--wp--preset--color--tertiary);
  --bg3:     #323739;
  --text:    var(--wp--preset--color--foreground);
  --muted:   #A3AAB2;
  --accent:  var(--wp--preset--color--primary);
  --border:  rgba(255,255,255,0.07);

  font-family: var(--wp--preset--font-family--figtree);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);

  position: relative;
  overflow-x: hidden;
}

.js-faq *, .js-faq *::before, .js-faq *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.js-faq-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── HERO ── */
.js-faq-hero {
  background: var(--bg);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.js-faq-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.js-faq-label::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--muted);
}
.js-faq-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text);
  max-width: 700px;
}
.js-faq-title em { font-style: normal; color: var(--muted); }
.js-faq-intro {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
}

/* ── CATEGORY SECTIONS ── */
.js-faq-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.js-faq-section:last-of-type { border-bottom: none; }
.js-faq-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.js-faq-section-icon {
  width: 44px; height: 44px;
  background: rgba(241,242,242,0.12);
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.js-faq-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ── FAQ ITEMS ── */
.js-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.js-faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.2s;
}
.js-faq-item:hover { border-color: rgba(241,242,242,0.3); }
.js-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--wp--preset--font-family--figtree);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.js-faq-question:hover { color: var(--text); }
.js-faq-chevron {
  width: 20px; height: 20px;
  border: 1px solid var(--border);
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.2s;
  color: var(--muted);
}
.js-faq-item.open .js-faq-chevron {
  transform: rotate(180deg);
  background: rgba(241,242,242,0.15);
  border-color: var(--accent);
  color: var(--accent);
}
.js-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 1.8rem;
}
.js-faq-item.open .js-faq-answer {
  max-height: 600px;
  padding: 0 1.8rem 1.4rem;
}
.js-faq-answer p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}
.js-faq-answer p + p { margin-top: 0.8rem; border-top: none; padding-top: 0; }

/* ── CTA ── */
.js-faq-cta {
  background: var(--bg2);
  padding: 4rem 0;
}
.js-faq-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}
.js-faq-cta h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; color: var(--text); }
.js-faq-cta h2 em { font-style: normal; color: var(--muted); }
.js-faq-cta p { color: var(--muted); margin-top: 0.4rem; font-size: 0.95rem; }
.js-faq-cta-btns { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.js-btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.8rem; background: var(--accent); color: var(--wp--preset--color--background); font-weight: 500; border-radius: 0; text-decoration: none; font-size: 0.9rem; white-space: nowrap; transition: all 0.2s; font-family: var(--wp--preset--font-family--figtree); }
.js-btn-primary:hover { background: #FFFFFF; color: var(--wp--preset--color--background); transform: translateY(-1px); }
.js-btn-secondary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.8rem; border: 1px solid var(--border); color: var(--text); font-weight: 400; border-radius: 0; text-decoration: none; font-size: 0.9rem; white-space: nowrap; transition: all 0.2s; background: transparent; font-family: var(--wp--preset--font-family--figtree); }
.js-btn-secondary:hover { border-color: var(--accent); background: rgba(241,242,242,0.1); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .js-faq-wrap { padding: 0 1.5rem; }
  .js-faq-cta-inner { grid-template-columns: 1fr; }
  .js-faq-question { padding: 1.2rem 1.4rem; font-size: 0.95rem; }
  .js-faq-answer { padding: 0 1.4rem; }
  .js-faq-item.open .js-faq-answer { padding: 0 1.4rem 1.2rem; }
}
