/* =====================================================
   beyondcode.berlin · Manuela May Coaching
   Shared styles
   ===================================================== */

:root {
  --petrol:        #0B9B8A;
  --petrol-deep:   #0A4D45;
  --petrol-ink:    #052E2A;
  --petrol-bright: #06D4B8;
  --petrol-soft:   #6FC5B9;
  --petrol-mist:   #D7EEEA;

  --paper:        #FAF7F2;
  --paper-warm:   #F2EDE3;
  --line:         #E1DBCE;
  --line-strong:  #C9C2B0;

  --ink:          #0F1414;
  --ink-soft:     #2A2F2E;
  --muted:        #6B6660;

  --radius:       4px;
  --radius-lg:    18px;
  --max:          1240px;

  --t-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --t-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --t-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--t-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--petrol-deep); text-decoration: none; }
a:hover { color: var(--petrol); }
button { font: inherit; cursor: pointer; }

::selection { background: var(--petrol-bright); color: var(--petrol-ink); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* =====================================================
   Type system
   ===================================================== */
.mono { font-family: var(--t-mono); }
.eyebrow {
  font-family: var(--t-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--petrol);
}
.eyebrow::before { content: "// "; opacity: 0.55; }

h1, h2, h3, h4 {
  font-family: var(--t-sans);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--petrol-ink);
  overflow-wrap: break-word;
}
h1 { font-size: clamp(48px, 7vw, 96px); font-weight: 500; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.015em; }
h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }

p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.5; color: var(--ink-soft); max-width: 56ch; }

/* =====================================================
   Header / nav
   ===================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
  color: var(--petrol-ink);
}
.brand .mark-svg { width: 38px; height: 38px; flex-shrink: 0; }
.brand .wordmark {
  font-family: var(--t-mono);
  font-weight: 500;
  line-height: 1;
  display: flex; flex-direction: column; gap: 3px;
}
.brand .wordmark .top {
  display: flex; align-items: baseline;
  font-size: 15px;
  letter-spacing: -0.03em;
}
.brand .wordmark .bracket { color: var(--petrol); font-weight: 400; }
.brand .wordmark .dot { color: var(--petrol); }
.brand .wordmark .brand-curs {
  display: inline-block; width: 0.42ch; height: 0.8em; align-self: center;
  background: var(--petrol); margin-left: 0.16em;
  animation: none;
}
@keyframes brand-blink { to { opacity: 0; } }
.brand .wordmark .by {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links {
  display: flex; align-items: center; gap: 30px;
  margin-left: 48px;
}
.nav-links a {
  font-family: var(--t-mono);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  position: relative;
  padding: 8px 0;
}
.nav-links a::before { content: ""; opacity: 0; }
.nav-links a:hover, .nav-links a.active {
  color: var(--petrol-deep);
}
.nav-links a.active::before {
  content: "› ";
  color: var(--petrol);
  opacity: 1;
}
.nav-cta {
  font-family: var(--t-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: var(--petrol-ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: var(--radius);
  border: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.18s ease;
}
.nav-cta:hover { background: var(--petrol); color: white; }
.nav-cta::after { content: "→"; font-size: 14px; }

/* Language toggle (DE / EN) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
}
.lang-toggle button {
  font-family: var(--t-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-toggle button:hover { color: var(--petrol-deep); }
.lang-toggle button.active {
  background: var(--petrol);
  color: var(--paper);
}
.lang-toggle + .nav-cta { margin-left: 14px; }
.lang-toggle + .menu-toggle { margin-left: 14px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-family: var(--t-mono);
  font-size: 12px;
  color: var(--petrol-ink);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--t-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: none;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--petrol-ink); color: var(--paper);
}
.btn-primary:hover { background: var(--petrol); color: white; }
.btn-secondary {
  background: transparent; color: var(--petrol-ink);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { border-color: var(--petrol); color: var(--petrol-deep); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* =====================================================
   Generic section
   ===================================================== */
section { padding: 90px 0; }
.section-head {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 48px;
  max-width: 720px;
}

/* =====================================================
   Tag / status pill
   ===================================================== */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--t-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--petrol-deep);
  background: var(--petrol-mist);
  padding: 5px 11px;
  border-radius: 999px;
}
.tag .led {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--petrol);
  box-shadow: 0 0 6px var(--petrol);
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  background: var(--petrol-ink);
  color: var(--paper);
  padding: 64px 0 32px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  position: relative;
  margin-bottom: 48px;
}
.footer-brand .wm {
  font-family: var(--t-mono);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.04em;
  color: var(--paper);
}
.footer-brand .wm .bracket { color: var(--petrol-bright); font-weight: 400; }
.footer-brand .wm .dot { color: var(--petrol-bright); }
.footer-brand .wm .brand-curs {
  display: inline-block; width: 0.4ch; height: 0.78em;
  background: var(--petrol-bright); margin-left: 0.1em; transform: translateY(0.08em);
  animation: none;
}
.footer-brand .wm-by {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.5);
  margin-top: 7px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(250,247,242,0.65);
  margin-top: 14px;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--t-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--petrol-bright);
  margin-bottom: 18px;
}
.footer-col h4::before { content: "// "; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(250,247,242,0.8);
  font-family: var(--t-sans);
  font-size: 14px;
}
.footer-col a:hover { color: var(--petrol-bright); }
.footer-bottom {
  border-top: 1px solid rgba(250,247,242,0.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(250,247,242,0.5);
  position: relative;
}
.footer-bottom .domain {
  color: var(--petrol-bright);
  letter-spacing: 0.18em;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 880px) {
  .container { padding: 0 22px; }
  section { padding: 64px 0; }
  .nav { padding: 14px 22px; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}
@media (max-width: 540px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  /* Hyphenate long German compounds so they never push the layout wider than the screen */
  h1, h2, h3 { hyphens: auto; }
  .container { padding: 0 18px; }
  section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  /* Full-width CTAs are easier to tap on a phone */
  .hero-cta .btn,
  .cta-row .btn { width: 100%; justify-content: center; }
}

/* =====================================================
   Mobile menu (when expanded)
   ===================================================== */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 22px 24px;
  background: var(--paper);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 13px 0;
  font-family: var(--t-mono);
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 14px; width: 100%; justify-content: center; }
