/* ============================================
   Kathy Witte — Portfolio
   Farben, Typografie und Layout nach Figma-Entwurf
   ============================================ */

@import url("https://fonts.bunny.net/css?family=afacad:400,700|lora:500,600,700");

:root {
  --blue: #006aff;
  --navy: #002f41;
  --lime: #c8ff00;
  --ink: #14171a;
  --paper: #ffffff;
  --soft: #f2f2f0;
  --grey: #55606b;

  --font-display: "Lora", Georgia, serif;
  --font-body: "Afacad", "Segoe UI", sans-serif;

  --container: 1080px;
  --content-max: 1728px;
  --intro-gap: clamp(28px, 5vw, 60px);
  --gutter: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.1em;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }

p { margin: 0 0 1em; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

/* ---------- Wellenlinie unter Überschriften ---------- */
.script-heading {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1;
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
  margin-bottom: 0.5em;
}
.squiggle {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 16px;
  background-image: url("assets/Vector-Line-Blue.svg");
  background-repeat: repeat-x;
  background-size: 56px 16px;
  background-position: left center;
}

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
}
.nav {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px var(--gutter);
  color: #fff;
}
.nav__link {
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 4px;
  white-space: nowrap;
}
.nav__link:hover { color: var(--lime); }

.nav__link--left, .nav__link--right { flex: 1 1 0; }

.nav__logo { flex-shrink: 0; padding: 0 20px; line-height: 0; }
.nav__logo img { width: 60px; height: 60px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--blue);
  border-top: 1px solid rgba(255,255,255,0.25);
}
.mobile-menu button,
.mobile-menu a {
  display: block;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-align: left;
  padding: 16px var(--gutter);
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.mobile-menu.open { display: flex; }
.mobile-menu button:hover,
.mobile-menu a:hover { color: var(--lime); }

@media (max-width: 860px) {
  .nav__link--left:nth-of-type(2), .nav__link--right { display: none; }
  .nav { justify-content: space-between; }
  .nav__logo { margin-left: auto; }
  .nav__toggle { display: flex; }
  .nav__link--left:first-child { display: none; }
}

/* ============ HERO / ÜBER MICH ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px var(--gutter) 40px;
}

.hero__intro {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: minmax(200px, 320px) minmax(200px, 320px);
  justify-content: center;
  gap: var(--intro-gap);
  align-items: center;
}
.hero__photo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  aspect-ratio: 617/566;
}
.hero__text p {
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
}

.cv {
  position: relative;
  z-index: 1;
  max-width: calc(320px * 2 + var(--intro-gap));
  margin: 0 auto;
}
.cv__grid {
  display: grid;
  grid-template-columns: minmax(200px, 320px);
  width: fit-content;
  margin: 0 auto;
  gap: 32px;
}
.cv__entry h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  margin-bottom: 6px;
}
.cv__entry p { font-size: clamp(0.85rem, 0.95vw, 1rem); margin-bottom: 12px; color: var(--ink); }

@media (max-width: 720px) {
  .hero__intro { grid-template-columns: 1fr; }
  .cv__grid { grid-template-columns: 1fr; }
}

/* ============ SKILLS ============ */
.skills {
  position: relative;
  background: #f4f4f4;
  padding: 90px var(--gutter);
  overflow: hidden;
}
.skills__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
}
.skills__deco {
  flex-shrink: 0;
  width: 220px;
  height: 460px;
  background-image: url("assets/skills-gradient-3-columns.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.9;
}
.skills__content { flex-shrink: 0; }
.skills h2 { margin: 0; }
.skills__list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 340px;
}
.skills__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
}
.skills__list img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .skills__inner { flex-direction: column; gap: 40px; }
}

/* ============ ARBEITEN ============ */
.work {
  position: relative;
  padding: 90px var(--gutter) 60px;
  overflow: hidden;
}
.work > .work__header { position: relative; z-index: 1; max-width: calc(320px * 2 + var(--intro-gap)); margin: 0 auto; }
.work__lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/line-gradient-01.svg"), url("assets/line-gradient-02.svg");
  background-repeat: no-repeat;
  background-position: 105% 10%, -10% 70%;
  background-size: 640px, 460px;
  opacity: 0.6;
  pointer-events: none;
}

