:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --card:#ffffff;
  --fg:#0e0f12;
  --muted:#5b5f6a;
  --border:#e6e7ea;

  --shadow: 0 10px 28px rgba(0,0,0,.10);
  --radius: 14px;

  --header-h: 64px;
  --footer-h: 56px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg:#0b0c0f;
    --surface:#0b0c0f;
    --card:#12141a;
    --fg:#f3f4f6;
    --muted:#a2a6b0;
    --border:#1c1f26;
    --shadow: 0 12px 34px rgba(0,0,0,.45);
  }
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  font-family:var(--font);
  background: #f2f3f5;
  color:var(--fg);
}

@media (prefers-color-scheme: dark){
  body{ background:#0d0f14; }
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

/* Fixed header/footer */
.site-header,
.site-footer{
  position: fixed;
  left:0; right:0;
  background: color-mix(in oklab, var(--surface) 75%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 20;
}

.site-header{
  top:0;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  border-bottom: 1px solid var(--border);
}

.site-footer{
  bottom:0;
  height: calc(var(--footer-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  border-top: 1px solid var(--border);
}

.header-inner{
  height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.footer-inner{
  height: var(--footer-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.header-left{
  display:flex;
  align-items:baseline;
  gap: 10px;
  min-width:0;
}

.header-label{
  color:var(--muted);
  font-size: 16px;
}

.header-domain{
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Optional header actions on legal page */
.header-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Language/Action toggle */
.lang-toggle{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 55%, transparent);
  color: var(--fg);
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}

.lang-toggle:hover{
  background: color-mix(in oklab, var(--surface) 75%, transparent);
}

.lang-toggle:active{
  transform: translateY(1px);
}

.lang-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--fg) 6%, transparent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}

.lang-name{
  color: var(--muted);
  font-size: 16px;
}

/* Main layout */
.site-main{
  min-height:100%;
  display:grid;
  align-items:center;
  padding-top: calc(var(--header-h) + var(--safe-top) + 28px);
  padding-bottom: calc(var(--footer-h) + var(--safe-bottom) + 28px);
}

/* Cards */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.card--secondary{
  margin-top: 22px;
  max-width: 760px;
  text-align: left;
}

.headline{
  margin: 0 0 12px 0;
  font-size: clamp(26px, 5vw, 44px);
  letter-spacing: -0.02em;
}

.subtitle{
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 18px;
}
.subtitle + .subtitle{ margin-top: 8px; }

.divider{
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

/* Rows */
.rows{
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 12px 0;
}

.row + .row{
  border-top: 1px solid var(--border);
}

.row-left{
  color: var(--fg);
  font-size: 18px;
}

.row-right{
  font-size: 18px;
  font-weight: 800;
}

.contact{
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.contact-link{
  font-weight: 800;
}

/* Footer */
.footer-left,
.footer-right{
  color: var(--muted);
  font-size: 16px;
  white-space: nowrap;
}

.footer-link{
  font-weight: 800;
  color: inherit;
}

/* Other domains list */
.secondary-title{
  margin: 0 0 6px 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.secondary-subtitle{
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.domain-list{
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.domain-list li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.domain-item-left{
  font-weight: 700;
  font-size: 16px;
}

.domain-item-right{
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

/* ===============================
   LEGAL PAGE STYLES
   =============================== */

.legal-card{
  text-align: left;
}

.legal-title{
  text-align: left;
}

.legal-text{ 
  white-space: pre-line;
}

.legal-text{
  max-width: none;
  text-align: left;
  line-height: 1.6;
  font-size: 16px;
  margin: 0 0 14px 0;
  color: var(--muted);
}

.legal-rows{
  max-width: none;
  margin: 0;
}

.legal-note{
  margin-top: 12px;
}

/* iPhone/small screens */
@media (max-width: 560px){
  .container{ width: calc(100% - 24px); }
  .header-label{ display:none; }

  /* Footer: rechts in zweite Zeile statt ausblenden */
  .footer-inner{
    flex-wrap: wrap;
    gap: 4px;
  }
  .footer-left{
    width: 100%;
  }
  .footer-right{
    width: 100%;
    text-align: left;
    white-space: normal; /* erlaubt Umbruch */
  }

  .card{
    padding: 22px;
    border-radius: 14px;
  }

  .subtitle{ font-size:16px; }
  .row-left, .row-right, .contact, .lang-name{ font-size:16px; }

  .domain-item-left{ font-size:15px; }
}