/* Plus Ultra — Dr. Sebastian Schönhaar */

/* ---------- Self-hosted fonts ---------- */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/oswald-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/ibmplex-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/ibmplex-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0b0c;
  --accent: #e8a33d;
  --accent-hover: #f3c27a;
  --text: #f2f0ec;
  --text-muted: #d9d6d0;
  --text-cool: #c9c6c0;
  --text-small: #a7a39c;
  --border-dim: #2a2a2c;
  --border-line: #1f1f21;
  --card-bg: #16191b;
  --media-fallback-bg: #1a1d1f;
  --media-fallback-border: #4a4f52;
  --media-fallback-color: #8f9397;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--text);
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { font-family: Oswald, sans-serif; font-weight: 600; margin: 0; }
h1, h2 { text-wrap: balance; line-height: 1.1; }
h2 { font-size: clamp(36px, 5vw, 64px); }

/* ---------- Header / nav ---------- */
.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.brand a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.brand-name { font-family: Oswald, sans-serif; font-size: 18px; letter-spacing: 3px; font-weight: 500; }
.brand-tag  { font-size: 12px; letter-spacing: 2px; color: var(--accent); }
.site-nav   { display: flex; gap: 28px; font-size: 13px; letter-spacing: 1.5px; }
.site-nav a { color: var(--text-muted); text-decoration: none; }

/* Topbar — nav laid over the hero image */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

/* ---------- Full-width image section (no cropping) ----------
   Container aspect-ratio matches the image's natural aspect so that when
   the <img> loads, it fills the container exactly (no cropping) — and when
   it fails to load, the container retains its reserved space and shows the
   dashed fallback label. */
.imgsec { position: relative; background: var(--bg); }

.imgsec-media {
  position: relative;
  width: 100%;
  background: var(--media-fallback-bg);
  overflow: hidden;
}
.imgsec-media > img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}
/* Fallback dashed placeholder (visible while image is loading or on error) */
.imgsec-media::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px dashed var(--media-fallback-border);
  pointer-events: none;
  z-index: 0;
}
.imgsec-media > .media-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--media-fallback-color);
  font-size: 14px;
  pointer-events: none;
  padding: 24px;
  text-align: center;
  z-index: 0;
}
.imgsec-media:not(.img-loaded) > img { visibility: hidden; }
.imgsec-media.img-loaded::before,
.imgsec-media.img-loaded > .media-label { display: none; }

/* Per-image aspect-ratio reservations (match file aspect to avoid cropping) */
.media-hero          { aspect-ratio: 1672 / 941; }
.media-notebook      { aspect-ratio: 1672 / 941; }
.media-about         { aspect-ratio: 1916 / 821; }
.media-band-workshop { aspect-ratio: 1913 / 822; }

/* Gradients painted over an image section (desktop only; hidden on mobile) */
.shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.shade-left   { background: linear-gradient(90deg, rgba(8,8,9,.92) 0%, rgba(8,8,9,.70) 42%, rgba(8,8,9,0) 75%); }
.shade-bottom { background: linear-gradient(0deg,  rgba(8,8,9,.95) 0%, rgba(8,8,9,.40) 45%, rgba(8,8,9,0) 70%); }

/* Overlay text block (desktop) */
.imgsec-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.imgsec-overlay--bottom { align-items: flex-end; }
.imgsec-overlay-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  pointer-events: auto;
}
.imgsec-overlay--bottom .imgsec-overlay-inner { padding-bottom: 64px; }
.imgsec-overlay .txt {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.imgsec-overlay--bottom .imgsec-overlay .txt,
.imgsec-overlay--bottom .txt { gap: 8px; }

/* Hero-specific text sizing (lives inside .imgsec-overlay for the hero) */
.hero-overlay .txt h1 { font-size: clamp(48px, 8vw, 88px); line-height: 1.05; }
.hero-overlay .txt p  { margin: 0; font-size: 19px; line-height: 1.6; color: var(--text-muted); max-width: 520px; }

.selbst-overlay .txt p  { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text-muted); }

