/* ==========================================================================
   HUGO VAN ASH — V1.1 DESIGN
   Nur HTML/CSS. Mobile First: 390 → 768 → 1440.
   Palette und Stimmung ausschließlich laut Handshake.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design-Tokens
   Hintergrund #0B0F14 · Karten #182330 · Akzent #2E4A63
   Highlights #8FA9BC · Text #E5E7EB
   -------------------------------------------------------------------------- */
:root {
  --color-bg: #0b0f14;
  --color-card: #182330;
  --color-accent: #2e4a63;
  --color-highlight: #8fa9bc;
  --color-text: #e5e7eb;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-card: 2px; /* Stahl, nicht verspielt */
  --max-content: 72rem;
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration: 0.45s;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

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

/* ==========================================================================
   HEADER — transparent über dem Hero, Logo links, ohne Navigation
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: transparent;
  padding: 1.15rem 1.25rem 0;
  pointer-events: none;
}

.site-header__logo {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.92;
}

/* ==========================================================================
   HERO — Panorama Nordsee / Leuchtturm
   Dunkler Verlauf von unten + leichter Nebel. Kein Glassmorphism.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 70vh;
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Mobile: Leuchtturm im Bild halten */
  object-position: 82% 40%;
}

/* Dunkler Verlauf von unten + leichter Nebel-Overlay, weich ineinander */
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(229, 231, 235, 0.08) 0%,
      rgba(143, 169, 188, 0.1) 16%,
      rgba(46, 74, 99, 0.12) 34%,
      rgba(11, 15, 20, 0.28) 52%,
      rgba(11, 15, 20, 0.62) 74%,
      rgba(11, 15, 20, 0.9) 90%,
      var(--color-bg) 100%
    );
}

.hero__veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 120% 68% at 50% 10%,
      rgba(229, 231, 235, 0.14),
      rgba(143, 169, 188, 0.08) 36%,
      rgba(11, 15, 20, 0) 72%
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 1.25rem 2.5rem;
  max-width: var(--max-content);
}

.hero__title {
  font-size: 2.65rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.hero__kicker {
  margin-top: var(--space-md);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-highlight);
  letter-spacing: 0.06em;
  opacity: 0.88;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid #8fa9bc;
  border-radius: 999px;
  color: #8fa9bc;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.85rem;
  line-height: 1.2;
}

.hero__lead {
  margin-top: var(--space-lg);
  max-width: 620px;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.78;
  letter-spacing: 0.018em;
  color: var(--color-text);
  opacity: 0.88;
}

/* ==========================================================================
   PROJEKTKARTEN — Premium V1.1
   Bild oben (~40% Höhe), Radius 22px, nordische Ruhe.
   Hover nur Desktop (hover + fine pointer).
   ========================================================================== */
.projects {
  padding: 3.5rem 1.25rem 6rem;
}

.projects__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: var(--max-content);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  background: #182330;
  border: 1px solid rgba(143, 169, 188, 0.28);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 26.5rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.card--placeholder {
  opacity: 0.72;
}

.card__image {
  flex: 0 0 40%;
  height: 40%;
  overflow: hidden;
  background: var(--color-accent);
  border-radius: 22px 22px 0 0;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
}

.card__body {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.card__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2e4a63;
  color: #ffffff;
}

.card__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card__text {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-highlight);
  line-height: 1.72;
  opacity: 0.78;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.card__arrow {
  margin-top: auto;
  padding-top: var(--space-md);
  align-self: flex-end;
  color: var(--color-highlight);
  opacity: 0.55;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 300;
  display: inline-block;
}

/* ==========================================================================
   TABLET — 768 px
   Mehr Weißraum, größere Schrift, Karten bleiben groß.
   ========================================================================== */
