/* =========================================
   Grundeinstellungen
========================================= */

:root {
  --color-bg: #f5f4ef;
  --color-surface: #ffffff;
  --color-text: #171a1f;
  --color-muted: #656b73;
  --color-dark: #10141a;
  --color-dark-soft: #171c24;
  --color-accent: #12b767;
  --color-accent-dark: #0E9252;
  --color-border: rgba(23, 26, 31, 0.12);

  --shadow-soft: 0 24px 70px rgba(16, 20, 26, 0.12);
  --shadow-card: 0 18px 45px rgba(16, 20, 26, 0.08);

  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;

  --container-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: var(--color-dark);
  background: var(--color-accent);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 40px), var(--container-width));
  margin-inline: auto;
}


/* =========================================
   Header und Navigation
========================================= */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  padding: 18px 0;
  background: rgba(245, 244, 239, 0.82);
  border-bottom: 1px solid rgba(23, 26, 31, 0.07);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--color-dark);
  background: var(--color-accent);
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(168, 209, 0, 0.25);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #42474f;
  font-size: 0.95rem;
  font-weight: 650;
}

.main-nav a {
  position: relative;
  transition: color 180ms ease;
}

.main-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--color-accent-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

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

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 10px 17px;
  color: var(--color-bg);
  background: var(--color-dark);
  border-radius: 999px;
}


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

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: 150px 0 90px;
  overflow: hidden;
  align-items: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(23, 26, 31, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 26, 31, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero-glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}

.hero-glow-one {
  top: 8%;
  right: 2%;
  width: 420px;
  height: 420px;
  background: rgba(215, 255, 88, 0.4);
}

.hero-glow-two {
  bottom: 2%;
  left: -8%;
  width: 330px;
  height: 330px;
  background: rgba(147, 168, 255, 0.18);
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(55px, 8vw, 110px);
}

.eyebrow,
.section-label {
  margin: 0 0 15px;
  color: #5a650d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, #20272f, #6f790f);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-text {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--color-dark);
  background: var(--color-accent);
  box-shadow: 0 14px 35px rgba(167, 208, 0, 0.22);
}

.button-primary:hover {
  background: #e0ff7c;
  box-shadow: 0 18px 42px rgba(167, 208, 0, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.48);
  border-color: var(--color-border);
}

.button-secondary:hover {
  background: var(--color-surface);
  border-color: rgba(23, 26, 31, 0.22);
}

.hero-facts {
  display: flex;
  gap: clamp(25px, 4vw, 50px);
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  display: grid;
  gap: 1px;
}

.hero-facts strong {
  font-size: 1.15rem;
  line-height: 1;
}

.hero-facts span {
  color: var(--color-muted);
  font-size: 0.83rem;
}

.hero-visual {
  position: relative;
}

.profile-card {
  position: relative;
  max-width: 480px;
  min-height: 610px;
  margin-inline: auto;
  padding: 25px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 44px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

.profile-card::after {
  position: absolute;
  top: 120px;
  right: -120px;
  width: 300px;
  height: 300px;
  content: "";
  background: var(--color-accent);
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.68;
}

.profile-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.78rem;
  align-items: center;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #64c476;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(100, 196, 118, 0.13);
}

