* { box-sizing: border-box; font-family: Arial, Helvetica, sans-serif; }

:root{
  --bg: #000000;
  --text: #e8eaed;
  --btn: #3c4043;
  --btnHover: #424548;
  --border: #3c4043;
  --accent: #c87100;
}

body{
  margin:0;
  min-height:100vh;
  background: var(--bg);
  color: var(--text);
}

.appHeader{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border-bottom: 1px solid var(--border);
}

.homeLink{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius: 999px;
  text-decoration:none;
  color: var(--text);
}

.homeLogo{
  width: 28px;         /* falls du schon eine Größe hast, lassen */
  height: 28px;
  border-radius: 6px;  /* leicht abgerundet */
  display: block;
}

.homeText{
  white-space:nowrap;
}

.arrow{
  opacity:.8;
}

.appTitle h1{
  margin:0;
  font-size: 1.1rem;
}
.appTitle p{
  margin:2px 0 0;
  color:#9aa0a6;
  font-size:.9rem;
}

.page{
  display:grid;
  place-items:center;
  padding: 18px;
}

.calcWrap{
  width: fit-content;
}

/* --- Dein „altes“ Rechnerlayout --- */
#taschenrechner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

#taschenrechner * {
  color: inherit;
}

#anzeige {
  grid-column: span 4;
  border: 1px solid var(--border);
  border-radius: 0.5em;
  padding: 0.5em;
  text-align: end;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

#eingabefeld {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  text-align: inherit;
  color: var(--text);
}

#eingabefeld:focus-visible {
  outline: none;
}

#anzeige:focus-within {
  outline: 1px solid white;
}

.taste {
  width: 100px;
  text-align: center;
  background-color: var(--btn);
  border: none;
  font-size: 1.2rem;
  padding: 1em 2em;
  border-radius: 0.25em;
  cursor: pointer;
  transition: background-color 0.2s;
  user-select:none;
}

.taste:hover {
  background-color: var(--btnHover);
}

.orange {
  background-color: var(--accent);
}

#taschenrechner .taste.orange {
  color: #ffffff;
}

#rechenweg-anzeige {
  line-height: 1.2;
  min-height: 1.2em;
}

#rechenweg-anzeige.fehler {
  color: #ff0808;
}

/* Mobile */
@media (max-width: 767px) {
  .taste {
    width: 87px;
    font-size: 1.4rem;
    padding: 0.8em 1em;
  }
}
