/* =========================================================
   extras.css — Kontakt-Popup (Glas-Look), Kontakt-Ecke, Besucher-Dashboard
   ========================================================= */

/* ---------------- Start-Animation: oranger i-Punkt ---------------- */
.hero-word .ch.has-tittle { position: relative; }
.hero-word .bl { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.hero-word .tittle {
  position: absolute; border-radius: 50%;
  background: var(--accent);
  will-change: transform;
}

/* ---------------- Kontakt-Popup: Glas ---------------- */
html.pop-lock { overflow: hidden; }
.contact-end { height: 1px; }
.glass-pop { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.glass-pop[hidden] { display: none; }
.glass-veil {
  position: absolute; inset: 0;
  background: rgba(242, 240, 235, .38);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  opacity: 0; transition: opacity .5s var(--ease);
}
.glass-card {
  position: relative; isolation: isolate; overflow: hidden;
  width: min(520px, 100%);
  padding: 42px 40px 30px;
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.42));
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(255,255,255,.35),
    0 30px 80px -20px rgba(18,18,18,.35),
    0 8px 24px rgba(18,18,18,.08);
  opacity: 0; transform: translateY(26px) scale(.96);
  transition: opacity .55s var(--ease), transform .7s cubic-bezier(.2, 1.25, .3, 1);
}
.glass-card::before { /* Glanzkante */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.65) 0%, rgba(255,255,255,0) 38%);
  mix-blend-mode: soft-light;
}
.glass-pop.is-open .glass-veil { opacity: 1; }
.glass-pop.is-open .glass-card { opacity: 1; transform: none; }