@media (min-width: 768px) {
  .site-header {
    padding: 1.5rem 3rem 0;
  }

  .site-header__logo {
    font-size: 0.8rem;
    letter-spacing: 0.32em;
  }

  .hero {
    min-height: 92vh;
    min-height: 92svh;
  }

  .hero__media img {
    object-position: 70% 40%;
  }

  .hero__content {
    padding: 0 3rem 3rem;
  }

  .hero__title {
    font-size: 4.35rem;
    line-height: 1.1;
    letter-spacing: 0.24em;
  }

  .hero__kicker {
    font-size: 1.2rem;
    margin-top: var(--space-lg);
  }

  .hero__chip {
    font-size: 0.78rem;
    padding: 0.32rem 0.95rem;
  }

  .hero__lead {
    margin-top: var(--space-xl);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 620px;
  }

  .projects {
    padding: 4rem 3rem 6rem;
  }

  .projects__list {
    gap: 2rem;
  }

  .card {
    height: 30rem;
  }

  .card__body {
    padding: 2.15rem 2.15rem 2.4rem;
  }
}

/* ==========================================================================
   DESKTOP — 1440 px
   Weites Panorama, ruhiges Drei-Karten-Raster.
   ========================================================================== */
@media (min-width: 1440px) {
  .site-header {
    padding: 1.75rem 5rem 0;
  }

  .site-header__logo {
    font-size: 0.85rem;
    letter-spacing: 0.36em;
  }

  .hero {
    min-height: 108vh;
    min-height: 108svh;
  }

  .hero__content {
    padding: 0 5rem 3.5rem;
    width: 100%;
    margin: 0 auto;
  }

  .hero__media img {
    object-position: center 42%;
  }

  .hero__title {
    font-size: 5.75rem;
    line-height: 1.08;
    letter-spacing: 0.26em;
  }

  .hero__kicker {
    font-size: 1.35rem;
  }

  .hero__lead {
    font-size: 1.2rem;
    line-height: 1.82;
    max-width: 620px;
  }

  .projects {
    padding: 4rem 5rem 6rem;
  }

  .projects__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin: 0 auto;
  }

  .card {
    height: 32rem;
  }

  .card__body {
    flex: 1;
    justify-content: space-between;
    padding: 2.25rem 2.35rem 2.5rem;
  }
}

/* Desktop-Hover: sanfte Anhebung, weicher Schatten, einheitliche Transition. Mobile unverändert. */
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .card,
  .card__image img,
  .card__arrow {
    transition: transform var(--duration) var(--ease-soft),
      box-shadow var(--duration) var(--ease-soft);
  }

  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  }

  .card:hover .card__image img {
    transform: scale(1.025);
  }

  .card:hover .card__arrow {
    transform: translateX(4px);
  }
}

/* ==========================================================================
   FOOTER — nordischer Abschluss
   Keine Links, keine Navigation. Nur Typografie.
   ========================================================================== */
.site-footer {
  background: #0b0f14;
  color: #e5e7eb;
  padding: 0 1.25rem 5.5rem;
}

.site-footer__rule {
  height: 1px;
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(143, 169, 188, 0.18) 50%,
    transparent 100%
  );
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3.25rem;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 4.5rem 0 3.75rem;
}

.site-footer__name {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #e5e7eb;
  opacity: 0.72;
}

.site-footer__tagline {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #8fa9bc;
  opacity: 0.62;
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fa9bc;
  opacity: 0.4;
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  max-width: var(--max-content);
  margin: 0 auto;
}

.site-footer__copy {
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #e5e7eb;
  opacity: 0.46;
}

.site-footer__coords {
  font-size: 0.64rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8fa9bc;
  opacity: 0.36;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 0 3rem 5rem;
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    gap: 2rem;
    padding: 3.75rem 0 2.75rem;
  }

  .site-footer__list {
    align-items: flex-end;
    text-align: right;
  }

  .site-footer__meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
  }
}

@media (min-width: 1440px) {
  .site-footer {
    padding: 0 5rem 5.5rem;
  }

  .site-footer__inner {
    padding: 4.25rem 0 3rem;
  }
}
