/* ============================================================
   SinEuSyn shared stylesheet
   Wird von allen Seiten ausser index.html genutzt
   (index.html hat die CSS noch inline, wird später migriert)
   ============================================================ */

:root {
  --navy: #252B83;
  --hellblau: #4453A4;
  --rot: #F11112;
  --grau: #4E584F;
  --grau-hell: #8a8f8b;
  --schwarz: #131311;
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --bg-tint: #F4F5FA;
  --border: #E8E9F0;
  --shadow: 0 1px 3px rgba(37, 43, 131, 0.06), 0 8px 24px rgba(37, 43, 131, 0.04);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--grau);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 4vw + 1rem, 3rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { margin: 0 0 1em; }
a  { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rot); }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 4.5rem 0; }
section.tinted { background: var(--bg-tint); }

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem; max-width: 1100px; margin: 0 auto;
}
.logo { display: flex; align-items: center; height: 40px; }
.logo img { height: 40px; width: auto; }

/* Brand-Lockup: Logo + Divider + Dr. Sack
   Spiegelt das Lockup in DE index.html (dort noch inline CSS). */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--navy);
}
.brand-lockup img {
  height: 40px;
  width: auto;
  display: block;
}
.brand-lockup .brand-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  display: block;
}
.brand-lockup .brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
  color: var(--navy);
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .brand-lockup .brand-name,
  .brand-lockup .brand-divider { display: none; }
  /* Mobile: Sprachschalter nur als Flags, kein Text/Separator */
  .lang-switch { gap: 0.5rem; }
  .lang-switch a { font-size: 0; }
  .lang-switch a .flag { font-size: 1.25rem; margin-right: 0; }
  .lang-switch .sep { display: none; }
}
.main-nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.95rem;
  align-items: center;
}
@media (min-width: 820px) { .main-nav { display: flex; } }
.main-nav a { color: var(--grau); font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--rot); }

/* Mobile-Hamburger-Toggle + Drawer (<820px) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  margin: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: var(--bg-tint, #F4F5FA); }
.nav-toggle .hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 819px) {
  .nav-toggle { display: flex; }
  header { position: relative; }
  .main-nav.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    align-items: stretch;
    z-index: 99;
  }
  .main-nav.open a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open a:last-child { border-bottom: 0; }
}

.header-right { display: flex; gap: 1.5rem; align-items: center; }

/* About-Section Grid (spiegelt .ueber in DE index.html, dort inline definiert) */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 720px) {
  .about-grid { grid-template-columns: 1fr 2fr; }
}
.about-portrait {
  max-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow, 0 4px 12px rgba(0,0,0,0.08));
}
.about-portrait img { width: 100%; height: auto; display: block; }
.lang-switch { font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  display: flex; gap: 0.75rem; font-size: 0.875rem; align-items: center;
}
.lang-switch a { color: var(--grau-hell); white-space: nowrap; font-weight: 600; }
.lang-switch a:hover { color: var(--navy); }
.lang-switch a.active { color: var(--navy); font-weight: 600; cursor: default; }
.lang-switch .sep { color: var(--border); }
.lang-switch .flag {
  font-size: 1rem;
  margin-right: 0.25rem;
  filter: saturate(0.95);
  vertical-align: -0.05em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  background: var(--rot); color: white;
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 1px 3px rgba(241, 17, 18, 0.2);
}
.btn:hover {
  background: #d40e0f; color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(241, 17, 18, 0.25);
}
.btn-outline {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--navy); box-shadow: none;
}
.btn-outline:hover { background: var(--navy); color: white; }

/* Page hero (kleinerer Hero für Unterseiten) */
.page-hero { padding: 4rem 0 2rem; }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead {
  font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem);
  max-width: 60ch;
  color: var(--grau);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--grau-hell);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--grau-hell); }
.breadcrumb a:hover { color: var(--navy); }

/* Inhalts-Block Prosa */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote {
  border-left: 3px solid var(--rot);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--grau);
  font-style: italic;
}

/* Kontakt-Karten */
.kontakt-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  margin: 2rem 0 2.5rem;
}
@media (min-width: 600px) { .kontakt-grid { grid-template-columns: repeat(2, 1fr); } }
.kontakt-item {
  padding: 1.25rem 1.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.2s, transform 0.15s;
}
.kontakt-item:hover {
  border-color: var(--hellblau);
  transform: translateY(-1px);
}
.kontakt-item .kontakt-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  color: var(--navy);
  transition: color 0.2s;
}
.kontakt-item:hover .kontakt-icon { color: var(--rot); }
.kontakt-item .kontakt-text { flex: 1; }
.kontakt-item .label {
  font-size: 0.75rem; color: var(--grau-hell);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 0.25rem;
}
.kontakt-item .value {
  font-size: 1.05rem; color: var(--navy); font-weight: 500;
}
.ddim-badge {
  flex-shrink: 0;
  margin-left: auto;
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .ddim-badge { height: 44px; }
}

