/* =====================================================================
   TREUHAND BIEL – custom.css
   Theme: GeneratePress Child
   Aufbau: Fonts / Tokens / Typografie / Seiten-Reset / Layout /
           Komponenten / Header / Footer / Accessibility
   Caching: Versionierung erfolgt automatisch über filemtime() in
   functions.php – kein manuelles Hochzählen einer Versionsnummer nötig.
   ===================================================================== */


/* ---------- FONTS ---------- */

@font-face {
  font-family: "Instrument Serif";
  src: url("/wp-content/themes/generatepress_child/fonts/instrument-serif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/wp-content/themes/generatepress_child/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/wp-content/themes/generatepress_child/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/wp-content/themes/generatepress_child/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


/* ---------- TOKENS ---------- */

:root {
  color-scheme: light;

  --ink: #13151b;
  --ink-2: #1b1e26;
  --ink-soft: #5c5747;

  --cream-text: #ede7d8;

  --gold: #ad8438;
  --gold-bright: #c99e48;
  --gold-deep: #8b6423;

  --line: #e9e6dd;
  --line-dark: #2c2f38;

  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}


/* =====================================================================
   TYPOGRAFIE
   Basis: EINE fluide Root-Grösse (clamp) – alles andere in rem, damit es
   automatisch mitskaliert. Kein manuelles @media pro Komponente nötig.
   ===================================================================== */

html {
  /* 16px auf Mobile -> wächst weich -> 19px ab ca. 1100px Breite.
     Liegt damit sicher innerhalb gängiger UX-Richtwerte für
     textlastige Seiten (16-20px mobile, 18-24px desktop).
     Kein !important nötig: GeneratePress' eigenes dynamisches
     Customizer-CSS (das sonst mit !important gewinnen würde) wird
     in functions.php gezielt entfernt, siehe dortiger Kommentar. */
  font-size: clamp(16px, 0.4vw + 14.5px, 19px);
}

body {
  background: #ffffff;
  color: #333333;
  font-family: var(--font-sans);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: #111111;
  font-family: var(--font-serif);
  font-weight: 400;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.005em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  margin-bottom: 14px;
  font-size: 21px;
  line-height: 1.35;
}

h4 {
  margin-bottom: 12px;
  color: #111111;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

h5 {
  margin-bottom: 10px;
  color: #111111;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h6 {
  margin-bottom: 10px;
  color: var(--gold-deep);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}


/* Fliesstext */

.entry-content p {
  margin-bottom: 22px;
  color: #333333;
  font-size: 1rem;
  line-height: 1.85;
}

.entry-content p:last-child {
  margin-bottom: 0;
}


/* Links im Text */

.entry-content a {
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold);
  text-decoration: none;
}

.entry-content a:hover {
  color: #111111;
}


/* Listen */

.entry-content ul,
.entry-content ol {
  margin: 0 0 22px;
  padding-left: 22px;
  color: #333333;
  font-size: 1rem;
  line-height: 1.85;
}

.entry-content li {
  margin-bottom: 10px;
}

.entry-content li::marker {
  color: var(--gold-deep);
}


/* Zitat */

.entry-content blockquote {
  margin: 32px 0;
  padding-left: 28px;
  border-left: 2px solid var(--gold);
}

.entry-content blockquote p {
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 21px;
  font-style: italic;
  line-height: 1.55;
}

.entry-content blockquote cite {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* Hervorhebungen */

.entry-content strong,
.entry-content b {
  color: #111111;
  font-weight: 500;
}

.entry-content em {
  font-style: italic;
}


/* Tabellen */

.entry-content table {
  width: 100%;
  margin: 0 0 26px;
  border-collapse: collapse;
  font-size: 15px;
}

.entry-content th {
  padding: 12px 14px;
  color: var(--gold-deep);
  border-bottom: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.entry-content td {
  padding: 12px 14px;
  color: #333333;
  border-bottom: 1px solid var(--line);
}


/* Trennlinie */

.entry-content hr {
  margin: 44px 0;
  border: none;
  border-top: 1px solid var(--line);
}


/* ---------- SEITEN-RESET ---------- */

.page .entry-header {
  display: none;
}

.page .site-main {
  margin: 0;
}

.page .inside-article {
  padding: 0;
}

.page .entry-content {
  margin-top: 0;
}

.page.one-container .site-content {
  padding: 0;
}


/* ---------- LAYOUT ---------- */

.wrap {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 32px;
  padding-left: 32px;
}

/*
 * Seitenrand für reinen, direkt getippten WordPress-Text (Überschrift,
 * Absatz, Liste, Zitat, Tabelle, Trennlinie) — OHNE eigene Klasse.
 * Bewusst nur auf diese konkreten Text-Tags beschränkt (nicht auf "*"),
 * damit .services/.team-grid/.wp-block-buttons & Co. NIE mit erfasst
 * werden und ihr eigenes Layout unangetastet bleibt.
 */
.entry-content > h1,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > h5,
.entry-content > h6,
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote,
.entry-content > table,
.entry-content > hr {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 32px;
  padding-left: 32px;
}

@media (max-width: 600px) {
  .entry-content > h1,
  .entry-content > h2,
  .entry-content > h3,
  .entry-content > h4,
  .entry-content > h5,
  .entry-content > h6,
  .entry-content > p,
  .entry-content > ul,
  .entry-content > ol,
  .entry-content > blockquote,
  .entry-content > table,
  .entry-content > hr {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/*
 * Full-Bleed für alle Sektionen, die als reines HTML (Custom-HTML-Block)
 * geschrieben werden – kein Gutenberg-"Volle Breite"-Align nötig, da
 * diese Klassen selbst aus dem Container ausbrechen (100vw-Technik).
 */
.hero,
.section,
.section-tinted,
.cta-close {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
}

.section {
  padding: 100px 0;
  background: #ffffff;
}

.section-tinted {
  padding: 72px 0;
  background: #faf8f2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tag {
  color: var(--gold-deep);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.serif-em {
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-style: italic;
}

@media (max-width: 600px) {
  .wrap {
    padding-right: 20px;
    padding-left: 20px;
  }

  .section {
    padding: 72px 0;
  }
}


/* =====================================================================
   HERO
   ===================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 96px 0;
  background-color: var(--ink);
  background-image:
    url("assets/guilloche-hero.svg"),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right -90px top -110px, center;
  background-size: 520px, cover;
  color: var(--cream-text);
}

.hero h1,
.hero h2,
.hero h3 {
  color: var(--cream-text);
}

.hero .entry-content p,
.hero p {
  color: #c7c2af;
}

.hero .tag {
  color: var(--gold-bright);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 70px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--gold-bright);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: var(--gold);
  content: "";
}

.hero h1 em,
.hero h1 i,
.hero h2 em,
.hero h2 i,
.cta-close h2 em,
.cta-close h2 i {
  color: var(--gold-bright);
  font-style: italic;
}

.hero-sub {
  max-width: 46ch;
  margin-top: 24px;
  font-size: 0.97rem;
  line-height: 1.78;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/*
 * Desktop/Tablet: Hero füllt beim Laden den sichtbaren Bildschirm.
 * min-height statt height, damit Inhalt nie abgeschnitten wird.
 * 100dvh berücksichtigt zusätzlich mobile Browser-Toolbars korrekt.
 */
@media (min-width: 783px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/*
 * Mobile: bewusst KEINE erzwungene Vollbildhöhe – verhindert Layout-Shift
 * durch ein-/ausblendende Adressleisten und hält den Inhalt natürlich lesbar.
 */
@media (max-width: 600px) {
  .hero {
    padding: 72px 0;
    background-position: right -180px top -110px, center;
  }
}


/* ---------- BUTTONS ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.btn-primary,
.btn-ghost {
  padding: 0;
  background: none;
}

.wp-block-button.btn-primary > .wp-block-button__link {
  padding: 16px 28px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.25s ease;
}

.wp-block-button.btn-primary > .wp-block-button__link:hover {
  background: var(--gold-bright);
  color: var(--ink);
}

.wp-block-button.btn-ghost > .wp-block-button__link {
  padding: 0 0 3px;
  background: transparent;
  color: #a9a38d;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.wp-block-button.btn-ghost > .wp-block-button__link:hover {
  background: transparent;
  color: var(--cream-text);
  border-color: var(--gold);
}


/* ---------- STATEMENT-KARTE ---------- */

.statement {
  background: #1d2029;
  border: 1px solid var(--line-dark);
}

.statement-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--gold);
}

.statement-top .label,
.label {
  margin: 0;
  color: var(--gold-bright);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.statement-body {
  padding: 22px 26px 6px;
}

.srow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
  color: #d2cdbb;
  font-size: 13.5px;
}

.srow .mark,
.mark {
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-style: italic;
  flex: none;
}

.statement-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 26px 24px;
}

.statement-total .t-label {
  margin: 0;
  color: #96907a;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.statement-total .t-val {
  margin: 0;
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
}


/* ---------- INTRO / TEXT-GRIDS ---------- */

.intro-grid,
.content-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
}

.pull-quote {
  margin-top: 38px;
  padding-left: 28px;
  border-left: 2px solid var(--gold);
}

.pull-quote p {
  max-width: 36ch;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-style: italic;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .intro-grid,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}


/* ---------- SERVICES-GRID (6 Karten) ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service {
  display: flex;
  flex-direction: column;
  padding: 36px 28px;
  background: #ffffff;
}

.service svg {
  width: 26px;
  height: 26px;
  margin-bottom: 20px;
  stroke: var(--ink);
}

.service h3 {
  margin-bottom: 11px;
}

.service p {
  flex: 1;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}

.service .more a,
.more a {
  align-self: flex-start;
  margin-top: 18px;
  padding-bottom: 2px;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.service .more a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .services {
    grid-template-columns: 1fr;
  }
}


/* ---------- TEAM (2 Karten, für "Über uns") ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.member {
  display: flex;
  flex-direction: column;
  padding: 48px 42px;
  background: #ffffff;
  border-top: 2px solid var(--gold);
}

/* Platzhalter für Team-Foto: neutrales graues Feld mit klassischem
   Bild-Symbol, wie ein Standard-Bildplatzhalter. Sobald ein echtes
   Foto vorhanden ist: <div class="photo">-Platzhalter durch
   <img class="photo" src="..." alt="..."> ersetzen — Grösse bleibt
   durch dieselbe Klasse automatisch identisch. */
.member .photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 26px;
  overflow: hidden;
  background: #e4e2da;
  border-radius: 4px;
  object-fit: cover;
}

.member .photo svg {
  width: 34px;
  height: 34px;
  color: #b6b2a4;
}

.member h3 {
  margin-bottom: 4px;
}

.member .role {
  display: block;
  margin-bottom: 22px;
  color: var(--gold-deep);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.member p {
  margin-bottom: 24px;
  color: #333333;
  font-size: 1rem;
  line-height: 1.75;
}

.member .creds {
  margin-top: auto;
  padding: 20px 22px;
  background: #faf8f2;
  border: 1px solid var(--line);
}

.member .creds-label {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-deep);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.member .creds ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.member .creds li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.member .creds li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.member .creds li .chk {
  flex: none;
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-style: italic;
}

.member .contact-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: 20px;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold);
  font-size: 0.85rem;
  text-decoration: none;
}

.member .contact-link:hover {
  color: var(--ink);
}

@media (max-width: 820px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}


/* ---------- FAQ ---------- */

.faq-list {
  max-width: 820px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 19px;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  flex: none;
  color: var(--gold-deep);
  font-family: var(--font-sans);
  font-size: 20px;
  content: "+";
  transition: transform 0.25s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 62ch;
  padding: 0 0 26px;
  font-size: 0.94rem;
  line-height: 1.85;
}


/* ---------- CTA-SCHLUSS ---------- */

.cta-close {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--cream-text);
  text-align: center;
}

.cta-close h2 {
  max-width: 18ch;
  margin-right: auto;
  margin-left: auto;
  color: var(--cream-text);
}

.cta-close .tag {
  color: var(--gold-bright);
}

.cta-close p {
  max-width: 48ch;
  margin-right: auto;
  margin-left: auto;
  color: #c7c2af;
}


/* =====================================================================
   HEADER
   ===================================================================== */

.site-header {
  background-color: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.main-navigation,
.main-navigation .main-nav {
  background-color: transparent;
}

.main-navigation .main-nav ul li a {
  color: #a9a38d;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a {
  background-color: transparent;
  color: var(--cream-text);
}

.main-navigation .menu-toggle {
  background-color: transparent;
  color: var(--cream-text);
}

.main-navigation .main-nav ul li.nav-cta > a {
  padding-right: 20px;
  padding-left: 20px;
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.main-navigation .main-nav ul li.nav-cta > a:hover {
  background-color: var(--gold);
  color: var(--ink);
}

@media (min-width: 769px) {
  .site-header {
    position: sticky;
    z-index: 999;
    top: 0;
  }
}

@media (max-width: 768px) {
  .main-navigation .main-nav ul {
    background-color: var(--ink);
  }
}


/* =====================================================================
   FOOTER
   Ausgabe über functions.php (wp_footer-Hook)
   ===================================================================== */

.th-footer {
  background: var(--ink);
  color: #a9a38d;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-sans);
  font-size: 13.5px;
}

.th-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px 48px;
}

.th-footer__brand {
  min-width: 0;
}

.th-footer__logo {
  display: inline-block;
  color: var(--cream-text);
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.2;
  text-decoration: none;
}

.th-footer__logo:hover {
  color: var(--gold-bright);
}

.th-footer__description {
  max-width: 34ch;
  margin: 14px 0 0;
  color: #a9a38d;
  line-height: 1.75;
}

.th-footer__column h2 {
  margin: 0 0 18px;
  color: var(--gold-bright);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.th-footer__menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-footer__menu li {
  margin: 0 0 11px;
  padding: 0;
}

.th-footer__menu li:last-child {
  margin-bottom: 0;
}

.th-footer__menu a {
  color: #a9a38d;
  border: none;
  text-decoration: none;
}

.th-footer__menu a:hover,
.th-footer__menu .current-menu-item > a {
  color: var(--cream-text);
}

.th-footer__bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 32px 40px;
  color: #847e68;
  border-top: 1px solid var(--line-dark);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.th-footer__bottom p {
  margin: 0;
}

@media (max-width: 860px) {
  .th-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .th-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .th-footer__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 52px 20px 40px;
  }

  .th-footer__brand {
    grid-column: auto;
  }

  .th-footer__bottom {
    padding: 24px 20px 32px;
  }
}


/* ---------- ACCESSIBILITY ---------- */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}