.glass-orb { position: absolute; border-radius: 50%; filter: blur(34px); z-index: -1; animation: blob 14s ease-in-out infinite alternate; }
.glass-orb.o1 { width: 260px; height: 260px; right: -70px; top: -90px; background: var(--accent); opacity: .55; }
.glass-orb.o2 { width: 200px; height: 200px; left: -80px; bottom: -70px; background: var(--accent-soft); opacity: .75; animation-duration: 18s; }
.glass-orb.o3 { width: 140px; height: 140px; right: 20%; bottom: -60px; background: #ffb199; opacity: .45; animation-duration: 21s; }
.glass-card > *:not(.glass-orb) { position: relative; z-index: 2; }

.glass-x {
  position: absolute !important; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.55); backdrop-filter: blur(10px);
  font-size: 20px; line-height: 1; color: var(--ink);
  transition: transform .3s var(--ease), background .2s;
}
.glass-x:hover { transform: rotate(90deg); background: #fff; }
.glass-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.glass-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,79,43,.18); }
.glass-title { font-size: clamp(32px, 4.6vw, 46px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; margin: 14px 0 16px; }
.glass-title .serif { color: var(--accent); }
.glass-text { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.glass-text p { margin: 0 0 .7em; }

/* großer Anruf-Button in Akzentfarbe */
.glass-call {
  display: flex; align-items: center; gap: 14px; width: 100%;
  margin-top: 22px; padding: 12px 22px 12px 12px; border: 0; text-align: left;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a3d, var(--accent) 55%, #e8401f);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 14px 30px -10px rgba(255,79,43,.65);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.glass-call:hover { transform: translateY(-2px) scale(1.01); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 20px 40px -12px rgba(255,79,43,.75); }
.glass-call-ico {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 22px;
  background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.5);
  animation: ring 2.8s ease-in-out infinite;
}
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); } }
.glass-call-txt { display: grid; line-height: 1.2; }
.glass-call-txt small { font-size: 12.5px; opacity: .9; }
.glass-call-txt b { font-size: 21px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.glass-call.is-loading .glass-call-ico { animation: spin .8s linear infinite; }
.glass-later {
  display: block; margin: 16px auto 0; border: 0; background: none;
  font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.glass-later:hover { color: var(--ink); }
body.is-edit .glass-call [data-edit-key] { outline-color: rgba(255,255,255,.7); }

/* ---------------- Kontakt-Ecke (Dreieck unten links, Chat-Button sitzt rechts daneben) ---------------- */
.corner {
  position: fixed; left: 0; bottom: 0; z-index: 80;
  width: 150px; height: 150px;
  pointer-events: none;
}
.corner.is-open { z-index: 90; } /* offenes Kontakt-Panel liegt über dem Chat-Button */
.corner-tri {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; pointer-events: auto;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  background: linear-gradient(225deg, #ff7a4d 30%, var(--accent) 65%, #e23a18);
  color: #fff;
  transform-origin: 0 100%;
  transition: transform .5s cubic-bezier(.2, 1.3, .3, 1), filter .3s;
  filter: drop-shadow(0 0 0 transparent);
}
.corner-tri:hover, .corner-tri:focus-visible { transform: scale(1.12); }
.corner-tri:focus-visible { outline: none; filter: brightness(1.08); }
/* Beschriftung im Schwerpunkt des Dreiecks, entlang der Diagonale */
.corner-label {
  position: absolute; left: 32%; top: 68%;
  transform: translate(-50%, -50%) rotate(45deg);
  white-space: nowrap; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  display: grid; gap: 1px; justify-items: center; line-height: 1.2;
}
.corner-label small { font-size: 10px; letter-spacing: .1em; opacity: .85; font-weight: 500; text-transform: none; }
.corner-label .corner-arrow { display: inline-block; transition: transform .35s var(--ease); }
.corner-tri:hover .corner-arrow { transform: rotate(-45deg) scale(1.5); } /* Pfeil neigt sich 45° nach links und wird größer (scale = Größe) */
.corner.is-open .corner-tri { transform: scale(0); }

.corner-panel {
  position: absolute; left: 16px; bottom: 16px; width: 380px; pointer-events: auto;
  padding: 26px 24px 22px; border-radius: 28px; overflow: hidden; isolation: isolate;
  /* echtes Glas: halbtransparent + Unschärfe dahinter (Transparenz = die Werte .4 / .18) */
  background: linear-gradient(145deg, rgba(255,255,255,.4), rgba(255,255,255,.18));
  backdrop-filter: blur(22px) saturate(1.8); -webkit-backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: inset 0 1px 0 #fff, 0 30px 70px -20px rgba(18,18,18,.35);
  transform-origin: 0 100%;
  transform: scale(.4); opacity: 0; visibility: hidden;
  transition: transform .55s cubic-bezier(.2, 1.2, .3, 1), opacity .3s, visibility 0s .55s;
}
.corner.is-open .corner-panel { transform: none; opacity: 1; visibility: visible; transition: transform .55s cubic-bezier(.2, 1.2, .3, 1), opacity .3s; }
.corner-panel h3 { margin: 6px 0 4px; font-size: 26px; letter-spacing: -0.03em; line-height: 1.05; }
.corner-panel h3 .serif { color: var(--accent); }
.corner-panel p { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.corner-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.6); font-size: 18px; line-height: 1;
}
.corner-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  border: 0; border-radius: 16px; padding: 13px 16px; margin-top: 8px; text-align: left; font-size: 14.5px; font-weight: 500;
  background: var(--accent); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 22px -10px rgba(255,79,43,.8);
  transition: transform .25s var(--ease);
}
.corner-btn:hover { transform: translateY(-1px); }
.corner-btn.ghost { background: rgba(255,255,255,.45); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.corner-btn b { font-variant-numeric: tabular-nums; font-weight: 600; }
/* Nummer/Mail bleiben in einer Zeile (kein Umbruch → Panel wird nicht höher) */
.corner-btn > span { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.corner-btn > b { flex: none; display: inline-block; transition: transform .35s var(--ease); }
/* Mouse-over: oberer Pfeil (Nummer) zeigt nach oben, unterer (Mail) nach unten */
/* scale = Größe beim Mouse-over */
button.corner-btn[data-act="phone"]:hover > b { transform: rotate(-90deg) scale(1.5); }
button.corner-btn[data-act="mail"]:hover > b  { transform: rotate(90deg) scale(1.5); }
.corner-note { font-size: 11.5px; color: var(--muted); margin: 12px 0 0 !important; }
.glass-pop:not([hidden]) ~ .corner, body.nav-open .corner { opacity: 0; pointer-events: none; }

@media (max-width: 760px) {
  .corner { width: 104px; height: 104px; }
  .corner-label { font-size: 9.5px; letter-spacing: .1em; }
  .corner-label small { display: none; }
  .corner-panel { left: 10px; bottom: 10px; width: calc(100vw - 20px); max-width: 380px; }
  .glass-pop { align-items: end; padding: 12px; }
  .glass-card { padding: 34px 24px 22px; border-radius: 30px; }
  .glass-call-txt b { font-size: 18px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-veil { background: rgba(242,240,235,.85); }
  .glass-card, .corner-panel { background: rgba(255,255,255,.95); }
}

/* ---------------- Besucher-Dashboard ---------------- */
.st-modal { width: min(880px, 100%); }
.st-body { display: grid; gap: 12px; }
.st-builder { background: #f3f6ff; border-radius: 14px; padding: 14px 16px; }
.st-builder summary { cursor: pointer; }
.st-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.st-grid .cl-inline .cl-input { margin: 0; }
.st-links { display: grid; gap: 6px; margin-top: 10px; }
.st-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.st-kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; }
.st-kpi b { font-size: 24px; letter-spacing: -0.02em; }
.st-kpi span { font-size: 12px; color: var(--muted); }
.st-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.st-card.hot { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,79,43,.12); }
.st-card summary { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
.st-card summary::-webkit-details-marker { display: none; }
.st-when { font-size: 12.5px; color: var(--muted); display: grid; }
.st-live { color: #12965a; font-weight: 600; }
.st-who b { font-size: 15px; margin-right: 6px; }
.st-dur { text-align: right; display: grid; }
.st-dur b { font-size: 16px; font-variant-numeric: tabular-nums; }
.st-dur span { font-size: 12px; color: var(--muted); }
.st-chip { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); margin-right: 4px; vertical-align: 2px; }
.st-chip.ok { background: #dcf5e7; color: #0d7a45; }
.st-chip.warn { background: #fff0d6; color: #8a5400; }
.st-chip.hot { background: var(--accent); color: #fff; }
.st-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.st-detail { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.st-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 12px; }
.st-page { background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.st-page-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.st-depth { position: relative; height: 16px; border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.st-depth i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--accent-soft), var(--accent)); border-radius: 8px; }
.st-depth span { position: relative; font-size: 10.5px; padding-left: 8px; line-height: 16px; font-weight: 600; }
.st-ev { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; }
.st-ev li { display: grid; grid-template-columns: 56px 1fr; font-size: 12.5px; }
.st-ev .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.st-ev .ev-call, .st-ev .ev-mail, .st-ev .ev-reveal { color: var(--accent); font-weight: 600; }
.warn-text { color: #b00020; font-size: 13px; }
@media (max-width: 760px) {
  .st-kpis { grid-template-columns: 1fr 1fr; }
  .st-grid { grid-template-columns: 1fr; }
  .st-card summary { grid-template-columns: 1fr auto; }
  .st-when { grid-column: 1 / -1; }
}

/* ---------------- Chatbot (unten links neben dem Kontakt-Dreieck, Glas) ---------------- */
/* Abstand nach unten: hier höher/tiefer setzen (Handy-Wert weiter unten bei @media max-width: 760px) */
/* left = Breite des Dreiecks (150px) + 12px Luft */
.chat { position: fixed; left: 162px; bottom: 32px; z-index: 85; }
.chat-fab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.8);
  background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.5));
  backdrop-filter: blur(20px) saturate(1.8); -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: inset 0 1px 0 #fff, 0 14px 34px -14px rgba(18,18,18,.35);
  font-size: 14px; font-weight: 500; color: var(--ink);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
/* Mouse-over: wird dunkel wie die anderen Buttons, hebt sich leicht, Punkt wächst */
.chat-fab:hover { transform: translateY(-2px); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chat-fab-dot { transition: transform .35s var(--ease); }
.chat-fab:hover .chat-fab-dot { transform: scale(1.35); }
.chat-fab-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,79,43,.2); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,79,43,0); } }
.chat.is-open .chat-fab { opacity: 0; pointer-events: none; }
.chat-panel {
  position: absolute; left: 0; bottom: 0; width: 360px; height: min(540px, calc(100vh - 140px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 28px; border: 1px solid rgba(255,255,255,.8);
  background: linear-gradient(160deg, rgba(255,255,255,.84), rgba(255,255,255,.6));
  backdrop-filter: blur(28px) saturate(1.8); -webkit-backdrop-filter: blur(28px) saturate(1.8);
  box-shadow: inset 0 1px 0 #fff, 0 30px 70px -20px rgba(18,18,18,.38);
  transform-origin: 0% 100%; transform: scale(.5); opacity: 0; visibility: hidden;
  transition: transform .5s cubic-bezier(.2,1.2,.3,1), opacity .25s, visibility 0s .5s;
}
.chat.is-open .chat-panel { transform: none; opacity: 1; visibility: visible; transition: transform .5s cubic-bezier(.2,1.2,.3,1), opacity .25s; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-size: 15px; }
.chat-head small { font-size: 11.5px; color: var(--muted); }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff7a4d, var(--accent)); color: #fff; font-weight: 700;
  overflow: hidden;
}
.chat-avatar svg { display: block; }
.chat-name-dot { color: var(--accent); }
.quote-mark { color: var(--accent); font-weight: 800; } /* „ “ in Bot-Texten */

/* ---- Gedrückt halten (1 s): oranger Kreis füllt sich am Finger/Mauszeiger ---- */
.hold-ring {
  position: fixed; z-index: 210; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(var(--accent) calc(var(--p, 0) * 1turn), rgba(255,255,255,.35) 0);
  -webkit-mask: radial-gradient(circle, transparent 19px, #000 20px); mask: radial-gradient(circle, transparent 19px, #000 20px);
  animation: hold-fill var(--hold, 1s) linear forwards, hold-pop .25s cubic-bezier(.2,1.4,.3,1);
}
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
@keyframes hold-fill { to { --p: 1; } }
@keyframes hold-pop { from { transform: scale(.4); opacity: 0; } }
/* das gehaltene Element drückt sich leicht ein */
.chat-avatar, #photoStage { transition: transform .9s cubic-bezier(.3, 0, .3, 1); }
.chat-avatar.is-holding { transform: scale(1.18); }
#photoStage.is-holding { transform: scale(.97); }
.chat-head .chat-avatar { cursor: pointer; }

/* ---- Easter Egg „Zeig dich“: Bot im Vollbild, Hintergrund transparent + Blur ---- */
.bot-reveal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; cursor: pointer;
  background: rgba(242, 240, 235, .35);                      /* Transparenz */
  backdrop-filter: blur(0) saturate(1); -webkit-backdrop-filter: blur(0) saturate(1);
  opacity: 0;
  transition: opacity .45s var(--ease), backdrop-filter .6s var(--ease), -webkit-backdrop-filter .6s var(--ease);
}
.bot-reveal.is-on {
  opacity: 1;
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); /* Blur */
}
.bot-reveal-inner { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 20px; }
.bot-reveal-avatar {
  width: min(300px, 62vw); height: min(300px, 62vw);
  box-shadow: 0 40px 90px -30px rgba(255,79,43,.7), inset 0 0 0 1px rgba(255,255,255,.4);
  transform: scale(.2) rotate(-25deg); transition: transform .8s cubic-bezier(.2, 1.4, .3, 1);
}
.bot-reveal-avatar svg { width: 100%; height: 100%; }
.bot-reveal.is-on .bot-reveal-avatar { transform: none; animation: bot-float 3.2s ease-in-out .8s infinite; }
/* Foto-Variante: dieselbe Bühne wie auf der About-Seite, nur im Vollbild */
.reveal-stage {
  width: min(380px, 78vw, 52vh); max-height: none; aspect-ratio: 4 / 5;
  box-shadow: 0 40px 90px -30px rgba(18,18,18,.35);
  transform: scale(.6) translateY(30px); opacity: 0;
  transition: transform .8s cubic-bezier(.2, 1.3, .3, 1), opacity .5s var(--ease);
}
.bot-reveal.is-on .reveal-stage { transform: none; opacity: 1; }
@keyframes bot-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.bot-reveal-name { margin: 14px 0 0; font-size: clamp(32px, 6vw, 56px); font-weight: 600; letter-spacing: -0.04em; color: var(--ink); }
.bot-reveal-cap { margin: 0; max-width: 420px; font-size: 16px; color: var(--ink-2); white-space: pre-line; } /* \n\n = neuer Absatz */
.bot-reveal-name, .bot-reveal-cap { opacity: 0; translate: 0 12px; transition: opacity .5s var(--ease) .35s, translate .5s var(--ease) .35s; }
.bot-reveal.is-on .bot-reveal-name, .bot-reveal.is-on .bot-reveal-cap { opacity: 1; translate: 0 0; } /* „Dawid.Bot.“ – oranger Punkt am Ende */
/* blinzelt alle paar Sekunden, Antenne wackelt leicht */
.chat-avatar .bot-eyes { transform-origin: 20px 18.7px; animation: bot-blink 4.5s infinite; }
/* Lautsprecher-Mund flackert leicht */
.chat-avatar .bot-mouth { animation: bot-mouth 1.6s steps(2) infinite; }
@keyframes bot-mouth { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes bot-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.chat-close { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(18,18,18,.06); font-size: 18px; line-height: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 85%; padding: 10px 13px; border-radius: 18px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.chat-msg.bot { align-self: flex-start; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.chat-msg.typing { display: flex; gap: 4px; padding: 13px 14px; }
.chat-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.chat-msg.typing i:nth-child(2) { animation-delay: .15s; } .chat-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.chat-cta {
  align-self: flex-start; display: inline-flex; gap: 8px; align-items: center;
  border: 0; border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, #ff6a3d, var(--accent)); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(255,79,43,.8);
}
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 8px; }
.chat-chips[hidden] { display: none; }
.chat-chips button { border: 1px solid var(--line); background: rgba(255,255,255,.75); border-radius: 999px; padding: 6px 11px; font-size: 12.5px; }
.chat-chips button:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chat-input { flex: 1; min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 11px 15px; font: inherit; font-size: 14px; }
.chat-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,79,43,.15); }
.chat-send { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 18px; }
.glass-pop:not([hidden]) ~ .chat, body.nav-open .chat { opacity: 0; pointer-events: none; }
/* Bearbeiten-Modus: Chat sitzt über der schwarzen Werkzeugleiste */
body.is-edit .chat { bottom: 80px; }
/* Platz am Seitenende, damit der Chat den Footer nie verdeckt */
.site-footer { padding-bottom: 96px; }
body.is-edit .site-footer { padding-bottom: 150px; }

