/*
Theme Name: FIXstudio
Theme URI: https://fixstudio.de
Author: FIXstudio
Author URI: https://fixstudio.de
Description: Modern, minimal B2B theme for FIXstudio.de. Computer-inspired design with a magenta accent, bilingual (DE/EN, Polylang-ready). Short pages, service sub-pages, compact hero and card grid.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fixstudio
Tags: business, one-column, custom-menu, custom-logo, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --c-accent: #d4145a;
  --c-accent-hover: #b30f4b;
  --c-accent-deep: #700b30;
  --c-accent-ink: #4d0821;
  --c-tint: #fdeef4;
  --c-tint-2: #fbe0ea;

  --c-ink: #16161c;
  --c-ink-soft: #3d3d47;
  --c-muted: #6b6b76;

  --c-surface: #ffffff;
  --c-surface-2: #f6f6f9;
  --c-line: #e6e6ee;
  --c-line-strong: #d4d4de;

  --c-dark: #121218;
  --c-dark-2: #1b1b23;
  --c-dark-line: #2a2a34;

  --c-green: #0c8a4e;
  --c-green-tint: #e5f4ec;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(18, 18, 24, .06), 0 1px 3px rgba(18, 18, 24, .08);
  --shadow-md: 0 4px 14px rgba(18, 18, 24, .08), 0 2px 4px rgba(18, 18, 24, .06);
  --shadow-lg: 0 16px 40px rgba(18, 18, 24, .14);

  --container: 1180px;
  --gutter: 1.5rem;
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-hover); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  line-height: 1.2;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

::selection { background: var(--c-accent); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  z-index: 1000; padding: .6rem 1rem;
  background: var(--c-dark); color: #fff;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   3. Header / navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 24, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-dark-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  min-width: 0;
}
.site-branding a { color: #fff; }
.site-branding a:hover { color: #fff; }
.site-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.site-logo .accent { color: var(--c-accent); }
.custom-logo { max-height: 40px; width: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a {
  display: block;
  padding: .5rem .8rem;
  color: #d9d9e2;
  font-size: .95rem;
  border-radius: 8px;
}
.main-nav a:hover { color: #fff; background: var(--c-dark-2); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: #fff; }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 240px;
  padding: .4rem;
  background: var(--c-dark-2);
  border: 1px solid var(--c-dark-line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  flex-direction: column;
  align-items: stretch;
  gap: .1rem;
}
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav .sub-menu a { padding: .55rem .8rem; font-size: .92rem; }

.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-mono);
  font-size: .82rem;
}
.lang-switcher ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.lang-switcher li { margin: 0; }
.lang-switcher a,
.lang-switcher .current {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 6px;
  color: #b6b6c2;
}
.lang-switcher a:hover { color: #fff; }
.lang-switcher .current,
.lang-switcher .current-lang a {
  color: #fff;
  background: var(--c-dark-2);
  border: 1px solid var(--c-dark-line);
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--c-dark-line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #e6e6ee;
  border-radius: 1px;
  transition: transform .18s ease, opacity .18s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.3rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-hover); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--light { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line-strong); }
.btn--light:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn--sm { padding: .5rem .9rem; font-size: .86rem; }

/* ==========================================================================
   5. Hero (front page)
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(212, 20, 90, .22), transparent 60%),
    var(--c-dark);
  color: #e8e8ee;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--c-accent);
  letter-spacing: .06em;
  margin-bottom: 1rem;
}
.hero__eyebrow::before { content: "> "; color: #7a7a88; }
.hero h1 {
  color: #fff;
  margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--c-accent); }
.hero__lead {
  max-width: 46rem;
  font-size: 1.1rem;
  color: #c3c3cd;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}
.hero__terminal {
  font-family: var(--font-mono);
  font-size: .85rem;
  background: var(--c-dark-2);
  border: 1px solid var(--c-dark-line);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-lg);
}
.hero__terminal .bar {
  display: flex;
  gap: 6px;
  margin-bottom: .8rem;
}
.hero__terminal .bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3a3a46;
}
.hero__terminal .bar i:first-child { background: var(--c-accent); }
.hero__terminal pre {
  margin: 0;
  white-space: pre-wrap;
  color: #b9b9c6;
  line-height: 1.7;
}
.hero__terminal .muted { color: #6d6d7c; }
.hero__terminal .prompt { color: var(--c-accent); }
.hero__terminal .ok { color: var(--c-green); }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; }
}

/* ==========================================================================
   6. Sections / layout blocks
   ========================================================================== */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tint { background: var(--c-surface-2); }
.section--dark { background: var(--c-dark); color: #c9c9d2; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--c-accent);
  letter-spacing: .05em;
  margin-bottom: .5rem;
}
.section__head h2 { margin-bottom: .25rem; }
.section__head .lead { color: var(--c-muted); max-width: 44rem; margin: 0; }
.section__more { font-weight: 600; white-space: nowrap; }

/* ==========================================================================
   7. Cards (services)
   ========================================================================== */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__index {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--c-accent);
  letter-spacing: .05em;
  margin-bottom: .75rem;
}
.card h3 { margin-bottom: .5rem; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--c-accent); }
.card p { color: var(--c-muted); font-size: .95rem; margin-bottom: 0; }
.card__arrow {
  margin-top: 1rem;
  font-weight: 600;
  font-size: .92rem;
}

