/* ============================================================
   JAN JACKO — Portfolio
   Gemeinsames Stylesheet (alle Seiten)
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --black: #000000;
  --white: #ffffff;
  --muted: #b4adad;

  --font-logo: "Jost", sans-serif;
  --font-nav: "Josefin Sans", sans-serif;
  --font-strefa: "Jost", sans-serif;
  --font-plen: "Outfit", sans-serif;

  --page-w: 1440px;
}

/* ---- Reset ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-nav);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

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

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

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page {
  position: relative;
  width: 100%;
  max-width: var(--page-w);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 64px 0 0;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  display: flex;
  align-items: center;
  padding: 56px 0 0 0;
  position: relative;
}

.logo {
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: 1.6px;
  white-space: nowrap;
  margin-left: 150px;
  margin-right: 90px;
}

.main-nav {
  display: flex;
  gap: 36px;
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 2.4px;
}

.main-nav a {
  position: relative;
  padding-top: 6px;
  white-space: nowrap;
}

/* aktiver Hauptnav-Eintrag: fett + kleiner senkrechter Strich davor */
.main-nav a.active {
  font-weight: 700;
}

.main-nav a.active::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 1px;
  height: 22px;
  background: var(--white);
}

.lang {
  margin-left: auto;
  font-family: var(--font-plen);
  font-size: 20px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.lang .pl,
.lang .en {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.lang .pl {
  font-weight: 700;
}

.lang .en {
  font-weight: 400;
  color: var(--muted);
}

/* EN aktiv */
body.lang-en .lang .pl {
  font-weight: 400;
  color: var(--muted);
}

body.lang-en .lang .en {
  font-weight: 700;
  color: var(--white);
}

/* ============================================================
   BODY (Sidebar + Content)
   ============================================================ */
.body {
  display: flex;
  flex: 1;
  position: relative;
  margin-top: 50px;
}

/* vertikale Trennlinie */
.body::before {
  content: "";
  position: absolute;
  left: 326px;
  top: 0;
  bottom: 25px;
  width: 1px;
  background: var(--white);
}

/* ---- Sidebar ---- */
.sidebar {
  width: 326px;
  flex-shrink: 0;
  padding-right: 24px;
  padding-left: 0;
  text-align: right;
}

.sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-nav);
  font-size: 16px;
  letter-spacing: 2.4px;
  color: var(--muted);
}

