/* ═══════════════════════════════════════════════════════════════════════════
   imed360 – IT-Service für Arztpraxen
   Styles (auf Basis des Figma-Designs)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --background: #ffffff;
  --foreground: #111827;
  --card: #f9fafb;
  --card-foreground: #111827;
  --primary: #0b4f7a;
  --primary-foreground: #ffffff;
  --secondary: #f0f5fa;
  --secondary-foreground: #1e3a52;
  --muted: #f4f6f9;
  --muted-foreground: #6b7a8d;
  --accent: #0e8a6c;
  --accent-foreground: #ffffff;
  --border: #e2e8f0;
  --ring: #0b4f7a;
  --radius: 4px;
  --max-width: 72rem; /* 1152px ~ max-w-6xl */
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
html:hover::-webkit-scrollbar-thumb { background: var(--muted-foreground); }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary,
.btn-outline,
.btn-accent {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s, background-color 0.2s;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 1rem 2rem;
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--foreground);
  font-weight: 500;
  font-size: 16px;
  padding: 1rem 2rem;
}
.btn-outline:hover { border-color: var(--primary); }

.btn-accent {
  background-color: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 0.5rem 1.25rem;
}
.btn-accent:hover { opacity: 0.9; }

/* ─── Eyebrow-Label ──────────────────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.eyebrow-line {
  width: 24px;
  height: 2px;
  background-color: var(--accent);
  flex-shrink: 0;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.55); }
.eyebrow-centered { justify-content: center; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link { display: inline-flex; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-desktop > a:not(.nav-cta) {
  color: var(--muted-foreground);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-desktop > a:not(.nav-cta):hover { color: var(--foreground); }
.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--foreground);
  display: block;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  border-top: 1px solid var(--border);
  background-color: #fff;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile > a:not(.btn-accent) {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--foreground);
}
.nav-mobile .btn-accent {
  padding: 0.75rem 1.25rem;
  font-size: 16px;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #fff;
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}
.hero-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 60%, rgba(11, 79, 122, 0.04) 100%);
}
.hero-content {
  position: relative;
  padding-block: 5rem;
}
.hero-text { max-width: 48rem; }
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}
.accent-primary { color: var(--primary); }
.lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted-foreground);
  line-height: 1.75;
  max-width: 56ch;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-stats {
  border-top: 1px solid var(--border);
  margin: 4rem 0 0;
  padding-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 36rem;
}
.hero-stats dt {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.hero-stats dd {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}
@media (min-width: 768px) {
  .hero-content { padding-block: 10rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Section-Köpfe ──────────────────────────────────────────────────────── */
.section-head-split {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.section-head-split h2,
.about-head h2,
.collab-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--foreground);
}
.section-head-note {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 40ch;
  line-height: 1.7;
}
@media (min-width: 768px) {
  .section-head-split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* ─── About ──────────────────────────────────────────────────────────────── */
.about {
  background-color: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 5rem;
}
.about-grid {
  display: grid;
  gap: 2.5rem;
}
.about-body p {
  font-size: 1.05rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-body p:last-of-type { margin-bottom: 0; }
.about-pills {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.about-pills li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--foreground);
}
.about-pills span { color: var(--accent); font-size: 18px; }

@media (min-width: 768px) {
  .about { padding-block: 7rem; }
  .about-grid { grid-template-columns: repeat(12, 1fr); gap: 4rem; align-items: start; }
  .about-head { grid-column: span 4; }
  .about-body { grid-column: span 8; }
}

/* ─── Services ───────────────────────────────────────────────────────────── */
.services { background-color: #fff; padding-block: 5rem; }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  background-color: var(--border);
  gap: 1px;
}
.service-card {
  background-color: #fff;
  padding: 1.75rem;
  transition: background-color 0.2s;
}
.service-card:hover { background-color: var(--secondary); }
.service-icon { color: var(--primary); margin-bottom: 1rem; display: inline-flex; }
.service-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.service-card p { font-size: 14px; color: var(--muted-foreground); line-height: 1.65; }

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .services { padding-block: 7rem; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Process ────────────────────────────────────────────────────────────── */
.process { background-color: var(--primary); padding-block: 5rem; }
.process-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #fff;
  margin-bottom: 3rem;
}
.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.12);
}
.process-step {
  padding: 1.5rem;
  background-color: var(--primary);
  cursor: pointer;
  transition: background-color 0.25s;
  display: flex;
  gap: 1rem;
  flex-direction: column;
}
.process-step.is-active { background-color: rgba(255, 255, 255, 0.1); }
.process-num {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color 0.25s;
}
.process-step.is-active .process-num { color: var(--accent); }
.process-step h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.process-step p { font-size: 14px; color: rgba(255, 255, 255, 0.6); line-height: 1.65; }

