/* 
 * kilianxmr.de — Premium Creator Hub Design (Satoshi Multi-Page Optimized Edition)
 * Crafted with pure focus on high-end minimalism, generous whitespace, and typography.
 */

:root {
  --bg: #ffffff;

  /* Strictly monochrome base with a single electric blue accent */
  --text: #000000;
  --text-muted: #525252;
  --text-light: #a3a3a3;
  --accent: #00a6ff;
  /* Reserved ONLY for passive accents */

  /* Ultra-subtle borders */
  --border: #f0f0f0;
  --border-hover: #e5e5e5;

  /* Button rounding - moderately rounded (14px Sweet Spot between square and pill) */
  --radius-btn: 14px;
  --radius-card: 14px;
  --radius-input: 14px;

  /* Typography */
  --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* CONTAINER */
.container {
  max-width: 1160px;
  /* Increased from 1000px for a wider, modern desktop look */
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

@media (min-width: 768px) {
  .header-container {
    height: 90px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  transition: opacity 0.1s ease;
  z-index: 102;
}

@media (min-width: 768px) {
  .brand {
    gap: 14px;
    font-size: 1.05rem;
  }
}

.brand:hover {
  opacity: 0.85;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-input);
  object-fit: cover;
  border: none;
}

@media (min-width: 768px) {
  .brand-logo {
    width: 38px;
    height: 38px;
  }
}

.brand-name {
  color: var(--text);
}

/* Navigation - Desktop */
.main-nav {
  display: none;
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  padding: 8px 12px;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.active {
  color: var(--accent);
  font-weight: 700;
}

.nav-separator {
  color: var(--border);
  user-select: none;
}

/* Actions in Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 102;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.lang-option {
  color: var(--text-light);
  transition: color 0.15s ease;
  padding: 4px 4px;
}

.lang-option:hover {
  color: var(--text);
}

.lang-option.active {
  color: var(--accent);
}

.lang-divider {
  color: var(--border);
}

/* Mobile Toggle (3 Dots) */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-input);
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.1s ease, border-color 0.1s ease;
}

.mobile-menu-toggle:hover {
  background-color: #fafafa;
  border-color: var(--border-hover);
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 101;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 12px 16px;
  transition: color 0.15s ease;
}

.mobile-nav-link:hover {
  color: var(--accent);
}

.mobile-nav-link.active {
  color: var(--accent);
  font-weight: 700;
}

/* MAIN CONTENT */
.main-content {
  flex-grow: 1;
  padding: 48px 0;
}

@media (min-width: 768px) {
  .main-content {
    padding: 80px 0;
  }
}

/* GRIDS & LAYOUT SYSTEMS */
.grid-layout {
  display: grid;
  grid-template-cols: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .grid-layout {
    grid-template-cols: 1fr 280px;
    /* Content + Sidebar */
    gap: 64px;
    align-items: start;
  }

  .grid-layout.reverse {
    grid-template-cols: 280px 1fr;
  }

  .grid-layout.equal {
    grid-template-cols: 1fr 1fr;
  }
}

.page-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .page-container {
    gap: 60px;
  }
}

.page-header {
  margin-bottom: 12px;
}

.page-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text);
}

@media (min-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
}

.page-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 600px;
  line-height: 1.6;
}

/* HERO SECTION (Homepage specific) */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 40vh;
}

@media (min-width: 768px) {
  .hero-section {
    min-height: 50vh;
  }
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  gap: 24px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: rgba(0, 166, 255, 0.05);
  border: 1px solid rgba(0, 166, 255, 0.15);
  border-radius: 9999px;
  /* Restored to fully rounded capsule shape */
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.hero-title {
  font-size: 2.75rem;
  /* Bold, prominent look on mobile displays */
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* BUTTONS - Fully rounded, minimal hovers */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  /* Center CTAs globally */
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  /* Slightly more compact horizontal padding */
  font-size: 0.875rem;
  font-weight: 600;
  /* Slightly bolder for SaaS premium look */
  border-radius: var(--radius-btn) !important;
  /* Secured rounding */
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  border: 1px solid transparent;
}

@media (min-width: 768px) {
  .btn {
    padding: 10px 22px;
  }
}

.btn:active {
  transform: translateY(1px);
  /* Elastic click feel instead of scale */
}

/* Remove default focus ring on mouse click but keep it for keyboard navigation (Accessibility) */
.btn:focus,
a:focus {
  outline: none !important;
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}

/* Primary black button: becomes slightly lighter on hover (#000000 -> #222222) */
.btn-primary {
  background-color: var(--text);
  color: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Fine inner border */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-btn) !important;
  /* Secured rounding */
}

