/* ==========================================================================
   Fonts (self-hosted, aus /assets/fonts)
   ========================================================================== */

@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/PlayfairDisplay-VariableFont_wght.woff2") format("woff2"),
       url("../assets/fonts/PlayfairDisplay-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/PlayfairDisplay-Italic-VariableFont_wght.woff2") format("woff2"),
       url("../assets/fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inconsolata";
  src: url("../assets/fonts/Inconsolata-VariableFont.woff2") format("woff2"),
       url("../assets/fonts/Inconsolata-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Design Tokens (aus design-system-vitalijmakus.md)
   ========================================================================== */

:root {
  /* Farben */
  --color-bg-primary: #FDFDFC;
  --color-bg-soft: #FAF9F5;
  --color-bg-dark: #000000;
  --color-text-primary: #000000;
  --color-text-on-dark: #FFFFFF;
  --color-text-secondary: #333333;
  --color-text-neutral: #141413;
  --color-accent: #0040FF;
  --color-button-outline-light: #000000;
  --color-button-outline-dark: #FFFFFF;

  /* Radius */
  --radius-card: 10px;
  --radius-content: 12px;
  --radius-box-lg: 30px;
  --radius-pill: 999px;

  /* Spacing */
  --spacing-button-padding: 12px 24px;
  --spacing-card-padding: 48px;
  --spacing-section-lg: 128px 40px;
  --spacing-section-normal: 80px 0 0;
  --spacing-container-padding: 0 40px;
  --gap-nav: 20px;
  --gap-buttons: 15px;

  /* Typografie */
  --font-serif: "Playfair Display", "Times New Roman", TimesNewRoman, Times, Baskerville, Georgia, serif;
  --font-sans: "Inconsolata", monospace;
}

/* ==========================================================================
   Reset / Base
   ========================================================================== */

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

html, body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

body.is-visible {
  opacity: 1;
}

body.is-leaving {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }
}

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

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

/* min-height statt fester Hoehe: passt der Inhalt nicht in den Viewport
   (Laptop mit wenig Hoehe, Handy quer), darf die Seite scrollen, statt
   Text abzuschneiden. dvh beruecksichtigt die iOS-Adressleiste. */
/* Desktop: feste Inhaltsbreite (1360px), mittig. --side ist der Abstand
   links/rechts und waechst auf grossen Bildschirmen mit. */
.hero {
  --side: max(40px, calc((100vw - 1360px) / 2));
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 130px var(--side) 90px;
}

.hero-logo {
  position: absolute;
  top: 40px;
  left: var(--side);
  width: 70px;
  height: 70px;
  z-index: 3;
}

.hero-logo img {
  display: block;
  width: 70px;
  height: 70px;
}

.hero-grid {
  width: 100%;
  align-self: stretch;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 40px;
}

/* ---- Linke Spalte: Content ---- */

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 78px;
  line-height: 1.05;
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: 36px;
}

.hero-text {
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: 720px;
  margin-bottom: 56px;
}

/* ---- Buttons ---- */

.hero-buttons {
  display: flex;
  flex-direction: row;
  gap: var(--gap-buttons);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.btn-arrow {
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  color: var(--color-text-on-dark);
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-secondary {
  background-color: transparent;
  border: 1.5px solid var(--color-button-outline-light);
  color: var(--color-text-primary);
}

.btn-secondary:hover {
  background-color: var(--color-text-primary);
  color: var(--color-text-on-dark);
}

/* LinkedIn: Desktop mit Text, Mobil als runder Icon-Button */
.btn-icon-linkedin {
  display: none;
  flex-shrink: 0;
}

/* ---- Rechte Spalte: Platzhalter fuer spaetere Canvas-Animation ---- */

#wireframe-container {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: visible;
}

/* ---- Footer-Zeile ---- */

.hero-footer {
  position: absolute;
  left: var(--side);
  right: var(--side);
  bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.footer-copyright,
.footer-links {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-secondary);
  display: flex;
  gap: 6px;
}

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

.footer-link.is-active {
  font-weight: 700;
  color: var(--color-text-primary);
}

/* ==========================================================================
   Unterseiten (Impressum, Datenschutz, etc.)
   Normale scrollbare Seite ohne Hero/Fullscreen-Zwang, mit derselben
   Kopf-/Fusszeile wie die Startseite.

   Fixer Footer-Block fuer JEDE neue Unterseite (class="subpage" Muster) –
   beim Anlegen einer neuen Unterseite 1:1 kopieren und href/is-active bzw.
   aria-current="page" auf den jeweils aktuellen Link setzen:

   <div class="page-footer">
     <p class="footer-copyright">© Copyright by Vitalij Makus 2026</p>
     <p class="footer-links">
       <a href="datenschutz.html" class="footer-link">Datenschutz</a>
       <span>|</span>
       <a href="impressum.html" class="footer-link">Impressum</a>
     </p>
   </div>
   ========================================================================== */

html.subpage,
html.subpage body {
  height: auto;
  overflow: auto;
}

body.subpage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 40px;
}

