/*
Theme Name: bitman
Theme URI: https://www.bitman.de
Author: sakthegreek / bitman
Author URI: https://www.bitman.de
Description: Modernes WordPress-Theme für Baumann IT MANagement – Design-System nach bitman.social
Version: 1.0.1
License: GNU General Public License v2 or later
Text Domain: bitman
*/

/* ============================================================
   DESIGN TOKENS (von bitman.social)
   ============================================================ */
:root {
  --c-amber:      #FEB100;
  --c-amber-deep: #E59E00;
  --c-amber-soft: #FFF4D6;
  --c-ink:        #0E1116;
  --c-ink-2:      #1A1D24;
  --c-ink-3:      #2A2F3A;
  --c-muted:      #5A6270;
  --c-muted-2:    #8A91A0;
  --c-line:       #E7E4DC;
  --c-line-2:     #EFEDE5;
  --c-surface:    #FFFFFF;
  --c-bg:         #FBF7EE;
  --c-bg-2:       #F4EFE3;
  --c-bg-dark:    #0E1116;

  --radius-xs: 6px;
  --radius-s:  12px;
  --radius-m:  18px;
  --radius-l:  28px;
  --radius-xl: 40px;

  --shadow-s: 0 1px 2px rgba(14,17,22,.04), 0 2px 8px rgba(14,17,22,.06);
  --shadow-m: 0 2px 6px rgba(14,17,22,.05), 0 8px 24px rgba(14,17,22,.08);
  --shadow-l: 0 4px 12px rgba(14,17,22,.06), 0 16px 48px rgba(14,17,22,.12);

  --font-sans: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --max-w: 1160px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-amber); text-decoration: none; }
a:hover { color: var(--c-amber-deep); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-ink);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
h4 { font-size: 1rem; }

p { color: var(--c-muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { color: var(--c-ink); font-weight: 600; }

ul, ol { padding-left: 1.5rem; color: var(--c-muted); }
li { margin-bottom: .4rem; }

/* Section label (wie bitman.social: "— LEISTUNGEN") */
.section-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-amber);
  flex-shrink: 0;
}

/* Highlight text in amber */
.text-amber { color: var(--c-amber); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}
.section--dark {
  background: var(--c-bg-dark);
  color: var(--c-surface);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--c-surface); }
.section--dark p { color: var(--c-muted-2); }

.section--alt { background: var(--c-bg-2); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(251,247,238,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-logo img,
.site-logo svg { height: 52px; width: auto; }
.site-logo .custom-logo { height: 52px !important; width: auto !important; }
.site-logo .custom-logo-link { display: flex; align-items: center; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a,
.nav-dropdown > a {
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-ink-3);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.main-nav > a:hover,
.main-nav > a.current-menu-item,
.nav-dropdown > a:hover,
.nav-dropdown > a.current-menu-item {
  background: var(--c-amber-soft);
  color: var(--c-amber-deep);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown__arrow {
  margin-left: 4px;
  vertical-align: middle;
  transition: transform .2s;
}
.nav-dropdown:hover .nav-dropdown__arrow {
  transform: rotate(180deg);
}
.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  padding: 6px;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown__menu { display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown__menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-size: .88rem;
  font-weight: 500;
  color: var(--c-ink-3);
  transition: background .15s, color .15s;
}
.nav-dropdown__menu a:hover { background: var(--c-amber-soft); color: var(--c-amber-deep); }

.nav-cta {
  background: var(--c-amber) !important;
  color: var(--c-ink) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-xl) !important;
  padding: 10px 22px !important;
  margin-left: 12px;
  transition: background .15s, transform .1s !important;
}
.nav-cta:hover {
  background: var(--c-amber-deep) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: .2s;
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--c-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-m);
  }
  .main-nav.open { display: flex; }
  .main-nav > a,
  .nav-dropdown > a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--c-line-2); }
  .nav-dropdown { position: static; }
  .nav-dropdown__menu { display: flex !important; flex-direction: column; position: static; box-shadow: none; border: none; background: var(--c-surface); margin: 0 0 4px 16px; padding: 4px; }
  .nav-dropdown__menu a { border-bottom: 1px solid var(--c-line-2); }
  .nav-cta { margin-left: 0; margin-top: 12px; text-align: center; border-radius: var(--radius-xl) !important; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__headline {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero__sub {
  font-size: 1.1rem;
  color: var(--c-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__image {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { order: -1; max-height: 280px; }
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  margin: 48px 0;
}
.stat-card {
  background: var(--c-surface);
  padding: 28px 24px;
  text-align: center;
}
.stat-card__value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--c-amber);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-card__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

@media (max-width: 640px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-xl);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }

.btn-primary {
  background: var(--c-amber);
  color: var(--c-ink);
}
.btn-primary:hover { background: var(--c-amber-deep); color: var(--c-ink); }

.btn-outline {
  background: transparent;
  color: var(--c-ink);
  border: 2px solid var(--c-line);
}
.btn-outline:hover { border-color: var(--c-amber); color: var(--c-amber-deep); }

.btn-ghost {
  background: transparent;
  color: var(--c-muted);
  padding-left: 0;
}
.btn-ghost:hover { color: var(--c-amber); transform: none; box-shadow: none; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 28px;
  box-shadow: var(--shadow-s);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); }

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--c-amber-soft);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: .5rem;
}
.card__text { font-size: .9rem; color: var(--c-muted); margin: 0; }

