:root{
  --bg: #ffffff;
  --text: #0f0f0f;
  --muted: #5b5b5b;
  --line: #0f0f0f;
  --soft: #f4f4f4;
  --focus: #111111;
  --maxw: 920px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  letter-spacing: 0.1px;
}

a{ color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
a:hover{ border-bottom-color: currentColor; }

.page{
  position: relative; 
  min-height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

/* Header / Brand */
.brand{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: left;
}

.logo{
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--text);
}
.logo svg{ width: 52px; height: 52px; }

.brand-text .name{
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
  font-weight: 650;
}
.brand-text .title{
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: none;
}

/* Main content layout */
.content{
  width: 100%;
  display: grid;
  grid-template-columns: 180px 1px 1fr;
  gap: 22px;
  align-items: start;
}

.menu{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-item{
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}
.menu-item:hover{ background: var(--soft); }
.menu-item:active{ transform: translateY(1px); }
.menu-item.is-active{
  background: var(--soft);
  font-weight: 600;
}

.menu-item:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.lang-switch{
  font-size: 12px;
  color: var(--muted);
}

.lang-switch button{
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  color: var(--muted);
}

.lang-switch button.active{
  font-weight: 600;
  color: var(--text);
}

/* NEU — Position oben rechts */
.lang-switch.global{
  position: absolute;
  top: 18px;
  right: 22px;
}

@media (max-width: 720px){
  .lang-switch.global{
    top: 12px;
    right: 14px;
  }
}

.divider{
  width: 1px;
  background: var(--line);
  opacity: 0.85;
  align-self: stretch;
}

.panel{
  padding: 2px 2px;
}

.panel h2{
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.25;
}

.panel p{
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.6;
}

.panel .muted{ color: var(--muted); }

.kv{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 14px;
  margin-top: 16px;
  font-size: 14.5px;
}
.kv .k{ color: var(--muted); }
.kv .v a{ border-bottom-color: rgba(0,0,0,0.15); }
.kv .v a:hover{ border-bottom-color: currentColor; }

.tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.tag{
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text);
  background: transparent;
}

.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.6;
}
.list li{ margin: 6px 0; }

.hr{
  height: 1px;
  background: rgba(0,0,0,0.12);
  margin: 18px 0;
}

/* Footer */
.footer{
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}
.footer .dot{ opacity: 0.6; }

/* Responsive */
@media (max-width: 720px){
  .content{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .divider{ display: none; }
  .menu{
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .menu-item{
    text-align: center;
    padding: 8px 12px;
  }
  .brand{
    flex-direction: column;
    text-align: center;
  }
}
.lang-switch{
  font-size: 12px;
  color: var(--muted);
  user-select: none;
}

.lang-switch button{
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  color: var(--muted);
}

.lang-switch button.active{
  font-weight: 600;
  color: var(--text);
}

/* oben rechts */
.lang-switch.global{
  position: absolute;
  top: 18px;
  right: 22px;
}

@media (max-width: 720px){
  .lang-switch.global{
    top: 12px;
    right: 14px;
  }
}

