/*
Theme Name: Bastian Daubmeier Expert Theme Sans Clean
Theme URI: https://bastian-daubmeier.de
Author: OpenAI for Bastian Daubmeier
Author URI: https://openai.com
Description: Minimalistisches, schnelles WordPress Block Theme für Bastian Daubmeier: Sporternährung, Trainingswissenschaft und Ausdauercoaching.
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bastian-daubmeier
Tags: one-column, custom-colors, custom-logo, editor-style, block-patterns, full-site-editing, accessibility-ready
*/

:root {
  --bd-cream: #f7f4ee;
  --bd-paper: #fffdf8;
  --bd-ink: #111111;
  --bd-muted: #5f625f;
  --bd-line: rgba(17, 17, 17, 0.14);
  --bd-deep: #0f1412;
  --bd-red: #a82020;
  --bd-sage: #dce1d7;
  --bd-max: 1160px;
  --bd-radius: 28px;
  --bd-shadow: 0 24px 70px rgba(17, 17, 17, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bd-cream);
  color: var(--bd-ink);
  font-family: "Aptos", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body .is-layout-constrained > * {
  max-width: var(--bd-max);
}

a {
  color: inherit;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--bd-red); }

.bd-wrap {
  max-width: var(--bd-max);
  margin-inline: auto;
  padding-inline: clamp(22px, 5vw, 72px);
}

.bd-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--bd-line);
}

.bd-header-inner {
  max-width: var(--bd-max);
  margin-inline: auto;
  padding: 18px clamp(22px, 5vw, 72px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.bd-brand {
  line-height: 1.05;
  font-weight: 760;
  letter-spacing: -0.025em;
  font-size: clamp(22px, 2vw, 31px);
  text-decoration: none;
}

.bd-brand span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bd-muted);
  font-weight: 650;
}

.bd-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 28px);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.bd-nav a { text-decoration: none; color: var(--bd-muted); }
.bd-nav a:hover { color: var(--bd-ink); }

.bd-hero {
  padding: clamp(72px, 8vw, 122px) 0 clamp(64px, 7vw, 96px);
  border-bottom: 1px solid var(--bd-line);
}

.bd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.62fr);
  align-items: end;
  gap: clamp(36px, 6vw, 88px);
}

.bd-kicker {
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 760;
  color: var(--bd-red);
  margin-bottom: 24px;
}

.bd-hero h1 {
  font-family: "Aptos", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: clamp(54px, 6.6vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 820;
  margin: 0;
  max-width: 9em;
}

.bd-hero .bd-lead {
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: clamp(26px, 3vw, 42px) 0 0;
  max-width: 850px;
}

.bd-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(26px, 4vw, 46px);
}

.bd-pill {
  border: 1px solid var(--bd-line);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bd-muted);
  background: rgba(255, 253, 248, 0.55);
}

.bd-portrait-card {
  background: var(--bd-paper);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-radius);
  padding: 12px;
  box-shadow: var(--bd-shadow);
  transform: rotate(1deg);
}

.bd-portrait-card img,
.bd-image-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--bd-radius) - 10px);
  aspect-ratio: 4/5;
  object-fit: cover;
}

.bd-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: clamp(30px, 4vw, 52px);
}

.bd-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 21px;
  border-radius: 999px;
  background: var(--bd-ink) !important;
  color: #fff !important;
  font-size: 14px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 780;
  text-decoration: none;
  border: 1px solid var(--bd-ink);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.bd-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  background: var(--bd-red) !important;
  border-color: var(--bd-red);
}

.bd-text-link {
  font-weight: 760;
  font-size: 14px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--bd-ink);
}

.bd-section {
  padding: clamp(72px, 7vw, 112px) 0;
  border-bottom: 1px solid var(--bd-line);
}

.bd-section.bd-no-border { border-bottom: 0; }

.bd-section-header {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 72px);
}

.bd-eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--bd-red);
  margin: 0;
}

.bd-section h2 {
  font-family: "Aptos", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: clamp(34px, 3.9vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.07em;
  font-weight: 780;
  margin: 0;
}

.bd-statement {
  font-family: "Aptos", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.07em;
  font-weight: 780;
  max-width: 920px;
  margin: 0;
}

.bd-subtext {
  color: var(--bd-muted);
  max-width: 760px;
  margin: 22px 0 0;
}

.bd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bd-card {
  background: var(--bd-paper);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-radius);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 10px 35px rgba(17,17,17,0.035);
}

