/*
Theme Name: PMS IT One Page
Theme URI: https://pms-ro.de
Author: PMS-IT
Description: Modern One-Page Theme für PMS-IT
Version: 3.0
Text Domain: pms-it
*/

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --navy:      #0F4C81;
  --navy-dark: #0a3560;
  --navy-xl:   #071f3a;
  --blue:      #3E8FD0;
  --blue-light:#6BAEDE;
  --tint:      #EEF5FB;
  --white:     #ffffff;
  --ink:       #1a2332;
  --body:      #4a5568;
  --gray-100:  #f4f7fb;
  --gray-200:  #e8eef6;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(15,76,129,.12);
  --shadow-lg: 0 12px 48px rgba(15,76,129,.18);
  --trans:     0.28s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--trans);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 90px 0; }

/* ── Header ─────────────────────────────────────────────────── */
/*
  Layout:
  ┌──────────────────────────────┐  ← top: 0
  │  WHITE HEADER  (90px)        │  site-header, z-index 1000
  ├──────────────────────────────┤  ← top: 90px
  │  BLUE BAND     (70px)        │  .logo-band, z-index 999  (always visible, even on scroll)
  └──────────────────────────────┘  ← top: 160px — page content starts here

  Logo: 420px wide, ~151px tall, positioned 9px from header top
  SVG y=55 → "PMS-IT"  lands at ~68px (white area ✓)
  SVG y=92 → "professionelle IT Lösungen" lands at ~108px (blue band ✓)
*/
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--trans);
  overflow: visible;
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(15,76,129,.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: 2rem;
  overflow: visible;
}

/* Fixed blue band — always below the white header */
.logo-band {
  position: fixed;
  top: 90px; left: 0; right: 0;
  height: 70px;
  background: var(--navy-dark);
  z-index: 999;
  pointer-events: none;
}

/* Two-tone overlapping logo
   SVG viewBox 390×140 → scale 420/390 = 1.0769 px/SVGunit, height ≈ 151px
   Logo top: 9px from header top → circle open-gap visible in white area
   White clip: top 81px of logo (= 90px header − 9px offset)
   Blue clip:  bottom 70px of logo (= 151 − 81)
*/
.site-logo {
  position: relative;
  display: block;
  width: 420px;
  height: 90px;
  overflow: visible;
  z-index: 1001;
  flex-shrink: 0;
}
.logo-layer {
  position: absolute;
  top: 9px;           /* shift down so open circle arc is visible */
  left: 0;
  width: 420px;
  height: auto;       /* ≈ 151px */
  display: block;
}
/* Navy logo: visible only in white header (top 81px of the 151px logo) */
.logo-dark {
  clip-path: inset(0 0 70px 0);
}
/* White logo: visible only in blue band (bottom 70px of the 151px logo) */
.logo-white {
  clip-path: inset(81px 0 0 0);
}

