/* ==========================================================
   BASIS
   ========================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #171717;
  background: #ffffff;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
}

.logo-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.logo-job {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.10em;
  color: #555555;
}

.main-nav {
  display: flex;
  gap: 30px;
  font-size: 13px;
}

.main-nav a {
  padding: 30px 0 28px;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: #171717;
}

.menu-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #171717;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}


/* ==========================================================
   TYPOGRAFIE
   ========================================================== */

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
  color: #888888;
}

.lead {
  margin: 0;
  max-width: 760px;
  font-size: 19px;
  line-height: 1.65;
  color: #666666;
}

.section-title {
  margin: 0 0 50px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 400;
}


/* ==========================================================
   ALLGEMEINE SEKTIONEN
   ========================================================== */

.section {
  padding: 95px 0;
  border-top: 1px solid #e6e6e6;
}

.section-soft {
  background: #f7f7f5;
}

.page-intro {
  padding: 86px 0 72px;
}

.page-intro h1 {
  margin: 0 0 24px;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 400;
  color: #C4BD97;
}


/* ==========================================================
   BUTTON
   ========================================================== */

.button {
  display: inline-block;
  margin-top: 34px;
  padding: 12px 0 6px;
  border-bottom: 1px solid #171717;
  font-size: 14px;
}


/* ==========================================================
   STARTSEITE
   ========================================================== */

.hero {
  padding: 0;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: flex-start;
}

.hero-grid > div:first-child {
  position: relative;
  z-index: 5;
  width: 52%;
  max-width: 620px;
  padding: 86px 0 75px;
}

.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 400;
  color: #C4BD97;
}

.home-slider {
  position: absolute;
  top: 86px;
  right: 0;
  width: 62%;
  max-width: 720px;
  height: 425px;
  margin: 0;
  transform: none;
  overflow: hidden;
  background: #f1f1ef;
}

.home-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.home-slide.active {
  opacity: 1;
}

.home-slider-filter {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.90) 18%,
    rgba(255, 255, 255, 0.65) 38%,
    rgba(255, 255, 255, 0.35) 62%,
    rgba(255, 255, 255, 0.18) 100%
  );
  pointer-events: none;
}


/* ==========================================================
   BILD-PLATZHALTER
   ========================================================== */

.image-placeholder {
  position: relative;
  overflow: hidden;
  background: #efefec;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.image-placeholder span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999999;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-placeholder.has-image span {
  display: none;
}


/* ==========================================================
   PROJEKTÜBERSICHT
   ========================================================== */

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

.project {
  min-width: 0;
}

.project-link {
  display: block;
}

.project-image {
  aspect-ratio: 16 / 10;
  transition: opacity 0.25s ease;
}

.project-link:hover .project-image {
  opacity: 0.88;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 17px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #888888;
}

.project h2 {
  margin: 8px 0 8px;
  font-size: 29px;
  line-height: 1.2;
  font-weight: 400;
}

.project p {
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #d5d5d5;
  color: #666666;
}


/* ==========================================================
   PROJEKT-DETAILSEITE
   ========================================================== */

.project-detail-intro {
  padding-bottom: 65px;
}

.back-link {
  display: inline-block;
  margin-bottom: 42px;
  padding-bottom: 3px;
  border-bottom: 1px solid #bdbdbd;
  font-size: 12px;
  color: #666666;
}

.back-link:hover {
  border-bottom-color: #171717;
  color: #171717;
}

.project-detail-intro h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 400;
  color: #C4BD97;
}

.project-detail-intro .lead {
  max-width: 800px;
}

.project-main-section {
  padding-top: 70px;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 30px;
  align-items: start;
}

.project-slider-wrap {
  min-width: 0;
}

.project-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eeeeeb;
}

.project-slider > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eeeeeb;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #171717;
  font-size: 20px;
  line-height: 46px;
  text-align: center;
  cursor: pointer;
}

.slider-arrow:hover {
  background: #ffffff;
}

