/*
Theme Name: Bastian Daubmeier Fully Editable
Theme URI: https://bastian-daubmeier.de
Author: OpenAI / ChatGPT
Description: Voll editierbares WordPress Theme für Bastian Daubmeier. Alle Texte über Seiten > Startseite bearbeitbar, Navigation über Menüs, Bilder direkt im Editor austauschbar. Keine externen Fonts/Tracker.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: bastian-daubmeier-final
*/

:root {
  --bd-bg: #f6f1e9;
  --bd-bg-soft: #fffaf1;
  --bd-ink: #0d0d0d;
  --bd-muted: #6f6a61;
  --bd-line: #ddd2c2;
  --bd-red: #b51f24;
  --bd-red-soft: #ffe4dc;
  --bd-dark: #0c1210;
  --bd-green: #17352d;
  --bd-radius: 30px;
  --bd-shadow: 0 28px 80px rgba(24, 20, 15, 0.12);
  --bd-max: 1160px;
  --bd-font: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bd-bg);
  color: var(--bd-ink);
  font-family: var(--bd-font);
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.bd-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 233, 0.90);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(13,13,13,0.09);
}
.admin-bar .bd-site-header { top: 32px; }
.bd-header-inner {
  max-width: var(--bd-max);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.bd-brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.bd-brand strong { font-size: 20px; letter-spacing: -0.055em; font-weight: 900; }
.bd-brand span { margin-top: 7px; color: var(--bd-muted); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 900; }
.bd-nav { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 900; color: var(--bd-muted); }
.bd-nav ul, .bd-nav .bd-nav-list { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.bd-nav li { margin: 0; padding: 0; }

.bd-nav a {
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 12px;
  transition: .18s ease;
}
.bd-nav a:hover { color: var(--bd-ink); border-color: var(--bd-line); background: rgba(255,250,241,0.72); }

/* Layout */
.bd-main { min-height: 60vh; }
.bd-container { max-width: var(--bd-max); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.bd-section { padding: clamp(76px, 9vw, 132px) 0; border-bottom: 1px solid rgba(13,13,13,0.11); }
.bd-kicker { color: var(--bd-red); font-size: 13px; line-height: 1.1; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 950; margin: 0 0 20px; }
.bd-display {
  font-size: clamp(56px, 8.2vw, 118px);
  line-height: 0.88;
  letter-spacing: -0.085em;
  font-weight: 950;
  max-width: 760px;
  margin: 0 0 28px;
  text-wrap: balance;
}
.bd-title {
  font-size: clamp(40px, 5.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 920;
  margin: 0 0 26px;
  max-width: 840px;
  text-wrap: balance;
}
.bd-subtitle { font-size: clamp(20px, 2.05vw, 28px); line-height: 1.15; letter-spacing: -0.045em; font-weight: 680; max-width: 760px; margin: 0 0 18px; }
.bd-copy { color: var(--bd-muted); max-width: 740px; font-size: 17px; line-height: 1.68; font-weight: 520; }
.bd-copy p, .bd-copy { margin-top: 0; }

/* Hero */
.bd-hero { padding-top: clamp(72px, 10vw, 138px); }
.bd-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.72fr); gap: clamp(36px, 7vw, 92px); align-items: center; }
.bd-badges { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0 34px; }
.bd-badge { border: 1px solid rgba(13,13,13,0.14); border-radius: 999px; padding: 9px 13px 8px; color: var(--bd-ink); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 900; background: rgba(255,250,241,0.78); }
.bd-badge:nth-child(2) { background: #fff0ec; }
.bd-badge:nth-child(3) { background: #f1f4e8; }
.bd-badge:nth-child(4) { background: #f7ebff; }
.bd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.bd-button, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  padding: 17px 24px !important;
  background: var(--bd-ink) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: 0.19em !important;
  text-transform: uppercase !important;
  border: 1px solid var(--bd-ink) !important;
  transition: transform .18s ease, box-shadow .18s ease;
}
.bd-button:hover, .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(17,17,17,0.18); }
.bd-text-link { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 950; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 6px; }
.bd-portrait, .bd-sport-visual {
  background: var(--bd-bg-soft);
  border: 1px solid var(--bd-line);
  border-radius: 34px;
  padding: 12px;
  box-shadow: var(--bd-shadow);
  transform: rotate(-1.2deg);
}
.bd-sport-visual { transform: rotate(1.2deg); background: #111a16; }
.bd-portrait img, .bd-sport-visual img { border-radius: 24px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bd-sport-visual img { aspect-ratio: 1 / 1; }

/* Statement */
.bd-statement { background: #fffaf1; }
.bd-statement-grid { display: grid; grid-template-columns: 0.28fr 0.72fr; gap: 52px; align-items: start; }
.bd-statement .bd-title { max-width: 900px; }
.bd-statement .bd-subtitle { font-size: clamp(23px, 2.6vw, 36px); max-width: 860px; }

/* Services */
.bd-services-head { display: grid; grid-template-columns: 0.28fr 0.72fr; gap: 52px; margin-bottom: 52px; }
.bd-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.bd-card {
  background: var(--bd-bg-soft);
  border: 1px solid rgba(13,13,13,0.12);
  border-radius: 30px;
  padding: 32px 28px;
  min-height: 296px;
  height: 100%;
  box-shadow: 0 14px 40px rgba(24,20,15,0.045);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.bd-card-number { color: #e8bbb6; font-size: 24px; font-weight: 950; letter-spacing: -0.04em; margin-bottom: 26px; }
.bd-card h3 { margin: 0 0 16px; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.02; letter-spacing: -0.055em; font-weight: 920; min-height: 2.08em; }
.bd-card p { margin: 0; color: var(--bd-muted); font-size: 15.5px; line-height: 1.58; }

/* Target */
.bd-target { background: #f4efe6; }
.bd-target-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.68fr); gap: clamp(42px, 7vw, 92px); align-items: center; }
.bd-target-list { margin-top: 30px; border-top: 1px solid var(--bd-line); }
.bd-target-item { padding: 18px 0; border-bottom: 1px solid var(--bd-line); color: var(--bd-muted); font-size: 17px; }
.bd-target-item strong { color: var(--bd-ink); }

/* Profile */
.bd-profile-grid { display: grid; grid-template-columns: 0.28fr 0.72fr; gap: 52px; }
.bd-profile .bd-copy { font-size: 19px; }

/* References */
.bd-references { background: #fffaf1; }
.bd-reference-grid { display: grid; grid-template-columns: 0.28fr 0.72fr; gap: 52px; }
.bd-reference-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 42px; }
.bd-reference-card { min-height: 88px; border: 1px solid rgba(13,13,13,0.12); border-radius: 24px; background: rgba(246,241,233,0.76); display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; font-weight: 900; font-size: 15px; line-height: 1.2; transition: transform .18s ease, background .18s ease; }
.bd-reference-card:hover { transform: translateY(-2px); background: var(--bd-red-soft); }
.bd-reference-note { color: var(--bd-muted); font-size: 16px; max-width: 660px; margin-top: 26px; }

/* Contact + Footer */
.bd-contact { background: var(--bd-dark); color: #fff; border-bottom: 0; }
.bd-contact .bd-kicker { color: #ffb6b6; }
.bd-contact .bd-copy { color: rgba(255,255,255,0.68); }
.bd-contact-grid { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(220px, 0.28fr); gap: 58px; align-items: center; }
.bd-contact .bd-button { background: #fff !important; color: var(--bd-dark) !important; border-color: #fff !important; }
.bd-site-footer { background: var(--bd-dark); color: rgba(255,255,255,0.62); border-top: 10px solid var(--bd-bg); }
.bd-footer-inner { max-width: var(--bd-max); margin: 0 auto; padding: 34px 28px; display: flex; justify-content: space-between; gap: 20px; font-size: 14px; }
.bd-footer-links { display: flex; gap: 12px; }
.bd-footer-links a { color: rgba(255,255,255,0.75); }

/* Pages */
.bd-page { max-width: 900px; margin: 0 auto; padding: 90px 28px; }
.bd-page h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.06em; font-weight: 920; }
.bd-page h2 { margin-top: 44px; }
.bd-page p, .bd-page li { color: var(--bd-muted); }
.bd-page a { color: var(--bd-ink); }
.wp-block-post-title { font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.06em; }
.wp-block-image { margin: 0; }
.wp-block-group { box-sizing: border-box; }
.entry-content > *:first-child { margin-top: 0; }

@media (max-width: 1080px) {
  .bd-nav { gap: 4px; font-size: 10px; }
  .bd-nav a { padding: 9px 9px; }
}

@media (max-width: 980px) {
  .bd-nav { display: none; }
  .bd-header-inner { padding: 17px 22px; }
  .bd-hero-grid, .bd-statement-grid, .bd-services-head, .bd-target-grid, .bd-profile-grid, .bd-reference-grid, .bd-contact-grid { grid-template-columns: 1fr; }
  .bd-card-grid, .bd-reference-list { grid-template-columns: 1fr; }
  .bd-display { font-size: clamp(50px, 14vw, 86px); }
  .bd-title { font-size: clamp(38px, 10vw, 64px); }
  .bd-hero { padding-top: 64px; }
  .bd-section { padding: 78px 0; }
  .bd-portrait, .bd-sport-visual { max-width: 420px; transform: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .bd-container { padding-left: 20px; padding-right: 20px; }
  .bd-display { letter-spacing: -0.07em; }
  .bd-title { letter-spacing: -0.065em; }
  .bd-subtitle { font-size: 20px; }
  .bd-actions { align-items: stretch; flex-direction: column; }
  .bd-button, .wp-block-button__link { width: 100%; }
  .bd-footer-inner { flex-direction: column; }
  .admin-bar .bd-site-header { top: 0; }
}


/* Final image integration */
.bd-portrait img { object-position: 50% 38%; }
.bd-sport-visual img { object-position: 50% 46%; }
.bd-profile-card {
  background: var(--bd-bg-soft);
  border: 1px solid var(--bd-line);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 18px 58px rgba(24,20,15,0.08);
}
.bd-profile-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 57% 42%;
  border-radius: 22px;
}
.bd-profile-grid {
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 0.66fr);
  align-items: center;
}
.bd-photo-note {
  margin: 12px 0 0;
  color: var(--bd-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
  text-align: center;
}
.bd-card-grid { align-items: stretch; }
.bd-card { align-self: stretch; }
.bd-card h3 { min-height: auto; }

@media (max-width: 980px) {
  .bd-profile-grid { grid-template-columns: 1fr; }
  .bd-profile-card { max-width: 420px; }
}
