/*
* CSS-Variablen für das "PINK style" Theme
*/
:root {
--primary-pink: #c10f69; 
  --primary-pink-dark: #C71585; 
  
  --background-color: #dbd6da; 
  --card-background: #ffffff;
  
  --text-color: #333;       /* Haupttext (Dunkelgrau/Schwarz) */
  
  /* --- HIER WAR DER FEHLER --- */
  /* Alt: --text-light: #fff; */
  --text-light: #6c757d;    /* NEU: Ein angenehmes Mittelgrau */
  
  --border-color: #ddd;
  --success-color: #28a745;
  --error-color: #dc3545;
  
  /* Höhen für fixe Leisten */
  --nav-height: 70px; /* Höhe der unteren Navigationsleiste */
  --header-height: 60px; /* NEU: Höhe der oberen Header-Leiste */

  --border-radius: 12px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/*
* Globale Stile & Mobile-First-Reset
*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* WICHTIG: Globaler Reset für Listenpunkte */
ul, li {
  list-style: none;
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  
  /* WICHTIG: Padding oben & unten */
  padding-top: var(--header-height);
  padding-bottom: var(--nav-height);
  
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*
* Top-Header-Leiste
*/
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--card-background);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.header-back-button {
  color: var(--primary-pink);
  margin-right: 12px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 0; 
  position: relative;
  z-index: 2;
}
.header-back-button:hover {
  text-decoration: none;
  background-color: rgba(0,0,0,0.05);
}

.header-title {
  position: absolute;
  left: 50%;
  top: 50%; /* NEU: Setzt den Startpunkt auf die vertikale Mitte */
  transform: translate(-50%, -50%); /* NEU: Schiebt den Text exakt in die Mitte zurück */
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  line-height: 1; /* Verhindert, dass Zeilenabstände die Mitte verschieben */
}
/* NEU: Erzwingt die Größe der Icons im Header */
.header-icon svg, 
.header-back-button svg {
    width: 28px !important;  /* Größe anpassen: z.B. 30px oder 32px */
    height: 28px !important;
    display: block; /* Entfernt störende Abstände unter SVGs */
}

/* Optional: Klickbereich der Icons etwas vergrößern für bessere Bedienung */
.header-icon, 
.header-back-button {
    padding: 10px; /* Mehr Platz um das Icon herum */
}
.is-home .header-back-button {
  visibility: hidden;
  pointer-events: none;
}

.header-icon-links {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding-right: 10px;
}

.header-icon {
    color: var(--primary-pink);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.header-icon:hover {
    background-color: rgba(0,0,0,0.05);
    text-decoration: none;
}

/*
* Haupt-Container
*/
.app-container {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 24px;
}

p {
  margin-bottom: 16px;
  color: var(--text-light);
}

a {
  color: var(--primary-pink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/*
* Formulare
*/
.form-container {
  background: var(--card-background);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 400px;
  margin: 20px auto;
}

.form-container h1 {
  text-align: center;
  color: var(--primary-pink);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
}

.form-text {
  text-align: center;
  margin-top: 20px;
}

/*
* Buttons
*/
.btn {
  display: inline-block;
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary-pink);
}

.btn-primary:hover {
  background-color: var(--primary-pink-dark);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--text-light);
}

.btn-secondary:hover {
  background-color: #555;
  text-decoration: none;
}

/*
* Alerts
*/
.alert {
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.alert-error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

/*
* Navigationsleiste unten
*/
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--card-background);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  -webkit-tap-highlight-color: transparent;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;

  color: var(--text-light);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: color 0.2s;
  padding-top: 6px;
}

.nav-item img {
  width: 35px;       /* Hier drehst du an der Größe! Versuch 35px oder 40px */
  height: 35px;      /* Muss gleich sein wie width */
  margin-bottom: 4px;
  object-fit: contain; /* Verhindert Verzerrung */
  display: block;      /* Wichtig für sauberen Abstand */
}
.nav-item span {
  display: block;
}

.nav-item.active {
  color: var(--primary-pink);
}

.nav-item.active svg {
  fill: var(--primary-pink);
  transform: scale(1.1);
}

/*
* Menu Items
*/
.menu-list {
    width: 100%;
    margin-top: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    background: var(--card-background);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.menu-item:first-of-type {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    border-top: 1px solid var(--border-color);
}
.menu-item:last-of-type {
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.menu-item:hover {
    background-color: #f9f9f9;
    text-decoration: none;
}

.menu-icon {
    color: var(--primary-pink);
    margin-right: 16px;
    flex-shrink: 0;
}

.menu-text {
    flex-grow: 1;
}

.menu-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.menu-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 4px 0 0 0;
}

.menu-arrow {
    color: var(--text-light);
    flex-shrink: 0;
}