/* chuebner.de – Visitenkarten-Seite Christoph Hübner
   Eigenbau im Stil des BootstrapMade-Templates „Folio" (ohne Framework, ohne externe Ressourcen) */

:root {
  --text: #292929;
  --muted: #6f6f6f;
  --light: #9a9a9a;
  --accent: #b08d5b;        /* warmes Gold/Beige */
  --accent-soft: #e7ddc9;
  --bg: #ffffff;
  --bg-alt: #f9f7f4;
  --bg-dark: #1f1d1b;
  --line: #ece5d8;
  --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --max: 1140px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--muted);
  font-family: var(--font-body); font-weight: 300; font-size: 15px; line-height: 1.75;
  letter-spacing: .01em; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--text); margin: 0 0 14px; line-height: 1.25; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; margin-bottom: 26px; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }

/* Header – über dem Hero transparent, danach weiß */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, box-shadow .3s;
  background: transparent;
}
.site-header.scrolled { background: rgba(255,255,255,.95); backdrop-filter: blur(6px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; }
.site-header.scrolled .brand { color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .02em;
}
.brand-name { font-size: 15px; letter-spacing: .04em; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.site-header.scrolled .main-nav a { color: var(--text); text-shadow: none; }
.main-nav a:hover { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }
.site-header.scrolled .nav-toggle span { background: var(--text); }

/* Hero – vollflächiges Foto */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--bg-dark) url("../img/hero-bg.jpg?v=3") center center / cover no-repeat;
  color: #fff;
}
/* Foto: Person links → Textspalte rechts, Verlauf von rechts abgedunkelt */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(20,18,16,.78) 0%, rgba(20,18,16,.55) 45%, rgba(20,18,16,.10) 100%);
}
.hero-content { position: relative; z-index: 1; width: 100%; padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.hero-text { grid-column: 2; }
.typed-line {
  color: #fff; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(26px, 4vw, 44px); font-weight: 700; line-height: 1.3; height: 1.3em; margin-bottom: 14px;
  white-space: nowrap; overflow: visible;
}
.cursor { display: inline-block; width: 3px; height: .85em; background: #fff; margin-left: 6px; vertical-align: -0.06em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-facets { font-size: 15px; font-weight: 500; letter-spacing: .1em; color: #fff; margin-bottom: 18px; }
.hero-name { font-size: 15px; font-weight: 500; letter-spacing: .06em; color: rgba(255,255,255,.9); margin-bottom: 24px; }
.hero-actions { display: flex; align-items: center; gap: 18px; }
.hero-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; transition: .2s; }
.hero-icon svg { width: 18px; height: 18px; fill: #fff; }
.hero-icon:hover { background: #fff; border-color: #fff; }
.hero-icon:hover svg { fill: var(--text); }
.hero-more { color: rgba(255,255,255,.85); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 2px; }
.hero-more:hover { color: #fff; border-color: #fff; text-decoration: none; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 40px; font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; transition: .2s; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9a7a4c; }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: var(--accent); color: #fff; }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: rgba(255,255,255,.78); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-intro { max-width: 720px; margin-bottom: 36px; }

/* Statement (Profil) */
.statement-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.portrait-frame {
  width: min(100%, 360px); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; position: relative;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.35);
}
.portrait-frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.55); pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.statement-portrait { position: relative; padding: 0 0 26px 26px; }
.statement-portrait::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%; border: 10px solid var(--accent-soft); z-index: -1; }
.statement { font-size: clamp(26px, 3vw, 34px); font-weight: 600; margin-bottom: 22px; }

/* Produkte mit Impact */
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.impact-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px 26px; transition: .25s; }
.impact-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.impact-when { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.impact-card h3 { font-size: 19px; margin-bottom: 18px; }
.impact-card dl { margin: 0; }
.impact-card dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-top: 12px; }
.impact-card dd { margin: 2px 0 0; font-size: 14px; line-height: 1.65; }

/* Werdegang */
.cv-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 60px; align-items: start; }
.cv-block { margin-bottom: 46px; }
.cv-block:last-child { margin-bottom: 0; }
.cv-block-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--accent-soft); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -35px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--accent-soft);
}
.timeline-role { margin-bottom: 2px; }
.timeline-meta { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.tag { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 20px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .04em; vertical-align: 1px; }
.timeline-item ul { padding-left: 18px; margin: 0; }
.timeline-item li { font-size: 14px; line-height: 1.7; margin-bottom: 5px; }
.engagement-item { margin-bottom: 18px; }
.engagement-role { font-size: 15px; font-weight: 500; color: var(--text); margin: 0; }
.engagement-meta { font-size: 12.5px; color: var(--accent); font-weight: 600; margin: 0 0 4px; }
.engagement-text { font-size: 14px; margin: 0; }

/* Kompetenzen */
.skills-row { display: flex; flex-wrap: wrap; gap: 10px 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.skills-row:last-child { border-bottom: 0; }
.skills-label { flex: 0 0 220px; font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: .02em; }
.skills-value { flex: 1 1 300px; font-size: 14px; line-height: 1.7; }

/* Angebot */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 10px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 28px; transition: .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(0,0,0,.3); border-color: var(--accent-soft); }
.card-num { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--accent-soft); line-height: 1; margin-bottom: 14px; }
.card h3 { font-size: 18px; }
.card p { font-size: 14px; margin: 0; }
.cards-note { margin-top: 30px; font-size: 14px; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: center; }
.contact-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); display: block; }
.contact-rows { margin-top: 6px; }
.contact-row { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--text); margin-bottom: 16px; }
.contact-row svg { width: 22px; height: 22px; fill: var(--accent); flex: 0 0 22px; }
.contact-row a { color: var(--text); }
.contact-row a:hover { color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 13px; }
.footer-bottom p { margin: 0; text-align: center; }
.footer-bottom a { color: inherit; }

/* Rechtsseiten (Header dort immer weiß) */
.legal-page .site-header { position: sticky; background: rgba(255,255,255,.95); box-shadow: 0 1px 0 var(--line); }
.legal-page .brand, .legal-page .main-nav a { color: var(--text); text-shadow: none; }
.legal-main { padding: 50px 20px 80px; max-width: 800px; }
.legal-main h1 { font-size: 34px; margin-bottom: 26px; }
.legal-main h2 { font-size: 20px; margin: 30px 0 10px; }
.back-link { display: inline-block; margin-bottom: 20px; font-size: 14px; }

/* Einblenden */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 900px) {
  .statement-grid { grid-template-columns: 1fr; gap: 40px; }
  .statement-portrait { max-width: 320px; }
  .cv-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards, .impact-grid { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(20,18,16,.35) 0%, rgba(20,18,16,.78) 100%); }
  .hero { background-position: 28% center; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-text { grid-column: 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-photo { max-width: 200px; }
}
@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 66px; background: #fff;
    flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 20px; color: var(--text); text-shadow: none; }
  .brand-name { display: none; }
  .hero { min-height: 92vh; }
  .hero-content { padding-top: 120px; padding-bottom: 90px; }
  .typed-line { white-space: normal; height: auto; min-height: 2.6em; font-size: 26px; }
  .section { padding: 60px 0; }
  .skills-label { flex-basis: 100%; }
  .tag { display: block; margin: 6px 0 0; width: max-content; }
}
