/* ============================================================
   Die Entwicklungshelferin – Design System
   ============================================================ */

/* League Spartan (self-hosted, variable font) */
@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/league-spartan-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/league-spartan-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand */
  --color-petrol: #0c6477;
  --color-petrol-dark: #094f5e;
  --color-petrol-light: #1a7d92;
  --color-sand: #e7e0cc;

  /* Akzente (aus den Prozess-Kacheln) */
  --color-mustard: #f0d77a;
  --color-graublau: #a9b8b9;
  --color-salbei: #a9c89d;

  /* Neutrale Töne */
  --color-bg: #fafaf7;
  --color-surface: #ffffff;
  --color-surface-alt: #f3f1ea;
  --color-text: #1f2a2f;
  --color-text-muted: #5a6b71;
  --color-border: #e3e1d8;

  /* Typografie */
  --font-sans: "League Spartan", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.625rem;
  --fs-xl: 2.25rem;
  --fs-2xl: 3rem;
  --fs-3xl: 4rem;

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-relaxed: 1.65;

  --ls-tight: -0.01em;
  --ls-normal: 0;
  --ls-wide: 0.04em;
  --ls-widest: 0.18em;

  /* Layout */
  --container-max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3rem, 8vw, 6rem);

  /* Form */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(12, 100, 119, 0.06);
  --shadow-md: 0 6px 24px rgba(12, 100, 119, 0.1);
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

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

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

p {
  margin: 0 0 1em;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

h1 {
  font-size: clamp(var(--fs-xl), 5vw, var(--fs-3xl));
}

h2 {
  font-size: clamp(var(--fs-lg), 3.5vw, var(--fs-2xl));
}

h3 {
  font-size: var(--fs-lg);
}

/* ============================================================
   Container & Section
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--surface {
  background: var(--color-surface-alt);
}

.section--bokeh {
  background-color: var(--color-surface-alt);
  background-image:
    linear-gradient(rgba(247, 245, 238, 0.82), rgba(247, 245, 238, 0.82)),
    url("assets/bokeh-hell.jpg");
  background-size: cover;
  background-position: center;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  background: var(--color-petrol);
  color: var(--color-sand);
  padding-block: 1.25rem;
  position: relative;
  z-index: 5;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  min-height: 64px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  padding-left: 102px;
}

.site-header__logo {
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 109px;
  height: 109px;
}

.site-header__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: var(--ls-normal);
  margin: 0;
  color: var(--color-sand);
}

.site-nav {
  display: flex;
  gap: 2.5rem;
}

.site-nav a {
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-sand);
  opacity: 0.85;
  transition: opacity 0.18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
  border-bottom: 1px solid currentColor;
}

@media (max-width: 720px) {
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    min-height: 0;
  }

  .site-header__brand {
    padding-left: 80px;
    min-height: 64px;
  }

  .site-header__logo {
    width: 72px;
    height: 72px;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
  }

  .site-header__title {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .site-nav {
    gap: 1.4rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(231, 224, 204, 0.18);
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .hero__inner {
    align-items: start;
  }

  .hero__cta {
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .skill-cloud {
    justify-content: center;
    max-width: 100%;
    gap: 0.4rem 0.8rem;
  }

  .skill-cloud .sc-xl {
    font-size: 1.25rem;
  }

  .skill-cloud .sc-l {
    font-size: 1rem;
  }

  .skill-cloud .sc-m {
    font-size: 0.85rem;
  }

  .skill-cloud .sc-s {
    font-size: 0.72rem;
  }

  .hero__portrait {
    height: auto;
    max-height: 55vh;
    object-fit: cover;
    object-position: center center;
  }

  .process__head {
    justify-content: center;
    text-align: center;
  }

  .site-footer__grid {
    text-align: center;
  }

  .site-footer__legal {
    justify-content: center;
  }

  .site-footer address {
    display: inline-block;
    text-align: left;
  }

  .site-footer__logo {
    margin-inline: auto;
    margin-left: auto;
  }
}

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

.hero {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
  background-color: var(--color-surface-alt);
  background-image: url("assets/bokeh-hell.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 250, 247, 0.2) 0%, rgba(250, 250, 247, 0.55) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  }
}

.hero__claim {
  font-size: clamp(1.4rem, 2.8vw, 2.25rem);
  line-height: 1.4;
  color: var(--color-petrol);
  font-weight: 500;
  margin: 0;
  letter-spacing: var(--ls-normal);
  max-width: 38ch;
  text-wrap: balance;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.hero__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Skill Cloud (Hero)
   ============================================================ */

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: baseline;
  line-height: 1.2;
  max-width: 720px;
}