.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  padding: .5rem .9rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  transition: var(--trans);
  white-space: nowrap;
}
.main-nav a:hover {
  color: var(--navy);
  background: var(--tint);
}
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-fernwartung {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 6px;
  color: var(--navy);
  transition: background .2s, color .2s;
}
.header-fernwartung:hover { background: var(--tint); color: var(--blue); }
.header-fernwartung svg { width: 20px; height: 20px; fill: currentColor; }
.header-phone {
  font-weight: 700;
  font-size: .88rem;
  color: var(--navy);
  white-space: nowrap;
}
.header-phone:hover { color: var(--blue); }

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

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding-top: 160px; /* 90px header + 70px blue band */
  padding-bottom: 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15,76,129,.9) 0%, rgba(10,53,96,.94) 55%, rgba(7,31,58,.97) 100%),
    url('images/hero-bg.jpg') center/cover no-repeat;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 0 1.75rem;
}
.hero-text { color: var(--white); }
.hero-text .eyebrow { color: var(--blue-light); }
.hero-text h1 {
  color: var(--white);
  margin: .5rem 0 1.25rem;
  line-height: 1.15;
}
.hero-text h1 span { color: var(--blue-light); }
.hero-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Stats ──────────────────────────────────────────────────── */
.stats-band {
  background: var(--navy);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 1rem;
}
.stat-item {
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,.12);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-num span { color: var(--blue-light); }
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-top: .35rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Leistungen ─────────────────────────────────────────────── */
#leistungen { background: var(--gray-100); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--body); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.leistung-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--trans);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.leistung-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.leistung-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.leistung-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.leistung-card:hover .leistung-img img { transform: scale(1.05); }
.leistung-num {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--navy);
  color: white;
  font-size: .75rem;
  font-weight: 800;
  padding: .25rem .6rem;
  border-radius: 20px;
  letter-spacing: .05em;
}
.leistung-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.leistung-body h3 { color: var(--navy); margin-bottom: .6rem; }
.leistung-body p { font-size: .9rem; line-height: 1.65; flex: 1; }
.leistung-more {
  margin-top: 1.25rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: var(--trans);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.leistung-more:focus { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.leistung-card:hover .leistung-more { color: var(--navy); gap: .5rem; }

/* ── Über uns ───────────────────────────────────────────────── */
#ueber-uns { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}
.about-photo {
  position: relative;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-photo::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: calc(var(--radius-lg) + 12px);
  border: 3px solid var(--blue);
  opacity: .3;
  z-index: -1;
}
.about-badge {
  position: absolute;
  bottom: 1.5rem; right: -1rem;
  background: var(--navy);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.about-badge .num { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--blue-light); }
.about-badge .lbl { font-size: .72rem; margin-top: .2rem; color: rgba(255,255,255,.7); }

.about-text .eyebrow { margin-bottom: .5rem; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { margin-bottom: 1rem; }
.about-text blockquote {
  border-left: 4px solid var(--blue);
  padding: 1rem 1.25rem;
  background: var(--tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy);
  font-weight: 600;
  margin: 1.5rem 0;
}
.about-text cite { font-size: .85rem; color: var(--body); font-style: normal; }

/* ── Warum PMS-IT ───────────────────────────────────────────── */
#warum { background: var(--tint); }
.warum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.warum-item {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(15,76,129,.07);
  transition: var(--trans);
}
.warum-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.warum-icon {
  width: 52px; height: 52px;
  background: var(--tint);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.warum-icon svg { width: 26px; height: 26px; fill: var(--navy); }
.warum-item h3 { color: var(--navy); margin-bottom: .5rem; }
.warum-item p { font-size: .9rem; line-height: 1.6; }

/* ── Kundenstimmen ───────────────────────────────────────────── */
.testimonials-section { background: var(--white); }
.testimonials-slider {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.testimonial-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  animation: fadeIn .4s ease;
}
.testimonial-slide.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.testimonial-logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.testimonial-logo img {
  max-height: 64px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(.75);
  transition: var(--trans);
}
.testimonial-slide.active:hover .testimonial-logo img { filter: grayscale(0) opacity(1); }

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--body);
  font-style: italic;
  max-width: 760px;
  margin: 0 auto 1.5rem;
  quotes: none;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.testimonial-author strong { color: var(--navy); font-size: .95rem; }
.testimonial-author span  { color: var(--body); font-size: .82rem; }

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.tctrl-prev, .tctrl-next {
  background: none;
  border: 2px solid var(--blue);
  color: var(--blue);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
  flex-shrink: 0;
}
.tctrl-prev:hover, .tctrl-next:hover { background: var(--blue); color: white; }
.testimonials-dots { display: flex; gap: .5rem; }
.tdot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  transition: var(--trans);
  padding: 0;
}
.tdot.active { background: var(--blue); transform: scale(1.25); }

/* ── Downloads ───────────────────────────────────────────────── */
.downloads-section { background: var(--tint); }
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.download-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}
.download-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.download-icon {
  width: 48px; height: 48px;
  background: var(--blue-50, #eff6ff);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.download-icon svg { width: 26px; height: 26px; fill: var(--blue); }
.download-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .25rem;
}
.download-title { color: var(--navy); font-size: 1.05rem; margin-bottom: .35rem; }
.download-desc  { font-size: .88rem; line-height: 1.6; color: var(--body); flex: 1; }
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  align-self: flex-start;
  margin-top: .25rem;
}

/* ── Kontakt ────────────────────────────────────────────────── */
#kontakt { background: var(--navy-xl); }
.kontakt-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.kontakt-text h2 { color: var(--white); margin-bottom: 1rem; }
.kontakt-text p { color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 2rem; }
.kontakt-details { display: flex; flex-direction: column; gap: 1rem; }
.kontakt-item {
  display: flex; align-items: center; gap: 1rem;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}
.kontakt-item strong { color: white; }
.kontakt-icon {
  width: 42px; height: 42px;
  background: rgba(62,143,208,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kontakt-icon svg { width: 20px; height: 20px; fill: var(--blue-light); }

.kontakt-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}
.kontakt-card h3 { color: white; margin-bottom: 1.5rem; font-size: 1.1rem; }
.cta-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  padding: 2rem;
  background: var(--navy);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.cta-phone .big-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  letter-spacing: -.02em;
}
.cta-phone .sub { font-size: .8rem; color: rgba(255,255,255,.6); }
.cta-phone .btn { width: 100%; justify-content: center; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-logo img { height: 40px; filter: brightness(0) invert(1); opacity: .7; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  transition: var(--trans);
}
.footer-links a:hover { color: rgba(255,255,255,.8); }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.35); }