/* Provider-Netzwerk */
.providers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
  align-items: center;
  justify-items: center;
  margin: 2.5rem 0 0;
}
@media (min-width: 600px) { .providers { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .providers { grid-template-columns: repeat(5, 1fr); gap: 2rem 1rem; } }
.provider-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; text-align: center;
  opacity: 0.65; filter: grayscale(100%);
  transition: opacity 0.2s, filter 0.2s;
  max-width: 160px;
}
.provider-item:hover { opacity: 1; filter: grayscale(0%); }
.provider-item img {
  max-height: 48px; width: auto; max-width: 100%;
  object-fit: contain;
}
.provider-item { text-decoration: none; }
.provider-status {
  font-size: 0.72rem; color: var(--grau-hell);
  font-style: italic; line-height: 1.3;
}

/* Variante: nur ein Provider, Logo grösser */
.providers.providers-single {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.providers.providers-single .provider-item {
  max-width: none;
  opacity: 0.85;
}
.providers.providers-single .provider-item img {
  max-height: 110px;
}

/* Variante: zwei Provider nebeneinander, Logos grösser */
.providers.providers-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}
.providers.providers-pair .provider-item {
  max-width: none;
  opacity: 0.85;
}
.providers.providers-pair .provider-item img {
  max-height: 100px;
}

/* Cards-Grid (Leistungen, Referenzen) */
.cards-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 720px) {
  .cards-grid.two { grid-template-columns: 1fr 1fr; }
  .cards-grid.three { grid-template-columns: repeat(3, 1fr); }
}
.card {
  padding: 2rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: white;
  background: var(--navy);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.card .badge.alt { background: var(--hellblau); }

/* Blog */
.blog-list { margin-top: 1.5rem; }
.blog-entry {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.blog-entry:first-child { padding-top: 0; }
.blog-entry .date {
  font-size: 0.8rem;
  color: var(--grau-hell);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.blog-entry h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}
.blog-entry h2 a { color: var(--navy); }
.blog-entry h2 a:hover { color: var(--rot); }
.blog-entry .excerpt { color: var(--grau); margin-bottom: 0.5rem; }
.blog-entry .read-more { font-size: 0.9rem; color: var(--rot); font-weight: 600; }

.post-meta {
  font-size: 0.85rem;
  color: var(--grau-hell);
  margin-bottom: 1.5rem;
}
.post-meta .tag {
  display: inline-block;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--navy);
}

/* Coming-soon Sprachstub */
.coming-soon {
  text-align: center;
  padding: 6rem 1.5rem;
}
.coming-soon h1 {
  margin-bottom: 1rem;
}
.coming-soon p {
  font-size: 1.1rem;
  color: var(--grau);
  max-width: 50ch;
  margin: 0 auto 2rem;
}

/* Footer */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
  font-size: 0.875rem;
}
footer .footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: center;
}
footer a { color: rgba(255, 255, 255, 0.85); }
footer a:hover { color: white; }
.footer-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1.5rem;
}

/* ============================================================
   Hero Hybrid 1 - Slogan-H1 links, Personen-Karte rechts
   (shared by EN and ZH index pages)
   ============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 820px) {
  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }
}
.hero-slogan {
  font-size: clamp(1.7rem, 2.5vw + 1rem, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 25ch;
}
.hero-text .credibility {
  font-size: 0.95rem;
  color: var(--grau-hell);
  margin-bottom: 1.5rem;
  font-style: italic;
  max-width: 60ch;
}
.hero-person-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.hero-person-card img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 6px;
  margin: 0 0 1.25rem;
  display: block;
}
.hero-person-card .person-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.2rem;
  letter-spacing: -0.005em;
}
.hero-person-card .person-name-latin {
  font-size: 0.95rem;
  color: var(--grau-hell);
  font-weight: 500;
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}
.hero-person-card .person-role {
  font-size: 1rem;
  color: var(--hellblau);
  font-weight: 500;
  margin: 0 0 1.1rem;
}
.hero-person-card .hero-status-inline {
  font-size: 0.88rem;
  color: var(--grau);
  padding: 0.75rem 0.9rem;
  background: var(--bg-tint);
  border-left: 3px solid var(--hellblau);
  border-radius: 0 4px 4px 0;
  margin: 0;
  line-height: 1.45;
}
.hero-person-card .hero-status-inline strong {
  color: var(--navy);
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
