:root{
  --bg: #fbfbfc;
  --text: #1f2328;
  --muted: #5a6169;
  --link: #1a4fff;
  --line: rgba(31,35,40,.10);
  --max: 760px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main{
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 22px 72px;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 40px;
}

.brand-link{
  display:flex;
  align-items:center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  cursor: default;
}

.brand-link:hover{
  text-decoration: none;
  color: inherit;
}

/* Only show pointer cursor when it is actually a link */
a.brand-link{
  cursor: pointer;
}

a.link{
  cursor: pointer;
  text-decoration: underline;
  color: inherit;
}

.brand{
  line-height: 1.15;
}

.brand .name{
  font-size: 18px;
  letter-spacing: .2px;
  font-weight: 650;
  margin:0;
}

.brand .role{
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.avatar{
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center; 
  justify-content: center; 
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 48px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.02);
}

.logo {
  width: 40px;
  height: 40px;
  display: block;
  color: black; /* default = light */
}

/* explizites Dark Theme */
html[data-theme="dark"] .logo {
  color: white;
}

/* explizites Light Theme */
html[data-theme="light"] .logo {
  color: black;
}

/* System-Fallback */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .logo {
    color: white;
  }
}

.lang-switch{
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.lang-switch a{
  color: var(--muted);
  text-decoration: none;
}
.lang-switch a:hover{
  color: var(--text);
  text-decoration: none;
}
.lang-switch .active{
  color: var(--text);
  font-weight: 600;
}

.lang-switch{
  display:flex;
  align-items:center;
  gap: 10px;
}

.lang-flag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  text-decoration: none;
  opacity: .85;
}

/* keep focus-visible for accessibility */
.lang-flag:focus-visible{
  outline: 2px solid var(--line);
  outline-offset: 2px;
}
.lang-flag span{ 
  font-size: 16px; 
  line-height: 1; 
}

.content p{
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.62;
}

.content p.lead{
  font-size: 17px;
  line-height: 1.65;
  margin-top: 6px;
}

a{
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover{ text-decoration: underline; }

hr{
  border:0;
  border-top: 1px solid var(--line);
  margin: 28px 0 18px;
}

.footer{
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.footer nav a{
  color: var(--muted);
}
.footer nav a:hover{
  color: var(--text);
  text-decoration: underline;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-meta .status {
  font-size: 0.75rem;
  opacity: 0.6;
  line-height: 1.2;
}

.footer-meta .status {
  font-size: 0.75rem;    
  opacity: 0.6;          
  line-height: 1.2;
}

.mail{
  font-weight: 600;
}

.small{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.theme-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-toggle{
  appearance:none;
  border:0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 8px;
  cursor: pointer;
  opacity: .85;
}
.theme-toggle:hover{ opacity: 1; color: var(--text); }
.theme-toggle:focus-visible{ outline: 2px solid var(--line); outline-offset: 2px; }

.theme-menu{
  position: absolute;
  top: 28px;
  right: 0;
  min-width: 120px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  display: none;
}

.theme-wrap.open .theme-menu{ display: block; }

.theme-reset{
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.theme-reset:hover{
  background: rgba(127,127,127,.10);
}

@media (prefers-color-scheme: dark){
  :root{
    --bg:#0b0c0f;
    --text:#e7e9ee;
    --muted:#a7b0bb;
    --link:#7aa2ff;
    --line: rgba(231,233,238,.12);
  }
}

:root[data-theme="light"]{
  --bg: #fbfbfc;
  --text: #30363c;
  --muted: #5a6169;
  --link: #1a4fff;
  --line: rgba(31,35,40,.10);
}

:root[data-theme="dark"]{
  --bg:#0b0c0f;
  --text:#e7e9ee;
  --muted:#a7b0bb;
  --link:#7aa2ff;
  --line: rgba(231,233,238,.12);
}