.skill-cloud span {
  color: var(--color-petrol);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.skill-cloud span:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.skill-cloud .sc-xl {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 700;
  opacity: 1;
}

.skill-cloud .sc-l {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 600;
  opacity: 0.88;
}

.skill-cloud .sc-m {
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  font-weight: 500;
  opacity: 0.7;
}

.skill-cloud .sc-s {
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  font-weight: 500;
  opacity: 0.55;
}

/* ============================================================
   Ticker (laufender Banner)
   ============================================================ */

.ticker {
  background: rgba(169, 184, 185, 0.55);
  backdrop-filter: blur(2px);
  padding-block: 1.1rem;
  overflow: hidden;
  color: var(--color-petrol);
  font-weight: 600;
  font-size: var(--fs-md);
  letter-spacing: var(--ls-tight);
}

.ticker__inner {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.ticker__lead {
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-size: var(--fs-sm);
  opacity: 0.85;
}

.ticker__track {
  display: flex;
  flex: 1;
  overflow: hidden;
  gap: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ticker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 3rem;
  flex-shrink: 0;
  padding-inline-end: 3rem;
  animation: ticker-scroll 60s linear infinite;
  white-space: nowrap;
}

.ticker__list li::before {
  content: "·";
  margin-inline-end: 3rem;
  opacity: 0.5;
}

.ticker__list li:first-child::before {
  content: "";
  margin: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  .ticker__list {
    animation: none;
  }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-block;
  padding: 0.95em 1.6em;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
  background: var(--color-petrol);
  color: var(--color-sand);
}

.btn--primary:hover {
  background: var(--color-petrol-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--color-petrol);
  border-color: var(--color-petrol);
}

.btn--ghost:hover {
  background: var(--color-petrol);
  color: var(--color-sand);
}

.btn--mustard {
  background: var(--color-mustard);
  color: var(--color-text);
}

.btn--mustard:hover {
  background: #e6c95f;
}

/* ============================================================
   Säulen-Sektion
   ============================================================ */

.pillars__title {
  margin-bottom: 2rem;
  color: var(--color-petrol);
}

.pillars__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 3rem;
}

@media (min-width: 720px) {
  .pillars__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pillar h3 {
  color: var(--color-petrol);
  margin-bottom: 0.75em;
}

.pillar p {
  color: var(--color-text);
}

/* ============================================================
   Prozess-Kacheln
   ============================================================ */

.process__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.process__title {
  color: var(--color-petrol);
  margin: 0;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.tile {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tile h3 {
  font-size: var(--fs-md);
  margin: 0;
}

.tile p {
  font-size: var(--fs-sm);
  margin: 0;
  line-height: var(--lh-snug);
}

.tile--mustard { background: var(--color-mustard); color: var(--color-text); }
.tile--graublau { background: var(--color-graublau); color: var(--color-text); }
.tile--salbei { background: var(--color-salbei); color: var(--color-text); }
.tile--petrol { background: var(--color-petrol); color: var(--color-sand); }
.tile--petrol h3 { color: var(--color-sand); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--color-petrol);
  color: var(--color-sand);
  padding-block: 3rem;
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: auto 1fr auto;
  }
}

.site-footer__logo {
  width: 96px;
  height: 96px;
  margin-left: -12px;
}

.site-footer address {
  font-style: normal;
}

.site-footer__legal {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.site-footer__legal a {
  border-bottom: 1px solid transparent;
}

.site-footer__legal a:hover {
  border-bottom-color: currentColor;
}

.site-footer__copyright {
  margin-top: 2rem;
  font-size: var(--fs-xs);
  opacity: 0.7;
  text-align: center;
}

/* ============================================================
   Page Header (Unterseiten)
   ============================================================ */

.page-header {
  background: var(--color-petrol);
  color: var(--color-sand);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.page-header__title {
  color: var(--color-sand);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: var(--ls-tight);
}

.page-header__lead {
  color: var(--color-sand);
  opacity: 0.85;
  font-size: var(--fs-md);
  margin-top: 0.5rem;
  max-width: 50ch;
}

/* ============================================================
   About (Über mich)
   ============================================================ */

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
    gap: 4rem;
  }
}

.about__portrait {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.about__body p {
  margin-bottom: 1.25em;
}

.about__highlight {
  font-weight: 600;
  color: var(--color-petrol);
  font-size: var(--fs-md);
  margin-top: 2rem;
}

/* ============================================================
   Kontaktseite
   ============================================================ */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.contact__info h2 {
  color: var(--color-petrol);
  margin-top: 0;
  font-size: var(--fs-lg);
}

.contact__info p {
  margin-bottom: 0.75em;
}

.contact__info a {
  color: var(--color-petrol);
  text-decoration: underline;
}

/* ============================================================
   Form
   ============================================================ */

.form {
  display: grid;
  gap: 1.5rem;
  position: relative;
}

.form__row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 540px) {
  .form__row--two {
    grid-template-columns: 1fr 1fr;
  }
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.form__input,
.form__textarea {
  font-family: inherit;
  font-size: var(--fs-base);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-petrol);
  box-shadow: 0 0 0 3px rgba(12, 100, 119, 0.18);
}

.form__textarea {
  min-height: 160px;
  resize: vertical;
  line-height: var(--lh-relaxed);
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

.form__hint {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin: 0;
}

.form__hint a {
  text-decoration: underline;
  color: var(--color-petrol);
}

.form__status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}

.form__status--success {
  background: rgba(169, 200, 157, 0.35);
  color: var(--color-text);
  border: 1px solid var(--color-salbei);
}

.form__status--error {
  background: rgba(180, 60, 60, 0.12);
  color: #8c2c2c;
  border: 1px solid rgba(180, 60, 60, 0.4);
}

.form__status[hidden] {
  display: none;
}

/* ============================================================
   Legal (Impressum, Datenschutz)
   ============================================================ */

.legal {
  max-width: 760px;
}

.legal h2 {
  color: var(--color-petrol);
  font-size: var(--fs-lg);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal > h2:first-of-type {
  margin-top: 0;
}

.legal h3 {
  color: var(--color-text);
  font-size: var(--fs-md);
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal p,
.legal ul,
.legal address {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.legal a {
  color: var(--color-petrol);
  text-decoration: underline;
}

.legal address {
  font-style: normal;
  margin-bottom: 1em;
}

.legal ul {
  padding-left: 1.25rem;
  margin-bottom: 1em;
}

.legal ul li {
  margin-bottom: 0.4em;
}

/* ============================================================
   Cookie-Banner
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 100;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(12, 100, 119, 0.18);
  padding: 1.5rem;
  max-width: 540px;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .cookie-banner {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    margin-inline: 0;
  }
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-petrol);
  margin: 0 0 0.5rem;
  letter-spacing: var(--ls-tight);
}

.cookie-banner__text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin: 0 0 1.25rem;
  color: var(--color-text);
}

.cookie-banner__text a {
  color: var(--color-petrol);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookie-banner__actions .btn {
  flex: 1 1 auto;
  min-width: 130px;
  padding: 0.75em 1.2em;
  font-size: var(--fs-xs);
}

@media (min-width: 720px) {
  .cookie-banner__actions {
    justify-content: flex-end;
  }

  .cookie-banner__actions .btn {
    flex: 0 0 auto;
  }
}

.cookie-settings-link {
  background: none;
  border: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

/* ============================================================
   Mobile Overrides (am Ende, damit sie die Defaults überschreiben)
   ============================================================ */

@media (max-width: 720px) {
  .hero__cta {
    align-items: center;
    text-align: center;
  }

  .skill-cloud {
    justify-content: center;
    max-width: 100%;
    gap: 0.4rem 0.8rem;
  }

  .skill-cloud .sc-xl {
    font-size: 1.25rem;
  }

  .skill-cloud .sc-l {
    font-size: 1rem;
  }

  .skill-cloud .sc-m {
    font-size: 0.85rem;
  }

  .skill-cloud .sc-s {
    font-size: 0.72rem;
  }

  .hero__portrait {
    height: auto;
    max-height: 55vh;
    object-fit: cover;
    object-position: center center;
  }

  .hero__inner {
    align-items: start;
  }

  .process__head {
    justify-content: center;
    text-align: center;
  }

  .site-footer__grid {
    text-align: center;
  }

  .site-footer__legal {
    justify-content: center;
  }

  .site-footer address {
    display: inline-block;
    text-align: left;
  }

  .site-footer__logo {
    margin-inline: auto;
  }
}