/* ---------------- Chat-Fenster: dunkles Design, weißer Senden-Button ---------------- */
.chat-panel {
  /* gleiches Schwarz wie der aktive Menüpunkt (#121212), aber als echtes Glas:
     halbtransparent (.72) + Unschärfe dahinter */
  background: rgba(18,18,18,.72);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-color: rgba(255,255,255,.12); color: #f2f0eb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 70px -20px rgba(0,0,0,.6);
}
.chat-head { border-bottom-color: rgba(255,255,255,.1); }
.chat-head small { color: rgba(242,240,235,.55); }
.chat-close { background: rgba(255,255,255,.1); color: #fff; }
.chat-close:hover { background: rgba(255,255,255,.2); }
.chat-msg.bot { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); color: #f2f0eb; }
.chat-msg.typing i { background: rgba(255,255,255,.6); }
.chat-chips button { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #f2f0eb; }
.chat-chips button:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { border-top-color: rgba(255,255,255,.1); }
.chat-input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
.chat-input::placeholder { color: rgba(242,240,235,.45); }
.chat-send {
  background: #fff; color: var(--ink);
  display: grid; place-items: center; padding: 2px 0 0; line-height: 1; /* padding-top gleicht 1px optisch aus → Pfeil exakt mittig */
  transition: font-size .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
/* Pfeil wird größer (font-size) */
.chat-send:hover { font-size: 24px; background: var(--accent); color: #fff; }
body.is-edit .chat-log [data-edit-key] { outline-color: rgba(120,160,255,.6); }

/* Trainer */
.tr-modal { width: min(760px, 100%); }
.tr-body { display: grid; gap: 12px; }
.tr-field { display: grid; gap: 2px; font-size: 13px; }
.tr-field .cl-input { margin-top: 4px; }
.tr-section { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.tr-list { display: grid; gap: 10px; }
.tr-entry { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; display: grid; gap: 6px; }
.tr-entry .cl-input { margin: 0; }
.tr-entry-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.tr-test-out { font-size: 14px; padding: 10px 12px; background: var(--bg); border-radius: 10px; min-height: 40px; }
textarea.cl-input { resize: vertical; font-family: inherit; }

@media (max-width: 760px) {
  .chat { left: 112px; bottom: 20px; } /* Dreieck ist hier 104px breit */
  body.is-edit .chat { bottom: 76px; }
  .site-footer { padding-bottom: 84px; }
  .chat-fab { padding: 10px 14px 10px 12px; font-size: 13px; }
  /* Chat-Fenster nutzt trotzdem die volle Breite ab dem linken Rand */
  .chat-panel { position: fixed; left: 10px; bottom: 10px; width: calc(100vw - 20px); height: min(560px, calc(100vh - 90px)); }
}

/* ---------------- Start-Animation: „Herrmann“ wächst (SVG) ---------------- */
.hero-word .ch.grow svg { display: inline-block; overflow: visible; }
.hero-word .ch.grow svg text { font: inherit; letter-spacing: inherit; }

/* ---------------- About: Stern hinter „Dawid“ (wie bei Skills✦ im CV) ---------------- */
/* ✦ HIER ANPASSEN:
   --star-size  = Größe (größer = größerer Stern)
   --star-x     = links/rechts (negativ = näher an das „d“ heran)
   --star-y     = hoch/runter (kleiner/negativ = höher, größer = tiefer) */
.about-copy h1 .h1-star {
  --star-size: .55em;
  --star-x: -.14em;
  --star-y: -.46em;
  font-size: var(--star-size); font-weight: 400; color: var(--accent);
  vertical-align: top; position: relative; top: var(--star-y); margin-left: var(--star-x);
}
/* Stern nie in eine eigene Zeile umbrechen (sonst landet er unten links + großer Abstand zur Bio) */
.about-copy h1 { white-space: nowrap; }
.about-copy h1 .h1-name { white-space: normal; }

/* ---------------- About: Bälle auf der Umlaufbahn ----------------
   1) Start: langsam einblenden (1.8s, Easy Ease)
   2) Danach bei jeder Runde: ausblenden, bevor sie hinter Kopf/Körper verschwinden,
      und schnell wieder einblenden, wenn sie auftauchen.
      Die Prozente sind Zeitpunkte der 24-Sekunden-Runde (gemessen an deinem Foto).
      Läuft synchron zur Drehung der Umlaufbahn (gleiche 24s). */
.orbit i {
  animation:
    orbit-intro 1.8s cubic-bezier(.33, 0, .67, 1) .6s both,
    orbit-hide-a 24s linear infinite;
}
.orbit i:nth-child(2) {
  animation:
    orbit-intro 1.8s cubic-bezier(.33, 0, .67, 1) 1s both,
    orbit-hide-b 24s linear infinite;
}
/* Start-Einblendung über filter/scale – „opacity“ gehört der Runden-Animation */
@keyframes orbit-intro { from { filter: opacity(0); scale: .4; } to { filter: opacity(1); scale: 1; } }
/* oranger Ball: verschwindet oben hinterm Kopf und unten hinterm Körper
   (Ausblenden ≈ 1s vorher, Einblenden ≈ 0.5s) */
/* (gemessen für Umlaufbahn bei left: 43% – Desktop & Handy) */
@keyframes orbit-hide-a {
  0%, 1%     { opacity: 0; }
  3.1%       { opacity: 1; }
  30.7%      { opacity: 1; }
  34.9%, 71.9% { opacity: 0; }
  74%        { opacity: 1; }
  82.8%      { opacity: 1; }
  87%, 100%  { opacity: 0; }
}
/* kleiner schwarzer Ball */
@keyframes orbit-hide-b {
  0%, 35.9%  { opacity: 0; }
  38%        { opacity: 1; }
  50%        { opacity: 1; }
  54.2%, 65.1% { opacity: 0; }
  67.2%      { opacity: 1; }
  96.8%      { opacity: 1; }
  100%       { opacity: 0; }
}

/* ---------------- About: Mouse-over Überschrift (wie das Logo oben links) ----------------
   Schrift wird kleiner (.9 = 90 %), Stern rückt nach und wächst (scale) */
@property --h1-shift { syntax: "<length>"; inherits: true; initial-value: 0px; }
.h1-hover { --h1-shift: -.5em; } /* = 10 % der Breite von „Hi, I'm Dawid“ (in Größe der Überschrift) */
.h1-hover .h1-name { display: inline-block; transform-origin: 0 80%; transition: transform .35s var(--ease); }
.h1-hover .h1-star { display: inline-block; transform-origin: 20% 80%; transition: transform .35s var(--ease); }
.h1-hover:hover .h1-name { transform: scale(.9); }
.h1-hover:hover .h1-star { transform: translateX(var(--h1-shift)) scale(1.6); }

/* ---------------- About: Foto blendet weich ein, sobald es geladen ist ----------------
   Dauer (1.4s) hier anpassen – Kurve = Easy Ease. Klasse „is-loaded“ setzt js/about.js */
.photo-cutout { opacity: 0; translate: 0 14px; transition: opacity 1.4s cubic-bezier(.33, 0, .67, 1), translate 1.4s cubic-bezier(.33, 0, .67, 1); }
.photo-cutout.is-loaded { opacity: 1; translate: 0 0; }

/* ---------------- About: Farbflächen hinter dem Foto wabern langsam ----------------
   Jede Fläche hat ihre eigene Bahn & Dauer → wirkt organisch, nie synchron.
   Dauer hier anpassen (größer = langsamer). */
.photo-stage .blob { animation: wabern-a 14s ease-in-out infinite alternate; }
.photo-stage .blob.b2 { animation: wabern-b 17s ease-in-out infinite alternate; animation-delay: -5s; }
.photo-stage .blob.b3 { animation: wabern-c 20s ease-in-out infinite alternate; animation-delay: -9s; }
@keyframes wabern-a { /* orange */
  0%   { transform: translate(0, 0) scale(1);          border-radius: 50% 45% 55% 50%; }
  33%  { transform: translate(18%, -10%) scale(1.18);  border-radius: 40% 60% 45% 55%; }
  66%  { transform: translate(-8%, 14%) scale(.9);     border-radius: 58% 42% 50% 50%; }
  100% { transform: translate(12%, 20%) scale(1.12);   border-radius: 45% 55% 60% 40%; }
}
@keyframes wabern-b { /* blau */
  0%   { transform: translate(0, 0) scale(1);          border-radius: 55% 45% 50% 50%; }
  33%  { transform: translate(-20%, 12%) scale(1.2);   border-radius: 45% 55% 40% 60%; }
  66%  { transform: translate(-6%, 26%) scale(.88);    border-radius: 60% 40% 55% 45%; }
  100% { transform: translate(-24%, -6%) scale(1.1);   border-radius: 50% 50% 45% 55%; }
}
@keyframes wabern-c { /* gelb */
  0%   { transform: translate(0, 0) scale(1);          border-radius: 50% 50% 50% 50%; }
  50%  { transform: translate(-16%, -18%) scale(1.15); border-radius: 42% 58% 52% 48%; }
  100% { transform: translate(14%, -8%) scale(.92);    border-radius: 56% 44% 46% 54%; }
}

/* ---------------- About: Bild oben bündig mit dem Text ---------------- */
.about-grid { align-items: start; }
.about-copy > .eyebrow { line-height: 1; margin-top: 0; display: flex; }

/* About (Desktop): Bild beginnt bündig mit dem Fließtext („I'm Dawid Herrmann …“)
   – Überschrift steht darüber, das Bild startet in derselben Zeile wie die Bio */
@media (min-width: 761px) {
  .about-grid { row-gap: 0; grid-template-rows: auto auto auto auto 1fr; }
  .about-copy { display: contents; }
  .about-grid > :first-child { grid-column: 1; grid-row: 3 / span 3; align-self: start; }
  .about-copy > * { grid-column: 2; }
  .about-copy > .eyebrow { grid-row: 1; }
  .about-copy > h1 { grid-row: 2; }
  .about-copy > .bio { grid-row: 3; margin-top: 0; }
  .about-copy > .facts { grid-row: 4; }
  .about-copy > .slot-row { grid-row: 5; align-self: start; }
}

/* ---------------- Start: About/See work links beim Text ---------------- */
/* Text links, Buttons direkt rechts daneben in einer Zeile */
.hero-intro { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-intro .meta { margin: 0; }
.hero-intro .hero-links { justify-content: flex-start; flex-wrap: nowrap; }
.hero-bottom { grid-template-columns: auto 1fr; }
.hero-bottom > .scroll-hint, .hero-bottom > div:empty { display: none; }
/* Platz für den Chat-Button unten links, damit er die Buttons nicht überdeckt */
.hero { padding-bottom: 110px; }
body.is-edit .hero { padding-bottom: 150px; }
@media (max-width: 760px) {
  .hero { padding-bottom: 90px; }
  body.is-edit .hero { padding-bottom: 140px; }
}

/* ---------------- About: CTA unter dem Bild → Portfolio ---------------- */
.photo-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; padding: 18px 18px 18px 24px; border-radius: 22px;
  background: var(--ink); color: var(--bg);
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.photo-cta:hover { background: var(--accent); transform: translateY(-2px); }
.photo-cta-txt { display: grid; line-height: 1.2; }
.photo-cta-txt small { font-size: 13px; opacity: .65; }
.photo-cta-txt b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.photo-cta-arr {
  width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 22px;
  transition: transform .35s var(--ease), background .35s var(--ease), font-size .35s var(--ease);
}
/* SVG statt Textzeichen → sitzt exakt mittig im Kreis (Größe folgt font-size) */
.photo-cta-arr svg { width: 1em; height: 1em; display: block; }
/* Mouse-over: Pfeil neigt sich 45° und wird größer (font-size = Pfeilgröße, Kreis bleibt gleich) */
.photo-cta:hover .photo-cta-arr { background: var(--ink); transform: translateX(4px) rotate(-45deg); font-size: 30px; }
body.is-edit .photo-cta [data-edit-key] { outline-color: rgba(255,255,255,.5); }
/* zweiter CTA nach dem Text: nur auf dem Handy (Desktop hat ihn direkt unter dem Bild im Blick);
   im Bearbeiten-Modus aus, damit derselbe Text nicht doppelt editierbar ist */
.photo-cta.cta-mobile { display: none; }
@media (max-width: 760px) {
  body:not(.is-edit) .photo-cta.cta-mobile { display: flex; margin: 28px 0 8px; }
}

/* About: Fakt 'Contact' öffnet die Kontakt-Ecke */
.fact-contact:not([contenteditable="true"]) { cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.fact-contact:not([contenteditable="true"]):hover { text-decoration-color: currentColor; }

/* =========================================================
   Trophäe „Bug Checker“ (js/trophy.js)
   ========================================================= */
.trophy-card {
  position: fixed; top: 18px; left: 50%; z-index: 400;
  display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 14px 44px 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(18,18,18,.92), rgba(42,36,28,.92));
  color: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.28), 0 0 0 1px rgba(255,214,107,.35), 0 0 40px rgba(255,214,107,.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translate(-50%, -140%) scale(.9); opacity: 0;
  transition: transform .7s cubic-bezier(.2,1.4,.3,1), opacity .4s var(--ease);
}
.trophy-card.is-in { transform: translate(-50%, 0) scale(1); opacity: 1; }
.trophy-card.is-out { transform: translate(-50%, -140%) scale(.95); opacity: 0; transition-duration: .5s; }
.trophy-ico {
  font-size: 34px; line-height: 1; flex: none;
  filter: drop-shadow(0 0 10px rgba(255,214,107,.7));
  animation: trophy-bob 1.6s ease-in-out infinite;
}
.trophy-txt { display: grid; gap: 1px; min-width: 0; }
.trophy-txt small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #ffd66b; }
.trophy-txt b {
  font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1;
  background: linear-gradient(90deg, #ffd66b, #fff4c2, #ffb3c7, #ffd66b); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: trophy-shine 3s linear infinite;
}
.trophy-txt span { font-size: 13px; color: rgba(255,255,255,.75); }
.trophy-x {
  position: absolute; top: 8px; right: 10px; width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
}
.trophy-x:hover { background: rgba(255,255,255,.2); }
.trophy-dust { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 399; pointer-events: none; }
@keyframes trophy-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-3px) rotate(4deg); } }
@keyframes trophy-shine { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) {
  .trophy-card { transition: opacity .3s; transform: translate(-50%, 0); }
  .trophy-ico, .trophy-txt b { animation: none; }
}

/* ---------- Sprachumschalter EN / DE (js/i18n.js) ---------- */
.nav { align-items: center; }
.lang-switch {
  display: inline-flex; gap: 2px; margin-left: 6px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px;
}
.lang-switch button {
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 9px; border: 0; border-radius: 999px; cursor: pointer;
  background: none; color: var(--muted);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); cursor: default; }
@media (max-width: 760px) {
  .nav { align-items: flex-start; }
  .lang-switch { margin: 28px 0 0; }
  /* backdrop-filter macht den Header zum Bezugsrahmen für position:fixed → Menü wäre nur so hoch wie der Header */
  body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .lang-switch button { font-size: 15px; padding: 8px 16px; }
}

/* =========================================================
   Showcases – Vorzeigevideos (js/showcases.js)
   Transparente Mockup-Videos stehen frei auf der Seitenfarbe.
   ========================================================= */
.showcase-media { position: relative; margin: 0; width: 100%; }
.showcase-media video { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Safari: MP4 ohne Transparenz → als ruhige Fläche in Seitenfarbe */
.showcase-media.is-flat { border-radius: var(--radius); overflow: hidden; background: #f2f0eb; }
.showcase-info {
  display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 20px 48px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
}
.showcase-client { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.showcase-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.showcase-tags li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.showcase-copy { max-width: 720px; }
.showcase-copy p { margin: 0 0 1em; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.showcase-copy .showcase-lead {
  font-family: "Instrument Serif", "Times New Roman", serif; font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin-bottom: .8em;
}
/* Vorher/Nachher-Regler (compare: true) – in der Höhe begrenzt und mittig; --ar = Breite/Höhe aus ratio */
.showcase-media.compare {
  width: min(100%, calc(82vh * var(--ar, 1))); margin-inline: auto;
  border-radius: var(--radius); overflow: hidden; background: #f2f0eb;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.35);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.showcase-media.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.showcase-media.compare .compare-top { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 0; pointer-events: none; }
.compare-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.3); }
.compare-knob {
  position: absolute; top: 50%; left: 0; width: 48px; height: 48px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.compare-knob::before, .compare-knob::after {
  content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -5px;
  border: solid var(--ink, #111); border-width: 0 0 2.5px 2.5px;
}
.compare-knob::before { left: 12px; transform: rotate(45deg); }
.compare-knob::after { right: 12px; transform: rotate(-135deg); }
.compare-tag {
  position: absolute; top: 14px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; background: rgba(17,17,17,.7); color: #fff;
  pointer-events: none; transition: opacity .2s;
}
.compare-tag.l { left: 14px; } .compare-tag.r { right: 14px; }
.showcase-media.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.showcase-media.compare:focus-within .compare-knob { outline: 3px solid var(--accent, #ff5a1f); outline-offset: 3px; }

@media (max-width: 760px) {
  .showcase-info { grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
  .showcase-copy p { font-size: 16px; }
}

/* Ankunft aus dem Strudel-Übergang (js/morph.js → about.html): Inhalte stehen sofort an ihrem Platz
   und blenden nur kurz ein – nahtloser Übergang vom Partikel-Bild zur echten Seite.
   Klasse setzt das kleine Skript im <head> von about.html. */
.mx-arrive .reveal { animation-duration: .35s !important; animation-delay: 0s !important; transform: none; }

/* Portfolio: Projekt-Headline exakt mittig (gilt für alle Projekte und Showcases).
   Symmetrisches Raster – links Nummer, Mitte Titel, rechts Jahr/Leistung; die Seitenspalten sind gleich breit. */
.project-head { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.project-head .project-num { justify-self: start; }
.project-head .project-title { justify-self: center; text-align: center; }
.project-head .project-meta { justify-self: end; text-align: right; }
@media (max-width: 1100px) {
  .project-head { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .project-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .project-head .project-num, .project-head .project-meta { justify-self: center; text-align: center; }
}
