@charset "UTF-8";

/* ========================================
   Variablen
   ======================================== */

:root {
  --primary:   #02245b;
  --secondary: #e7e7e7;
  --third:     #858585;
}

/* ========================================
   Base Styles
   ======================================== */

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

body {
  background-color: var(--secondary);
  color: var(--primary);
  padding: 0;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
}

h1 {
  font-family: "Forum", serif;
  font-weight: 400;
  font-style: normal;
  color: var(--primary);
  font-size: 8rem;
  text-transform: uppercase;
  line-height: 0.9;
}

.h1-sub {
  display: block;
  font-size: 0.25em;
  margin: 0.1em 0;
}

h2 {
  font-family: "Forum", serif;
  font-weight: 400;
  font-style: normal;
  color: var(--primary);
  font-size: 4rem;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 1rem;
}

p {
  margin: 0;
  line-height: 1.5;
}

/* ========================================
   Layout Sections / Wrapper
   ======================================== */

.section {
  width: 100%;
  margin: 0;
  padding: 10vh 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contentwrapper {
  width: 94%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
}

/* Grid speziell für Portfolio */
.contentwrapperportfolio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2vh;
  row-gap: 2vh;
}

/* ========================================
   Menü (mix-blend-mode: difference)
   ======================================== */

#menue {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  color: #ffffff;
  mix-blend-mode: difference;

  z-index: 1000;
  background: transparent;
}

nav ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: uppercase;
}

nav a:hover {
  text-decoration: underline;
}

/* ========================================
   Header Logo + Login Button
   (aus menu.php)
   ======================================== */

#header {
  width: 94%;
  max-width: 1600px;
  position: fixed;
  top: 2vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;

  display: flex;
  justify-content: space-between;
  align-items: center;

  /* Höhe orientiert sich am Logo (höchster Inhalt) */
  height: 10vh;
}

/* drei Bereiche im Header */

#header_left {
  display: flex;
  align-items: center;
}

#header_mid {
  /* visuell immer exakt in der Mitte des Containers */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

#header_right {
  display: flex;
  align-items: center;
}

/* Logo-Wrapper: runder Hintergrund */
#logo_wrapper {
  margin: 0 auto;
  width: 10vh;
  height: 10vh;
  background-color: var(--secondary);
  border-radius: 100%;
  transition: 0.1s ease;
}

/* Hover-Rand */
#logo_wrapper:hover {
  border: 2px solid var(--primary);
}

/* Inneres Logo mit Bild */
#logo {
  width: 80%;
  height: 80%;
  background-image: url("../media/logo_circle.png");
  background-size: cover;
  background-position: center;
  margin: 10%;
  float: left;
  transition: 0.5s ease;
}

/* Fortschritts-Kreis innen */
#logo_progress {
  background-color: var(--primary);
  float: left;
  width: 40%;
  height: 40%;
  margin: 30%;
  border-radius: 100%;
}

/* ========================================
   Button Styles (global)
   ======================================== */

.button_primary,
.button_secondary {
  padding: 0.4rem 1.1rem;
  border-radius: 9999pc;
  font-size: 1rem;
  font-family: forum;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: 0.2s ease;
}

/* wie früher #loginButton */
.button_primary {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* Primary-Button: Farbe & Border bleiben gleich beim Hover */
.button_primary:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* invertiert */
.button_secondary {
  background: #fff;
  color: var(--primary);
  border: none;
}

.button_secondary:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* Zusatz: Buttons mit Icon rechts */

.button_icon {
  position: relative;
  overflow: hidden;
  padding-right: 1.1rem; /* Start: nur Text-Padding */
  transition: padding-right 0.25s ease;
}

/* Basiszustand Icon: ausgeblendet rechts draußen */
.button_icon::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 1rem;
  height: 1rem;
  transform: translate(150%, -50%); /* noch außerhalb */
  opacity: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Pfeil-Variante: icon_arrow.png */
.button_icon_arrow::after {
  background-image: url("../media/icon_arrow.png");
}

/* Hover: Button wird breiter, Pfeil fährt von rechts rein */
.button_primary.button_icon_arrow:hover,
.button_secondary.button_icon_arrow:hover {
  padding-right: 2.6rem; /* mehr Platz für Icon */
}

.button_primary.button_icon_arrow:hover::after,
.button_secondary.button_icon_arrow:hover::after {
  transform: translate(0, -50%);
  opacity: 1;
}

/* Check-Variante: immer sichtbar, kein Hover nötig */
.button_icon_check::after {
  background-image: url("../media/icon_check.png");
  transform: translate(0, -50%);
  opacity: 1;
}

/* Check-Variante: dauerhaft Platz für Icon rechts */
.button_icon.button_icon_check {
  padding-right: 2.6rem;
}

/* spezielles Verhalten nur für den Header-Login-Button */
#loginButton {
  z-index: 999999;
}

/* ========================================
   Header / Hero
   ======================================== */

#headersection {
  overflow: hidden;
  position: relative;
  height: 100vh;
  text-align: center;
  padding: 0;
  display: flex;
  align-items: center;
}

/* ========================================
   Work-Section
   ======================================== */

#work {
  background-color: var(--primary);
  padding: 5vh 0;
}

#work h2 {
  color: var(--secondary);
}

/* DISCOVER / DEFINE / DESIGN etc. */

.BIxY_wrapper {
  display: flex;
  gap: 0;
  position: relative;
  margin-top: 10vh;
  margin-bottom: 10vh;
}