.work__block {
  position: relative;
  z-index: 1;
  max-width: calc(320px * 2 + var(--intro-gap));
  margin: 50px auto 90px;
}
.work__tab {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--blue);
  font-weight: 700;
  text-transform: lowercase;
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  float: left;
  margin-right: 24px;
}
.work__tab--right { float: right; margin-left: 30px; margin-right: 0; }

.work__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.work__item { margin: 0; position: relative; }
.work__item--wide { grid-column: 1 / -1; }
.work__item[role="button"] { cursor: pointer; }
.work__item[role="button"]:hover img { opacity: 0.92; }
.work__item[role="button"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.work__item img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 50px -25px rgba(0,47,65,0.35);
  transition: opacity 0.2s ease;
}
.work__item figcaption { margin-top: 12px; }

.work__item--thumb-left, .work__item--thumb-right { display: flex; flex-direction: column; }
.work__item--thumb-left { align-items: flex-start; }
.work__item--thumb-right { align-items: flex-end; }
.work__item--thumb-left img, .work__item--thumb-right img { width: 450px; max-width: 100%; height: auto; }

@media (max-width: 560px) {
  .work__item--thumb-left, .work__item--thumb-right { align-items: stretch; }
  .work__item--thumb-left img, .work__item--thumb-right img { width: 100%; }
}

.work__duo { display: flex; gap: 28px; align-items: flex-start; }
.work__duo .work__duo-img {
  width: calc(50% - 14px);
  min-width: 0;
  flex-shrink: 1;
  border-radius: 6px;
  box-shadow: 0 20px 50px -25px rgba(0,47,65,0.35);
}
.work__duo .work__duo-img--b { margin-top: calc((100% - 28px) / 4); }

@media (max-width: 560px) {
  .work__duo { flex-direction: column; }
  .work__duo .work__duo-img, .work__duo .work__duo-img--b { width: 100%; margin-top: 0; }
}
.work__tag {
  color: var(--blue);
  font-weight: 700;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  font-family: var(--font-body);
}
.work__note { clear: both; color: var(--grey); font-style: italic; padding-top: 20px; }

@media (max-width: 720px) {
  .work__grid { grid-template-columns: 1fr; }
  .work__tab { writing-mode: horizontal-tb; transform: none; float: none; margin: 0 0 20px; }
}

/* ============ KONTAKT ============ */
.contact-band {
  background: #f4f4f4;
  padding: 90px var(--gutter);
}
.contact {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(200px, 320px) minmax(200px, 320px);
  justify-content: center;
  gap: var(--intro-gap);
  align-items: center;
}
.contact__photo, .contact__text { position: relative; z-index: 1; }
.contact__photo img { border-radius: 4px; aspect-ratio: 617/566; object-fit: cover; }
.contact__text p { font-size: clamp(0.95rem, 1.1vw, 1.15rem); }
.contact__cta {
  display: inline-block;
  margin-top: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 40px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.contact__cta:hover { background: #00005b; color: var(--lime); }

@media (max-width: 720px) {
  .contact { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--blue);
  color: #fff;
  padding: 60px var(--gutter);
}
.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}
.site-footer__contact,
.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 0;
}
.site-footer__legal { align-items: center; }
.site-footer__contact a,
.site-footer__legal a {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  text-decoration: none;
}
.site-footer__contact a:hover,
.site-footer__legal a:hover {
  color: var(--lime);
  text-decoration: none;
}
.site-footer__logo { flex-shrink: 0; }