.page-logo {
  display: block;
  width: 70px;
  height: 70px;
  margin-bottom: 80px;
}

.page-logo img {
  display: block;
  width: 70px;
  height: 70px;
}

.page-content {
  flex: 1;
  width: 100%;
  max-width: 760px;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 80px;
  padding-top: 32px;
}

/* ==========================================================================
   Content-Typografie (.prose)
   Wiederverwendbare Text-Hierarchie fuer Unterseiten und weitere
   Fliesstext-Inhalte (Impressum, Datenschutz, zukuenftige Seiten).
   ========================================================================== */

.prose h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 40px;
}

.prose section {
  margin-top: 56px;
}

.prose section:first-of-type {
  margin-top: 0;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.prose h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 24px 0 10px;
}

.prose p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  list-style: disc;
  margin: 16px 0 16px 20px;
}

.prose li {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--color-accent);
}

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.prose a:hover {
  opacity: 0.7;
}

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

/* Desktop/Tablet mit wenig Hoehe (z. B. Laptop 1280x700) */
@media screen and (min-width: 768px) and (max-height: 760px) {
  .hero-title {
    font-size: 62px;
    margin-bottom: 24px;
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  .hero-text {
    font-size: 20px;
    margin-bottom: 40px;
  }
}

/* Tablet */
@media screen and (max-width: 991px) {
  .hero-title {
    font-size: 60px;
  }

  .hero-text {
    font-size: 19px;
  }

  .prose h1 {
    font-size: 38px;
  }

  .prose h2 {
    font-size: 23px;
  }
}

/* Mobile (Landscape) */
@media screen and (max-width: 767px) {
  .hero {
    padding: 112px 24px 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-content {
    max-width: 100%;
  }

  .eyebrow {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 46px;
    line-height: 1.08;
    margin-bottom: 24px;
  }

  .hero-text {
    font-size: 20px;
    max-width: 100%;
    margin-bottom: 36px;
  }

  .hero-buttons {
    gap: 12px;
    align-items: center;
  }

  .btn {
    height: 62px;
    padding: 0 26px;
    justify-content: space-between;
  }

  .btn-primary {
    flex-grow: 1;
  }

  .btn-linkedin {
    flex-shrink: 0;
    width: 62px;
    padding: 0;
    justify-content: center;
    background-color: var(--color-bg-primary);
  }

  .btn-linkedin .btn-label,
  .btn-linkedin .btn-arrow {
    display: none;
  }

  .btn-linkedin .btn-icon-linkedin {
    display: block;
  }

  /* Mobil: Animation deaktiviert */
  #wireframe-container {
    display: none;
  }

  .hero-logo {
    top: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background-color: var(--color-bg-primary);
  }

  .hero-logo img {
    width: 56px;
    height: 56px;
  }

  /* Mobil: Footer liegt unter dem ersten Bildschirm und erscheint erst
     beim Scrollen. margin-bottom schafft den Platz zum Scrollen. */
  .hero {
    overflow: visible;
    margin-bottom: 96px;
  }

  .hero-footer {
    left: 24px;
    right: 24px;
    top: 100%;
    bottom: auto;
    padding: 24px 0 32px;
  }

  body.subpage {
    padding: 24px;
  }

  .page-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 56px;
  }

  .page-logo img {
    width: 56px;
    height: 56px;
  }

  .page-footer {
    margin-top: 56px;
  }
}

/* Mobile (Portrait) */
@media screen and (max-width: 479px) {
  .hero-title {
    font-size: clamp(38px, 11.8vw, 46px);
  }

  .eyebrow {
    font-size: clamp(13px, 3.85vw, 15px);
  }

  .hero-text {
    font-size: clamp(17px, 5.1vw, 20px);
  }

  .hero {
    padding-bottom: 40px;
  }

  .hero-footer,
  .page-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    bottom: 16px;
  }

  .footer-copyright,
  .footer-links {
    font-size: 13px;
  }

  .prose h1 {
    font-size: 30px;
  }

  .prose h2 {
    font-size: 21px;
  }

  .prose h3 {
    font-size: 17px;
  }
}
