/* ============================================================
   xenoon GmbH — Main Stylesheet
   Colors matched to original WordPress theme (xenoon.css)
   Nav: #20333a (R32 G51 B58) · Footer: #111827 · Accent: #007acc
   ============================================================ */

/* ── Schrift: Inter, selbst ausgeliefert ──────────────────────
   Bewusst NICHT von fonts.googleapis.com. Beim Einbinden ueber Google
   uebertraegt jeder Seitenaufruf die IP-Adresse des Besuchers an Google
   (LG Muenchen I, 20.01.2022, Az. 3 O 17493/20). Die Dateien liegen deshalb
   unter assets/fonts/ und werden vom eigenen Server geliefert.

   Variable Font: eine Datei je Subset deckt den gesamten Bereich 400–800 ab,
   statt fuenf Einzeldateien pro Schnitt. Der Browser laedt per unicode-range
   nur das Subset, das die Seite tatsaechlich braucht — fuer deutsche und
   englische Texte in aller Regel nur "latin" (48 KB).

   Inter steht unter der SIL Open Font License 1.1, Lizenztext in
   assets/fonts/OFL.txt. Aktualisieren: neue Fassung bei
   https://github.com/rsms/inter beziehen und beide woff2 ersetzen.
   ──────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
  /* ── Body / content — from xenoon.css ── */
  --bg:           #ffffff;
  --bg-surface:   #f9fafb;   /* section.light from original */
  --bg-hero:      #f3f4f6;   /* hero bg from original */
  --bg-card:      #ffffff;
  --bg-card-hover:#f3f4f6;
  --bg-input:     #f9fafb;
  --border:       rgba(0,0,0,0.09);
  --border-hover: rgba(0,0,0,0.16);

  /* ── Accent: #007acc (links, secondary actions) ── */
  --accent:       #007acc;
  --accent-light: #0090e8;
  --accent-pale:  #3baee8;
  --accent-dim:   rgba(0,122,204,0.08);
  --accent-glow:  rgba(0,122,204,0.22);

  /* ── Primary CTA / buttons — dark nav color ── */
  --ink:          #1e293b;   /* --primary-bg-color from xenoon.css */
  --ink-btn:      #111827;   /* matches nav/footer */

  /* ── Nav: R32 G51 B58 as user specified ── */
  --nav-bg:         #111827;
  --nav-border:     rgba(255,255,255,0.08);
  --nav-text:       rgba(255,255,255,0.72);
  --nav-text-hover: #ffffff;

  /* ── Footer: #111827 from original xenoon.css ── */
  --footer-bg:      #111827;
  --footer-border:  rgba(255,255,255,0.07);
  --footer-text:    #9ca3af;   /* exact value from original */
  --footer-text-hover: rgba(255,255,255,0.85);

  /* ── Availability green ── */
  --green:        #16a34a;
  --green-dim:    rgba(22,163,74,0.09);

  /* ── Text: #504f59 body text from original ── */
  --text:         #1e1d23;   /* headings — darker */
  --text-muted:   #504f59;   /* exact body text color from xenoon.css */
  --text-dim:     #9ca3af;

  /* Typography */
  --font:         'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-pad:  4rem 0;    /* matches original 4rem 1rem sections */
  --container-w:  1100px;    /* matches original max-width: 1100px */
  --container-px: 1.5rem;

  /* Misc */
  --radius:       8px;       /* 0.5rem from original cards */
  --radius-lg:    14px;
  --shadow:       0 4px 8px rgba(0,0,0,0.06);   /* exact from original cards */
  --shadow-card:  0 6px 20px rgba(0,0,0,0.09);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.12);
  --trans:        0.2s ease;
}

html {
  font-family: var(--font);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

/* Light-mode scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--accent-light); }

/* ── Utility ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section { padding: var(--section-pad); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: rgba(30,20,10,0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Blue variant used for blog category tags */
.tag.tag-blue {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(26,86,219,0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink-btn);
  color: #ffffff;
  border-color: var(--ink-btn);
}
.btn-primary:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(19,18,16,0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Blue accent variant — for inline CTAs, article, etc. */
.btn-accent {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--accent-glow);
}

/* ── Navigation (xenoon teal #20333a) ────────────────────── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;          /* matches original 0.5rem 1rem padding */
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  transition: background var(--trans), box-shadow var(--trans);
}

#main-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

/* Expose nav height as variable for hero offset */
:root { --nav-h: 0px; } /* set by JS */

#main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