.card--dark { background: var(--c-dark-2); border-color: var(--c-dark-line); }
.card--dark h3 a { color: #fff; }
.card--dark p { color: #a9a9b6; }

/* ==========================================================================
   8. Feature list (why us / about)
   ========================================================================== */
.features { list-style: none; margin: 0; padding: 0; }
.features li {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding-block: 1rem;
  border-bottom: 1px solid var(--c-line);
}
.section--dark .features li { border-bottom-color: var(--c-dark-line); }
.features li:last-child { border-bottom: 0; }
.features .mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
  border-radius: 6px;
}
.features strong { display: block; color: var(--c-ink); }
.section--dark .features strong { color: #fff; }
.features p { margin: .25rem 0 0; color: var(--c-muted); font-size: .94rem; }
.section--dark .features p { color: #a9a9b6; }

/* ==========================================================================
   9. CTA band
   ========================================================================== */
.cta-band {
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(212, 20, 90, .28), transparent 60%),
    var(--c-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  color: #e8e8ee;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #c3c3cd; max-width: 40rem; margin-bottom: 1.5rem; }
.cta-band .btn { background: var(--c-accent); }
.cta-band .btn:hover { background: var(--c-accent-hover); }

/* ==========================================================================
   10. Page header (subpages)
   ========================================================================== */
.page-header {
  background:
    radial-gradient(900px 300px at 85% 0%, rgba(212, 20, 90, .16), transparent 60%),
    var(--c-dark);
  color: #e8e8ee;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-header h1 { color: #fff; margin-bottom: .5rem; }
.page-header .lead { color: #c3c3cd; max-width: 46rem; margin: 0; }
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: #8a8a98;
  margin-bottom: 1rem;
}
.breadcrumbs a { color: #c3c3cd; }
.breadcrumbs .sep { margin: 0 .4rem; color: #55555f; }

/* ==========================================================================
   11. Content (subpage body)
   ========================================================================== */
.entry-content { max-width: 52rem; }
.entry-content h2 { margin-top: 2rem; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  margin: 1.5rem 0;
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid var(--c-accent);
  color: var(--c-ink-soft);
}
.entry-content code, .entry-content pre {
  font-family: var(--font-mono);
  font-size: .88rem;
  background: var(--c-surface-2);
  border-radius: 6px;
}
.entry-content code { padding: .1rem .35rem; }
.entry-content pre {
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border: 1px solid var(--c-line);
}
.entry-content img { border-radius: var(--radius); }

/* Two-column content layout */
.layout-split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .layout-split { grid-template-columns: 1.6fr 1fr; }
}

.aside-box {
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
}
.aside-box h3 { margin-bottom: .75rem; }

/* ==========================================================================
   12. Contact / forms
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 760px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
}
.contact-item .label {
  display: block;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--c-accent);
  letter-spacing: .05em;
  margin-bottom: .4rem;
}
.contact-item a { color: var(--c-ink); font-weight: 600; }
.contact-item a:hover { color: var(--c-accent); }

.form {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
}
.form label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .35rem;
}
.form .required { color: var(--c-accent); }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  padding: .65rem .8rem;
  font: inherit;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-tint);
}
.form textarea { resize: vertical; min-height: 140px; }
.form .field { margin-bottom: 1.1rem; }
.form .honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--c-muted); margin-top: .75rem; }

.form-response {
  margin-top: 1rem;
  padding: .8rem 1rem;
  border-radius: 8px;
  font-size: .92rem;
}
.form-response.success { background: var(--c-green-tint); color: var(--c-green); }
.form-response.error { background: var(--c-tint); color: var(--c-accent-ink); }

/* ==========================================================================
   13. Map
   ========================================================================== */
.map {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface-2);
  line-height: 0;
}
.map iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer {
  background: var(--c-dark);
  color: #a9a9b6;
  margin-top: 0;
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer h4 {
  color: #fff;
  font-size: .9rem;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #b9b9c6; }
.site-footer a:hover { color: #fff; }
.site-footer__brand { color: #e8e8ee; }
.site-footer__brand .logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: .75rem;
}
.site-footer__brand .logo .accent { color: var(--c-accent); }
.site-footer__brand p { font-size: .92rem; color: #8a8a98; margin-bottom: .5rem; }
.site-footer__bottom {
  border-top: 1px solid var(--c-dark-line);
  padding-block: 1.25rem;
  font-size: .84rem;
  color: #6d6d7c;
}
.site-footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
}
.site-footer__bottom a { color: #9a9aa8; }
.site-footer__bottom a:hover { color: #fff; }

/* ==========================================================================
   15. Notices / misc
   ========================================================================== */
.notice-404 { text-align: center; padding-block: 4rem; }
.notice-404 .code {
  font-family: var(--font-mono);
  font-size: 4rem;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.error404 .site-header { background: var(--c-dark); }

/* ==========================================================================
   16. Motion (respect reduced motion)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   17. Mobile navigation
   ========================================================================== */
@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--c-dark-2);
    border-bottom: 1px solid var(--c-dark-line);
    padding: 1rem var(--gutter) 1.5rem;
    display: none;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  body.nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .main-nav .sub-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0;
    padding-left: 1rem;
    display: none;
  }
  .main-nav .menu-item-has-children.open > .sub-menu { display: flex; }
  .main-nav .menu-item-has-children > a::after {
    content: " ▾";
    font-size: .7em;
  }
}
