/* bragoner.de – Stylesheet
   Keine externen Schriften/Skripte (DSGVO): nur Systemschriften, kein Tracking, keine Cookies. */

/* Farben: Petrol = Bereich „Der Mensch“, Terrakotta = Bereich „Der Business Partner“
   --*-g1/g2 = Verlauf, --*-shade = Abdunklung über Fotos */
:root {
  --bg: #F7F2EB;
  --surface: #FFFDF9;
  --ink: #1F2A33;
  --muted: #5E6A73;
  --line: #E6DDD0;
  --mensch: #1D4E5F;
  --mensch-soft: #D8E6EA;
  --mensch-g1: #2F7287;
  --mensch-g2: #0F2E3A;
  --mensch-shade: 8, 30, 40;
  --biz: #B85C38;
  --biz-soft: #F1DFD3;
  --biz-g1: #D98A5F;
  --biz-g2: #8C3F22;
  --biz-shade: 70, 28, 12;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 42, 51, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--accent, var(--terra)); margin-bottom: .6em; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* ---------- Startseite: geteilte Ansicht ---------- */
.split { display: flex; min-height: 100vh; min-height: 100dvh; }
.half {
  position: relative; flex: 1; display: flex; align-items: flex-end;
  padding: clamp(28px, 5vw, 64px); text-decoration: none; color: #fff; overflow: hidden;
  transition: flex .6s cubic-bezier(.2,.7,.2,1);
}
.half::before { /* Foto-Ebene */
  content: ""; position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.02); transition: transform 1.2s ease;
}
.half::after { content: ""; position: absolute; inset: 0; }
.half--mensch::before { background-image: var(--img, linear-gradient(140deg, var(--mensch-g1), var(--mensch-g2))); }
.half--mensch::after { background: linear-gradient(to top, rgba(var(--mensch-shade), .8), rgba(var(--mensch-shade), .15) 60%); }
.half--business::before { background-image: var(--img, linear-gradient(140deg, var(--biz-g1), var(--biz-g2))); }
.half--business::after { background: linear-gradient(to top, rgba(var(--biz-shade), .82), rgba(var(--biz-shade), .15) 60%); }
.half:hover, .half:focus-visible { flex: 1.35; }
.half:hover::before { transform: scale(1.07); }
.half__inner { position: relative; z-index: 1; max-width: 440px; }
.half__kicker { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.half__title { font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.1; margin: .2em 0 .35em; }
.half__text { opacity: .92; margin-bottom: 1.3em; }
.half__cta { display: inline-flex; gap: .5em; align-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: .55em 1.2em; font-weight: 600; transition: background .3s, color .3s; }
.half:hover .half__cta { background: #fff; color: var(--ink); }
.split__brand {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; text-align: center; padding: 28px 20px; color: #fff;
  pointer-events: none;
}
.split__brand strong { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); display: block; letter-spacing: .02em; }
.split__brand span { font-size: .95rem; opacity: .9; }
.split__foot { position: absolute; bottom: 14px; right: 20px; z-index: 3; font-size: .8rem; }
.split__foot a { color: rgba(255,255,255,.8); text-decoration: none; margin-left: 14px; }
.split__foot a:hover { color: #fff; text-decoration: underline; }
.ph-note { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: .8rem; opacity: .55; border: 1px dashed rgba(255,255,255,.6); padding: .4em .8em; border-radius: 8px; white-space: nowrap; }

@media (max-width: 760px) {
  .split { flex-direction: column; }
  .half { min-height: 50vh; min-height: 50dvh; }
  .half:hover, .half:focus-visible { flex: 1; }
  .split__brand { position: relative; background: var(--ink); }
  .split__foot { position: static; text-align: center; background: var(--ink); padding: 14px; }
  .split__foot a { margin: 0 8px; }
  .ph-note { top: 22px; }
}

/* ---------- Kopfzeile Unterseiten ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; text-decoration: none; }
.logo em { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 22px; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.switch { text-decoration: none; font-size: .9rem; font-weight: 600; border-radius: 999px; padding: .4em 1em; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.switch:hover { border-color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } }
.logo { white-space: nowrap; }
@media (max-width: 420px) { .switch { font-size: .8rem; padding: .35em .8em; } .logo { font-size: 1.15rem; } }

/* ---------- Seitenkopf (Hero) ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 70px); }
.hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__portrait { aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero__portrait { max-width: 360px; } }
.half__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s ease; }
.half:hover .half__img { transform: scale(1.07); }

/* ---------- Abschnitte ---------- */
section[id] { scroll-margin-top: 64px; }
section.block { padding: clamp(48px, 7vw, 90px) 0; }
section.block--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }

/* Platzhalter für Fotos */
.ph {
  width: 100%; height: 100%; min-height: 160px; display: grid; place-items: center; text-align: center;
  --ph-a: var(--accent-soft, #EADFD2);
  --ph-b: color-mix(in srgb, var(--accent-soft, #EADFD2) 88%, var(--accent, #7A6A58));
  background: repeating-linear-gradient(45deg, var(--ph-a), var(--ph-a) 12px, var(--ph-b) 12px, var(--ph-b) 24px);
  color: var(--accent, #7A6A58); font-size: .85rem; padding: 12px;
}

/* Kacheln / Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.card__icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Kennzahlen */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 36px; }
.fact { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
.fact b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--accent); }
.fact span { color: var(--muted); font-size: .92rem; }

/* Zeitleiste */
.timeline { position: relative; margin: 0; padding: 0 0 0 30px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 30px; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline li.is-now::before { background: var(--accent); }
.timeline .when { font-size: .82rem; font-weight: 700; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
.timeline h3 { margin: .15em 0 .25em; }
.timeline p { color: var(--muted); margin: 0; max-width: 64ch; }
.timeline .tag { display: inline-block; font-size: .78rem; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: .1em .7em; margin: 6px 6px 0 0; }

/* Brücken-Geschichten */
.bridge { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bridge__item { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.bridge__item .ph { min-height: 120px; border-radius: 10px; }
.bridge__item p { margin: 0; color: var(--muted); font-size: .95rem; }
.bridge__item img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; }

/* Namensgeschichte: Grafiken */
.name-graphic { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 36px); margin: 8px 0 40px; }
.name-graphic svg { width: 100%; height: auto; display: block; }
.name-graphic figcaption, .history figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 10px; }
.history { margin: 40px 0 0; }
.history__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.history svg { min-width: 760px; width: 100%; height: auto; display: block; }
.facts-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 32px; }
.facts-box div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.facts-box b { display: block; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 4px; color: var(--accent); }
.facts-box p { margin: 0; color: var(--muted); font-size: .95rem; }
.source { margin-top: 18px; font-size: .85rem; color: var(--muted); }

/* Arbeitsweise */
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.promise div { border-top: 3px solid var(--accent); padding-top: 14px; }
.promise b { font-family: var(--serif); font-size: 1.2rem; display: block; margin-bottom: 4px; }
.promise p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .bridge { grid-template-columns: 1fr; } .bridge__item { grid-template-columns: 90px 1fr; } .bridge__item .ph { min-height: 90px; } }

/* Galerie */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filters button { font: inherit; font-size: .92rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .45em 1.1em; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; cursor: zoom-in; position: relative; background: var(--line); }
.gallery figure img, .gallery figure .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img, .gallery figure:hover .ph { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; font-size: .85rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; transition: opacity .3s; }
.gallery figure:hover figcaption { opacity: 1; }
.gallery figure.is-hidden { display: none; }
.gallery--wide figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 520px) { .gallery--wide figure:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,20,25,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox__stage { max-width: min(1100px, 100%); max-height: 85vh; width: 100%; display: grid; place-items: center; }
.lightbox__stage img { max-height: 80vh; width: auto; border-radius: 8px; }
.lightbox__stage .ph { min-height: 50vh; border-radius: 8px; }
.lightbox__cap { color: #ddd; text-align: center; margin-top: 12px; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Events */
.event { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .event { grid-template-columns: 1fr; } }
.event .gallery { grid-template-columns: repeat(2, 1fr); }
.quote { font-family: var(--serif); font-size: 1.3rem; border-left: 3px solid var(--accent); padding-left: 18px; margin: 24px 0; color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; border-radius: 999px; padding: .75em 1.4em; background: var(--accent); color: #fff; border: 2px solid var(--accent); transition: filter .2s; }
.btn:hover { filter: brightness(1.1); }
.btn--ghost { background: transparent; color: var(--accent); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Kontakt-Band */
.cta-band { background: var(--accent); color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 .2em; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn { background: #fff; color: var(--accent); border-color: #fff; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }

/* Wechsel-Teaser am Seitenende */
.crossover { display: block; text-decoration: none; border-radius: 24px; overflow: hidden; position: relative; padding: clamp(32px, 5vw, 56px); color: #fff; }
.crossover--to-business { background: linear-gradient(120deg, var(--biz-g1), var(--biz-g2)); }
.crossover--to-mensch { background: linear-gradient(120deg, var(--mensch-g1), var(--mensch-g2)); }
.crossover span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.crossover strong { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: .2em; }

/* Fußzeile */
.footer { padding: 36px 0 48px; font-size: .9rem; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer a { color: var(--muted); }

/* Rechtstexte */
.legal { max-width: 760px; padding: 56px 20px 80px; margin: 0 auto; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }

/* Entwurfs-Hinweise (vor Livegang entfernen) */
.todo { background: #FFF4C7; color: #6B5300; border: 1px dashed #D9B200; border-radius: 6px; padding: 0 .35em; font-size: .9em; }

/* Akzentfarben je Bereich */
.theme-mensch { --accent: var(--mensch); --accent-soft: var(--mensch-soft); }
.theme-business { --accent: var(--biz); --accent-soft: var(--biz-soft); }

/* Sanftes Einblenden */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .half, .half::before { transition: none; }
}
