/* 2026 Refined Editorial & Engineering Design Tokens */
:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg-page: #f6f8fb;
  --bg-surface: #ffffff;
  --bg-soft: #edf3fa;
  --bg-card: #ffffff;
  --bg-card-hover: #edf3fa;
  --bg-input: #ffffff;
  --text-main: #142033;
  --text-muted: #5d6a7b;
  --text-subtle: #8a96a6;
  --border-subtle: #dce3ec;
  --border-strong: #c5d0e0;
  --border-focus: #2563eb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-ink: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --shadow-subtle: 0 4px 14px rgba(20, 32, 51, 0.05);
  --shadow-hover: 0 12px 28px rgba(20, 32, 51, 0.10);
  --header-bg: rgba(246, 248, 251, 0.88);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #0b1220;
  --bg-surface: #111b2d;
  --bg-soft: #16243a;
  --bg-card: #111b2d;
  --bg-card-hover: #192942;
  --bg-input: #111b2d;
  --text-main: #f5f7fb;
  --text-muted: #a9b5c7;
  --text-subtle: #6e7d94;
  --border-subtle: #263750;
  --border-strong: #374c6d;
  --border-focus: #8eb5ff;
  --accent: #8eb5ff;
  --accent-hover: #b2ccff;
  --accent-ink: #0b1220;
  --shadow-subtle: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.55);
  --header-bg: rgba(11, 18, 32, 0.88);
}

/* Base resets & ergonomics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  overscroll-behavior-y: none;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overscroll-behavior-y: none;
}

/* Accessibility & Focus */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--bg-surface);
  color: var(--accent);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

/* Container */
.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Bilingual switching system */
html[lang="de"] [data-lang="en"] {
  display: none !important;
}
html[lang="en"] [data-lang="de"] {
  display: none !important;
}

/* WhatsApp Channel Announcement Banner */
.wa-banner {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.14) 0%, rgba(5, 150, 105, 0.2) 100%), var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.85rem;
  padding: 8px 0;
  color: var(--text-main);
  width: 100%;
}

.wa-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wa-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #064e3b;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wa-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.wa-text {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.4;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10b981;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.wa-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45);
}

@media (max-width: 768px) {
  .wa-banner {
    padding: 8px 0;
  }
  .wa-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .wa-banner-content {
    font-size: 0.8rem;
  }
  .wa-btn {
    align-self: flex-start;
  }
}

/* Sticky Site Header Container */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

/* Navigation Header */
.navbar {
  position: relative;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.monogram, .brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: var(--bg-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  height: 42px;
  min-width: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ctrl-btn:hover {
  background: var(--bg-soft);
  border-color: var(--border-strong);
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
}

.mobile-nav {
  display: none;
}

.ctrl-btn.icon-btn {
  padding: 0;
  width: 42px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
}
.button:active {
  transform: scale(0.98);
}
.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.button.primary:hover {
  background: var(--accent-hover);
}
.button.secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.button.secondary:hover {
  background: var(--bg-soft);
  border-color: var(--border-strong);
}

/* Typography & Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 64px;
  align-items: center;
  padding-block: clamp(64px, 10vw, 112px);
}

.hero-copy h1 {
  font-size: clamp(38px, 5.8vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-block: 16px 20px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 58ch;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  min-height: 380px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-subtle);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-visual-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-visual-center {
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--text-main);
  margin-block: 24px;
}
.hero-visual-center em {
  font-style: italic;
  color: var(--accent);
}

.hero-visual-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Principles */
.principles-section {
  padding-block: 32px 72px;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.principle-card {
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}
.principle-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.principle-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.principle-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Store Spotlight Banner */
.store-banner {
  background: var(--bg-soft);
  border-block: 1px solid var(--border-subtle);
  padding-block: 72px;
  margin-bottom: 72px;
}
.store-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  align-items: center;
}
.store-mark-box {
  width: 140px;
  height: 140px;
  aspect-ratio: 1;
  background: transparent;
  border-radius: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.store-mark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15);
}
.store-content h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-block: 8px 12px;
}
.store-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 60ch;
  margin-bottom: 24px;
}

/* Projects Section */
.projects-section {
  padding-bottom: 88px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-top: 8px;
}
.section-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.section-link:hover {
  text-decoration: underline;
}

.project-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-top: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
  transition: background 0.15s, padding 0.15s;
}
.project-row:last-child {
  border-bottom: 1px solid var(--border-subtle);
}
.project-row:hover {
  background: var(--bg-soft);
  padding-inline: 28px;
}
.project-icon {
  width: 88px;
  height: 64px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
  overflow: hidden;
}
.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.project-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.project-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 20px;
}

/* Search and Filter Toolbar */
.toolbar {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.search-input {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.15s;
}
.search-input:focus {
  border-color: var(--accent);
}
.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* Closing CTA */
.closing-banner {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-block: clamp(64px, 8vw, 100px);
}
.closing-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}
.closing-inner h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 22ch;
  line-height: 1.1;
}

/* Footer */
.footer {
  margin-top: auto;
  background: #080e18;
  color: #c5d2e3;
  padding-block: 56px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer a {
  color: #9ab0ce;
  text-decoration: none;
  transition: color 0.15s;
}
.footer a:hover {
  color: #ffffff;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-brand span {
  font-size: 0.85rem;
  font-weight: 400;
  color: #7b8fa7;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #70849c;
}

/* Subpage Intros & Cards - Centered & Balanced */
main#main {
  flex: 1;
  width: 100%;
}

.page-intro {
  max-width: 960px;
  margin-inline: auto;
  padding-block: clamp(48px, 8vw, 88px) 36px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 48px;
}
.page-intro h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-block: 12px 16px;
}
.profile-intro {
  display: flex;
  align-items: center;
  gap: 36px;
}
.profile-avatar-wrap {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}
.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .profile-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
.subpage-content {
  max-width: 960px;
  margin-inline: auto;
  padding-bottom: 80px;
}
.content-section {
  margin-bottom: 56px;
}
.content-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.content-section p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-block: 36px 56px;
}
.contact-card {
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
}
.email-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.email-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 32px);
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .mobile-nav {
    display: block;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0 16px;
    animation: mobileSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .mobile-nav[hidden] {
    display: none;
  }
  .mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }
  .mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--text-main);
    background: var(--bg-soft);
  }
  @keyframes mobileSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .store-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .store-mark-box {
    max-width: 100px;
  }
  .project-row {
    grid-template-columns: 60px 1fr;
  }
  .project-tag {
    grid-column: 2;
    justify-self: start;
  }
}

/* Switch to the common drawer before the desktop links overflow on tablets. */
@media (min-width: 701px) and (max-width: 1100px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .mobile-nav {
    display: block;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0 16px;
    animation: mobileSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .mobile-nav[hidden] {
    display: none;
  }
  .mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }
  .mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--text-main);
    background: var(--bg-soft);
  }
}

@media (max-width: 380px) {
  .brand { font-size: 1rem; gap: 8px; }
  .nav-actions { gap: 4px; }
  .ctrl-btn { padding-inline: 8px; min-width: 36px; }
  .ctrl-btn.icon-btn { width: 36px; }
}