.slider-prev {
  left: 16px;
}

.slider-next {
  right: 16px;
}

.slider-counter {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.slider-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.slider-thumb {
  flex: 0 0 104px;
  height: 70px;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  background: #eeeeeb;
  cursor: pointer;
}

.slider-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-thumb.active {
  border-color: #171717;
}

/* ==========================================================
   PROJEKT-UNTERNAVIGATION
   ========================================================== */

.project-subnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid #e1e1e1;
}

.project-subnav-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.project-subnav-next {
  align-items: flex-end;
  text-align: right;
}

.project-subnav-label {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #948A54;
}

.project-subnav-title {
  font-size: 14px;
  line-height: 1.4;
  color: #555555;
  transition: color 0.2s ease;
}

.project-subnav-link:hover .project-subnav-title {
  color: #171717;
}

.project-subnav-link:hover .project-subnav-label {
  color: #555555;
}

.slider-empty {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #888888;
}

.project-side {
  display: grid;
  gap: 45px;
}

/* Oberste Linie gleich grau wie die übrigen Trennlinien */
.project-detail-meta {
  border-top: 1px solid #e1e1e1;
}

.detail-row {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid #e1e1e1;
  font-size: 13px;
  line-height: 1.5;
}

.detail-row span {
  color: #888888;
}

.detail-row strong {
  font-weight: 400;
  color: #333333;
}

/* Keine zusätzliche Linie vor PROJEKTBESCHRIEB.
   Der Abstand bleibt durch padding-top unverändert. */
.project-description {
  padding-top: 25px;
  border-top: 0;
}

.project-description-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #555555;
}


/* ==========================================================
   REFERENZEN / BERUFLICHE ERFAHRUNG
   ========================================================== */

.reference-list {
  border-top: none;
}

body[data-page="referenzen"] .section,
body[data-page="projekte"] .section {
  padding-top: 25px;
}
.reference-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 35px;
  align-items: start;

  padding: 24px 0;
  border-bottom: 1px solid #d5d5d5;
}

/* Jahreszahlen links */
.reference-period {
  margin: 0;
  padding: 1px 0 0;

  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  color: #777777;
  white-space: nowrap;
}

/* Arbeitgeber + Funktion rechts */
.reference-content {
  margin: 0;
  padding: 0;
}

/* Arbeitgeber */
.reference-company {
  margin: 0 0 4px;
  padding: 0;

  font-size: 17px !important;
  line-height: 1.35;
  font-weight: 500 !important;
  color: #222222;
}

/* Funktion */
.reference-role {
  margin: 0 !important;
  padding: 0;

  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  color: #666666;
}

/* ==========================================================
   KONTAKT / KURZPROFIL
   ========================================================== */

body[data-page="kontakt"] .section-soft {
  padding-top: 25px;
  padding-bottom: 25px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 70px;
  align-items: start;
  margin-top: 0;
}

.about-content {
  width: 100%;
  max-width: 650px;
}

.about-text {
  margin: 0;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.7;
  color: #555555;
}

.contact-portrait {
  width: 340px;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  justify-self: start;
  align-self: start;
  margin: 0;
  background-size: cover;
  background-position: center;
}


/* ==========================================================
   KONTAKTDATEN
   ========================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}

.contact-card {
  padding-top: 20px;
  border-top: 1px solid #171717;
}

.contact-card h2 {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 400;
}

.contact-card p {
  margin-top: 0;
}


/* ==========================================================
   QR-CODE
   ========================================================== */

.contact-qr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-qr .eyebrow {
  margin-bottom: 18px;
}

.contact-qr-image {
  display: block;
  width: 165px;
  height: 165px;
  object-fit: contain;
  background: #ffffff;
}

.contact-qr-text {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #777777;
}


/* ==========================================================
   LINKS
   ========================================================== */

.text-link {
  display: inline-block;
  margin-top: 28px;
  padding-bottom: 4px;
  color: #948A54;
  border-bottom: 1px solid #948A54;
  font-size: 14px;
}

