﻿/* Hauptaufteilung der Hero-Sektion */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

/* Startseitenlayout: Hero zwischen Header und Legal-Leiste einpassen */
.home-page #app {
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
}

.home-page #app .section:first-child {
  flex: 1;
  display: grid;
  align-items: center;
  padding: 28px 0 86px;
}

/* Gemeinsamer Karten-Look für alle Panels */
.hero-card,
.panel,
.project-card,
.link-card,
.footer-card,
.hub-card,
.legal-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Größere Innenabstände in der Hero-Karte */
.hero-card {
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}

/* Kleine Bereichs-Überschrift (z. B. Personal Website) */
.kicker {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

/* Konsistente Headline-Typografie */
h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.1;
}

/* Dynamische Hero-Headline */
.hero-title {
  margin-top: 14px;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
}

/* Lesbarer Begleittext */
.hero-text {
  margin-top: 14px;
  color: var(--text-soft);
  max-width: 58ch;
}

/* CTA-Buttons nebeneinander */
.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Basisstil für Buttons */
.btn {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 11px 18px;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Primarer CTA */
.btn.primary {
  border-color: transparent;
  background: var(--accent);
  color: #161616;
}

/* Rechte Spalte der Hero-Sektion */
.hero-side {
  padding: 24px;
  display: grid;
  gap: 12px;
}

/* Kleine Stat-Panel-Karte */
.panel {
  padding: 18px;
  border-radius: var(--radius-md);
}

.panel-link {
  display: block;
  transition: transform 180ms ease, border-color 180ms ease;
}

.panel-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
}

/* Label in den Stat-Panels */
.panel-label {
  color: var(--text-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* Wert in den Stat-Panels */
.panel-value {
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.panel-link-only .panel-value {
  margin: 0;
  line-height: 1.1;
}

.panel-link-only {
  display: flex;
  align-items: center;
}

/* Überschriftenblock für Sektionen */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

/* Sektionstitel */
.section-title {
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
}

/* Sektionstext */
.section-sub {
  color: var(--text-soft);
  max-width: 62ch;
}

/* Portfolio als 3-spaltiges Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Projektkarte */
.project-card {
  padding: 18px;
  border-radius: var(--radius-md);
}

/* Sekundärer Text in Karten */
.project-meta {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Tag-Liste für Tech-Stack */
.stack-list {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Einzelnes Tech-Tag */
.tag {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-soft);
}

/* Projekt-Link hervorheben */
.project-link {
  margin-top: 16px;
  display: inline-flex;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Gemeinsames Grid für Linktree und Hub */
.linktree-grid,
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Kachelstil für Links und Hub-Karten */
.link-card,
.hub-card {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.link-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.link-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
}

.link-copy {
  min-width: 0;
}

.link-copy .project-meta {
  margin-top: 4px;
}

/* Hub-Karten sind vertikal aufgebaut */
.hub-card {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  min-height: 170px;
}

/* Kleiner Hover-Lift für Interaktivität */
.link-card:hover,
.hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
}

/* Footer-Karte */
.footer-card {
  padding: 24px;
  text-align: center;
}

/* Kontakt-Mail im Akzent */
.footer-mail {
  color: var(--accent);
}

/* Rechtliche Links im Footer */
.legal-links {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}

.legal-links a:hover {
  color: var(--text-main);
  border-bottom-color: var(--accent-soft);
}

/* Button im Link-Stil für Cookie-Einstellungen */
.legal-inline-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.legal-inline-button:hover {
  color: var(--text-main);
  border-bottom-color: var(--accent-soft);
}

/* Feste Legal-Leiste am unteren Seitenrand */
.home-legal-bar-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(8px);
  z-index: 25;
}

/* Platz für die fixe Leiste auf allen Unterseiten */
body:not(.home-page) main {
  padding-bottom: 56px;
}

.home-legal-links {
  margin: 0;
  min-height: 42px;
  padding: 0 8px;
  font-size: 0.84rem;
  gap: 8px;
}

/* Stacks-Seite */
.stack-page .section {
  padding-top: 54px;
}

.stack-section {
  margin-top: 22px;
}

.stack-section-title {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tech-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-logo {
  width: 34px;
  height: 34px;
}

.tech-card h3 {
  font-size: 1rem;
}

.tech-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.tech-card a {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.9rem;
}

/* Styleguide-Seite */
.styleguide-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 122, 26, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow);
}

.styleguide-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.style-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.style-block {
  margin-top: 16px;
}

.style-card h2 {
  font-size: 1.05rem;
}

.style-card p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.style-copy {
  max-width: 68ch;
}

.swatch-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.swatch {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.14);
}

.swatch p {
  margin: 8px 0 0;
  font-size: 0.83rem;
}

.swatch-chip {
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.swatch-bg-main {
  background: #050505;
}

.swatch-bg-surface {
  background: #0d0d0d;
}

.swatch-text-main {
  background: #f3f3f3;
}

.swatch-accent {
  background: #ff7a1a;
}

.type-showcase {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.type-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.14);
}

.type-label {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.type-title {
  margin: 6px 0 0;
  color: var(--text-main);
  font-weight: 700;
}

.type-demo-head {
  margin: 10px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  color: var(--text-main);
}

.type-demo-body {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Layout für Impressum und Datenschutz */
.legal-card {
  padding: 28px;
}

.legal-card h2 {
  margin-top: 24px;
  font-size: 1.15rem;
}

.legal-card p {
  margin-top: 10px;
  color: var(--text-soft);
}

.legal-note {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.legal-warning {
  color: #ffd2a8;
}

/* Einfaches Consent-Banner */
.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(440px, calc(100vw - 24px));
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #101010;
  box-shadow: var(--shadow);
  z-index: 40;
}

.cookie-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.cookie-text {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.cookie-text a {
  color: var(--accent);
}

.cookie-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-main);
  padding: 9px 14px;
  font: inherit;
  cursor: pointer;
}

.cookie-btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: #161616;
}

/* Tablet/Mobile Layout */
@media (max-width: 960px) {
  .hero-grid,
  .portfolio-grid,
  .linktree-grid,
  .hub-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .styleguide-grid,
  .swatch-grid,
  .type-showcase {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 28px;
  }

  .legal-card {
    padding: 22px;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
  }

  .home-page #app .section:first-child {
    padding-top: 20px;
    padding-bottom: 74px;
  }

  .home-legal-links {
    min-height: 40px;
    font-size: 0.82rem;
  }
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  body:not(.home-page) main {
    padding-bottom: 72px;
  }

  .hero-side {
    padding: 14px;
  }

  .panel {
    min-height: 78px;
  }

  .home-legal-links {
    min-height: auto;
    padding: 7px 10px;
    gap: 6px;
    font-size: 0.8rem;
  }
}