.about-overlay .txt h2 { margin: 4px 0 4px; }
.about-overlay .txt p  { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text-muted); }

/* Hero top padding so nav isn't on the overlay text */
.hero-overlay { padding-top: 96px; }
@media (min-width: 900px) {
  .hero-overlay { padding-top: 0; }
}

/* ---------- Mobile reflow for image sections ----------
   Below 768px, the overlay text drops below the image so the full photo
   stays visible. The dark gradient is dropped (text lives on solid black
   below the image). */
@media (max-width: 768px) {
  .imgsec-overlay {
    position: static;
    inset: auto;
    display: block;
    padding: 40px 20px 48px;
    background: var(--bg);
  }
  .imgsec-overlay-inner { padding: 0; max-width: none; }
  .imgsec-overlay .txt { max-width: 100%; }
  .shade-left, .shade-bottom { display: none; }
  .hero-overlay { padding-top: 40px; }
  .imgsec-overlay--bottom .imgsec-overlay-inner { padding-bottom: 0; }
}

/* ---------- Standard content section ---------- */
.section    { padding: 96px 32px; background: var(--bg); }
.wrap       { max-width: 1180px; margin: 0 auto; }
.wrap-narrow { max-width: 860px; margin: 0 auto; }

/* ---------- Typography / shared atoms ---------- */
.eyebrow    { font-size: 13px; letter-spacing: 2px; color: var(--accent); }
.eyebrow-sm { font-size: 12px; letter-spacing: 2px; color: var(--accent); }
.hint       { font-size: 13px; color: var(--text-small); }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #111;
  text-decoration: none;
  padding: 16px 28px;
  font-size: 14px;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.btn-primary:hover { color: #111; }

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

/* ---------- Shift block ---------- */
.shift { display: flex; flex-direction: column; gap: 48px; }
.shift-head  { display: flex; flex-direction: column; gap: 12px; }
.shift-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.shift-item  { display: flex; flex-direction: column; gap: 16px; }
.shift-bar   { position: relative; height: 2px; background: var(--border-dim); }
.shift-dot   { position: absolute; top: -5px; width: 12px; height: 12px; border-radius: 6px; background: var(--accent); }
.shift-bar--1 .shift-dot { left: 20%; }
.shift-bar--2 .shift-dot { left: 50%; }
.shift-bar--3 .shift-dot { left: 80%; }
.shift-num   { font-size: 12px; letter-spacing: 2px; color: var(--accent); }
.shift-item h3 {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  color: var(--text);
}
.shift-item p  { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Narrow prose block ---------- */
.narrow-block { display: flex; flex-direction: column; gap: 22px; }
.narrow-block p  { margin: 0; font-size: 18px; line-height: 1.7; color: var(--text-muted); }

/* ---------- Für Sie, wenn — four linked items ---------- */
.fuersie {
  padding: 112px 32px;
  background: var(--bg);
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
}
.fuersie .wrap { display: flex; flex-direction: column; gap: 40px; }
/* Explicit breakpoints so four items never leave one orphan on a row.
   Base (<600px): 1 col. 600–1023px: 2×2. ≥1024px: 4 cols. */
.fuersie-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 600px) {
  .fuersie-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .fuersie-cols { grid-template-columns: repeat(4, 1fr); }
}
.fuersie-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: inherit;
  text-decoration: none;
  padding: 6px 0;
}
.fuersie-item .fuersie-num {
  display: block;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
}
.fuersie-item .fuersie-body {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}
.fuersie-item .fuersie-label {
  margin-top: auto;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-small);
  transition: color .15s ease;
}
.fuersie-item:hover .fuersie-label,
.fuersie-item:focus-visible .fuersie-label { color: var(--accent); }
.fuersie-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---------- Angebot ---------- */
.offer { display: flex; flex-direction: column; gap: 40px; }
/* Explicit breakpoints so four cards never leave one orphan on a row.
   Base (<600px): 1 col. 600–1023px: 2×2. ≥1024px: 4 cols. */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .offer-grid { grid-template-columns: repeat(4, 1fr); }
}
.offer-card {
  background: var(--card-bg);
  border-top: 3px solid var(--accent);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: 24px;
}
.offer-card h3 { font-size: 24px; }
.offer-card p  { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-cool); }
.offer-card .foot {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-style: italic;
  color: var(--accent);
}

