:root {
  --bg: #F7FDFD;
  --text: #333333;
  --header-bg: #00C2CB;
  --nav-bg: #E6F8F9;
  --card-bg: #FFFFFF;
  --footer-bg: #E6F8F9;
  --link: #00C2CB;
  --accent: #F24E77;
  --secondary: #A3D9A5;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --bg: #00343B;
  --text: #F0F8FA;
  --header-bg: #002428;
  --nav-bg: #002428;
  --card-bg: #1A1A1A;
  --footer-bg: #002428;
  --link: #F24E77;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

header {
  background-color: var(--header-bg);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: var(--nav-bg);
  padding: 1rem;
  border-bottom: 1px solid #b2ebf2;
}

nav a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: background 0.3s;
}

nav a:hover {
  background-color: rgba(0, 194, 203, 0.1);
}

section {
  background: var(--card-bg);
  margin: 2rem auto;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 800px;
}

h2 {
  color: var(--link);
  font-size: 1.6rem;
  margin-top: 0;
}

a {
  color: var(--link);
  transition: 0.2s;
}
a:hover {
  color: var(--accent);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  font-size: 1rem;
  background: white;
  color: var(--text);
}

button {
  background-color: var(--link);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: var(--accent);
}

footer {
  background: var(--footer-bg);
  color: #607D8B;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 4rem;
}

.toggle-container {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.toggle-container button {
  background: none;
  border: 2px solid var(--link);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--link);
  font-weight: bold;
}

.toggle-container button:hover {
  background: var(--link);
  color: white;
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
  }

  section {
    margin: 1rem;
    padding: 1rem;
  }

  button {
    width: 100%;
  }
}

/* Spezifische Anpassung für Spannungsprotokoll */

body.spannung,
body.protokolle {
  background-color: var(--bg);
}

body.spannung h1,
body.protokolle h2 {
  color: var(--link);
}

body.spannung table,
body.spannung th,
body.spannung td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: center;
}

body.spannung input[type="number"] {
  width: 4rem;
}

.button-container {
  text-align: center;
  margin-top: 2rem;
}
.button-container button {
  background-color: var(--link);
}
.button-container button:hover {
  background-color: var(--accent);
}

.back-link {
  text-align: center;
  margin-top: 2rem;
}
.back-link a {
  color: var(--link);
  font-weight: bold;
}

/* Dark mode details */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #1e1e1e;
  border: 1px solid #555;
  color: #f0f8fa;
}
.hero {
  background-color: var(--header-bg);
  color: white;
  text-align: center;
  padding: 4rem 1rem 3rem;
}

.hero-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-logo-large {
  max-width: 200px;
  width: 100%;
  height: auto;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1