.sidebar a {
  color: var(--muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.sidebar a:hover {
  color: var(--white);
}

.sidebar li.active a {
  color: var(--white);
  font-weight: 700;
}

/* ---- Content ---- */
.content {
  flex: 1;
  padding-left: 126px;
  padding-top: 0;
  max-width: 820px;
}

.content section {
  display: none;
}

.content section.active {
  display: block;
}

/* Eintrag-Block (Heading + Text) */
.entry {
  margin-bottom: 24px;
}

.entry h3 {
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 2.2px;
  line-height: 30px;
  text-transform: uppercase;
}

.entry h3 .normal {
  font-weight: 300;
  text-transform: none;
}

.entry p {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: 2.2px;
}

.content > .lead p,
.content section > p {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: 2.2px;
}

.content strong {
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  margin-top: 30px;
  padding-bottom: 32px;
}

/* gepunktete Linie */
.dotline {
  position: relative;
  height: 1px;
  margin: 0 0 0 0;
  border-bottom: 2px dotted var(--white);
  width: 100%;
}

/* kleiner Kreis — zentriert auf der vertikalen Trennlinie */
.dot-marker {
  position: absolute;
  left: 326px;
  top: -8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--white);
  transform: translateX(-50%);
}

.footer-row {
  display: flex;
  align-items: flex-start;
  margin-top: 30px;
}

.strefa {
  position: relative;
  margin-left: 75px;
  width: 240px;
}

.strefa .title {
  font-family: var(--font-strefa);
  font-size: 24px;
  letter-spacing: 3.6px;
  white-space: nowrap;
}

.strefa .title .bold {
  font-weight: 500;
}

.strefa .title .reg {
  font-weight: 400;
}

.strefa .line {
  height: 1px;
  background: var(--white);
  width: 203px;
  margin: 6px 0 7px;
}

.strefa .login {
  font-family: var(--font-strefa);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 2.25px;
}

.strefa .arrow {
  position: absolute;
  right: -10px;
  top: -6px;
  width: 28px;
  height: 28px;
}

/* WYKLADY neben dem Content-Bereich */
.footer-extra {
  font-family: var(--font-nav);
  font-size: 16px;
  letter-spacing: 2.4px;
  padding-left: 51px;
  padding-top: 6px;
  align-self: flex-start;
}

/* Copyright */
.copyright {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 1.2px;
  margin-left: 150px;
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.copyright .c {
  font-size: 16px;
  letter-spacing: 2.4px;
}

/* ============================================================
   STARTSEITE (index)
   ============================================================ */
.home .body {
  margin-top: 40px;
}

.home .body::before {
  left: 334px;
  bottom: 75px;
}

.home-hero {
  margin-left: auto;
  width: 620px;
  height: 737px;
  overflow: hidden;
}

.home-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home .footer-row {
  margin-top: 50px;
}

.home .dot-marker {
  left: 334px;
}

/* ============================================================
   ARTYSTYCZNIE — Bild links im Content
   ============================================================ */
.art-layout {
  display: flex;
  gap: 40px;
}

.art-photo {
  flex-shrink: 0;
  width: 200px;
  height: 342px;
  overflow: hidden;
}

.art-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   KONTAKTFORMULAR
   ============================================================ */
.contact-layout {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.contact-form {
  flex: 1 1 480px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Dezenter Erklärtext rechts neben dem Formular */
.contact-aside {
  flex: 0 1 280px;
  padding-top: 22px;
  color: var(--muted);
}

.contact-aside h3 {
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.contact-aside p {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 15px;
  line-height: 26px;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 14px;
}

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

.form-field label {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--muted);
  color: var(--white);
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 1px;
  padding: 8px 0;
  width: 100%;
  resize: none;
  transition: border-color 0.2s ease;
}

.form-field textarea {
  min-height: 110px;
  line-height: 26px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--white);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #5a5656;
  font-weight: 300;
}

.form-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  font-family: var(--font-strefa);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 3px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.form-submit:hover {
  background: var(--white);
  color: var(--black);
}

.form-submit svg {
  display: block;
}

.form-submit:hover svg {
  stroke: var(--black);
}

.form-status {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 1.5px;
  color: var(--muted);
  min-height: 22px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .page {
    padding-right: 24px;
  }
  .logo {
    margin-left: 24px;
    margin-right: 40px;
  }
  .main-nav {
    gap: 20px;
  }
  .body::before {
    left: 240px;
  }
  .dot-marker {
    left: 240px;
  }
  .sidebar {
    width: 240px;
  }
  .content {
    padding-left: 48px;
  }
  .copyright {
    margin-left: 24px;
  }
}

@media (max-width: 820px) {
  .header {
    flex-wrap: wrap;
    gap: 16px;
  }
  .main-nav {
    font-size: 13px;
    letter-spacing: 1.5px;
  }
  .body {
    flex-direction: column;
  }
  .body::before {
    display: none;
  }
  .sidebar {
    width: 100%;
    text-align: left;
    margin-bottom: 32px;
  }
  .sidebar ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 20px;
  }
  .content {
    padding-left: 0;
  }
  .home-hero {
    width: 100%;
    height: auto;
  }
  .home .body::before {
    display: none;
  }
  .dot-marker {
    display: none;
  }
  .strefa {
    margin-left: 0;
  }
  .contact-layout {
    flex-direction: column;
    gap: 32px;
  }
  .contact-aside {
    order: -1;
    padding-top: 0;
  }
  .footer-extra {
    display: none;
  }
  .copyright {
    margin-left: 0;
  }
}