@media (min-width: 768px) {
  .process { padding-block: 7rem; }
}
@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .process-step { padding: 2rem 1.75rem; }
  .process-num { font-size: 2.25rem; margin-bottom: 0.5rem; }
}

/* ─── Collaboration ──────────────────────────────────────────────────────── */
.collab { background-color: #fff; border-bottom: 1px solid var(--border); padding-block: 5rem; }
.collab-grid { display: grid; gap: 2.5rem; }
.collab-head h2 { margin-bottom: 1.5rem; }
.collab-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.collab-body { display: flex; flex-direction: column; gap: 1.75rem; }
.collab-point {
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
  transition: border-color 0.3s;
}
.collab-point:hover { border-color: var(--accent); }
.collab-point h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.collab-point p { font-size: 0.97rem; color: var(--muted-foreground); line-height: 1.75; }

@media (min-width: 768px) {
  .collab { padding-block: 7rem; }
  .collab-grid { grid-template-columns: repeat(12, 1fr); gap: 4rem; align-items: start; }
  .collab-head { grid-column: span 4; }
  .collab-body { grid-column: span 8; }
}

/* ─── About Us ───────────────────────────────────────────────────────────── */
.aboutus { background-color: var(--muted); padding-block: 5rem; }
.aboutus-inner { max-width: 48rem; margin-inline: auto; text-align: center; }
.aboutus-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--foreground);
  margin-bottom: 1.75rem;
}
.aboutus-inner > p {
  font-size: 1.05rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.eyebrow-centered { margin-bottom: 1.5rem; }
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.value-card {
  background-color: #fff;
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: left;
}
.value-card strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.value-card span { font-size: 13px; color: var(--muted-foreground); line-height: 1.6; }

@media (min-width: 768px) {
  .aboutus { padding-block: 7rem; }
}
@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Contact ────────────────────────────────────────────────────────────── */
.contact { background-color: #fff; padding-block: 5rem; }
.contact-intro { margin-bottom: 3rem; }
.contact-intro-grid h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--foreground);
  margin-bottom: 1.25rem;
}
.contact-intro-grid p {
  font-size: 1.05rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 60ch;
}
.contact-form-wrap {
  background-color: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-form {
  padding-block: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field label {
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  color: var(--foreground);
}
.field input,
.field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  background-color: #fff;
  color: var(--foreground);
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus,
.field textarea:focus { border-color: var(--primary); }
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) { border-color: #c0392b; }

.form-submit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
.btn-submit {
  font-size: 16px;
  padding: 13px 36px;
  border: none;
  white-space: nowrap;
}
.form-note { font-size: 13px; color: var(--muted-foreground); }
.form-status { font-size: 14px; font-weight: 500; }
.form-status.success { color: var(--accent); }
.form-status.error { color: #c0392b; }

@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: repeat(2, 1fr); }
  .form-row-3 { grid-template-columns: repeat(3, 1fr); }
  .form-submit { flex-direction: row; align-items: center; }
}
@media (min-width: 768px) {
  .contact { padding-block: 7rem; }
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--foreground);
  color: rgba(255, 255, 255, 0.5);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand span { font-size: 13px; color: rgba(255, 255, 255, 0.3); }
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
}
.footer-links a { transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-links span { color: rgba(255, 255, 255, 0.2); }
.footer-copy { font-size: 12px; color: rgba(255, 255, 255, 0.25); }

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* ─── Reduced Motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