/* ============================================================
   INTRO SPLIT (Text + Bild)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--reverse .split__image { order: -1; }
.split__image {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
}
.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__image { order: 0; }
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps { counter-reset: step; display: grid; gap: 24px; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}
.step__num {
  counter-increment: step;
  width: 56px;
  height: 56px;
  background: var(--c-amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--c-ink);
  flex-shrink: 0;
}
.step__title { font-size: 1rem; font-weight: 700; color: var(--c-ink); margin-bottom: .25rem; }
.step__text { font-size: .9rem; color: var(--c-muted); margin: 0; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--c-line);
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-amber);
  border: 2px solid var(--c-bg);
  box-shadow: 0 0 0 2px var(--c-amber);
}
.timeline-item__year {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: .25rem;
}
.timeline-item__title { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; color: var(--c-ink); }
.timeline-item__text { font-size: .9rem; color: var(--c-muted); margin: 0; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-s);
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--c-ink);
  background: var(--c-surface);
  transition: border-color .15s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-amber);
  box-shadow: 0 0 0 3px rgba(254,177,0,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* wpcf7 overrides */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-s);
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--c-ink);
  background: var(--c-surface);
  transition: border-color .15s;
  outline: none;
}
.wpcf7 input[type="submit"] {
  background: var(--c-amber);
  color: var(--c-ink);
  font-weight: 700;
  border: none;
  padding: 13px 28px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: .95rem;
  transition: background .15s;
}
.wpcf7 input[type="submit"]:hover { background: var(--c-amber-deep); }

/* ============================================================
   CALLOUT / BANNER
   ============================================================ */
.callout {
  background: var(--c-amber);
  border-radius: var(--radius-l);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.callout__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: .4rem;
}
.callout__sub { color: rgba(14,17,22,.65); font-size: .95rem; margin: 0; }
.btn-dark {
  background: var(--c-ink);
  color: var(--c-surface);
}
.btn-dark:hover { background: var(--c-ink-2); color: var(--c-surface); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-bg-dark);
  color: var(--c-muted-2);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand__logo { height: 68px; width: auto; margin-bottom: 12px; }
.footer-brand__desc { font-size: .88rem; line-height: 1.6; color: var(--c-muted-2); max-width: 260px; }

.footer-col h4 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-surface);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: .88rem; color: var(--c-muted-2); transition: color .15s; }
.footer-col a:hover { color: var(--c-amber); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--c-amber); }

/* ============================================================
   PAGE HERO (Unterseiten)
   ============================================================ */
.page-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--c-line);
}
.page-hero h1 { margin-bottom: .5rem; }
.page-hero p { font-size: 1.1rem; max-width: 620px; color: var(--c-muted); margin: 0; }

/* ============================================================
   JOBS
   ============================================================ */
.job-card {
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 28px 32px;
  background: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transition: border-color .15s, box-shadow .15s;
}
.job-card:hover { border-color: var(--c-amber); box-shadow: var(--shadow-m); }
.job-card__title { font-size: 1.1rem; font-weight: 700; color: var(--c-ink); margin-bottom: .25rem; }
.job-card__meta { font-size: .88rem; color: var(--c-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: .75rem;
  font-weight: 600;
  background: var(--c-amber-soft);
  color: var(--c-amber-deep);
}

/* ============================================================
   DATENSCHUTZ / PROSE
   ============================================================ */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin: 2.5rem 0 .75rem; color: var(--c-ink); }
.prose h3 { font-size: 1.1rem; margin: 2rem 0 .5rem

/* ============================================================
   ELEMENTOR OVERRIDES – Schriftgrößen & Layout
   ============================================================ */

/* Heading-Widgets: Größen an Theme angleichen */
.elementor .elementor-widget-heading h1.elementor-heading-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  line-height: 1.15 !important;
}
.elementor .elementor-widget-heading h2.elementor-heading-title {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem) !important;
  line-height: 1.2 !important;
}
.elementor .elementor-widget-heading p.elementor-heading-title,
.elementor .elementor-widget-heading .elementor-heading-title[data-element_type="heading"] p {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
}

/* Text-Editor Widget */
.elementor .elementor-widget-text-editor,
.elementor .elementor-widget-text-editor p {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
}

/* Button Widget */
.elementor .elementor-widget-button .elementor-button {
  font-size: 0.9rem !important;
  padding: 11px 24px !important;
}

/* Bilder: maximale Höhe begrenzen */
.elementor .elementor-widget-image img {
  max-height: 380px;
  object-fit: cover;
  width: 100%;
  border-radius: 12px;
}

/* Spalten-Fix: Heading + Text untereinander statt nebeneinander */
[data-id="0131464"],
[data-id="b98e81d"],
[data-id="69deda5"] {
  flex-direction: column !important;
  align-items: stretch !important;
}


/* ============================================================
   SERVICES SUB-NAVIGATION BAR
   ============================================================ */
.services-subnav {
    background: #ffffff;
    border-bottom: 2px solid var(--c-line);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.services-subnav::-webkit-scrollbar {
    display: none;
}
.services-subnav-inner {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 0;
}
.snav-link {
    flex-shrink: 0;
    display: block;
    padding: 13px 13px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--c-muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.snav-link:hover {
    color: var(--c-ink);
    border-bottom-color: var(--c-line);
    text-decoration: none;
}
.snav-link.snav-active {
    color: var(--c-amber);
    border-bottom-color: var(--c-amber);
}
@media (max-width: 768px) {
    .services-subnav-inner {
        padding: 0 8px;
    }
    .snav-link {
        padding: 11px 9px;
        font-size: 0.67rem;
    }
}
