@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,600");

:root {
  --accent: #b91715;
  --text: #474747;
  --heading: #373737;
  --light: #f5f7fa;
  --border: #d9d9d9;
  --green: #27ae60;
  --red: #c0392b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  padding-bottom: 70px; /* Platz für Bottom-Nav */
}

header.app-header {
  background: var(--accent);
  color: #fff;
  padding: 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

header.app-header h1 {
  font-size: 1.3rem;
  font-weight: 400;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
}

.btn-secondary {
  background: #7b92a9;
}

.btn-block { display: block; width: 100%; margin-bottom: 0.5rem; }

.status-ok {
  background: #e8f8ef;
  color: var(--green);
  border-left: 5px solid var(--green);
  padding: 1rem;
  font-weight: 600;
}

.status-stoerung {
  background: #fdecea;
  color: var(--red);
  border-left: 5px solid var(--red);
  padding: 1rem;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 100;
}

.bottom-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.75rem;
  text-align: center;
  flex: 1;
  font-style: normal;
}

/* Aktiver Menüpunkt → Text in Akzentfarbe */
.bottom-nav a.active {
  color: var(--accent);
  font-weight: 600;
}

/* Icons (Größe, kein Kursiv) – Emoji-Farbe bleibt */
.bottom-nav .nav-icon {
  display: block;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 2px;
  font-style: normal;
  font-synthesis: none;
}

/* Formulare */
select, input, textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

/* Verbindungskarte */
.connection {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.connection .time {
  font-weight: 600;
  font-size: 1.1rem;
}

.connection .duration {
  color: #888;
  font-size: 0.9rem;
}
/* Header mit Logo + Install-Button */
.app-header {
  background: #b91715;
  color: #fff;
  padding: 0.7rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto;
  gap: 0.8rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0; /* verhindert Überlauf */
}

.header-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.app-header h1 {
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

/* Install-Button */
.install-btn {
  background: #fff;
  color: #b91715;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.install-btn:active {
  opacity: 0.85;
}

.bottom-nav .nav-icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 2px;
  font-style: normal;
  font-synthesis: none;
  line-height: 1;
}