/* ---------- About CV continuation ---------- */
.about-cv-section .wrap-narrow { display: flex; flex-direction: column; gap: 20px; }
.about-cv {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}
.about-cv strong { color: var(--text); }
.about-cv-section p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text-muted); }
.about-cta {
  align-self: flex-start;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-decoration: none;
}

/* ---------- FAQ (on black, native <details> accordion) ---------- */
.faq { display: flex; flex-direction: column; gap: 0; }
.faq h2 { margin-bottom: 28px; }
.faq-item {
  border-top: 1px solid var(--border-dim);
}
.faq-item:last-of-type { border-bottom: 1px solid var(--border-dim); }
.faq-item > summary {
  list-style: none;
  padding: 18px 0;
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  outline: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  flex: 0 0 auto;
  transition: color .15s ease;
}
.faq-item[open] > summary::after { content: "−"; }
.faq-item > summary:hover,
.faq-item > summary:focus-visible { color: var(--accent); }
.faq-item > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq-item > p {
  margin: 0;
  padding: 0 0 22px 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 680px;
}

/* ---------- Kontakt ---------- */
/* Tighter transitions in the final dark stack (Über mich → Fragen → Kontakt).
   Thin divider matches the Für-Sie borders. */
.faq-section {
  padding-top: 80px;
  border-top: 1px solid var(--border-line);
}
.contact {
  padding: 80px 32px 112px;
  text-align: center;
  border-top: 1px solid var(--border-line);
}
.contact-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.contact-inner h2 { line-height: 1.1; }
.contact-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-small);
  flex-wrap: wrap;
  justify-content: center;
}
.contact-links a { color: var(--text-small); text-decoration: none; }
.contact-links a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid #222;
  padding: 28px 32px;
  font-size: 12px;
  color: #8f8b85;
  text-align: center;
}
.site-footer a { color: #8f8b85; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Simple subpages (Impressum, Datenschutz) ---------- */
.simple-page { padding: 96px 32px; min-height: 60vh; }
.simple-page .wrap-narrow { display: flex; flex-direction: column; gap: 24px; }
.simple-page h1 { font-size: clamp(32px, 5vw, 48px); font-family: Oswald, sans-serif; font-weight: 600; margin: 0; }
.simple-page h2 { font-size: 24px; font-family: Oswald, sans-serif; font-weight: 600; margin: 32px 0 4px; color: var(--text); line-height: 1.2; text-wrap: balance; }
.simple-page h3 { font-size: 18px; font-family: Oswald, sans-serif; font-weight: 600; margin: 20px 0 4px; color: var(--text); line-height: 1.3; }
.simple-page p  { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text-muted); }
.simple-page ul { margin: 0; padding-left: 22px; font-size: 17px; line-height: 1.7; color: var(--text-muted); }
.simple-page ul li { margin: 4px 0; }
.simple-page .intro { font-size: 15px; color: var(--text-small); }

/* ---------- Mobile tightening (general) ---------- */
@media (max-width: 640px) {
  .section        { padding: 72px 20px; }
  .site-header    { padding: 24px 20px; gap: 12px; }
  .site-nav       { gap: 18px; }
  .shift          { gap: 32px; }
  .shift-grid     { gap: 28px; }
  .fuersie        { padding: 72px 20px; }
  .fuersie-cols   { gap: 28px; }
  .fuersie-item .fuersie-num { font-size: 48px; }
  .fuersie-item .fuersie-body { font-size: 17px; }
  .offer-card     { padding: 24px; }
  .faq-section    { padding-top: 60px; }
  .contact        { padding: 60px 20px 80px; }
  .site-footer    { padding: 24px 20px; }
  .about-cv-section .wrap-narrow { gap: 16px; }
}
