@import url('tokens.css');

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

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--link);
  text-decoration: none;
  border: none;
  transition: opacity 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* —— Sticky site nav (apple.com pattern) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(var(--nav-blur));
  -webkit-backdrop-filter: saturate(180%) blur(var(--nav-blur));
  border-bottom: 1px solid var(--border-subtle);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
  min-height: var(--nav-height);
  gap: 1rem;
}

.site-nav__brand {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-nav__brand:hover {
  text-decoration: none;
  opacity: 0.8;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.125rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.site-nav__links a:hover {
  color: var(--text);
  text-decoration: none;
  opacity: 1;
}

/* Legacy nav (subpages until migrated) */
.main-nav,
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  padding: 0.75rem var(--section-padding-x);
  max-width: var(--section-max-width);
  margin: 0 auto;
  list-style: none;
}

.main-nav a,
.sub-nav a {
  font-size: var(--text-xs);
  color: var(--muted);
}

.main-nav a:hover,
.sub-nav a:hover,
.sub-nav a.active {
  color: var(--text);
  text-decoration: none;
}

/* —— Hero —— */
.hero {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) var(--section-padding-x)
    clamp(2rem, 5vw, 3rem);
  background: var(--bg);
}

.hero-inner {
  max-width: var(--hero-max-width);
  margin: 0 auto;
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: var(--eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1,
.hero__title {
  margin: 0 0 0.5rem;
  font-size: var(--h1);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}

.hero__subtitle {
  margin: 0 0 1rem;
  font-size: var(--h3);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.hero__lead {
  margin: 0 auto;
  max-width: 28rem;
  font-size: var(--text-lg);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.hero__media {
  margin: 1.5rem auto 0;
  max-width: 10rem;
}

.hero__media:has(.profile-img) {
  width: 120px;
  height: 120px;
  max-width: none;
  border-radius: var(--profile-img-radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--profile-img-bg, #ffffff);
}

.hero__media:has(.profile-img) picture {
  display: block;
  width: 100%;
  height: 100%;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  object-position: var(--profile-img-position);
  display: block;
  margin: 0 auto;
}

/* Startseite: großes Profilbild + Text nebeneinander (ab Tablet) */
.hero--landing {
  padding: clamp(2rem, 6vw, 4.5rem) var(--section-padding-x)
    clamp(2.5rem, 7vw, 4rem);
}

.hero--landing .hero-inner--split {
  display: grid;
  gap: clamp(1.75rem, 5vw, 2.5rem);
  align-items: center;
  justify-items: center;
  max-width: var(--section-max-width);
}

.hero--landing .hero__media {
  margin: 0;
  max-width: none;
}

.hero--landing .hero__media:has(.profile-img) {
  width: clamp(12rem, 50vw, 16rem);
  height: clamp(12rem, 50vw, 16rem);
}

.hero--landing .hero__copy {
  text-align: center;
}

.hero--landing .hero__title {
  margin-bottom: 0.35rem;
}

.hero--landing .hero__lead {
  margin: 0 auto 0.65rem;
  max-width: 22rem;
  font-size: var(--h3);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero--landing .hero__subtitle {
  margin: 0;
  font-size: var(--text-base);
  color: var(--muted);
}

@media (min-width: 768px) {
  .hero--landing .hero-inner--split {
    grid-template-columns: minmax(14rem, 20rem) 1fr;
    gap: clamp(2.5rem, 6vw, 4rem);
    justify-items: start;
  }

  .hero--landing .hero__media {
    justify-self: center;
  }

  .hero--landing .hero__media:has(.profile-img) {
    width: 20rem;
    height: 20rem;
  }

  .hero--landing .hero__copy {
    text-align: left;
  }

  .hero--landing .hero__lead {
    margin-left: 0;
    margin-right: 0;
    max-width: 28rem;
  }
}

/* —— Full-width sections —— */
.section {
  padding: var(--section-padding-y) var(--section-padding-x);
  background: var(--bg);
}

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

.section-inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
}

.section__eyebrow {
  margin: 0 0 0.5rem;
  font-size: var(--eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section h2,
.section__title {
  margin: 0 0 0.5rem;
  font-size: var(--h2);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.section__copy {
  margin: 0 0 1.25rem;
  max-width: 32rem;
  font-size: var(--text-lg);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.section__copy--secondary {
  margin-top: -0.75rem;
  font-size: var(--text-base);
}

.section--center {
  text-align: center;
}

.section--center .section__copy {
  margin-left: auto;
  margin-right: auto;
}

/* Two-column feature row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .feature-row--reverse .feature-row__media {
    order: 2;
  }
}

.feature-row__media img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.showcase-frame {
  margin: 0;
  padding: 0.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.showcase-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 4px);
}

.video-thumb {
  display: block;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: opacity 0.2s ease;
}

.video-thumb:hover {
  opacity: 0.92;
  text-decoration: none;
}

.video-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* YouTube-Kanal (videos.php) */
.channel-hero {
  text-align: center;
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.channel-hero__inner {
  max-width: var(--hero-max-width);
}

.channel-hero__title {
  margin: 0 0 0.35rem;
  font-size: var(--h1);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}

.channel-hero__handle {
  margin: 0 0 1rem;
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--link);
}

.channel-hero__copy {
  margin-left: auto;
  margin-right: auto;
}

.channel-hero__cta {
  justify-content: center;
  margin-top: 1.25rem;
}

.channel-hero__footer-cta {
  margin: 2rem 0 0;
  text-align: center;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1068px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-card {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.video-card .video-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-card__body {
  padding: 1rem 0 0;
}

.video-card__subject {
  margin: 0 0 0.35rem;
  font-size: var(--eyebrow);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.video-card__title {
  margin: 0 0 0.65rem;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
}

.preview-card {
  display: block;
  margin: 0;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.preview-card:hover {
  border-color: var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.preview-card__eyebrow {
  margin: 0 0 0.5rem;
  font-size: var(--eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.preview-card__title {
  margin: 0 0 0.75rem;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.preview-card__excerpt {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--muted);
}

.feature-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  max-width: 32rem;
}

.feature-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.25rem;
  font-size: var(--text-lg);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.section[id] {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.coming-soon {
  padding: 1.25rem 1.5rem;
  text-align: center;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 28rem;
  margin: 1.25rem auto 0;
}

.coming-soon p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: var(--text-base);
}

/* Blog */
.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-list li {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
}

.blog-list li:first-child {
  padding-top: 0;
}

.blog-list a,
.blog-list__link {
  color: inherit;
}

.blog-list__link {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.blog-list__cover {
  flex-shrink: 0;
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-alt);
}

.blog-list__body {
  display: block;
  min-width: 0;
}

.blog-list a:hover,
.blog-list__link:hover {
  text-decoration: none;
  opacity: 0.85;
}

.blog-list__title {
  display: block;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.blog-list__meta {
  font-size: var(--text-sm);
  color: var(--muted);
}

.blog-list__excerpt {
  margin: 0.5rem 0 0;
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.47;
}

.post-content {
  max-width: 42rem;
  margin: 0 auto;
  font-size: var(--text-base);
  line-height: 1.55;
  letter-spacing: -0.022em;
  overflow: visible;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 1.5rem 0 0.75rem;
}

.post-content h1 { font-size: var(--h3); }
.post-content h2 { font-size: var(--text-lg); font-weight: 600; }
.post-content p { margin: 0 0 1rem; color: var(--text); }
.post-content ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.post-content a { color: var(--link); }

.post-content strong {
  font-weight: 600;
}

.post-content em {
  font-style: italic;
}

.post-content u {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.post-content::after {
  content: '';
  display: table;
  clear: both;
}

.post-figure {
  margin: 1.5rem 0;
}

.post-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg, 18px);
  margin: 0;
}

.post-figure figcaption {
  margin-top: 0.5rem;
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.45;
  color: var(--muted, #6e6e73);
  text-align: center;
}

.post-figure--column {
  max-width: 100%;
}

.post-figure--inline {
  float: right;
  clear: right;
  max-width: min(280px, 46%);
  margin: 0.25rem 0 1rem 1.25rem;
}

.post-figure--wide {
  width: min(60rem, calc(100vw - 2.5rem));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.post-figure--full {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}

.post-figure--full img {
  border-radius: 0;
}

.post-quote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--border, #d2d2d7);
  color: var(--muted, #6e6e73);
  font-size: var(--text-lg, 1.25rem);
  line-height: 1.45;
}

.post-quote p {
  margin: 0;
}

.post-divider {
  border: none;
  border-top: 1px solid var(--border-subtle, #e8e8ed);
  margin: 2rem 0;
}

/* PDF carousel block */
.post-pdf-carousel {
  margin: 2rem auto;
  max-width: 42rem;
}

.post-pdf-carousel__heading {
  margin: 0 0 0.75rem;
  font-size: var(--text-lg, 1.125rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text, #1d1d1f);
}

.post-pdf-carousel__viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle, #e8e8ed);
  border-radius: var(--radius-md, 12px);
  background: var(--bg-alt, #f5f5f7);
}

.post-pdf-carousel__track {
  display: flex;
  transition: transform 0.45s ease;
  width: 100%;
}

.post-pdf-carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.post-pdf-carousel__embed {
  display: block;
  width: 100%;
  height: min(70vh, 520px);
  min-height: 280px;
  border: none;
  background: var(--bg, #fff);
}

.post-pdf-carousel__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 1.5rem;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 500;
  color: var(--link, #0066cc);
  text-decoration: none;
  text-align: center;
}

.post-pdf-carousel__fallback:hover {
  text-decoration: underline;
}

.post-pdf-carousel__slide-title {
  margin: 0;
  padding: 0.65rem 1rem 0.85rem;
  font-size: var(--text-sm, 0.875rem);
  color: var(--muted, #6e6e73);
  text-align: center;
  background: var(--bg, #fff);
  border-top: 1px solid var(--border-subtle, #e8e8ed);
}

.post-pdf-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.72);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.post-pdf-carousel__nav:hover {
  background: rgba(29, 29, 31, 0.9);
}

.post-pdf-carousel__nav:focus-visible {
  outline: 2px solid var(--link, #0066cc);
  outline-offset: 2px;
}

.post-pdf-carousel__nav--prev {
  left: 0.65rem;
}

.post-pdf-carousel__nav--next {
  right: 0.65rem;
}

.post-pdf-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.post-pdf-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border, #d2d2d7);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.post-pdf-carousel__dot.is-active {
  background: var(--text, #1d1d1f);
  transform: scale(1.15);
}

.post-pdf-carousel__dot:focus-visible {
  outline: 2px solid var(--link, #0066cc);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .post-pdf-carousel__embed {
    height: min(55vh, 420px);
    min-height: 220px;
  }

  .post-pdf-carousel__nav {
    width: 2rem;
    height: 2rem;
    font-size: 1.1rem;
  }
}

.post-cover {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.post-cover img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

.post-image-zoom {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  font: inherit;
  text-align: inherit;
}

.post-image-zoom:focus-visible {
  outline: 2px solid var(--link, #0066cc);
  outline-offset: 4px;
  border-radius: var(--radius-lg, 18px);
}

.post-figure--inline .post-image-zoom {
  width: 100%;
}

.post-figure--column .post-image-zoom,
.post-figure--wide .post-image-zoom,
.post-figure--full .post-image-zoom {
  display: block;
  width: 100%;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(0, 0, 0, 0.92);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.image-lightbox__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.image-lightbox__figure {
  margin: 0;
  max-width: min(96vw, 72rem);
  max-height: calc(100vh - 3rem);
}

.image-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 5rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

.image-lightbox__caption {
  margin: 0.75rem 0 0;
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

body.image-lightbox-open {
  overflow: hidden;
}

.preview-card__media {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 1rem;
}

/* Tool tiles (Werkzeuge) */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 600px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tool-tile {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 600px) {
  .tool-tile {
    padding: 1.5rem 1.25rem 1.5rem 0;
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
  }

  .tool-tile:last-child {
    border-right: none;
    padding-right: 0;
  }
}

.tool-tile h3 {
  margin: 0 0 0.35rem;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tool-tile p {
  margin: 0 0 0.75rem;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.4;
}

/* CTAs */
.cta-link {
  font-size: var(--text-base);
  color: var(--link);
  letter-spacing: -0.01em;
}

.cta-link:hover {
  text-decoration: underline;
}

.cta-button {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--surface);
  background: var(--accent);
  border-radius: 980px;
  letter-spacing: -0.01em;
}

.cta-button:hover {
  background: var(--accent-hover);
  text-decoration: none;
  opacity: 1;
}

/* —— Legacy / subpages —— */
header.page-header {
  text-align: center;
  padding: 2.5rem var(--section-padding-x) 1.5rem;
  background: var(--bg);
  border: none;
}

header.page-header h1 {
  margin: 0 0 0.35rem;
  font-size: var(--h2);
  font-weight: 600;
  letter-spacing: -0.03em;
}

header.page-header p {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--muted);
}

main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem var(--section-padding-x) 3rem;
}

main.wide,
main.page-main {
  max-width: var(--section-max-width);
}

main.page-main {
  padding-top: 1rem;
  overflow: visible;
}

main.page-main--tools {
  padding-top: 0;
}

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

/* Flat cards (subpages) */
.card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.card:last-child {
  border-bottom: none;
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

.card a {
  font-size: var(--text-base);
}

/* Portfolio strip (tiefe Unterprojekt-Seiten) */
.portfolio-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  max-width: var(--section-max-width, 980px);
  margin: 0 auto;
  padding: 0.65rem var(--section-padding-x, 1.25rem);
  font-family: var(--font, 'Inter', system-ui, sans-serif);
  font-size: 0.75rem;
  color: #6e6e73;
  background: #f5f5f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.portfolio-strip a {
  color: #0066cc;
  text-decoration: none;
}

.portfolio-strip a:hover {
  text-decoration: underline;
}

.portfolio-strip__sep {
  color: #6e6e73;
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: 0.75rem var(--section-padding-x) 0;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-xs);
  color: var(--muted);
}

.breadcrumbs__item:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--text);
  text-decoration: none;
}

.breadcrumbs [aria-current='page'] {
  color: var(--text);
}

/* Über-mich content */
.hero--compact {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.content-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.content-block:last-child {
  border-bottom: none;
}

.content-block h2 {
  margin: 0 0 0.75rem;
  font-size: var(--h3);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.content-block p {
  margin: 0;
  max-width: 36rem;
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.timeline li:last-child {
  border-bottom: none;
}

@media (min-width: 480px) {
  .timeline li {
    grid-template-columns: 7rem 1fr;
    gap: 1rem;
  }
}

.timeline__when {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
}

.timeline__body {
  display: grid;
  gap: 0.35rem;
}

.timeline__what {
  font-size: var(--text-base);
  color: var(--text);
}

.timeline__detail {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list li {
  padding: 0.35rem 0.85rem;
  font-size: var(--text-sm);
  color: var(--text);
  background: var(--bg-alt);
  border-radius: 980px;
}

/* Footer */
.site-footer {
  padding: 2rem var(--section-padding-x) 2.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
}

.site-footer__inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
  text-align: center;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
}

.site-footer__nav a {
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: -0.01em;
}

.site-footer__nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.site-footer p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: -0.01em;
}

footer {
  text-align: center;
  padding: 2rem var(--section-padding-x);
  font-size: var(--text-xs);
  color: var(--muted);
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
}

footer p {
  margin: 0;
}

/* Klassenprojekte */
.project-section {
  margin-bottom: 2.5rem;
}

.project-section h2 {
  margin: 0 0 1rem;
  font-size: var(--eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.project-card {
  background: var(--bg-alt);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 22rem;
}

.project-card a {
  color: inherit;
  display: block;
}

.project-card a:hover {
  text-decoration: none;
  opacity: 0.92;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 1rem 1.25rem 1.25rem;
}

.project-info h3 {
  margin: 0 0 0.35rem;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-info p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.course-group {
  margin-bottom: 2.5rem;
}

.course-group h2 {
  font-size: var(--eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1rem;
}

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

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

h3.video-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  margin: 0.75rem 0 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Scroll reveal (site.js) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
