/* ═══════════════════════════════════════════════════════════════
   MedAnon Homepage – style.css
   Farben aus App-Icon: Navy #1d3461 | Rot #d32f2f | Türkis #26c5da
═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1d3461;
  --navy-d: #142548;
  --red:    #d32f2f;
  --red-d:  #b71c1c;
  --teal:   #26c5da;
  --teal-d: #0097a7;
  --white:  #ffffff;
  --gray-1: #f5f7fa;
  --gray-2: #e8ecf0;
  --gray-3: #9aa5b4;
  --text:   #1a202c;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

img { display: block; max-width: 100%; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover { background: var(--red-d); border-color: var(--red-d); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }

/* Produkt-Buttons im Hero */
.btn-product {
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  font-size: 0.95rem;
  padding: 12px 24px;
}
.btn-med:hover  { background: #d32f2f; border-color: #d32f2f; }
.btn-jur:hover  { background: #2e7d32; border-color: #2e7d32; }
.btn-biz:hover  { background: #e65100; border-color: #e65100; }

/* ── Navigation ───────────────────────────────────────────────── */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}
.nav-icon { width: 38px; height: 38px; border-radius: 8px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(145deg, var(--navy-d) 0%, var(--navy) 60%, #1a4a7a 100%);
  display: flex;
  flex-direction: column;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 24px 52px;
  gap: 18px;
}

.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

.accent-red { color: var(--teal); }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ── Trust-Line ───────────────────────────────────────────────── */
/* Inhalt leer – min-height hält ~3 Zeilen vertikalen Abstand im Hero */
.trust-line {
  font-size: 0.81rem;
  color: rgba(255,255,255,0.50);
  letter-spacing: 0.02em;
  max-width: 640px;
  line-height: 1;
  min-height: 3rem;
}

/* ── Hero-Nav (Icon-Kacheln) ──────────────────────────────────── */
.hero-nav {
  margin-top: 6px;
  width: 100%;
  max-width: 740px;
}

.hero-nav-intro {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--teal);
  margin-top: 5px;
  margin-bottom: 4px;
}

.hero-nav-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}

.hero-tiles {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/*
Function: hero-tile
Purpose:  Klickbare App-Kachel im Hero – Icon, Name, Kurzbeschreibung
Parameters: –
Returns:  –
Dependencies: .tile-med / .tile-jur / .tile-biz für Hover-Akzentfarbe
*/
.hero-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.13);
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-decoration: none;
}
.hero-tile:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.tile-med:hover { border-color: #d32f2f; }
.tile-jur:hover { border-color: #2e7d32; }
.tile-biz:hover { border-color: #e65100; }

.hero-tile img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
}

.hero-tile strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.hero-tile span {
  font-size: 0.80rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.4;
  display: block;
}

/* ── USP Band ─────────────────────────────────────────────────── */
.usp-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  background: var(--teal);
}

.usp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 40px;
  color: var(--navy-d);
  text-align: center;
  flex: 1;
  min-width: 200px;
  border-right: 1px solid rgba(0,0,0,0.08);
}
.usp-item:last-child { border-right: none; }

.usp-icon { font-size: 1.8rem; }
.usp-item strong { font-size: 0.97rem; font-weight: 400; }
.usp-item span { font-size: 0.85rem; opacity: 0.8; max-width: 160px; }

/* ── Section Titles ───────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--gray-3);
  font-size: 1.05rem;
  margin-bottom: 56px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Features ─────────────────────────────────────────────────── */
.features {
  padding: 90px 0;
  background: var(--gray-1);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.65;
}

/* ── Produkte ─────────────────────────────────────────────────── */
.produkte {
  padding: 90px 0;
  background: var(--gray-1);
}

.produkte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.produkt-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 4px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}
.produkt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}
.produkt-med { border-top-color: #d32f2f; }
.produkt-jur { border-top-color: #2e7d32; }
.produkt-biz { border-top-color: #e65100; }

.produkt-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: contain;
}

.produkt-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.produkt-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-3);
  margin: 0;
}

.produkt-card p:last-child {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.65;
  margin: 0;
}

/*
Function: steps-list
Purpose:  Nummerierte Schritt-Liste in Karte 2 (Durchgang-Erklärung)
Parameters: –
Returns:  –
Dependencies: .produkt-card .produkt-jur, var(--teal), var(--navy-d), var(--navy)
*/
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: steps;
}

.steps-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  counter-increment: steps;
}

.steps-list li::before {
  content: counter(steps);
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy-d);
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.steps-list-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.steps-list li strong {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
}

.steps-list li span {
  font-size: 0.92rem;
  color: #4a5568;
  line-height: 1.6;
}

/* ── Workflow ─────────────────────────────────────────────────── */
.workflow {
  padding: 90px 0;
  background: var(--navy);
}

