/* sedda.me - Stylesheet. Farben, Größen und Abstände entsprechen der bisherigen Seite. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --hintergrund: #efefef;
  --text: #424242;
  --text-2: #737373;
  --linie: #dfdfdf;
  --pille: #e7e7e7;
  --schwarz: #000;
  --gold: #e8b320;

  --a-xs: clamp(10px, 2vw, 20px);
  --a-s: clamp(20px, 4vw, 40px);
  --a-m: clamp(30px, 6vw, 60px);

  --f-winzig: clamp(10px, 0.625rem + (1vw - 3.2px) * 0.227, 12px);
  --f-xxs: clamp(12px, 0.75rem + (1vw - 3.2px) * 0.227, 14px);
  --f-xs: 16px;
  --f-s: clamp(16px, 1rem + (1vw - 3.2px) * 0.227, 18px);
  --f-m: clamp(18px, 1.125rem + (1vw - 3.2px) * 0.227, 20px);
  --f-l: clamp(24px, 1.5rem + (1vw - 3.2px) * 0.909, 32px);
  --f-xl: clamp(32px, 2rem + (1vw - 3.2px) * 1.818, 48px);

  --breite: 1200px;
}

/* Sanfter Übergang beim Seitenwechsel (Browser, die es können) */
@view-transition {
  navigation: auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--hintergrund);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--f-s);
  line-height: 1.5;
  color: var(--schwarz);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: #ffe9a8;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Sprunglink für Tastatur und Vorleser */
.sprung {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: #fff;
  color: var(--schwarz);
  border-radius: 6px;
  z-index: 20;
}

.sprung:focus {
  left: 8px;
}

/* ---------- Kopfzeile ---------- */

.kopf {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--linie);
  padding: var(--a-xs) var(--a-s);
  view-transition-name: kopf;
}

.kopf__innen {
  max-width: var(--breite);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: var(--a-xs);
}

.kopf__sig {
  display: block;
  grid-column: 2;
  justify-self: center;
  line-height: 0;
}

.kopf__sig img {
  display: block;
  width: 100px;
  height: auto;
  transition: transform 0.4s ease;
}

.kopf__sig:hover img {
  transform: scale(1.12);
}

