/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@font-face {
  font-family: 'Syne';
  src: url('../fonts/syne-normal-400 800.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
}

@font-face {
  font-family: 'Syne Mono';
  src: url('../fonts/syne-mono-normal-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/ubuntu-normal-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/ubuntu-normal-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/ubuntu-normal-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/ubuntu-normal-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/ubuntu-italic-500.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/ubuntu-italic-700.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
}

:root {
  --bg-color: #ffffff;
  --text-color: #141414;
  --text-muted: #666666;
  --accent-color: #01a8f7;
  --container-padding: 40px;
  --section-margin: 120px;
}

body {
  font-family: 'Syne Mono', monospace;
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, .logo {
  font-family: 'Syne', sans-serif;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header & Nav */
.header {
  padding: 30px 0;
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.8rem;
  text-decoration: none;
  color: var(--text-color);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1001;
}

.nav-links {
  margin-left: auto;
  margin-right: 50px;
}

.nav-links a {
  margin-left: 30px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: 'Syne', monospace;
}

.nav-links a:hover {
  color: var(--text-color);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--border-color);
}

.language-switcher a,
.language-switcher .lang-active {
  font-family: 'Syne', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.language-switcher a:hover {
  color: var(--text-color);
}

.language-switcher .lang-active {
  color: var(--text-color);
  font-weight: 500;
}

.language-switcher .lang-separator {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
  padding-top: 200px;
  padding-bottom: 100px;
}

.hero-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0 0 40px 0;
}

.hero-title .thin {
  font-weight: 300;
  color: #ccc;
}

.hero-positioning {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.4;
  max-width: 800px;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0;
}

/* Common Section Styles */
.section {
  margin-top: var(--section-margin);
  scroll-margin-top: 150px;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 40px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

/* Profile Image Styles */
.profile-image-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-profile-image {
  flex: 0 0 250px;
  max-width: 250px;
  margin-bottom: -40px;
}

/* Work Section */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.work-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.work-content {
  display: flex;
  flex-direction: column;
}

.work-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.work-title {
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.work-company {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.work-description {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.1rem;
}

.work-image-container {
  position: relative;
  width: 100%;
}

.work-link {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.4s ease;
}

.work-link:hover {
  transform: translateY(-5px);
}

.work-image-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  margin-bottom: 15px;
  transition: background-color 0.3s ease;
  padding: 0;
  text-align: center;
  overflow: hidden;
}

.work-image-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-link:hover .work-image-placeholder {
  background-color: #efefef;
}

.work-link-text {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--text-color);
  padding-bottom: 2px;
  display: inline-block;
}

/* Projects within Experience */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.projects-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-muted);
}

.view-toggle {
  display: flex;
  gap: 10px;
}

.toggle-btn {
  background: none;
  border: none;
  font-family: 'Syne Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 5px;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.toggle-btn.active {
  color: var(--text-color);
  font-weight: 700;
}

.projects-wrapper {
  transition: all 0.4s ease;
}

/* Grid View */
.projects-wrapper.view-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.projects-wrapper.view-grid .project-entry {
  margin-bottom: 0;
}

.projects-wrapper.view-grid .work-image-placeholder {
  aspect-ratio: 1/1;
  font-size: 0.8rem;
}

/* List View */
.projects-wrapper.view-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project-info {
  margin-top: 10px;
}

.project-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 5px 0;
  font-family: 'Syne', sans-serif;
}

@media (max-width: 992px) {
  .work-item {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .projects-wrapper.view-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Information Section */
.info-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 100px;
  align-items: start;
}

.info-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0 0 40px 0;
}

.info-description {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 650px;
}

.info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.info-sublabel {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  font-family: 'Syne', monospace;
}

@media (max-width: 992px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* Contact */
.contact {
  padding-bottom: 100px;
}

.contact-lead {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 500;
  margin-bottom: 40px;
  letter-spacing: -0.03em;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-link {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.3s ease;
}

.contact-link:hover {
  opacity: 0.6;
}

.contact-location {
  margin-top: 40px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 120px 0 60px;
  border-top: 1px solid #eee;
  color: var(--text-muted);
}

.footer-logo-section {
  padding-bottom: 80px;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
  overflow: hidden;
  width: 100%;
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  font-family: 'Syne', sans-serif;
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  width: max-content;
  gap: 0;
  padding-right: 0;
  animation: scroll-marquee 40s linear infinite;
}

.footer-logo-text {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  margin: 0;
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--text-color);
  white-space: nowrap;
  padding-right: 4vw; /* Reduzierter Abstand */
}

@keyframes scroll-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: 'Syne', monospace;
}

.footer-links a:hover {
  color: var(--text-color);
}

/* Legal Page */
.legal-content {
  padding-top: 150px;
  padding-bottom: 100px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  max-width: 800px;
  margin-top: 40px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.legal-text h3 {
  font-size: 1.3rem;
  margin: 30px 0 15px;
}

.legal-text p {
  margin-bottom: 15px;
}

.legal-text a {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px solid var(--text-color);
}

.legal-text a:hover {
  opacity: 0.6;
}

@media (min-width: 992px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
}
.project-hero {
  padding-top: 200px;
  padding-bottom: 80px;
}

.project-hero-title {
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
}

.project-hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--text-muted);
  font-weight: 400;
}

.project-intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 100px;
  margin-bottom: 100px;
  padding-top: 60px;
  border-top: 1px solid #eee;
}

.project-description {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--text-color);
}

.project-credits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

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

.credit-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-muted);
}

.credit-value {
  font-size: 1rem;
  line-height: 1.4;
}

.project-media {
  margin-bottom: 100px;
}

.project-image-large {
  width: 100%;
}

.project-image-large img {
  width: 100%;
  height: auto;
  display: block;
}

.image-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.project-details {
  margin-bottom: 100px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  justify-items: end;
}

.details-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 30px;
  letter-spacing: -0.03em;
}

.details-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.project-navigation {
  padding-bottom: 100px;
}

.nav-border {
  border-top: 1px solid #eee;
  margin-bottom: 40px;
}

.project-nav-links {
  display: flex;
  justify-content: space-between;
}

.project-nav-links a {
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.3s ease;
}

.prev-project {
  align-items: flex-start;
}

.next-project {
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
}

.project-nav-links a:hover {
  opacity: 0.6;
}

.project-nav-links .disabled {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}

.nav-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-muted);
}

.nav-title {
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

@media (max-width: 992px) {
  .project-intro-grid, .details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-credits {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .image-grid-two {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Animations */
.reveal-on-scroll, .work-item, .info-main, .info-group {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible, .work-item.is-visible, .info-main.is-visible, .info-group.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  :root {
    --container-padding: 24px;
    --section-margin: 80px;
  }

  .hero {
    padding-top: 180px;
  }

  .hero-container {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 40px;
  }

  .hero-profile-image {
    flex: 0 0 auto;
    width: 200px;
  }

  .nav-links {
    display: none; /* Simplify for mobile */
  }
}

/* Scroll Reveal Animations */
.reveal-title {
  display: block;
  overflow: hidden;
}

.reveal-title span {
  display: block;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-title.active span {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: auto;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.1rem;
    margin-left: 0;
  }

  .language-switcher {
    position: relative;
    z-index: 1001;
  }
}

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