.avatar {
  position: relative;
  z-index: 2;
  display: grid;
  width: 168px;
  height: 168px;
  margin: 55px auto 35px;
  place-items: center;
  color: var(--color-bg);
  background:
    radial-gradient(circle at 35% 25%, #404b58, #11161c 68%);
  border: 9px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  box-shadow: 0 22px 45px rgba(16, 20, 26, 0.22);
}

.avatar span {
  font-size: 3.1rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.profile-card-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.profile-role {
  margin: 0 0 8px;
  color: #67720c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-card h2 {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.profile-card-content > p:last-child {
  max-width: 330px;
  margin: 16px auto 0;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.code-window {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 22px;
  left: 22px;
  overflow: hidden;
  color: #dbe4ee;
  background: rgba(16, 20, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 19px;
  box-shadow: 0 24px 50px rgba(16, 20, 26, 0.25);
}

.code-window-bar {
  display: flex;
  gap: 6px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-window-bar span {
  width: 8px;
  height: 8px;
  background: #4c5662;
  border-radius: 50%;
}

.code-window pre {
  margin: 0;
  padding: 18px 20px 21px;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.73rem;
  line-height: 1.7;
}

.code-keyword {
  color: #ca8cff;
}

.code-string {
  color: #12b767;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: grid;
  width: 30px;
  height: 49px;
  border: 1px solid rgba(23, 26, 31, 0.25);
  border-radius: 999px;
  transform: translateX(-50%);
  place-items: start center;
}

.scroll-hint span {
  width: 5px;
  height: 9px;
  margin-top: 9px;
  background: var(--color-text);
  border-radius: 999px;
  animation: scrollDown 1.7s infinite;
}

@keyframes scrollDown {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(17px);
  }
}


/* =========================================
   Allgemeine Abschnitte
========================================= */

.section {
  padding: clamp(90px, 11vw, 145px) 0;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(55px, 8vw, 110px);
}

.section-title {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.section-title span {
  display: block;
  color: #727a82;
}

.prose {
  color: #4e545c;
  font-size: 1.08rem;
}

.prose > p {
  margin: 0 0 24px;
}

.prose > p:first-child {
  color: var(--color-text);
  font-size: 1.24rem;
}

.quote {
  display: grid;
  margin-top: 45px;
  padding: 26px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  grid-template-columns: auto 1fr;
  gap: 16px;
}

.quote span {
  color: var(--color-accent-dark);
  font-family: Georgia, serif;
  font-size: 3.6rem;
  line-height: 0.9;
}

.quote p {
  margin: 0;
  color: var(--color-text);
  font-weight: 650;
}

.section-heading {
  display: grid;
  margin-bottom: 55px;
  align-items: end;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;
}

.section-intro {
  max-width: 480px;
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}


/* =========================================
   Arbeit
========================================= */

.section-dark {
  color: #f2f4f5;
  background: var(--color-dark);
}

.section-dark .section-label {
  color: var(--color-accent);
}

.section-dark .section-title span {
  color: #7d8791;
}

.section-dark .section-intro {
  color: #a7afb8;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-card {
  position: relative;
  min-height: 355px;
  padding: 28px;
  overflow: hidden;
  background: var(--color-dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.work-card:hover {
  background: #1b212a;
  border-color: rgba(215, 255, 88, 0.28);
  transform: translateY(-6px);
}

.featured-card {
  color: var(--color-dark);
  background: var(--color-accent);
}

.featured-card:hover {
  background: #deff73;
}

.card-number {
  position: absolute;
  top: 25px;
  right: 25px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.featured-card .card-number {
  color: rgba(16, 20, 26, 0.38);
}

.card-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 75px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  place-items: center;
}

.featured-card .card-icon {
  background: rgba(16, 20, 26, 0.09);
}

.card-icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.work-card h3 {
  margin: 0 0 13px;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.work-card p {
  margin: 0;
  color: #aab2ba;
  font-size: 0.95rem;
}

.featured-card p {
  color: rgba(16, 20, 26, 0.72);
}

.skills {
  display: grid;
  margin-top: 42px;
  padding-top: 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  align-items: start;
  grid-template-columns: 160px 1fr;
  gap: 25px;
}

.skills > p {
  margin: 8px 0 0;
  color: #8e98a3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills li {
  padding: 8px 14px;
  color: #dce1e5;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.86rem;
}


/* =========================================
   Hobbies
========================================= */

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.hobby-card {
  position: relative;
  display: flex;
  min-height: 320px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(23, 26, 31, 0.08);
  border-radius: var(--radius-md);
  align-items: flex-end;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.hobby-card::before,
.hobby-card::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.hobby-card::before {
  top: -90px;
  right: -50px;
  width: 230px;
  height: 230px;
  background: rgba(255, 255, 255, 0.35);
}

.hobby-card::after {
  top: 27px;
  right: 38px;
  width: 90px;
  height: 90px;
  border: 18px solid rgba(255, 255, 255, 0.32);
}

.hobby-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-5px);
}

.hobby-bike {
  background: linear-gradient(145deg, #12b767, #b8e32c);
}

.hobby-dog {
  background: linear-gradient(145deg, #d7ddea, #bfc8da);
}

.hobby-cooking {
  background: linear-gradient(145deg, #ffc9a6, #f0a77a);
}

.hobby-music {
  color: #f3f5f6;
  background: linear-gradient(145deg, #282e38, #14181e);
}

.hobby-content {
  position: relative;
  z-index: 2;
  max-width: 440px;
}

.hobby-tag {
  display: inline-flex;
  padding: 7px 11px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hobby-music .hobby-tag {
  background: rgba(255, 255, 255, 0.1);
}

.hobby-card h3 {
  margin: 0 0 10px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.hobby-card p {
  max-width: 480px;
  margin: 0;
  color: rgba(16, 20, 26, 0.7);
}

.hobby-music p {
  color: #aeb6bf;
}

.hobby-symbol {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 30px;
  font-size: 1.4rem;
  font-weight: 800;
}


/* =========================================
   Kontakt und Footer
========================================= */

.contact-section {
  padding-top: 25px;
}

.contact-card {
  display: grid;
  padding: clamp(38px, 6vw, 72px);
  color: #f4f6f7;
  background:
    radial-gradient(circle at 90% 10%, rgba(215, 255, 88, 0.2), transparent 31%),
    var(--color-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  align-items: end;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
}

.contact-card .section-label {
  color: var(--color-accent);
}

.contact-card h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.contact-card p:not(.section-label) {
  max-width: 650px;
  margin: 24px 0 0;
  color: #aeb6bf;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.button-light {
  color: var(--color-dark);
  background: var(--color-accent);
}

.button-light:hover {
  background: #e0ff7c;
}

.text-link {
  display: flex;
  min-height: 48px;
  padding: 0 4px;
  color: #d8dde1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: space-between;
  transition:
    color 180ms ease,
    padding 180ms ease;
}

.text-link:hover {
  padding-right: 8px;
  padding-left: 8px;
  color: var(--color-accent);
}

.site-footer {
  padding: 30px 0 38px;
}

.footer-inner {
  display: flex;
  gap: 25px;
  color: var(--color-muted);
  font-size: 0.84rem;
  align-items: center;
  justify-content: space-between;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--color-text);
  font-weight: 700;
}




/* =========================================
   Impressum
========================================= */

.legal-section {
  padding-top: 55px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(55px, 8vw, 110px);
  align-items: start;
}

.legal-intro {
  max-width: 540px;
  margin: 28px 0 0;
  color: var(--color-muted);
  font-size: 1.02rem;
}

.legal-card {
  padding: clamp(28px, 5vw, 46px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.legal-block + .legal-block {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
}

.legal-block h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.legal-block p,
.legal-block address {
  margin: 0;
  color: var(--color-muted);
  font-style: normal;
}

.legal-block strong {
  color: var(--color-text);
}

.legal-block a {
  color: #0e9252;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.optional-field {
  color: #858b92;
}

.legal-note {
  margin: 34px 0 0;
  padding: 18px 20px;
  color: #596168;
  background: #eef7f1;
  border-left: 4px solid #12b767;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  gap: 22px;
  align-items: center;
}


/* =========================================
   Barrierefreiheit und Responsive Design
========================================= */

a:focus-visible {
  outline: 3px solid var(--color-accent-dark);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 145px;
  }

  .hero-grid,
  .two-column,
  .section-heading,
  .contact-card,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 65px;
  }

  .hero-content {
    max-width: 780px;
  }

  .profile-card {
    max-width: 560px;
  }

  .two-column {
    gap: 45px;
  }

  .section-heading {
    gap: 28px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 290px;
  }

  .card-icon {
    margin-bottom: 55px;
  }

  .contact-card {
    gap: 42px;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 0;
  }

  .header-inner {
    align-items: flex-start;
  }

  .main-nav {
    max-width: 260px;
    gap: 12px 18px;
    font-size: 0.84rem;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .nav-cta {
    padding: 7px 12px;
  }

  .hero {
    padding-top: 155px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .hero-facts {
    gap: 24px;
  }

  .profile-card {
    min-height: 570px;
    border-radius: 32px;
  }

  .avatar {
    width: 145px;
    height: 145px;
    margin-top: 45px;
  }

  .hobby-grid {
    grid-template-columns: 1fr;
  }

  .skills {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .skills > p {
    margin-top: 0;
  }

  .scroll-hint {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 500px) {
  .container {
    width: min(calc(100% - 26px), var(--container-width));
  }

  .logo > span:last-child {
    display: none;
  }

  .main-nav {
    max-width: 285px;
  }

  .main-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 125px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    justify-content: space-between;
  }

  .hero-facts li:nth-child(2) {
    display: none;
  }

  .profile-card {
    min-height: 545px;
    padding: 20px;
  }

  .code-window {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .code-window pre {
    padding: 16px;
    font-size: 0.65rem;
  }

  .section {
    padding: 82px 0;
  }

  .section-title {
    font-size: 2.65rem;
  }

  .quote {
    padding: 22px;
  }

  .work-card,
  .hobby-card {
    padding: 25px;
  }

  .hobby-card {
    min-height: 295px;
  }

  .contact-section {
    padding-top: 0;
  }

  .contact-card {
    width: calc(100% - 20px);
    padding: 34px 24px;
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