.bd-card h3 {
  font-size: clamp(21px, 1.8vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

.bd-card p,
.bd-card li {
  color: var(--bd-muted);
}

.bd-card p { margin: 0; }

.bd-number {
  display: block;
  font-family: "Aptos", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 42px;
  line-height: 1.06;
  font-weight: 780;
  color: rgba(168, 32, 32, 0.22);
  margin-bottom: 34px;
}

.bd-split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.68fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
}

.bd-image-card {
  background: var(--bd-paper);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-radius);
  padding: 12px;
  box-shadow: var(--bd-shadow);
}

.bd-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.bd-list li {
  border-top: 1px solid var(--bd-line);
  padding-top: 13px;
}

.bd-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bd-logo-item {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--bd-line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.65);
  padding: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bd-dark {
  background: var(--bd-deep);
  color: #f7f4ee;
}

.bd-dark .bd-muted,
.bd-dark .bd-subtext,
.bd-dark p { color: rgba(247,244,238,0.7); }

.bd-dark .bd-eyebrow { color: #f0a3a3; }

.bd-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.bd-contact h2 { color: #fff; }

.bd-contact a.bd-button { background: #f7f4ee !important; color: #111 !important; border-color: #f7f4ee; }
.bd-contact a.bd-button:hover { background: #fff !important; border-color: #fff; }

.bd-footer {
  background: var(--bd-deep);
  color: rgba(247,244,238,0.72);
  border-top: 1px solid rgba(247,244,238,0.16);
}

.bd-footer-inner {
  max-width: var(--bd-max);
  margin-inline: auto;
  padding: 32px clamp(22px, 5vw, 72px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}

.bd-footer a { color: rgba(247,244,238,0.82); }

.bd-article {
  max-width: 860px;
  padding-top: clamp(70px, 8vw, 120px);
  padding-bottom: clamp(70px, 8vw, 120px);
}
.bd-article h1 {
  font-family: "Aptos", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: clamp(42px, 5.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 780;
}
.bd-article h2 { margin-top: 2.2em; }
.bd-article p, .bd-article li { color: var(--bd-muted); }

@media (max-width: 860px) {
  .bd-header-inner { align-items: flex-start; flex-direction: column; }
  .bd-nav { gap: 12px 18px; }
  .bd-hero-grid,
  .bd-section-header,
  .bd-split,
  .bd-contact { grid-template-columns: 1fr; }
  .bd-grid-3,
  .bd-logo-grid { grid-template-columns: 1fr; }
  .bd-portrait-card { transform: none; max-width: 420px; }
  .bd-hero { padding-top: 62px; }
}


/* v1.2 Sans Clean: dynamischer, weniger gequetscht */
.bd-hero h1,
.bd-section h2,
.bd-statement,
.bd-article h1 {
  letter-spacing: -0.035em;
  font-weight: 780;
}
.bd-statement {
  font-size: clamp(32px, 3.45vw, 56px);
  line-height: 1.08;
  max-width: 940px;
  text-wrap: balance;
}
.bd-section h2 {
  font-size: clamp(34px, 3.75vw, 60px);
  line-height: 1.04;
  text-wrap: balance;
}
.bd-hero h1 {
  font-size: clamp(54px, 6.1vw, 92px);
  line-height: 0.96;
}
.bd-hero .bd-lead { max-width: 760px; }
.bd-subtext { line-height: 1.72; }
@media (min-width: 861px) {
  .bd-section .bd-wrap { max-width: 1080px; }
  #profil .bd-wrap { max-width: 1080px; }
}
@media (max-width: 520px) {
  .bd-hero h1 { font-size: clamp(46px, 15vw, 68px); }
  .bd-statement { font-size: clamp(32px, 10vw, 44px); }
  .bd-section h2 { font-size: clamp(30px, 9vw, 42px); }
  .bd-kicker, .bd-eyebrow { font-size: 12px; letter-spacing: 0.14em; }
}