/* ── Kontaktformular ────────────────────────────────────────── */
.kontakt-form { display: flex; flex-direction: column; gap: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }

/* Formular im Kontakt-Abschnitt (dunkel) */
.kontakt-card .form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  letter-spacing: .03em;
}
.kontakt-card .form-group label span { color: var(--blue-light); }
.kontakt-card .form-group input,
.kontakt-card .form-group textarea,
.kontakt-card .form-group select {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: .65rem .9rem;
  color: white;
  font-size: .9rem;
  font-family: inherit;
  transition: var(--trans);
  width: 100%;
}
.kontakt-card .form-group input::placeholder,
.kontakt-card .form-group textarea::placeholder { color: rgba(255,255,255,.3); }
.kontakt-card .form-group input:focus,
.kontakt-card .form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255,255,255,.12);
}
.kontakt-card .form-group textarea { resize: vertical; min-height: 100px; }

/* Formular im Modal (hell) */
.modal-mini-form .form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .03em;
}
.modal-mini-form .form-group label span { color: var(--blue); }
.modal-mini-form .form-group input,
.modal-mini-form .form-group textarea {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: .65rem .9rem;
  color: var(--ink);
  font-size: .9rem;
  font-family: inherit;
  transition: var(--trans);
  width: 100%;
}
.modal-mini-form .form-group input::placeholder,
.modal-mini-form .form-group textarea::placeholder { color: #aaa; }
.modal-mini-form .form-group input:focus,
.modal-mini-form .form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
}
.modal-mini-form .form-group textarea { resize: vertical; min-height: 90px; }
.modal-mini-form .checkbox-label { color: var(--body); }
.modal-mini-form .checkbox-label a { color: var(--blue); }
.modal-mini-form .checkbox-label em { color: var(--blue); font-style: normal; }