/* Beim ersten Aufruf in der Sitzung „schreibt“ sich die Unterschrift von links nach rechts */
.sig-neu .kopf__sig img {
  -webkit-mask-image: linear-gradient(100deg, #000 45%, transparent 55%);
  mask-image: linear-gradient(100deg, #000 45%, transparent 55%);
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: sig-schreiben 1.1s ease-out 0.15s both;
}

@keyframes sig-schreiben {
  from {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  to {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}

.kopf__nav {
  grid-column: 3;
  justify-self: end;
}

.kopf__menue {
  display: none;
}

.kopf__liste {
  list-style: none;
  margin: 0;
  padding: 0.3em 0 0;
  display: flex;
  gap: 1.5em;
  font-size: var(--f-xs);
}

.kopf__liste a {
  color: var(--schwarz);
  text-decoration: none;
  position: relative;
}

.kopf__liste a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.kopf__liste a:hover::after,
.kopf__liste a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Unter 1024 px: Name und Menü vertikal mittig zur Unterschrift */
@media (max-width: 1023.98px) {
  .kopf__innen {
    align-items: center;
  }

  .kopf__liste {
    padding-top: 0;
  }
}

/* Handymenü unter 600 px, wie bisher mit Vollbild-Überlagerung */
@media (max-width: 599.98px) {
  .kopf__menue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 -8px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--schwarz);
    cursor: pointer;
    position: relative;
    z-index: 12;
  }

  .kopf__menue svg {
    fill: currentColor;
  }

  .kopf__menue rect {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.3s ease;
  }

  .menue-offen .kopf__menue rect:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .menue-offen .kopf__menue rect:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .kopf__liste {
    display: none;
  }

  .menue-offen .kopf__liste {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 11;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2em;
    padding: 0;
    background: var(--hintergrund);
    font-size: var(--f-l);
    animation: einblenden 0.25s ease both;
  }

  .menue-offen {
    overflow: hidden;
  }
}

/* ---------- Inhalt ---------- */

.inhalt {
  padding: var(--a-s);
}

.inhalt--start {
  margin-top: 75px;
  text-align: center;
}

.portraet {
  margin: 48px 0 0;
  animation: einblenden 0.9s ease both;
}

.portraet img {
  width: 250px;
  height: 250px;
  border-radius: 100px;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.5s ease;
}

.portraet:hover img {
  transform: scale(1.12);
}

.titel {
  font-size: var(--f-l);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 24px 0 0;
  text-wrap: balance;
}

.rolle {
  margin: 12px 0 0;
  font-size: var(--f-xs);
  line-height: 1.6;
  color: var(--text-2);
}

/* „sedcom“ in der Schrift der Wortmarke: Inter ExtraBold */
.marke {
  font-weight: 800;
}

/* Kurze Linie wie der frühere Text „___“, nur ohne Textinhalt */
.strich {
  width: 26px;
  height: 0;
  margin: 45px auto 0;
  border: 0;
  border-top: 1px solid var(--text-2);
}

.sozial {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.sozial a {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--text);
  transition: transform 0.25s ease, color 0.25s ease;
}

.sozial svg {
  display: block;
  fill: currentColor;
}

.sozial a:hover {
  transform: translateY(-2px);
}

/* Markenfarben beim Überfahren: LinkedIn-Blau, Apple-Blau, sedcom-Navy */
.sozial__linkedin:hover {
  color: #0a66c2;
}

.sozial__mail:hover {
  color: #007aff;
}

.sozial__sedcom:hover {
  color: #252846;
}

/* Unterseiten */

.inhalt--unter {
  max-width: var(--breite);
  margin: 40px auto 0;
}

.seitentitel {
  font-size: var(--f-xl);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 24px;
  text-wrap: balance;
}

.text {
  max-width: 720px;
  color: var(--text-2);
  font-size: var(--f-s);
  padding-top: 10px;
  /* nur an Leerzeichen umbrechen, keine Silbentrennung */
  hyphens: manual;
  overflow-wrap: normal;
}

.text--mitte {
  max-width: none;
}

.text--mitte {
  text-align: center;
}

.text--xxs {
  font-size: var(--f-xxs);
}

.text--xs {
  font-size: var(--f-xs);
}

.text--winzig {
  font-size: var(--f-winzig);
}

.text p {
  margin: 0 0 1.5em;
}

.text__zwischen {
  font-size: var(--f-m);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75em;
}

.textlink {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.textlink:hover {
  color: var(--schwarz);
}

/* Leerräume wie bisher */

.abstand {
  display: block;
}

.abstand--fuss {
  height: 750px;
}

.abstand--impressum {
  height: 1142px;
}

.abstand--datenschutz {
  height: 200px;
}

.abstand--klein {
  height: 30px;
}

.abstand--egg-oben {
  height: 100px;
}

.abstand--egg-unten {
  height: 5000px;
}

/* ---------- Fußzeile ---------- */

.fuss {
  margin-top: var(--a-s);
  padding: var(--a-m) var(--a-s);
}

.fuss__innen {
  max-width: var(--breite);
  margin: 0 auto;
  background: var(--hintergrund);
  border-radius: 8px;
  padding: var(--a-xs);
}

.fuss__pille {
  margin: 0;
  text-align: center;
  font-size: var(--f-winzig);
  line-height: 1.4;
}

.fuss__pille a {
  color: var(--schwarz);
  text-decoration: none;
}

.fuss__robo {
  display: inline-block;
  transition: transform 0.3s ease;
}

.fuss__pille:hover .fuss__robo {
  transform: rotate(-12deg) translateY(-1px);
}

/* ---------- 404: Augen, die suchen ---------- */

.seitentitel--404 {
  max-width: 24ch;
}

.augen {
  width: min(460px, 70vw);
  margin: var(--a-m) auto 0;
}

.augen__bild {
  display: block;
  width: 100%;
  height: auto;
  color: #1c1c1c;
}

.augen__braue {
  fill: none;
  stroke: currentColor;
  stroke-width: 22;
  stroke-linecap: round;
}

.augen__auge {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 22;
}

.augen__pupille {
  fill: currentColor;
  transition: transform 0.35s ease-out;
  animation: augen-suchen 7s ease-in-out infinite;
}

/* Sobald die Maus sich bewegt, folgen die Pupillen ihr (site.js) */
.augen--folgen .augen__pupille {
  animation: none;
}

@keyframes augen-suchen {
  0%, 100% { transform: translate(0, 0); }
  18% { transform: translate(-22px, 6px); }
  36% { transform: translate(-22px, 6px); }
  54% { transform: translate(20px, 10px); }
  70% { transform: translate(20px, 10px); }
  84% { transform: translate(0, -6px); }
}

/* ---------- Easter Egg ---------- */

.ei {
  position: relative;
  width: 199px;
  margin: 32px auto 0;
  padding-top: 16px;
}

.ei__knopf {
  display: block;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 90%;
}

.ei__knopf:focus-visible {
  outline-offset: 10px;
  border-radius: 50%;
}

.ei--wackelt .ei__knopf {
  animation: ei-wackeln 0.7s ease-in-out;
}

.ei__koerper {
  display: block;
  position: relative;
  transform-origin: 50% 100%;
  animation:
    ei-fallen 1.5s both,
    ei-schweben 4s ease-in-out 1.8s infinite;
}

.ei__koerper img {
  display: block;
  width: 199px;
  height: auto;
  transition: filter 1s ease;
}

.ei--gold .ei__koerper img {
  filter: drop-shadow(0 0 18px rgba(255, 205, 70, 0.75));
}

/* Lichtstreifen, der alle paar Sekunden über das Ei läuft */
.ei__glanz {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask: url("/assets/img/ei-400.png") center / contain no-repeat;
  mask: url("/assets/img/ei-400.png") center / contain no-repeat;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.35) 47%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.35) 53%,
    transparent 62%
  );
  background-size: 300% 100%;
  background-position: 0 0;
  animation: ei-glanz 5.5s ease-in-out 2.4s infinite;
}

