/* kuenkler.de — static onepager */

:root {
  --ink: #0b1220;
  --ink-soft: #1a2436;
  --paper: #f2f4f7;
  --paper-2: #e7ebf1;
  --mist: #9aa6b5;
  --line: rgba(11, 18, 32, 0.12);
  --accent: #1f7a72;
  --accent-deep: #155e58;
  --warm: #d4a574;
  --white: #ffffff;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-deep);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--white);
  padding: 0.75rem 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.sans {
  font-family: "Syne", system-ui, sans-serif;
}

/* ——— Nav ——— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 1rem 0;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), padding 0.35s var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(14px);
  padding: 0.65rem 0;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.nav-brand img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.nav-brand span {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-family: "Syne", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  letter-spacing: 0.01em;
}

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

.nav-cta {
  font-family: "Syne", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  padding: 0.65rem 1.15rem;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--paper-2);
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  margin: 0.35rem auto;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0.45) 0%, rgba(11, 18, 32, 0.2) 28%, rgba(11, 18, 32, 0.55) 58%, rgba(11, 18, 32, 0.94) 100%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(31, 122, 114, 0.22), transparent 55%);
}

.hero-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 8rem 0 4.5rem;
}

.hero-brand {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  max-width: 12ch;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 22ch;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 38rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.45s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.6s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  font-family: "Syne", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--white);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-deep);
  color: var(--white);
}

/* ——— Sections ——— */
section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-kicker {
  font-family: "Syne", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.section-lead {
  color: #4a5568;
  max-width: 40rem;
  font-size: 1.125rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Intro */
.intro {
  background:
    linear-gradient(165deg, #f7f8fa 0%, var(--paper-2) 55%, #dde4ec 100%);
  position: relative;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

.intro .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.intro-copy p + p {
  margin-top: 1.25rem;
}

.intro-copy p {
  color: #334155;
  font-size: 1.125rem;
}

.intro-aside {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

.intro-aside p {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

/* Themen */
.themen {
  background: var(--white);
}

.themen-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.themen-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.thema {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.3s var(--ease);
}

.thema:hover {
  background: linear-gradient(90deg, rgba(31, 122, 114, 0.04), transparent 70%);
}

.thema-num {
  font-family: "Syne", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 0.35rem;
}

.thema h3 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.thema p {
  color: #556274;
  max-width: 48rem;
}

/* Haltung */
.haltung {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  overflow: hidden;
}

.haltung::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 55%;
  height: 140%;
  background: radial-gradient(circle, rgba(31, 122, 114, 0.28), transparent 65%);
  pointer-events: none;
}

.haltung .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.haltung blockquote {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.haltung cite {
  font-style: normal;
  font-family: "Syne", sans-serif;
  font-size: 0.9rem;
  color: var(--mist);
  display: block;
}

.haltung cite strong {
  display: block;
  color: var(--warm);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.haltung-photo {
  border-radius: 0.35rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.haltung-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Kontakt */
.kontakt {
  background:
    linear-gradient(180deg, var(--paper) 0%, #dfe7ef 100%);
  text-align: center;
}

.kontakt .section-title {
  max-width: 22ch;
  margin-inline: auto;
}

.kontakt .section-lead {
  margin-inline: auto;
  margin-bottom: 2rem;
}

.kontakt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.btn-outline {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Blog */
.gedanken {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.gedanken-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.gedanken-all {
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.gedanken-all:hover {
  color: var(--accent-deep);
}

.archive-main .section-title {
  max-width: 22ch;
}

.archive-title {
  margin-bottom: 0.75rem;
}

.archive-lead {
  margin-bottom: 1.75rem;
}

.topic-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-bottom: 2.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  font-family: "Syne", sans-serif;
  font-size: 0.9rem;
}

.topic-filter__item {
  color: var(--mist);
  text-decoration: none;
  font-weight: 500;
}

.topic-filter__item:hover,
.topic-filter__item.is-active {
  color: var(--ink);
}

.topic-filter__item.is-active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.archive-year {
  margin-bottom: 2.5rem;
}

.archive-year__title {
  font-family: "Syne", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.post-list {
  list-style: none;
}

.post-item a {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left 0.3s var(--ease);
}

.post-item:first-child a {
  border-top: 1px solid var(--line);
}

.post-item a:hover {
  padding-left: 0.5rem;
  color: var(--ink);
}

.post-date {
  font-family: "Syne", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--mist);
  letter-spacing: 0.02em;
}

.post-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.post-topic {
  font-family: "Syne", sans-serif;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  text-align: right;
  max-width: 14rem;
}

.post-arrow {
  display: none;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--mist);
  padding: 2.5rem 0;
  font-family: "Syne", sans-serif;
  font-size: 0.875rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer a {
  color: var(--mist);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

/* ——— Responsive ——— */
@media (max-width: 860px) {
  .intro .wrap,
  .haltung .wrap {
    grid-template-columns: 1fr;
  }

  .intro-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1.75rem;
  }

  .haltung-photo {
    order: -1;
    max-height: 20rem;
  }

  .post-item a {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .post-topic {
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav.is-open {
    background: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(14px);
  }

  .site-nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(11, 18, 32, 0.96);
    padding: 1.25rem 1.25rem 1.75rem;
    gap: 1.1rem;
  }

  .site-nav.is-open .nav-cta {
    display: inline-flex;
    position: absolute;
    right: 1.25rem;
    top: calc(100% + 11rem);
  }

  .thema {
    grid-template-columns: 2.5rem 1fr;
  }

  .hero-inner {
    padding-bottom: 3.25rem;
  }
}

/* ——— Article ——— */
.article-page {
  background: var(--white);
}

.article-main {
  padding: 7.5rem 0 4rem;
}

.article-wrap {
  max-width: 42rem;
}

.article-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-family: "Syne", sans-serif;
  font-size: 0.875rem;
  color: var(--mist);
  margin-bottom: 2.5rem;
}

.article-date {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  margin-bottom: 0;
}

.article-meta__sep {
  opacity: 0.7;
}

.article-read {
  color: var(--accent);
  font-weight: 500;
}

.article-body {
  font-size: 1.125rem;
  color: #334155;
}

.article-body h2,
.article-body h3 {
  font-family: "Syne", sans-serif;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}

.article-body p,
.article-body ul {
  margin-bottom: 1.15rem;
}

.article-body ul {
  padding-left: 1.25rem;
}

.article-body a {
  color: var(--accent-deep);
}

.article-back {
  margin-top: 3rem;
  font-family: "Syne", sans-serif;
  font-weight: 600;
}

.article-back a {
  text-decoration: none;
  color: var(--accent);
}

.article-back a:hover {
  color: var(--accent-deep);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-media img {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