.workflow .section-title { color: var(--white); }
.workflow .section-sub   { color: rgba(255,255,255,0.65); }

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.workflow-card {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}
.workflow-card:hover { background: rgba(255,255,255,0.11); }

.workflow-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy-d);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workflow-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.workflow-card p {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin: 0;
}

/*
Function: workflow-cards / workflow-card-white
Purpose:  Neues 3-Kacheln-Layout (1 featured + 2 halbe) im Workflow-Block.
          Weiße Karten auf navy Hintergrund.
Parameters: –
Returns:  –
Dependencies: .workflow (navy bg), var(--navy), var(--teal), var(--radius)
*/
.workflow-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.workflow-card-white {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}
.workflow-card-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.26);
}

.workflow-card-featured {
  text-align: center;
  align-items: center;
}

.workflow-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.wf-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.workflow-card-white h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.workflow-card-white p {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.65;
  margin: 0;
}

.btn-workflow {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 26px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-workflow:hover {
  background: var(--navy-d);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .workflow-bottom-grid { grid-template-columns: 1fr; }
}

/* ── Features-Note ────────────────────────────────────────────── */
.features-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-3);
  margin-top: 40px;
  font-style: italic;
}

/* ── Screenshots ──────────────────────────────────────────────── */
.screenshots {
  padding: 90px 0;
  background: var(--white);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screenshot-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--gray-2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transition: box-shadow 0.2s, border-color 0.2s;
  display: block;
}
.screenshot-img:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
  border-color: var(--teal);
}

figcaption {
  font-size: 0.9rem;
  color: var(--gray-3);
  text-align: center;
}

/*
Function: trust-section / trust-tile
Purpose:  4 kompakte Trust-Kacheln vor dem Kontaktblock –
          heller Hintergrund, Icon + Headline + Erklärungszeile
Parameters: –
Returns:  –
Dependencies: var(--gray-1), var(--navy), var(--radius), var(--shadow)
*/
.trust-section {
  padding: 80px 0;
  background: var(--gray-1);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.trust-tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}

.trust-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.trust-tile strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.trust-tile span {
  font-size: 0.85rem;
  color: #4a5568;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ── Button Warm-Gelb (Kontakt-Formular) ──────────────────────── */
.btn-yellow {
  background: #f59e0b;
  color: #1a1a1a;
  border: 2px solid #f59e0b;
}
.btn-yellow:hover {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}

/* ── Kontakt ──────────────────────────────────────────────────── */
.kontakt-section {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-d) 100%);
  padding: 90px 0;
}

.kontakt-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.97rem;
  color: var(--white);
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: rgba(255,255,255,0.12);
}

.form-group textarea { resize: vertical; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex: 1;
}

/* ── WIP-Banner ───────────────────────────────────────────────── */
.wip-banner {
  background: #f59e0b;
  color: #1a1a1a;
  text-align: center;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--navy-d);
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.2rem;
}
.footer-icon { width: 30px; height: 30px; border-radius: 6px; }

.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal); }

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
}

/*
Function: ds-modal
Purpose:  Datenschutz-Modal – scrollbares Overlay mit weißem Inhaltskasten.
          Öffnet per #ds-trigger, schließt per ✕, Backdrop-Klick oder ESC.
Parameters: –
Returns:  –
Dependencies: #ds-modal, .ds-active, var(--navy), var(--radius)
*/
#ds-modal,
#imp-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
}
#ds-modal.ds-active,
#imp-modal.ds-active { display: block; }

.ds-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}

.ds-modal-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 94vw);
  max-height: 86vh;
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  overflow: hidden;
}

.ds-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--gray-2);
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}
.ds-modal-close:hover { background: var(--gray-3); color: var(--white); }

.ds-modal-content {
  padding: 48px 40px 40px;
  overflow-y: auto;
  line-height: 1.7;
  color: var(--text);
}

.ds-modal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.ds-modal-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 8px;
}

.ds-modal-content p {
  font-size: 0.93rem;
  margin-bottom: 10px;
}

.ds-modal-content ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.ds-modal-content ul li {
  font-size: 0.93rem;
  margin-bottom: 4px;
}

.ds-modal-content a {
  color: var(--teal);
  text-decoration: underline;
}

/* ── Lightbox ─────────────────────────────────────────────────── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}
.lb-overlay.lb-active { display: flex; }

.lb-img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 16px 64px rgba(0,0,0,0.6);
  animation: lb-in 0.2s ease;
}

@keyframes lb-in {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.lb-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  text-align: center;
}

.lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lb-close:hover { background: rgba(255,255,255,0.25); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-bar { padding: 16px 20px; }
  .usp-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .form-row { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: flex-start; }
}