.ei__schatten {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 130px;
  height: 18px;
  margin-left: -65px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0) 70%);
  animation:
    schatten-fallen 1.5s both,
    schatten-schweben 4s ease-in-out 1.8s infinite;
}

/* Funkeln rund um das Ei */
.ei__funkel {
  position: absolute;
  inset: 16px 0 0;
  pointer-events: none;
}

.ei__funkel i {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0;
  animation: funkeln 3s ease-in-out infinite;
  animation-delay: calc(2s + var(--d, 0s));
}

.ei__funkel i:nth-child(1) { left: 4%; top: 16%; --d: 0s; }
.ei__funkel i:nth-child(2) { left: 90%; top: 26%; --d: 0.9s; width: 9px; height: 9px; }
.ei__funkel i:nth-child(3) { left: 10%; top: 68%; --d: 1.7s; width: 8px; height: 8px; }
.ei__funkel i:nth-child(4) { left: 93%; top: 74%; --d: 2.4s; }
.ei__funkel i:nth-child(5) { left: 50%; top: -6%; --d: 3.1s; width: 10px; height: 10px; }

.ei--gold .ei__funkel i {
  animation-duration: 1.6s;
}

.text .ei__text {
  margin: 48px 0 1.5em;
  animation: einblenden 0.8s ease 1.4s both;
}

.ei__schluss {
  font-size: 10px;
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.ei__schluss.ist-da {
  opacity: 1;
  transform: none;
}

/* ---------- Animationen ---------- */

@keyframes einblenden {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ei-fallen {
  0% {
    transform: translateY(-110vh);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6);
  }
  8% {
    opacity: 1;
  }
  52% {
    transform: translateY(0) scale(1, 1);
    animation-timing-function: ease-out;
  }
  60% {
    transform: translateY(0) scale(1.08, 0.9);
    animation-timing-function: ease-in-out;
  }
  76% {
    transform: translateY(-30px) scale(0.98, 1.03);
    animation-timing-function: ease-in;
  }
  88% {
    transform: translateY(0) scale(1.04, 0.96);
    animation-timing-function: ease-out;
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

@keyframes schatten-fallen {
  0%, 40% {
    transform: scale(0.3);
    opacity: 0;
  }
  52% {
    transform: scale(1.05);
    opacity: 1;
  }
  76% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes ei-schweben {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-7px) rotate(1.2deg);
  }
}

@keyframes schatten-schweben {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.9);
    opacity: 0.75;
  }
}

@keyframes ei-wackeln {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-7deg); }
  40% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(2deg); }
}

@keyframes ei-glanz {
  0%, 10% {
    background-position: 0 0;
  }
  45%, 100% {
    background-position: 100% 0;
  }
}

@keyframes funkeln {
  0%, 100% {
    opacity: 0;
    transform: scale(0.3) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(90deg);
  }
}

/* Wer Bewegung reduziert hat, bekommt alles ohne Animation */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .ei__schluss,
  .ei__funkel i {
    opacity: 1;
    transform: none;
  }

  .ei__glanz {
    display: none;
  }
}
