/* Fischi CV – Volos-inspired one-pager, CI colors */

:root {
  --tiefsee: #0f4c81;
  --lagune: #18bfcf;
  --basalt: #2b313a;
  --nebel: #a8b0b8;
  --gischt: #f9fbfc;
  --alge: #2faf6a;
  --koralle: #d63a45;
  --boje: #ffc82c;

  --panel: #252a31;
  --panel-deep: #1e2228;
  --text-soft: #d7dde3;
  --sidebar-width: 380px;
  --font: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--nebel);
  background: var(--gischt);
  overflow-x: hidden;
}

body.open,
body.overlay-open {
  overflow: hidden;
}

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

a {
  color: var(--lagune);
  text-decoration: none;
  transition: color 0.2s linear;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Loader */
.doc-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: var(--basalt);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.doc-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.doc-loader-mark {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(168, 176, 184, 0.25);
  border-top-color: var(--lagune);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Buttons */
.button {
  display: inline-block;
  color: var(--gischt);
  border: 2px solid var(--lagune);
  text-align: center;
  padding: 12px 38px;
  cursor: pointer;
  border-radius: 50px;
  background: transparent;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background-color 0.2s linear, color 0.2s linear;
}

.button:hover {
  background: var(--lagune);
  color: var(--basalt);
}

.button-submit {
  min-width: 160px;
}

.button-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Sidebar */
.content-left {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--basalt);
  z-index: 2;
}

.content-left-wrapper {
  padding-left: 75px;
  position: relative;
  height: 100%;
}

.toggle-holder {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 20;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

#toggle {
  display: block;
  height: 23px;
  width: 30px;
  position: relative;
}

#toggle::before,
#toggle::after,
#toggle .menu-line {
  content: "";
  height: 3px;
  position: absolute;
  left: 0;
  background: var(--gischt);
  transition: all 0.25s;
}

#toggle::before,
#toggle::after {
  width: 30px;
  top: 8px;
}

#toggle::before {
  transform: translate3d(0, -8px, 0);
  width: 21px;
}

#toggle::after {
  transform: translate3d(0, 8px, 0);
}

#toggle .menu-line {
  width: 13px;
  top: 8px;
}

.toggle-holder:hover #toggle::before {
  margin-left: 9px;
}

.toggle-holder:hover #toggle .menu-line {
  margin-left: 17px;
}

#toggle.on::before {
  transform: rotate(45deg);
  width: 26px;
  margin-left: 0;
}

#toggle.on::after {
  transform: rotate(-45deg);
  width: 26px;
}

#toggle.on .menu-line {
  opacity: 0;
}

.top-pagination {
  position: relative;
  z-index: 2;
  padding-top: 150px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.current-num {
  width: 25px;
  position: relative;
  height: 30px;
  color: var(--lagune);
}

.current-num span {
  position: absolute;
  left: 0;
}

.total-pages-num {
  color: var(--gischt);
}

.pagination-div {
  position: relative;
  width: 100px;
  height: 30px;
}

.pagination-div::after {
  content: "";
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--gischt);
  top: 12px;
}

.my-info-wrapper {
  padding-top: 110px;
}

.my-info {
  margin-bottom: 30px;
}

.my-info-title {
  font-size: 12px;
  line-height: 1;
  color: var(--lagune);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.my-info-content {
  color: var(--gischt);
}

.big-num {
  position: fixed;
  width: var(--sidebar-width);
  left: 0;
  bottom: 30px;
  padding-left: 75px;
  z-index: 1;
  pointer-events: none;
}

.current-big-num {
  font-size: 160px;
  -webkit-text-stroke: 3px var(--lagune);
  color: transparent;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -4px;
}

.icon-scroll {
  position: absolute;
  right: 40px;
  bottom: 25px;
  width: 38px;
  height: 60px;
  border: 3px solid var(--lagune);
  border-radius: 25px;
}

.icon-scroll::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: var(--lagune);
  border-radius: 50%;
  animation: scroll-dot 1.6s infinite;
}

@keyframes scroll-dot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(22px);
    opacity: 0;
  }
}

/* Menu overlay (left slide) */
.menu-holder {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--panel-deep);
  z-index: 15;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  padding-left: 75px;
  visibility: hidden;
  pointer-events: none;
}

body.open .menu-holder {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.menu-wrapper {
  padding-top: 150px;
}

.main-menu a {
  display: inline-block;
  color: var(--gischt);
  font-size: 28px;
  line-height: 50px;
  font-weight: 700;
  position: relative;
}

.main-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  height: 3px;
  width: 0;
  background: var(--lagune);
  transition: width 0.25s ease;
}

.main-menu li.current a::after,
.main-menu a:hover::after {
  width: 110%;
}

.main-menu a:hover {
  color: var(--gischt);
}

/* Right content */
.content-right {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
}

.content-right-wrapper > .section:last-of-type {
  padding-bottom: 80px;
}

.section {
  background: var(--panel);
  position: relative;
  padding-top: 120px;
}

.section-wrapper {
  padding-left: 5%;
  padding-right: 5%;
}

.content-1300 {
  max-width: 1300px;
}

.full-width-section.section {
  padding: 0;
  background: var(--gischt);
}

.full-width-section .section-wrapper {
  padding: 0 0 0 5%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gischt);
}

.section-title {
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 30px;
  color: var(--gischt);
  font-weight: 800;
}

.section-lead {
  font-size: 20px;
  color: var(--lagune);
  margin-bottom: 18px;
  font-weight: 600;
}

.section-copy p,
.resume-about p,
.contact-intro p {
  margin-bottom: 18px;
  max-width: 52ch;
}

/* Home */
.home-left-part {
  flex: 0 0 370px;
  margin-right: 5%;
  padding: 80px 0;
}

