:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: rgba(17,17,17,.72);
  --link: rgba(17,17,17,.86);
  --link-hover: rgba(17,17,17,1);

  --max: 760px;
  --pad: clamp(18px, 4vw, 34px);

  --header-h: 72px;
  --header-max: 1100px;
  --hairline: rgba(0,0,0,.08);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* ✅ robustes Layout: Header oben, Content nimmt Rest ein */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.site-header{
  /* ✅ nicht sticky (macht oft “komische” Zentrierung) */
  position: relative;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}

.header-inner{
  height: var(--header-h);
  width: min(var(--header-max), 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

/* ✅ Header-Logo größer */
.brand img{
  height: 38px;     /* vorher 34px – etwas präsenter */
  width: auto;
  display:block;
}

.header-actions{
  display:flex;
  align-items:center;
  gap: 14px;
}

.login{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--link);
  text-decoration:none;
  font-size: 14px;
  white-space: nowrap;
}

.login:hover{
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CONTENT */
.page{
  /* ✅ nimmt den restlichen Platz ein, ohne calc() */
  flex: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: var(--pad);
}

.card{
  width: min(var(--max), 100%);
  text-align:center;
}

.hero-icon{
  width: 128px;
  height: auto;
  margin: 0 auto 18px;
}

h1{
  margin: 0 0 14px;
  font-size: clamp(22px, 3.6vw, 28px);
  font-weight: 700;
  letter-spacing: .1px;
}

p{
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--muted);
}

.spacer-top{ margin-top: 14px; }
.signature{ margin-top: 12px; color: var(--muted); }

.contact{
  margin-top: 8px;
  margin-bottom: 18px;
  color: var(--muted);
}

.contact-label{ color: var(--muted); }

.contact-link{
  color: var(--link);
  text-decoration: none;
}

.contact-link:hover,
.footer-links a:hover{
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links{
  display:flex;
  flex-wrap: wrap;
  justify-content:center;
  gap: 10px 14px;
  margin: 10px 0 10px;
}

.footer-links a{
  color: var(--link);
  text-decoration:none;
  font-size: 14px;
}

.copyright{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(17,17,17,.65);
}

/* ✅ Footer-Logo deutlich kleiner */
.brand-footer{
  display:block;
  width: min(320px, 72%);   /* kleiner als vorher */
  height: auto;
  margin: 14px auto 0;
}

/* Responsive Feinschliff */
@media (max-width: 480px){
  .brand img{ height: 34px; }
  .hero-icon{ width: 110px; }
  .login{ padding: 0 12px; height: 36px; }
  .footer-links a{ font-size: 13px; }
}

@media (max-width: 380px){
  .brand-footer{ width: min(280px, 74%); }
}
