/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Estandar Rounded';
  src: url('Assets/fonts/estandar-rounded-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Estandar Rounded';
  src: url('Assets/fonts/estandar-rounded-light-italic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Estandar Rounded';
  src: url('Assets/fonts/estandar-rounded.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Estandar Rounded';
  src: url('Assets/fonts/estandar-rounded-semi-bold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --c-cyan: #4DC1E9;
  --c-pink: #E5546D;

  --c-bg: #e9eaec;
  --c-card: #ffffff;
  --c-line: #e3e6eb;

  --c-fg: #2a2f36;
  --c-fg-muted: #6b7280;
  --c-fg-soft: #9aa1ab;

  --font: 'Estandar Rounded', 'SF Pro Rounded', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 3px;
  --maxw: 1080px;
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ---------- Container (zentriert, nicht full-width) ---------- */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ============ HEADER (übernommen aus Original-CSS) ============ */
#header .top {
  padding: 0;
  z-index: 100;
  position: relative;
  margin: 0 auto;
  text-align: center;
  background-color: #fff;
  padding-bottom: 30px;
  height: 240px;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  box-shadow: 0 0 40px rgba(0, 0, 0, .25);
  line-height: 28px;
}

#logo {
  display: block;
  margin: 0;
  padding: 0;
  position: relative;
  width: 350px;
  height: 200px;
  background: #4cc1e9;
  border-bottom-right-radius: 3px;
  color: #fff;
  text-align: right;
  float: left;
}

#logo a {
  color: #fff;
  margin: 0;
  font-weight: normal;
  font-size: 35px;
  position: absolute;
  bottom: 15px;
  right: 20px;
  cursor: pointer;
  z-index: 100;
  line-height: 1;
}

#logo a > span {
  position: absolute;
  bottom: -30px;
  right: 0;
}

/* ---------- Logo-Subline (übernommen aus Original-CSS) ---------- */
#logo span.subline span {
  color: #fff;
  font-size: 16px;
  background: #e5546d;
  border-radius: 2px;
  padding: 2px 5px;
  margin-left: 5px;
  line-height: normal;
  float: left;
}

/* ---------- Header-Info & Kontakt (übernommen aus Original-CSS) ---------- */
#headInfo {
  float: left;
  text-align: left;
  font-size: 26px;
  color: #9c9e9f;
  padding-top: 70px;
}

#headContact {
  float: right;
  text-align: right;
  font-size: 26px;
}

#headContact a {
  color: #e5546d;
}

/* ---------- Ergänzungen zum Original-CSS ---------- */
#headInfo {
  margin-left: 40px;
  line-height: 34px;
}

#headInfo span { display: block; }

#headContact {
  padding: 20px 20px 0 0;
  line-height: 34px;
}

#headContact a {
  display: block;
  transition: opacity 0.2s ease;
}

#headContact a:hover { opacity: 0.7; }

/* Telefon klein und grau (wie im Original-Screenshot) */
#headContact a.phone {
  color: #9c9e9f;
  font-size: 15px;
  line-height: 20px;
}

/* ============ MAIN ============ */
.main {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-content: start;
}

.card--lead { grid-row: span 2; }

.card {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

/* ---------- Lead card ---------- */
.h1 {
  margin: 0 0 0.85rem;
  color: var(--c-pink);
  font-weight: 400; /* nicht bold */
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0 0 1.25rem;
  color: var(--c-fg);
  font-size: 1.05rem;
  max-width: 52ch;
}

.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bullets li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--c-fg);
  font-size: 1rem;
}

.bullets li::before {
  content: '>';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-pink);
  font-weight: 400;
}

/* ---------- Sidebar cards ---------- */
.card--sidebar {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebarhead {
  background: var(--c-cyan);
  color: #ffffff;
  font-weight: 400; /* nicht bold */
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 10px 16px;
}

.sidebarbody {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 1rem;
  color: var(--c-fg);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 0 0 rgba(77, 193, 233, 0.55);
  animation: pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(77, 193, 233, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(77, 193, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 193, 233, 0); }
}

.status-sub {
  margin: 0;
  color: var(--c-fg-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.status-sub strong {
  color: var(--c-fg);
  font-weight: 400;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-fg-soft);
}

.contact-row a {
  color: var(--c-pink);
  font-size: 1rem;
  transition: opacity 0.2s ease;
}

.contact-row a:hover { opacity: 0.7; }

/* ============ FOOTER ============ */
.footer {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--c-fg-muted);
}

.footer__sep { color: var(--c-fg-soft); }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .main { grid-template-columns: 1fr; }
  .card--lead { grid-row: auto; }
}

@media (max-width: 720px) {
  /* Header auf kleine Screens umstrukturiert, da 350px-Logo nicht passt */
  #header .top {
    height: auto;
    padding-bottom: 20px;
    text-align: left;
  }
  #logo {
    float: none;
    width: 100%;
    height: 130px;
  }
  #logo a {
    font-size: 28px;
    bottom: 12px;
    right: 16px;
  }
  #logo span.subline span {
    font-size: 13px;
    padding: 2px 4px;
    margin-left: 4px;
  }

  #headInfo,
  #headContact {
    float: none;
    text-align: left;
    font-size: 18px;
    line-height: 26px;
    padding: 20px 20px 0;
    margin-left: 0;
  }
  #headContact { padding-top: 12px; }
}

/* ============ A11y ============ */
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
}

:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 3px;
}