/* Logo: width-based to match original 188×113px proportion */
.nav-logo img {
  width: 263px;      /* 175px × 1.5 */
  height: auto;
  filter: none;
  display: block;
  transition: opacity var(--trans);
}
.nav-logo:hover img { opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.85rem;
  color: var(--nav-text);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color var(--trans), background var(--trans);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--nav-text-hover);
  background: rgba(30,20,10,0.05);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255,255,255,0.08);
  color: var(--nav-text);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans);
  letter-spacing: 0.04em;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.16);
  color: var(--nav-text-hover);
  border-color: rgba(255,255,255,0.28);
}

.nav-contact-btn {
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
}
.nav-contact-btn:hover {
  background: var(--accent-light) !important;
  border-color: var(--accent-light) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--accent-glow) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.75);
  border-radius: 2px;
  transition: all var(--trans);
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h, 120px);   /* JS sets this dynamically */
  background: var(--bg-hero);          /* #f3f4f6 — exact from original */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 70% 30%, rgba(26,86,219,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 20% 75%, rgba(26,86,219,0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Warm dot grid — faint, stays neutral like xenoon.de */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(30,20,10,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(30,20,10,0.12);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 4px rgba(30,20,10,0.06);
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(26,86,219,0.5);
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.hero-headline .line-accent {
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Services ─────────────────────────────────────────────── */
#services {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: var(--shadow);
}

.service-card:hover {
  border-color: rgba(26,86,219,0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.service-icon {
  width: 44px; height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 22px; height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── About ────────────────────────────────────────────────── */
#about .about-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.about-photo img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: block;
}

@media (max-width: 768px) {
  #about .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-photo img {
    max-width: 160px;
    margin: 0 auto;
  }
}

.about-text .section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.about-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.1rem;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-sidebar h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.about-sidebar h3:first-child { margin-top: 0; }

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  padding: 0.3rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: border-color var(--trans), color var(--trans), background var(--trans);
}

.skill-chip:hover {
  border-color: rgba(26,86,219,0.3);
  color: var(--accent);
  background: var(--accent-dim);
}

.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cert-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cert-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  margin-top: 0.05rem;
  flex-shrink: 0;
}

/* ── Projects ─────────────────────────────────────────────── */
#projects {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: var(--shadow);
}

.project-card:hover {
  border-color: rgba(26,86,219,0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

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

.project-client {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-period {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.project-card h3 {
  font-size: 0.975rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.project-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.projects-cta {
  text-align: center;
}

/* ── Testimonials ─────────────────────────────────────────── */
#testimonials {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 5rem;
  color: rgba(30,20,10,0.07);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.testimonial-quote {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial-company {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}
.testimonials-linkedin-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2rem;
}
.testimonials-linkedin-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.testimonials-linkedin-note a:hover {
  text-decoration: underline;
}

/* ── Contact ──────────────────────────────────────────────── */
#contact {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.22);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 2rem;
}

.availability-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-detail {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.contact-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-detail a,
.contact-detail span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-detail a:hover { color: var(--accent-light); }

.contact-email-btn { margin-top: 2rem; }

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-group:last-of-type { margin-bottom: 1.5rem; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--trans), box-shadow var(--trans);
  width: 100%;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
  background: #fff;
}

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

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.visible { display: block; }

.form-success h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Footer (dark — warm near-black) ────────────────────── */
#main-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  width: 140px;
  height: auto;
  margin-bottom: 0.75rem;
  filter: none;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--footer-text);
}

.footer-nav h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--footer-text);
  transition: color var(--trans);
}

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

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

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.28);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.28);
  transition: color var(--trans);
}
.footer-legal a:hover { color: var(--footer-text); }

/* ── Blog Page ────────────────────────────────────────────── */
.blog-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 7.5rem 0 4rem;
}

.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.blog-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Blog sidebar layout — mirrors WP xenoon-blog-layout */
.xenoon-blog-layout {
  display: flex;
  gap: 3rem;
  padding: 4rem 1.5rem;
  align-items: flex-start;
}

.blog-main {
  flex: 2;
  min-width: 0;
}

.blog-sidebar {
  flex: 1;
  min-width: 0;
  padding-top: 0.5rem;
  font-size: 0.9rem;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 0.5rem;
}

.sidebar-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.5;
}

.sidebar-list a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .xenoon-blog-layout {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
  }
}

.blog-search {
  margin: 0 0 1.25rem;
}

.blog-search input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") no-repeat 0.75rem center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--trans), box-shadow var(--trans);
  box-sizing: border-box;
}

