/* =====================================================
   Mansel Solutions – Main Stylesheet
   Apple-inspired minimal design
   ===================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #ffffff;
  --surface:     #f5f5f7;
  --text:        #1d1d1f;
  --text-muted:  #6e6e73;
  --accent:      #0066cc;
  --border:      #d2d2d7;
  --font:        -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --radius:      18px;
  --max:         1160px;
  --ease:        0.28s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: var(--accent); }

/* ── Navigation ──────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 72px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/*
 * Logo_B_white.png ist 500×500px (quadratisches Canvas, horizontales Logo innen).
 * Trick: Bild breit skalieren + Leerraum oben/unten wegcroppen.
 */
.nav-logo {
  display: block;
  width: 191px;
  height: 59px;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-logo img {
  width: 191px;
  height: auto;          /* = 191px, da Quadrat */
  margin-top: -62px;     /* -66 + 4px nach unten verschoben */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  transition: color var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all var(--ease);
}

main { padding-top: 72px; }

/* ── Layout helpers ──────────────────────────────── */
.section    { padding: 100px 28px; }
.section-sm { padding: 64px 28px; }

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

/* ── Hero ────────────────────────────────────────── */
.hero {
  background: var(--surface);
  text-align: center;
  padding: 130px 28px 110px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  max-width: 820px;
  margin: 0 auto 22px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--ease);
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0055aa; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-white { background: #fff; color: var(--text); }
.btn-white:hover { background: var(--surface); }

/* ── Typography ──────────────────────────────────── */
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}

p { color: var(--text-muted); line-height: 1.75; }

/* ── Service Cards (Home) ────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-top: 64px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body { padding: 28px; }
.card-body p { font-size: 14px; margin-top: 8px; }

/* ── About strip ─────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-text .label { margin-bottom: 12px; }
.about-text h2 { margin-bottom: 18px; }
.about-text p + p { margin-top: 14px; }

/* ── CTA Banner ──────────────────────────────────── */
.cta-banner {
  background: var(--text);
  text-align: center;
  padding: 100px 28px;
}

.cta-banner h2 { color: #fff; }
.cta-banner p  { color: rgba(255,255,255,.55); max-width: 460px; margin: 0 auto 40px; }

/* ── Service mark (Logo statt Nummerierung) ──────── */
.service-mark {
  display: block;
  margin-bottom: 14px;
}

.service-mark img {
  width: 29px !important;
  height: 29px !important;
  max-width: 29px !important;
  aspect-ratio: 1 !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}

/* ── Service Detail (Leistungen) ─────────────────── */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child { border-bottom: none; }
.service-block.flip { direction: rtl; }
.service-block.flip > * { direction: ltr; }

.service-block img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-block ul {
  list-style: none;
  margin-top: 20px;
}

.service-block ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-muted);
}

.service-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

/* ── Contact ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.form-row { margin-bottom: 18px; }

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 7px;
}

input, textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color var(--ease);
}

input:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 140px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--text-muted);
}

.form-check input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}

.alert {
  padding: 20px 22px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
  display: none;
}

.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-error   { background: #ffebee; color: #c62828; }

.contact-info h3 { margin-bottom: 22px; }

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 20px;
  line-height: 1.4;
}

.contact-detail p {
  font-size: 15px;
  line-height: 1.6;
}

/* ── Legal pages ─────────────────────────────────── */
.legal-wrap {
  max-width: 720px;
  padding: 80px 28px 100px;
  margin: 0 auto;
}

.legal-wrap h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 48px;
}

.legal-wrap h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 44px;
  margin-bottom: 10px;
}

.legal-wrap p,
.legal-wrap li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-wrap ul { padding-left: 20px; margin-bottom: 12px; }
.legal-wrap a { color: var(--accent); }

/* ── Page header (inner pages) ───────────────────── */
.page-header {
  background: var(--surface);
  padding: 80px 28px 64px;
  text-align: center;
}

.page-header .eyebrow { margin-bottom: 14px; }
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Footer ──────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 28px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: block;
  width: 140px;
  height: 44px;
  overflow: hidden;
  opacity: .55;
}

.footer-logo img {
  width: 140px;
  height: auto;
  margin-top: -48px;   /* (140 - 44) / 2 = 48 */
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--ease);
}

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

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .cards             { grid-template-columns: 1fr; }
  .about-grid        { grid-template-columns: 1fr; gap: 40px; }
  .service-block     { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .service-block.flip { direction: ltr; }
  .contact-grid      { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    inset: 72px 0 auto 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 8px 28px 28px;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a  { display: block; padding: 14px 0; font-size: 16px; }

  .nav-toggle { display: flex; }

  .section    { padding: 64px 20px; }
  .section-sm { padding: 44px 20px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}