.btn-primary:hover {
  background-color: #222222;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Secondary white button: becomes slightly darker on hover (#ffffff -> #f2f2f2) */
.btn-secondary {
  background-color: var(--bg);
  color: var(--text);
  border-color: var(--border-hover);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-btn) !important;
  /* Secured rounding */
}

.btn-secondary:hover {
  background-color: #f2f2f2;
  border-color: #d4d4d4;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.1s ease;
}

.btn-back:hover {
  color: var(--accent);
}

/* PROJECTS LIST */
.projects-grid {
  display: grid;
  grid-template-cols: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-cols: 1fr 1fr;
    gap: 32px;
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: border-color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

@media (min-width: 768px) {
  .project-card {
    gap: 16px;
    padding: 24px;
  }
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.video-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #fafafa;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.play-btn-design {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

@media (min-width: 768px) {
  .play-btn-design {
    width: 48px;
    height: 48px;
  }
}

.project-card:hover .play-btn-design {
  transform: scale(1.05);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 9px solid var(--text);
  margin-left: 3px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* PROJECT DETAIL PAGE */
.project-detail {
  max-width: 100%;
}

.video-embed-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: #fafafa;
  margin-bottom: 24px;
}

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

.project-detail-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.project-detail-title {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text);
}

@media (min-width: 768px) {
  .project-detail-title {
    font-size: 2.25rem;
  }
}

.project-detail-content {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .project-detail-content {
    font-size: 1.05rem;
  }
}

/* SIDEBAR & INFO BOXES (Premium details layout) */
.sidebar-box {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.sidebar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-label {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sidebar-value {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
}

.sidebar-value a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.1s ease;
}

.sidebar-value a:hover {
  opacity: 0.7;
}

/* ASSETS & DOWNLOADS */
.assets-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.asset-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  gap: 20px;
  transition: border-color 0.15s ease;
}

@media (min-width: 768px) {
  .asset-item {
    flex-direction: row;
    align-items: center;
    padding: 32px;
    gap: 24px;
  }
}

.asset-item:hover {
  border-color: var(--border-hover);
}

.asset-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 550px;
}

.asset-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

@media (min-width: 768px) {
  .asset-title {
    font-size: 1.25rem;
  }
}

.asset-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Technical meta-row for Assets (Premium look) */
.asset-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.asset-meta-item span {
  color: var(--text-muted);
}

.asset-action {
  width: 100%;
}

@media (min-width: 768px) {
  .asset-action {
    width: auto;
    flex-shrink: 0;
  }
}

/* ABOUT PAGE (Layout improvement) */
.about-intro {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
}

.about-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .about-text {
    font-size: 1.05rem;
  }
}

/* CONTACT PAGE & FORMS (Minimalist input fields) */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-input);
  background-color: #fafafa;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--text);
  background-color: var(--bg);
  box-shadow: 0 0 0 2px rgba(0, 166, 255, 0.08);
  /* Electric blue focus glow */
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

/* Interactive list links with sliding arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  transition: opacity 0.1s ease;
}

.arrow-link:hover {
  color: var(--accent);
}

.arrow-link svg {
  transition: transform 0.15s ease;
}

.arrow-link:hover svg {
  transform: translateX(4px);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background-color: var(--bg);
  margin-top: auto;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 64px 0;
  }
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    gap: 32px;
  }
}

.copyright {
  font-size: 0.72rem;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.72rem;
  color: var(--text-light);
}

.footer-link {
  transition: color 0.15s ease;
}

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

/* HERO REDESIGN & VIDEO PLAYER PLACEHOLDER */
.video-placeholder-container {
  width: 100%;
  max-width: 760px;
  /* Elegant desktop size */
  aspect-ratio: 16 / 9;
  margin: 56px auto 0 auto;
  background-color: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01), 0 1px 3px rgba(0, 0, 0, 0.01);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  padding: 24px;
  text-align: center;
}

.video-placeholder-container:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.placeholder-video-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.placeholder-status-dot {
  width: 5px;
  height: 5px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

.placeholder-play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease;
}

.video-placeholder-container:hover .placeholder-play-btn {
  transform: scale(1.05);
}

.placeholder-play-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--text);
  margin-left: 4px;
}

.placeholder-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}