.BIxD_element {
  font-family: "Forum", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2rem;

  width: 24%;
  aspect-ratio: 1 / 1;

  border: 2px solid var(--secondary);
  background-color: var(--primary);
  color: var(--secondary);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  margin-left: -5%;
  transition: 0.4s ease;
}

.BIxD_element:first-child {
  margin-left: 0;
}

.BIxD_element:hover {
  margin-right: 3%;
  background-color: var(--secondary);
  color: var(--primary);
}

/* ========================================
   Cursor Tail
   ======================================== */

.cursor-tail {
  position: absolute;
  pointer-events: none;
  width: 200px;
  height: auto;
  transform: translate(-50%, -50%) scale(1);
  z-index: 9999;
  transition: transform 0.35s ease-out, opacity 0.35s ease-out;
}

/* ========================================
   Feature-Bereich (Sticky Text + Bilder)
   ======================================== */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.feature_text {
  position: sticky;
  top: 6rem; /* unterhalb des Menüs/Header */
}

.feature_images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature_images img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ========================================
   CV / Timeline
   ======================================== */

.cv-item {
  width: 100%;
  padding: 5vh 0;
  display: flex;
  gap: 2rem;
}

.cv-date {
  width: 50%;
  font-family: "Forum", serif;
  font-weight: 400;
  font-style: normal;
  color: var(--primary);
  font-size: 4rem;
  text-transform: uppercase;
}

.cv-info {
  width: 50%;
}

.cv-company {
  width: 100%;
  font-family: "Forum", serif;
  font-weight: 400;
  font-style: normal;
  color: var(--primary);
  font-size: 4rem;
  text-transform: uppercase;
  margin-bottom: 1vh;
}

.cv-role {
  color: var(--third);
  width: 100%;
  margin-bottom: 3vh;
  font-size: 1rem;
}

.cv-description {
  color: var(--third);
  width: 100%;
  font-size: 1rem;
}

.divider {
  width: 100%;
  background-color: var(--primary);
  height: 2px;
}

/* ========================================
   Portfolio (locked / unlocked)
   ======================================== */

.portfolioitem {
  width: 100%;
  height: 50vh;
  position: relative;
  overflow: hidden;
  display: block;         /* wichtig, damit <a> full-width ist */
  text-decoration: none;  /* Sicherheit für Links */
  color: inherit;
  background-size: cover;
  background-position: center;
}

/* Bild kommt vom Element und wird hier für Zoom gespiegelt */
.portfolioitem::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  transform: scale(1);
  transition: transform 0.4s ease;
  z-index: 0;
}

/* Hover-Zoom (~10%) nur im unlocked Zustand */
.portfolio--unlocked:hover::before {
  transform: scale(1.1);
}

/* UNLOCKED: Overlay für bessere Lesbarkeit von Text & Button */
.portfolio--unlocked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    transparent 100%
  );
  z-index: 1;
}

/* LOCKED: leicht abdunkeln (Bild ist bereits geblurrt als Datei) */
.portfolio--locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* Inhalt unten links für UNLOCKED */

.portfolio-content {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.portfoliotitle {
  font-family: "Forum", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2.4rem;
  text-transform: uppercase;
  color: #ffffff;
  text-align: left;
}

/* Button im Portfolio */

.portfolio-button {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}

/* normaler Button-Hover (falls man direkt über dem Button ist) */
.portfolio-button:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* Button-Hover & Icon-Animation auch beim Hover auf dem ganzen Item */
.portfolio--unlocked:hover .portfolio-button {
  background: var(--secondary);
  color: var(--primary);
  padding-right: 2.6rem; /* wie in .button_icon_arrow:hover */
}

.portfolio--unlocked:hover .portfolio-button::after {
  transform: translate(0, -50%);
  opacity: 1;
}

/* LOCK-TAG: gleiche Position & Stil wie der Button */

.portfolio-lock-tag {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1.1rem;
  border-radius: 9999pc;
  background: #ffffff;
  border: 1px solid var(--primary);
}

.lock-icon {
  font-size: 1.1rem;
  color: var(--primary);
}

.lock-text {
  color: var(--primary);
  font-size: 0.8rem;
}

/* ========================================
   Modal
   ======================================== */

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  min-width: 280px;
  max-width: 90vw;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.modal__content h2 {
  margin-top: 0;
  font-size: 1.5rem;
  text-align: left;
}

#loginForm label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

#loginForm input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.modal__buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Buttons im Modal nutzen die globalen .button_* Styles */
.modal__buttons button {
  cursor: pointer;
  font-size: 0.9rem;
}

.login-error {
  color: #c00;
  font-size: 0.8rem;
  min-height: 1em;
  margin-bottom: 0.5rem;
}

/* ========================================
   Responsive
   ======================================== */

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

  .feature_text {
    position: static;
    margin-bottom: 1.5rem;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .cv-item {
    flex-direction: column;
  }

  .cv-date,
  .cv-info {
    width: 100%;
  }

  .BIxY_wrapper {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .BIxD_element {
    margin-left: 0;
    width: 45%;
  }

  #logo_wrapper {
    width: 8vh;
    height: 8vh;
  }

  .button_primary,
  .button_secondary {
    font-size: 0.7rem;
    padding: 0.35rem 0.9rem;
  }

  .contentwrapperportfolio {
    grid-template-columns: 1fr;
    column-gap: 2vh;
    row-gap: 2vh;
  }
}