.blog-search input::placeholder { color: var(--text-muted); }

.blog-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,122,204,0.15);
}

.blog-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.blog-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 2rem;
}

.filter-btn {
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--trans);
  box-shadow: var(--shadow);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-dim);
  border-color: rgba(26,86,219,0.25);
  color: var(--accent);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-bottom: 5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}

.blog-card:hover {
  border-color: rgba(26,86,219,0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  color: inherit;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.blog-date {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.blog-read-time {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.blog-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.blog-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-read-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--trans), color var(--trans);
}

.blog-card:hover .blog-read-link { color: var(--accent-light); }

.blog-card:hover .blog-read-link { gap: 0.5rem; }

/* Blog Article */
#blog-article {
  display: none;
  padding: 4rem 0 6rem;
}

#blog-article.visible { display: block; }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  cursor: pointer;
  transition: color var(--trans);
  background: none;
  border: none;
  font-family: var(--font);
  padding: 0;
}

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

.article-header {
  max-width: 760px;
  margin: 0 auto 3rem;
}

.article-header .blog-card-meta {
  margin-bottom: 1.25rem;
}

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.article-header .article-summary {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.9rem;
  color: var(--text);
}

.article-body p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--text-muted);
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

.article-cta {
  max-width: 760px;
  margin: 3rem auto 0;
  background: linear-gradient(135deg, rgba(26,86,219,0.05), rgba(59,130,246,0.03));
  border: 1px solid rgba(26,86,219,0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.article-cta p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Blog list view */
#blog-list { display: block; }
#blog-list.hidden { display: none; }

/* Blog card as link */
a.blog-card {
  text-decoration: none;
  color: inherit;
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0 0;
}

.page-btn {
  padding: 0.5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--trans);
  box-shadow: var(--shadow);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-info {
  font-size: 0.875rem;
  color: var(--text-muted);
  min-width: 80px;
  text-align: center;
}

/* Static blog post pages */
.article-page {
  padding: 4rem 0 6rem;
}

/* Code blocks in articles */
.article-body pre {
  background: #1e1d23;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  line-height: 1.65;
}

.article-body pre code {
  font-family: var(--font-mono);
  color: #e2e8f0;
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(0, 0, 0, 0.06);
  color: var(--accent);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 5rem 0;
    --container-px: 1.25rem;
  }

  .nav-links,
  .nav-contact-btn {
    display: none;
  }

  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h, 120px); left: 0; right: 0;
    background: var(--nav-bg);
    padding: 1.5rem var(--container-px) 2rem;
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    gap: 0.25rem;
    z-index: 99;
  }

  .nav-links.open a {
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
    color: var(--nav-text);
  }

  .hero-ctas { gap: 0.75rem; }
  .hero-ctas .btn { flex: 1; justify-content: center; }

  .services-grid,
  .projects-grid,
  .testimonials-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row { grid-template-columns: 1fr; }

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

  .article-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.4rem; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}

/* ── Animations ───────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: none;
  }
}

/* ── Cookie Banner ────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--footer-bg);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.25);
  transform: translateY(0);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-banner.hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 1.25rem var(--container-px);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 260px;
}

.cookie-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.cookie-text p {
  font-size: 0.8rem;
  color: var(--footer-text);
  line-height: 1.5;
}

.cookie-text a {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
  font-size: 0.8rem;
}

.cookie-text a:hover { color: #fff; }

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans);
  border: 1px solid transparent;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cookie-btn-accept:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--footer-text);
  border-color: rgba(255,255,255,0.2);
}
.cookie-btn-reject:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner-inner { gap: 1rem; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}

/* ── Language sections (impressum.html) ──────────────────── */
[data-lang] { display: none; }
[data-lang].lang-active { display: block; }

/* ── Impressum Page ───────────────────────────────────────── */
.impressum-page {
  padding-top: 80px;
  min-height: 100vh;
  background: var(--bg);
}

.impressum-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0 3rem;
}

.impressum-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.impressum-content {
  padding: 4rem 0 6rem;
  max-width: 800px;
}

.impressum-content h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.5rem;
  letter-spacing: -0.01em;
}

.impressum-content h2:first-child { margin-top: 0; }

.impressum-content p,
.impressum-content address {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: normal;
}

.impressum-content a {
  color: var(--accent);
}

.impressum-content .placeholder-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(26,86,219,0.06);
  border: 1px solid rgba(26,86,219,0.12);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
  display: inline-block;
}

.impressum-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.impressum-section:last-child {
  border-bottom: none;
}