.form-captcha input { max-width: 140px; }
.form-privacy { margin-top: .25rem; }
.checkbox-label {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.checkbox-label > span { flex: 1; }
.checkbox-label a { color: var(--blue-light); text-decoration: underline; }
.checkbox-label em { color: var(--blue-light); font-style: normal; }

.form-success {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.35);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: #86efac;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.form-success svg { width: 22px; height: 22px; fill: #86efac; flex-shrink: 0; }
.form-error {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  color: #fca5a5;
  font-size: .88rem;
  margin-bottom: 1rem;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── Fernwartung Links ──────────────────────────────────────── */
.fernwartung-link {
  color: var(--blue-light);
  font-weight: 600;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: var(--trans);
}
.fernwartung-link:hover { color: white; }

.fernwartung-link-card {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  background: rgba(62,143,208,.18);
  border: 1px solid rgba(62,143,208,.35);
  border-radius: 50px;
  color: var(--blue-light);
  font-size: .85rem;
  font-weight: 600;
  transition: var(--trans);
}
.fernwartung-link-card:hover {
  background: rgba(62,143,208,.3);
  color: white;
}
.fernwartung-link-card svg {
  width: 18px; height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7,31,58,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn .22s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.modal-close:hover { background: var(--gray-200); }
.modal-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .5rem;
}
.modal-box h2 {
  color: var(--navy);
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
}
.modal-content p { margin-bottom: 1rem; }
.modal-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.modal-content ul li {
  padding-left: 1.5rem;
  position: relative;
  font-size: .95rem;
  line-height: 1.6;
}
.modal-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .6rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

/* ── Modal Mini-Form ─────────────────────────────────────────── */
.modal-box.form-mode > *:not(.modal-close):not(.modal-mini-form) {
  display: none !important;
}
.modal-mini-form {
  animation: modalIn .2s cubic-bezier(.4,0,.2,1);
}
.modal-mini-back {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  padding: 0;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: var(--trans);
}
.modal-mini-back:hover { color: var(--navy); }
.modal-mini-heading {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

/* ── Mobile Menü ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-nav, .header-phone, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  /* Logo auf Mobile: 280px breit → 100.5px hoch, top:10px → endet bei 110.5px
     "PMS-IT" bei ~49px, "professionelle IT Lösungen" bei ~76px (beide im weißen Header)
     Schnitt bei 80px (= 90px-Band-Grenze minus 10px Versatz): dunkles Logo zeigt beide Texte */
  .site-logo { width: 280px; height: 90px; }
  .logo-layer { width: 280px; top: 10px; }
  .logo-dark  { clip-path: inset(0 0 20px 0); }  /* zeigt 0–80px: beide Texte sichtbar */
  .logo-white { clip-path: inset(81px 0 0 0); }  /* zeigt 81–100px im blauen Band */
  .mobile-nav {
    display: none;
    position: fixed;
    inset: 0; top: 160px;
    background: var(--white);
    padding: 2rem 1.5rem;
    z-index: 999;
    flex-direction: column;
    gap: .5rem;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    border-radius: var(--radius);
    border-bottom: 1px solid var(--gray-200);
  }
  .mobile-nav a:hover { background: var(--tint); color: var(--navy); }
  .mobile-nav a.btn-primary { color: var(--white); }
  .mobile-nav a.btn-primary:hover { background: var(--navy-dark); color: var(--white); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  section { padding: 56px 0; }

  /* Hero: single column, centered */
  .hero { padding-bottom: 0; }
  .hero-inner {
    padding: 2rem 0 2.5rem;
    text-align: center;
    align-items: center;
  }
  .hero-text p { max-width: 100%; }
  .hero-actions { justify-content: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .stat-item:nth-child(2),
  .stat-item:nth-child(4) { border-bottom: none; }
  .stat-item:nth-child(1) { border-right: 1px solid rgba(255,255,255,.12); }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.12); }

  .leistungen-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { max-width: 360px; margin: 0 auto; }
  .warum-grid { grid-template-columns: 1fr 1fr; }
  .kontakt-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 600px) {
  section { padding: 48px 0; }
  h2 { font-size: 1.5rem; }

  .hero-text h1 { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .leistungen-grid { grid-template-columns: 1fr; }
  .warum-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .modal-overlay {
    padding: 0;
    align-items: flex-start;
    overflow-y: auto;
  }
  .modal-box {
    max-height: none;
    border-radius: 0;
    overflow-y: visible;
    padding: 1.5rem;
    min-height: 100%;
  }
  .modal-box h2 { font-size: 1.3rem; }
  .about-badge { right: 0; }
}