@media (max-width: 560px) {
  .site-footer { justify-content: center; text-align: center; }
  .site-footer__inner { flex-direction: column; }
  .site-footer__contact,
  .site-footer__legal { align-items: center; }
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 30, 0.82);
}
.lightbox__dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 10px;
  max-width: min(900px, 100%);
  max-height: 90vh;
  width: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.lightbox__image-wrap {
  position: relative;
  max-height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  border-radius: 10px 10px 0 0;
}
.lightbox__image {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}
.lightbox__image-wrap.is-tall {
  display: block;
  overflow-y: auto;
  scrollbar-width: thin;
}
.lightbox__image-wrap.is-tall .lightbox__image {
  max-height: none;
  height: auto;
  object-fit: initial;
}
.lightbox__scroll-hint {
  display: none;
  position: sticky;
  top: 12px;
  margin-left: 12px;
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  pointer-events: none;
}
.lightbox__image-wrap.is-tall .lightbox__scroll-hint { display: inline-block; }
.lightbox__info { padding: 28px clamp(20px, 4vw, 40px) 32px; }
.lightbox__info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 10px;
}
.lightbox__info p { font-size: 0.95rem; color: var(--ink); margin-bottom: 10px; }
.lightbox__counter { font-size: 0.8rem; color: var(--grey); }

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: #00005b; color: var(--lime); }

.lightbox__nav {
  position: absolute;
  top: 30vh;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
.lightbox__nav:hover { background: #00005b; color: var(--lime); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__nav[hidden] { display: none; }

@media (max-width: 560px) {
  .lightbox { padding: 12px; }
  .lightbox__nav { top: 24vh; }
}

/* ============ BUBBLE BACKGROUND (ambient, deutlicher sichtbar) ============ */
.bubble-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 90%, transparent 100%);
}
.bubble-bg--hero { inset: 0; height: auto; }
.bubble-bg--contact { inset: 0; height: auto; }
.bubble-bg--work { inset: 0; height: auto; }

.bubble-bg__b {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.bubble-bg__b1 { top: -6%; left: -8%;  width: 640px; height: 640px; background: #006aff; animation: bubble-drift-a 13s ease-in-out infinite; }
.bubble-bg__b2 { top: 15%; left: 60%;  width: 700px; height: 700px; background: #00cffe; animation: bubble-drift-b 15s ease-in-out infinite; animation-delay: -4s; }
.bubble-bg__b3 { top: 35%; left: 15%;  width: 600px; height: 600px; background: #c8ff00; animation: bubble-drift-c 12s ease-in-out infinite; animation-delay: -2s; }
.bubble-bg__b4 { top: 55%; left: 75%;  width: 540px; height: 540px; background: #8d8dff; animation: bubble-drift-a 14s ease-in-out infinite; animation-delay: -6s; }
.bubble-bg__b5 { top: 70%; left: -6%;  width: 560px; height: 560px; background: #87ffd1; animation: bubble-drift-b 11s ease-in-out infinite; animation-delay: -5s; }
.bubble-bg__b6 { top: 85%; left: 45%;  width: 660px; height: 660px; background: #91e4f6; animation: bubble-drift-c 13.5s ease-in-out infinite; animation-delay: -8s; }

/* große weiße Blur-Flächen für Weißraum zwischen den Farben */
.bubble-bg__w {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  filter: blur(110px);
  opacity: 0.8;
  will-change: transform;
}
.bubble-bg__w1 { top: 4%;  left: 20%; width: 950px; height: 950px; animation: bubble-drift-b 18s ease-in-out infinite; }
.bubble-bg__w2 { top: 60%; left: 55%; width: 850px; height: 850px; animation: bubble-drift-c 16s ease-in-out infinite; animation-delay: -7s; }

@keyframes bubble-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(55px, -42px) scale(1.12); }
}
@keyframes bubble-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-48px, 46px) scale(0.9); }
}
@keyframes bubble-drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(42px, 38px) scale(1.15); }
}

@media (max-width: 720px) {
  .bubble-bg__b { width: 320px !important; height: 320px !important; filter: blur(60px); }
  .bubble-bg__w { width: 460px !important; height: 460px !important; filter: blur(70px); }
}