.text-link:hover {
  color: #555555;
  border-bottom-color: #555555;
}

.text-link.compact {
  margin-top: 4px;
}

.text-link span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.25s ease;
}

.text-link:hover span {
  transform: translateX(5px);
}


/* ==========================================================
   COPYRIGHT BEI DROHNENFLÜGEN
   ========================================================== */

.link-copyright {
  display: inline-block;
  margin-left: 20px;
  font-size: 11px;
  color: #999999;
  white-space: nowrap;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
  padding: 28px 0;
  border-top: 1px solid #e6e6e6;
  font-size: 12px;
  color: #777777;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

  .project-detail-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .project-side {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }

  .project-description {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 800px) {

  .container {
    width: min(calc(100% - 30px), 680px);
  }

  .nav-wrap {
    min-height: 64px;
  }

  .logo {
    gap: 8px;
  }

  .logo-name {
    font-size: 15px;
  }

  .logo-job {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .menu-toggle {
    display: block;
    min-width: 44px;
    min-height: 44px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 8px 15px 18px;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    min-height: 48px;
    padding: 14px 0;
    border-bottom: 1px solid #eeeeee;
  }

  .section {
    padding: 65px 0;
  }

  .page-intro {
    padding: 60px 0 55px;
  }


  /* STARTSEITE */

  .hero {
    padding: 0 0 70px;
  }

  .hero-grid {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }

  .hero-grid > div:first-child {
    width: 100%;
    max-width: none;
    padding: 55px 0 0;
  }

  .home-slider {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 520px;
    height: auto;
    aspect-ratio: 4 / 3;
    justify-self: start;
    margin: 10px 0 0;
    transform: none;
  }

  .home-slider-filter {
    background: rgba(255, 255, 255, 0.45);
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 58px);
  }


  /* PROJEKTE */

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

  .project-grid {
    gap: 55px;
  }

  .contact-grid {
    gap: 55px;
  }


  /* KONTAKT */

  body[data-page="kontakt"] .section-soft {
    padding-top: 30px;
    padding-bottom: 25px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 0;
  }

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

  .about-text {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.7;
  }

  .contact-portrait {
    width: 220px;
    max-width: 220px;
    aspect-ratio: 4 / 5;
    justify-self: start;
    align-self: start;
    margin: 0;
    background-size: cover;
    background-position: center;
  }

  .contact-qr-image {
    width: 150px;
    height: 150px;
  }


  /* FOOTER */

  .footer-wrap {
    flex-direction: column;
  }

  .project-detail-intro {
    padding-bottom: 45px;
  }

  .back-link {
    margin-bottom: 32px;
  }
}


/* ==========================================================
   KLEINERE SMARTPHONES
   ========================================================== */

@media (max-width: 650px) {

  .project-slider {
    aspect-ratio: 4 / 3;
  }
  .project-subnav {
    gap: 20px;
    margin-top: 28px;
    padding-top: 18px;
  }

  .project-subnav-label {
    font-size: 9px;
    letter-spacing: 0.07em;
  }

  .project-subnav-title {
    font-size: 12px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

  .slider-counter {
    right: 10px;
    bottom: 10px;
  }

  .slider-thumb {
    flex-basis: 88px;
    height: 58px;
  }

  .project-side {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================
   KLEINE SMARTPHONES
   ========================================================== */

@media (max-width: 520px) {

  .logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.25;
  }

  .logo-name {
    font-size: 14px;
  }

  .logo-job {
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .contact-portrait {
    width: 200px;
    max-width: 200px;
  }

  .contact-qr-image {
    width: 145px;
    height: 145px;
  }
}


@media (max-width: 420px) {

  .container {
    width: calc(100% - 24px);
  }

  .project h2 {
    font-size: 25px;
  }
}

/* Footer Rechtliches */

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

.footer-legal a,
.footer-separator {
  color: #777;
  white-space: nowrap;
}