.home-right-part {
  flex: 1 0 0;
  align-self: stretch;
  min-height: 100vh;
  position: relative;
  background-image: url("../assets/portrait.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.home-right-part::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tiefsee);
  opacity: 0.28;
  pointer-events: none;
}

.site-des {
  font-size: 28px;
  color: var(--basalt);
  margin-bottom: 8px;
}

h1.entry-title {
  font-size: clamp(64px, 9vw, 100px);
  line-height: 0.94;
  font-weight: 800;
  color: var(--lagune);
}

.site-info {
  margin-top: 25px;
  color: var(--basalt);
  max-width: 36ch;
}

.home-role {
  margin-top: 8vh;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tiefsee);
  font-weight: 600;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 70px;
}

.service-card {
  border: 1px solid rgba(168, 176, 184, 0.25);
  padding: 28px 22px;
  min-height: 220px;
  background: var(--panel-deep);
}

.service-index {
  display: block;
  color: var(--lagune);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
}

.service-title {
  color: var(--gischt);
  font-size: 22px;
  margin-bottom: 14px;
  font-weight: 700;
}

.service-card p {
  color: var(--nebel);
  font-size: 14px;
  line-height: 1.6;
}

.section-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
}

/* Resume */
.resume-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  padding-bottom: 40px;
}

.timeline-event {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(168, 176, 184, 0.2);
}

.timeline-event:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-date {
  color: var(--lagune);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 4px;
}

.timeline-body h3 {
  color: var(--gischt);
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.timeline-org {
  color: var(--nebel);
  font-size: 14px;
}

/* Skills */
.skills-intro {
  margin-top: -10px;
  margin-bottom: 40px;
}

.skills-holder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  padding-bottom: 40px;
}

.skill-circle {
  text-align: center;
}

.skill-circle-visual {
  --p: 0;
  width: 180px;
  height: 180px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--lagune) calc(var(--p) * 1%), rgba(168, 176, 184, 0.2) 0);
  position: relative;
}

.skill-circle-visual::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--panel);
}

.skill-circle-num {
  position: relative;
  z-index: 1;
  color: var(--gischt);
  font-size: 32px;
  font-weight: 800;
}

.skill-circle-label {
  color: var(--text-soft);
  font-weight: 600;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lagune);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(168, 176, 184, 0.35);
  color: var(--gischt);
  font: inherit;
  padding: 10px 0;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s linear;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(168, 176, 184, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--lagune);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}

.form-status {
  min-height: 1.5em;
  font-size: 14px;
}

.form-status.is-success {
  color: var(--alge);
}

.form-status.is-error {
  color: var(--koralle);
}

.site-footer {
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid rgba(168, 176, 184, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--nebel);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--nebel);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--lagune);
}

/* Legal overlays */
.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(30, 34, 40, 0.88);
  display: grid;
  place-items: center;
  padding: 24px;
}

.legal-overlay[hidden] {
  display: none;
}

.legal-dialog {
  width: min(720px, 100%);
  max-height: min(85vh, 900px);
  overflow: auto;
  background: var(--gischt);
  color: var(--basalt);
  padding: 40px 36px;
  position: relative;
}

.legal-dialog h2 {
  color: var(--tiefsee);
  font-size: 32px;
  margin-bottom: 12px;
}

.legal-dialog h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--tiefsee);
  font-size: 16px;
}

.legal-dialog p {
  margin-bottom: 10px;
  color: var(--basalt);
}

.legal-dialog a {
  color: var(--tiefsee);
  text-decoration: underline;
}

.legal-meta {
  color: var(--nebel) !important;
  font-size: 14px;
  margin-bottom: 20px !important;
}

.legal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: none;
  font-size: 32px;
  line-height: 1;
  color: var(--basalt);
  cursor: pointer;
}

.legal-close:hover {
  color: var(--lagune);
}

/* Responsive */
@media screen and (max-width: 1599px) {
  :root {
    --sidebar-width: 320px;
  }

  .content-left-wrapper,
  .menu-holder,
  .big-num {
    padding-left: 55px;
  }

  .current-big-num {
    font-size: 130px;
  }

  .section {
    padding-top: 75px;
  }

  .top-pagination,
  .menu-wrapper {
    padding-top: 110px;
  }
}

@media screen and (max-width: 1360px) {
  :root {
    --sidebar-width: 90px;
  }

  .content-left-wrapper {
    padding-left: 34px;
  }

  .menu-holder {
    width: min(360px, 85vw);
    padding-left: 34px;
  }

  .top-pagination,
  .my-info-wrapper,
  .big-num {
    display: none;
  }

  .menu-wrapper {
    padding-top: 90px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-holder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 1020px) {
  .content-left {
    height: 55px;
    width: 100%;
  }

  .toggle-holder {
    top: 15px;
    left: 15px;
  }

  .content-right {
    margin-left: 0;
    width: 100%;
  }

  .menu-holder {
    width: 100%;
    padding-left: 24px;
  }

  .section-split,
  .resume-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-height: 880px) {
  .big-num {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .full-width-section .section-wrapper {
    min-height: auto;
    height: auto;
    flex-direction: column;
    padding: 100px 5% 0;
    align-items: stretch;
  }

  .home-left-part {
    flex: none;
    margin: 0;
    padding: 0 0 40px;
  }

  .home-right-part {
    min-height: 55vh;
    width: 100%;
  }

  h1.entry-title {
    font-size: 56px;
  }

  .site-des {
    font-size: 22px;
  }

  .services-grid,
  .skills-holder {
    grid-template-columns: 1fr;
  }

  .skill-circle-visual {
    width: 160px;
    height: 160px;
  }

  .timeline-event {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .legal-dialog {
    padding: 32px 22px;
  }
}
