/* SyxMail – Startseite (index.html): Einstieg, Vorschau des Postfachs, Abschnitte */

/* ---------------------------------------------------------------- Einstieg */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.hero::before {
  /* ruhige Fläche hinter der Vorschau – kein Verlauf in Regenbogenfarben */
  content: ""; position: absolute; inset: 0 0 0 46%; background: var(--brand-soft);
  border-left: 1px solid #d6deeb;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .assurance { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--muted); }
.hero .assurance li { display: flex; align-items: center; gap: 7px; }
.hero .assurance svg { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; }

/* ---------------------------------------------------- Vorschau des Postfachs */
.mock {
  position: relative; background: var(--surface); border: 1px solid #cfd6e2; border-radius: 12px;
  box-shadow: 0 2px 4px rgba(14, 37, 72, .06), 0 30px 60px -24px rgba(14, 37, 72, .35);
  font: 13px/1.4 var(--sans); color: var(--ink); overflow: hidden;
  animation: mock-in .7s ease-out both;
}
.mock-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: #f4f5f7; border-bottom: 1px solid #e3e6eb; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5d9e0; }
.mock-url { margin: 0 auto; padding: 4px 14px; border-radius: 5px; background: #fff; border: 1px solid #e3e6eb; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.mock-url svg { width: 11px; height: 11px; color: var(--ok); }
.mock-body { display: grid; grid-template-columns: 124px minmax(0, 1fr) minmax(0, 1.2fr); height: 404px; }
.mock-side { padding: 14px 10px; border-right: 1px solid #eceef2; background: #fafbfc; }
.mock-compose { display: block; margin-bottom: 14px; padding: 8px 10px; border-radius: 6px; background: var(--brand); color: #fff; font-weight: 600; text-align: center; }
.mock-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mock-side li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 5px; color: var(--muted); }
.mock-side li.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.mock-side li b { font-weight: 600; }
.mock-list { border-right: 1px solid #eceef2; overflow: hidden; }
.mock-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; padding: 10px 12px; border-bottom: 1px solid #f0f1f4; }
.mock-row.on { background: #f3f6fb; box-shadow: inset 2px 0 0 var(--brand); }
.mock-row .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 600; }
.mock-row .t { display: flex; justify-content: space-between; gap: 8px; }
.mock-row .t span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row .t span:last-child { color: var(--faint); font-size: 11.5px; flex-shrink: 0; }
.mock-row .s { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row.unread .t span:first-child, .mock-row.unread .s { color: var(--ink); font-weight: 600; }
.mock-row.new { animation: row-in .5s 1.2s ease-out both; }
.av.a1 { background: #5b6b8c; } .av.a2 { background: #7a6a55; } .av.a3 { background: #4f7a6b; } .av.a4 { background: #8a5a6e; } .av.a5 { background: #0e2548; }
.mock-read { padding: 18px 20px; overflow: hidden; }
.mock-read h5 { margin: 0 0 10px; font: 400 18px/1.25 var(--serif); }
.mock-from { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.mock-from .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 600; }
.mock-from b { display: block; color: var(--ink); font-size: 13px; }
.mock-notice {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 8px 10px; border-radius: 6px;
  background: var(--warn-soft); color: var(--warn); font-size: 12px;
}
.mock-notice svg { width: 15px; height: 15px; flex-shrink: 0; }
.mock-notice span { white-space: nowrap; }
.mock-notice u { margin-left: auto; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.mock-lines { display: grid; gap: 7px; }
.mock-lines i { display: block; height: 8px; border-radius: 4px; background: #eceef2; }
.mock-lines i:nth-child(1) { width: 92%; } .mock-lines i:nth-child(2) { width: 84%; } .mock-lines i:nth-child(3) { width: 96%; }
.mock-lines i:nth-child(4) { width: 60%; } .mock-lines i.gap { background: none; height: 4px; }
.mock-img { margin: 14px 0; height: 76px; border: 1px dashed #d7dbe2; border-radius: 6px; display: grid; place-items: center; color: var(--faint); font-size: 11.5px; background: #fafbfc; }

.mock-toast {
  position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 13px;
  box-shadow: 0 10px 24px -8px rgba(14, 37, 72, .5); animation: toast-in .5s 2.8s ease-out both;
}
.mock-toast svg { width: 18px; height: 18px; flex-shrink: 0; }

@keyframes mock-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes row-in { from { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; } to { opacity: 1; max-height: 80px; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------- Leiste mit Versprechen */
.pillars { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pillars ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pillars li { display: flex; gap: 14px; align-items: flex-start; padding: 28px 24px; border-left: 1px solid var(--rule); }
.pillars li:first-child { border-left: 0; padding-left: 0; }
.pillars svg { width: 28px; height: 28px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.pillars b { display: block; font-size: 16px; margin-bottom: 2px; }
.pillars span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ---------------------------------------------------------------- Abschnitte */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); margin: 0; }

/* Schutzfunktionen: Text und Bild im Wechsel */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 7vw, 96px); }
.feature.flip .feature-text { order: 2; }
.feature-text p { color: var(--muted); margin: 0 0 14px; }
.feature-text ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature-text li { display: flex; gap: 10px; }
.feature-text li svg { width: 18px; height: 18px; color: var(--ok); flex-shrink: 0; margin-top: 4px; }
.num { display: inline-block; margin-bottom: 12px; font: 600 13px/1 var(--sans); letter-spacing: .12em; color: var(--brand); }

.panel { background: var(--surface); border: 1px solid #d6dbe4; border-radius: 12px; box-shadow: var(--shadow); padding: 22px; font-size: 14px; }
.section.alt .panel { background: var(--paper); }
.panel-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); }
.panel-head .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 600; }
.panel-head b { display: block; }
.panel-head span { color: var(--muted); font-size: 12.5px; }
.panel .notice { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-size: 13px; }
.panel .notice svg { width: 17px; height: 17px; flex-shrink: 0; }
.panel .notice u { margin-left: auto; font-weight: 600; white-space: nowrap; }
.panel .blocked { margin-top: 12px; display: grid; gap: 6px; }
.panel .blocked div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 6px; background: var(--sunk); font: 12px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--muted); }
.panel .blocked div span:last-child { color: var(--danger); font-family: var(--sans); font-weight: 600; white-space: nowrap; }

.dialog { max-width: 440px; margin-left: auto; }
.dialog h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 16px/1.3 var(--sans); color: var(--danger); }
.dialog h4 svg { width: 20px; height: 20px; }
.dialog .host { font: 600 24px/1.2 var(--sans); margin: 4px 0 8px; word-break: break-all; }
.dialog .url { padding: 8px 10px; border-radius: 6px; background: var(--sunk); font: 12px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--muted); word-break: break-all; }
.dialog .url b { color: var(--ink); }
.dialog .warn { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 13px; }
.dialog .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.dialog .row span { padding: 8px 14px; border-radius: 6px; font-weight: 600; font-size: 13px; }
.dialog .row span:first-child { color: var(--ink); }
.dialog .row span:last-child { border: 1px solid #e3b3ae; color: var(--danger); }

.stats { display: grid; gap: 10px; }
.stats > div { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 8px; background: var(--paper); border: 1px solid var(--rule); }
.section.alt .stats > div { background: var(--surface); }
.stats svg { width: 22px; height: 22px; color: var(--brand); }
.stats b { display: block; font-size: 14.5px; }
.stats span { color: var(--muted); font-size: 12.5px; }
.stats em { font-style: normal; font: 600 20px/1 var(--sans); color: var(--brand); }

/* Funktionen */
.grid-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.grid-features div { background: var(--surface); padding: 28px 26px; }
.section.alt .grid-features div { background: var(--paper); }
.grid-features svg { width: 26px; height: 26px; color: var(--brand); margin-bottom: 14px; }
.grid-features p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* Gegenüberstellung */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.compare > div { border-radius: 12px; padding: 28px; border: 1px solid var(--rule); background: var(--surface); }
.compare > div.us { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.compare h3 { margin-bottom: 16px; }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare li { display: flex; gap: 12px; font-size: 15.5px; }
.compare li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; }
.compare .them li { color: var(--muted); }
.compare .them svg { color: #a2a7b3; }
.compare .us svg { color: var(--ok); }
.compare .foot { margin: 14px 0 0; font-size: 13px; color: var(--faint); }

/* Neuigkeiten (vom Bauskript eingesetzt) */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.news-grid li a { display: flex; flex-direction: column; height: 100%; padding: 24px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.news-grid li a:hover { border-color: #b9c3d6; box-shadow: var(--shadow); }
.news-grid b { font: 400 21px/1.3 var(--serif); margin-bottom: 10px; }
.news-grid span { color: var(--muted); font-size: 15px; line-height: 1.55; }
.news-grid em { margin-top: auto; padding-top: 16px; font-style: normal; font-weight: 600; font-size: 14.5px; color: var(--brand); }
.more { margin: 24px 0 0; }

/* Häufige Fragen */
.faq { max-width: 860px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--sans); color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 46em; }

/* Abschluss */
.closing { background: var(--brand); color: #dfe6f3; padding: clamp(56px, 7vw, 88px) 0; }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.closing h2 { color: #fff; margin: 0 0 8px; }
.closing p { margin: 0; max-width: 34em; }
.closing .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.closing .btn-ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff !important; }
.closing .btn-ghost:hover { border-color: #fff; }

.abuse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: start; }
.abuse p { margin: 0 0 12px; color: var(--muted); }

/* ---------------------------------------------------------- Bildschirmgrößen */
@media (min-width: 1500px) {
  .mock-body { height: 430px; }
}
@media (max-width: 1180px) {
  .mock-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .mock-side { display: none; }
}
@media (max-width: 960px) {
  .hero::before { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .pillars ul { grid-template-columns: 1fr 1fr; }
  .pillars li { border-left: 0; border-top: 1px solid var(--rule); padding: 22px 0; }
  .pillars li:nth-child(-n+2) { border-top: 0; }
  .pillars li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--rule); }
  .feature, .compare, .abuse { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .dialog { margin-left: 0; }
  .grid-features, .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .mock-body { grid-template-columns: 1fr; height: auto; }
  .mock-read { display: none; }
  .mock-row:nth-child(n+5) { display: none; }
  .mock-toast { position: static; margin: 0 12px 12px; }
  .pillars ul { grid-template-columns: 1fr; }
  .pillars li, .pillars li:nth-child(even) { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .pillars li:first-child { border-top: 0; }
  .pillars li:nth-child(2) { border-top: 1px solid var(--rule); }
  .grid-features, .news-grid { grid-template-columns: 1fr; }
  .hero .actions .btn { flex: 1 1 100%; }
  .closing .actions { width: 100%; }
  .closing .btn { flex: 1 1 100%; }
}

/* Überschriften der Schutzfunktionen etwas größer */
.feature-text h3 { font: 400 clamp(24px, 2.2vw, 30px)/1.2 var(--serif); margin-bottom: 12px; }
.pillars li > div { line-height: 1.45; }

/* Knöpfe im Abschnitt „SyxMail für Windows“ */
.windows-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
