/* ==========================================================================
   Werkelkeller Landing Page — Page-specific Styles
   Requires: assets/brand/tokens.css + assets/brand/components.css
   ========================================================================== */

/* ==========================================================================
   BASE / BODY
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--wk-bg);
  color: var(--wk-text);
  font-family: var(--wk-font-body);
  font-size: var(--wk-text-base);
  line-height: var(--wk-leading-base);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   LAYOUT — SECTIONS
   ========================================================================== */

.section {
  padding: var(--wk-space-20) var(--wk-space-6);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.section--hero {
  padding-top: var(--wk-space-24);
  padding-bottom: var(--wk-space-20);
  text-align: center;
}

.section-heading {
  margin-bottom: var(--wk-space-12);
}

.section-heading .wk-h2 {
  margin: 0 0 var(--wk-space-3) 0;
}

.section-heading .wk-body {
  margin: 0;
  color: var(--wk-text-secondary);
  font-size: var(--wk-text-lg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: var(--wk-radius-2xl);
  margin-bottom: var(--wk-space-8);
  box-shadow: var(--wk-glow-violet);
}

.hero-title {
  font-family: var(--wk-font-heading);
  font-size: var(--wk-text-6xl);
  font-weight: var(--wk-font-extrabold);
  line-height: var(--wk-leading-6xl);
  letter-spacing: var(--wk-tracking-tighter);
  margin: 0 0 var(--wk-space-6) 0;
  background: linear-gradient(135deg, var(--wk-color-glow-violet), var(--wk-color-glow-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero-tagline {
  font-family: var(--wk-font-body);
  font-size: var(--wk-text-xl);
  font-weight: var(--wk-font-normal);
  color: var(--wk-text-secondary);
  line-height: var(--wk-leading-xl);
  max-width: 600px;
  margin: 0 auto var(--wk-space-10) auto;
}

.hero-actions {
  display: flex;
  gap: var(--wk-space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero CTA button — larger variant */
.hero-actions .wk-btn-primary {
  padding: var(--wk-space-3) var(--wk-space-8);
  font-size: var(--wk-text-base);
  font-weight: var(--wk-font-semibold);
  letter-spacing: var(--wk-tracking-wide);
}

.hero-actions .wk-btn-primary:hover {
  box-shadow: var(--wk-glow-violet);
  transform: translateY(-1px);
  transition: transform var(--wk-duration-normal) var(--wk-easing-out),
              box-shadow var(--wk-duration-normal) var(--wk-easing-out);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content p {
  color: var(--wk-text-secondary);
  font-size: var(--wk-text-lg);
  line-height: var(--wk-leading-lg);
  margin: 0 0 var(--wk-space-4) 0;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   PROJECTS GRID
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--wk-space-6);
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--wk-duration-normal) var(--wk-easing-out),
              box-shadow var(--wk-duration-normal) var(--wk-easing-out);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--wk-shadow-3);
}

.project-card .wk-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--wk-space-3);
  margin-bottom: var(--wk-space-3);
}

.project-card .wk-card-title {
  font-size: var(--wk-text-xl);
  font-weight: var(--wk-font-bold);
}

.project-card .wk-card-body {
  flex: 1;
  color: var(--wk-text-secondary);
  font-size: var(--wk-text-sm);
  line-height: var(--wk-leading-sm);
  margin-bottom: var(--wk-space-4);
}

.project-card .wk-card-footer {
  margin-top: auto;
  flex-wrap: wrap;
  gap: var(--wk-space-2);
}

.project-card-link {
  color: var(--wk-link);
  text-decoration: none;
  font-size: var(--wk-text-sm);
  font-weight: var(--wk-font-medium);
  display: inline-flex;
  align-items: center;
  gap: var(--wk-space-1);
  transition: color var(--wk-duration-fast) var(--wk-easing-default);
}

.project-card-link:hover {
  color: var(--wk-link-hover);
}

.project-card-link::after {
  content: "→";
}

/* Status badge for live projects */
.badge-live {
  background-color: var(--wk-color-secondary-900);
  color: var(--wk-color-secondary-300);
  font-size: var(--wk-text-xs);
  font-weight: var(--wk-font-semibold);
  padding: 2px 8px;
  border-radius: var(--wk-radius-full);
  letter-spacing: var(--wk-tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-soon {
  background-color: var(--wk-color-accent-900);
  color: var(--wk-color-accent-300);
  font-size: var(--wk-text-xs);
  font-weight: var(--wk-font-semibold);
  padding: 2px 8px;
  border-radius: var(--wk-radius-full);
  letter-spacing: var(--wk-tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==========================================================================
   AD SLOTS
   ========================================================================== */

/* Empty slots: invisible until AdSense fills them with <ins class="adsbygoogle">. */
.wk-ad-slot:empty {
  display: none;
}

/* Filled slots: layout wrapper only — AdSense controls inner rendering. */
.wk-ad-slot {
  margin: var(--wk-space-8) auto;
  max-width: 728px;
  text-align: center;
}

/* ==========================================================================
   TECH STACK SECTION
   ========================================================================== */

.tech-content {
  max-width: 800px;
  margin: 0 auto;
}

.tech-intro {
  color: var(--wk-text-secondary);
  font-size: var(--wk-text-lg);
  line-height: var(--wk-leading-lg);
  margin: 0 0 var(--wk-space-8) 0;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wk-space-3);
  justify-content: center;
}

/* ==========================================================================
   NEON DIVIDER (section separator)
   ========================================================================== */

.section-divider {
  margin: 0 var(--wk-space-6);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--wk-bg-overlay);
  border-top: 1px solid var(--wk-border);
  padding: var(--wk-space-12) var(--wk-space-6) var(--wk-space-8);
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wk-space-8);
  margin-bottom: var(--wk-space-8);
}

.footer-brand .wk-h5 {
  margin: 0 0 var(--wk-space-2) 0;
}

.footer-brand p {
  margin: 0;
  color: var(--wk-text-secondary);
  font-size: var(--wk-text-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--wk-space-2);
}

.footer-links-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wk-space-2) var(--wk-space-4);
  align-items: center;
}

.footer-link {
  color: var(--wk-text-secondary);
  text-decoration: none;
  font-size: var(--wk-text-sm);
  transition: color var(--wk-duration-fast) var(--wk-easing-default);
}

.footer-link:hover {
  color: var(--wk-text);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: var(--wk-space-2);
  align-items: center;
}

.lang-switcher-label {
  font-size: var(--wk-text-xs);
  color: var(--wk-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--wk-tracking-wider);
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--wk-border);
  border-radius: var(--wk-radius-md);
  color: var(--wk-text-secondary);
  font-size: var(--wk-text-xs);
  font-weight: var(--wk-font-semibold);
  font-family: var(--wk-font-body);
  letter-spacing: var(--wk-tracking-wider);
  padding: var(--wk-space-1) var(--wk-space-2);
  cursor: pointer;
  text-transform: uppercase;
  transition: color var(--wk-duration-fast) var(--wk-easing-default),
              border-color var(--wk-duration-fast) var(--wk-easing-default),
              box-shadow var(--wk-duration-fast) var(--wk-easing-default);
}

.lang-btn:hover {
  color: var(--wk-color-glow-violet);
  border-color: var(--wk-color-glow-violet);
}

.lang-btn.active,
.lang-btn[aria-current="true"] {
  color: var(--wk-color-glow-violet);
  border-color: var(--wk-color-glow-violet);
  box-shadow: var(--wk-glow-violet);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--wk-space-3);
  padding-top: var(--wk-space-6);
  border-top: 1px solid var(--wk-border-muted);
}

