/* =============================================
   MEDIZIN-REPORTER.DE — Professional Website
   Design: Medizin-Reporter Markenidentität
   Colors: Medical Blue (#2196C8), White, Dark accents
   ============================================= */

/* --- CSS Variables --- */
:root {
  --primary: #2196C8;
  --primary-dark: #1a7ba3;
  --primary-light: #3ab0e0;
  --accent: #1d8ab5;
  --accent-light: #4dc0ec;
  --accent-dark: #166f92;
  --text: #2c3e50;
  --text-light: #5a6d7e;
  --bg: #ffffff;
  --bg-light: #f0f7fb;
  --bg-warm: #f5fafd;
  --border: #d4e6f0;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(33, 150, 200, 0.08);
  --shadow-lg: 0 8px 30px rgba(33, 150, 200, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --max-width: 1140px;
  --font-main: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

a:hover {
  color: var(--accent-dark);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

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

/* --- Header & Navigation --- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(26, 58, 92, 0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-main);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  line-height: 1;
}

.logo-brand .logo-medizin {
  font-weight: 300;
}

.logo-brand .logo-ekg {
  display: inline-block;
  width: 40px;
  height: 20px;
  margin: 0 2px;
  position: relative;
  top: 1px;
}

.logo-brand .logo-reporter {
  font-weight: 800;
}

/* Footer logo variant — white text */
.footer .logo-brand {
  color: var(--white);
}

.footer .logo-brand .logo-ekg line,
.footer .logo-brand .logo-ekg polyline {
  stroke: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--bg-light);
}

.nav a.nav-cta {
  background: var(--accent);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  margin-left: 0.5rem;
  font-weight: 600;
}

.nav a.nav-cta:hover {
  background: var(--accent-dark);
  color: var(--white);
}

/* Mobile Navigation */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(33, 150, 200, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn--secondary {
  background: var(--bg-light);
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--white);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-header .overline {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* --- Trust Bar / Clients --- */
.trust-bar {
  padding: 3rem 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

.trust-item .icon {
  font-size: 1.3rem;
  color: var(--accent);
}

/* --- Process / Steps --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1.25rem;
}

.process-step h4 {
  margin-bottom: 0.5rem;
  font-family: var(--font-main);
  font-weight: 600;
}

.process-step p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.testimonial-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--primary);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 5rem 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 2rem;
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about .logo-name {
  color: var(--white);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.6rem;
}

.footer ul a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer ul a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  margin-left: 1.5rem;
}

.footer-legal a:hover {
  color: var(--white);
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 139, 110, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* --- About Page --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--white);
}

.timeline-year {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.timeline-item h4 {
  font-family: var(--font-main);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* --- Referenzen / Portfolio --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.portfolio-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  background: var(--white);
}

.portfolio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.portfolio-image {
  height: 220px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.portfolio-content {
  padding: 2rem;
}

.portfolio-tag {
  display: inline-block;
  background: rgba(46, 139, 110, 0.1);
  color: var(--accent-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- USP / Why Section --- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.usp-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.usp-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* --- Certifications Grid --- */
.cert-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.cert-item {
  text-align: center;
  max-width: 150px;
}

.cert-badge {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 1rem;
  border-radius: 50%;
  transition: transform var(--transition);
}

.cert-badge:hover {
  transform: scale(1.08);
}

.cert-item h4 {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.cert-item p {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 3.5rem 0; }

  .header .container { height: 64px; }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.active { display: flex; }

  .nav a {
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .nav a.nav-cta {
    margin-left: 0;
    text-align: center;
    margin-top: 0.5rem;
  }

  .mobile-toggle { display: block; }

  .hero { padding: 4rem 0; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.05rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  .card-grid,
  .testimonial-grid,
  .contact-grid,
  .about-intro,
  .portfolio-grid,
  .usp-grid { grid-template-columns: 1fr; }

  .process-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-legal a { margin-left: 0; margin-right: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .trust-items { flex-direction: column; gap: 1rem; }
}