.footer-copyright {
  font-size: var(--wk-text-xs);
  color: var(--wk-text-muted);
  margin: 0;
}

.footer-ad-slot {
  margin: var(--wk-space-8) auto var(--wk-space-6);
}

/* Cookie preferences button */
.cookie-pref-btn {
  background: none;
  border: none;
  color: var(--wk-text-secondary);
  font-size: var(--wk-text-sm);
  font-family: var(--wk-font-body);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color var(--wk-duration-fast), text-decoration-color var(--wk-duration-fast);
}

.cookie-pref-btn:hover {
  color: var(--wk-text);
  text-decoration-color: var(--wk-text);
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */

.legal-page {
  padding: var(--wk-space-16) var(--wk-space-6);
  max-width: 860px;
  margin: 0 auto;
}

.legal-page .wk-card-outlined {
  padding: var(--wk-space-10);
}

.legal-page h1 {
  font-family: var(--wk-font-heading);
  font-size: var(--wk-text-4xl);
  font-weight: var(--wk-font-bold);
  line-height: var(--wk-leading-4xl);
  letter-spacing: var(--wk-tracking-tight);
  color: var(--wk-text);
  margin: 0 0 var(--wk-space-3) 0;
}

.legal-page .legal-meta {
  color: var(--wk-text-muted);
  font-size: var(--wk-text-sm);
  margin-bottom: var(--wk-space-10);
  border-bottom: 1px solid var(--wk-border);
  padding-bottom: var(--wk-space-6);
}

.legal-page h2 {
  font-family: var(--wk-font-heading);
  font-size: var(--wk-text-2xl);
  font-weight: var(--wk-font-bold);
  color: var(--wk-text);
  margin: var(--wk-space-10) 0 var(--wk-space-4) 0;
}

.legal-page h3 {
  font-family: var(--wk-font-heading);
  font-size: var(--wk-text-lg);
  font-weight: var(--wk-font-semibold);
  color: var(--wk-text);
  margin: var(--wk-space-6) 0 var(--wk-space-3) 0;
}

.legal-page p {
  color: var(--wk-text-secondary);
  font-size: var(--wk-text-base);
  line-height: var(--wk-leading-base);
  margin: 0 0 var(--wk-space-4) 0;
}

.legal-page ul,
.legal-page ol {
  color: var(--wk-text-secondary);
  font-size: var(--wk-text-base);
  line-height: var(--wk-leading-base);
  margin: 0 0 var(--wk-space-4) 0;
  padding-left: var(--wk-space-6);
}

.legal-page li {
  margin-bottom: var(--wk-space-2);
}

.legal-page a {
  color: var(--wk-link);
  transition: color var(--wk-duration-fast);
}

.legal-page a:hover {
  color: var(--wk-link-hover);
}

.legal-page address {
  font-style: normal;
  background: var(--wk-bg-elevated);
  border-radius: var(--wk-radius-md);
  padding: var(--wk-space-4);
  margin: var(--wk-space-4) 0;
  color: var(--wk-text-secondary);
  line-height: 1.8;
}

.legal-footer-nav {
  padding-top: var(--wk-space-8);
  border-top: 1px solid var(--wk-border-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--wk-space-3);
}

/* ==========================================================================
   UTILITY — GRADIENT TEXT
   ========================================================================== */

/* Reusable gradient text — same colours as .hero-title */
.wk-gradient-text {
  background: linear-gradient(135deg, var(--wk-color-glow-violet), var(--wk-color-glow-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

/* ==========================================================================
   SKIP LINK (WCAG 2.4.1)
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -999px;
  top: var(--wk-space-4);
  padding: var(--wk-space-2) var(--wk-space-4);
  background: var(--wk-color-glow-violet);
  color: var(--wk-bg);
  font-family: var(--wk-font-body);
  font-size: var(--wk-text-sm);
  font-weight: var(--wk-font-semibold);
  border-radius: var(--wk-radius-md);
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  left: var(--wk-space-4);
  outline: 2px solid var(--wk-color-glow-green);
  outline-offset: 2px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: var(--wk-text-5xl);
  }

  .hero-tagline {
    font-size: var(--wk-text-lg);
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: var(--wk-space-6);
  }

  .section {
    padding: var(--wk-space-16) var(--wk-space-5);
  }

  .section--hero {
    padding-top: var(--wk-space-16);
  }

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

  .legal-page .wk-card-outlined {
    padding: var(--wk-space-6);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--wk-text-4xl);
  }

  .hero-tagline {
    font-size: var(--wk-text-base);
  }

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

  .section {
    padding: var(--wk-space-12) var(--wk-space-4);
  }
}
