/* ========== CUSTOM SECTIONS: CARD-DESIGN FÜR HILFEBEREICH UND TICKETS ========== */
.card-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px #eaeada;
  padding: 1.5rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.card-section h2 {
  font-size: 1.35rem;
  color: #153c24;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: center;
}

@media (max-width: 600px) {
  .card-section {
    padding: 1rem;
    border-radius: 0;
    box-shadow: none;
  }

  .card-section h2 {
    font-size: 1.2rem;
  }
}
/*Wrappen um alle Boxen, regelt abstand*/
.div-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 12px;
}

body.bg-app {
  background-color: #fdf6ee;
}
@media (max-width: 430px) {
  .content-wrapper {
    padding: 0 0.2rem 160px 0.2rem;
    max-width: 100vw;
  }
  .profil-bearbeiten {
    padding: 1em 0.2em 4em 0.2em;
    max-width: 100vw;
    border-radius: 0;
    box-shadow: none;
  }
  .main-btn {
    font-size: 0.95em;
    padding: 0.5em 0.7em;
    min-width: 120px;
  }
  .angebote {
    padding: 0 0.2rem;
  }
  body {
    padding-bottom: 140px;
    overflow-x: hidden;
  }
}
/* ========== PROFIL MOBILFREUNDLICH ========== */
.profil-bearbeiten {
  max-width: 500px;
  margin: 32px auto 0 auto;
  background: #fff;
  padding: 2em 1em 1em 1em;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.profilbild-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.inputfile, .inputtext {
  width: 100%;
  font-size: 1.1em;
  padding: 0.5em;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--bg-input);
  margin-bottom: 0.7em;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .profil-bearbeiten {
    max-width: 100vw;
    border-radius: 0;
    padding: 1em 0.2em 1em 0.2em;
    box-shadow: none;
  }
  .profilbild-img {
    width: 64px;
    height: 64px;
  }
  .inputfile, .inputtext {
    font-size: 1em;
    min-height: 44px;
  }
}
@media (max-width: 600px) {
  .angebot-formular-outer {
    max-width: 100vw;
    width: 100vw;
    padding: 1rem 0.2rem 1.2rem 0.2rem;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
  }
  input, select, textarea, button {
    font-size: 1.15em !important;
    min-height: 48px !important;
  }
  .angebot-formular-titel {
    font-size: 1.2rem !important;
    margin-bottom: 1rem;
  }
}

/* ========== STILVORGABEN FÜR DIE APP ========== */
:root {
  --green-dark: #153c24;
  --green-accent: #1d5c46;
  --green-strong: #1a803c;
  /* Flächen & Hintergründe */
  --bg-app: #fffaf3;
  --bg-light: #fff7ec;
  --bg-gift: #fffde9;
  --bg-input: #f9f7f4;

  --bg-list: #f5f7ef;
.form-title {
  text-align: center;
  font-size: 1.4rem;
  color: #153c24;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.ticket-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket-form .main-input,
.ticket-form .main-textarea {
  width: 100%;
  padding: 0.8em;
  font-size: 1.05em;
  border: 1px solid #e2e7da;
  border-radius: 10px;
  background: #f9f7f4;
  color: #14422e;
}

.ticket-form .main-textarea {
  min-height: 120px;
  resize: vertical;
}

.ticket-form .main-btn {
  align-self: flex-end;
  min-width: 140px;
}

@media (max-width: 600px) {
  .ticket-form .main-btn {
    width: 100%;
    align-self: stretch;
  }
}
  --bg-kachel: #f1f7f0;
  --bg-kachel-active: #e2f5de;
  --border-light: #e4eada;
  /* Schrift & Icons */
  --text-main: #123420;
  --text-input: #14422e;
  --text-accent: #225431;
  --text-secondary: #555;
  /* Special/Weitere Farben */
  --switch-bg-off: #c5dbc0;
  --input-border: #e2e7da;
  --list-divider: #eceee8;
  --shadow-light: #eaeada;
}

/* FOUC-Schutz ganz oben in style.css einfügen */
html.loading body { visibility: hidden; }

@media (max-width: 800px) {
  .main-header {
    max-width: 100vw;
    border-radius: 0;
    margin: 0;
    padding-left: 8px;
    padding-right: 8px;
  }
}
/* ========== GRUNDLAGEN ========== */
body {
  font-family: system-ui, sans-serif;
  background-color: #fdf6ee;
  margin: 0;
  padding: 0;
  color: #133c2d;
}

/* ========== CONTAINER ZENTRIERUNG ========== */
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

/* 🔙 FIXIERTER BACK-BUTTON */
.back-button {
  position: fixed;
  top: 16px;
  left: 16px;
  font-size: 1rem;
  color: #1d5c46;
  background: #fff;
  padding: 8px 12px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: bold;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.back-button:hover {
  background: #e8f5ec;
}

/* ========== BUTTONS ========== */
.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.button-group button {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  background-color: #1d5c46;
  color: white;
  cursor: pointer;
}
/* Alle Buttons in der Gruppe */
.main-btn {
  display: inline-block;
  background: #1d5c46;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.2em;
  font-weight: 600;
  font-size: 1em;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5em;
}
.main-btn:hover {
  background: #1d5c46;
  color: #fff !important;
  text-decoration: none !important;
}

/* Speziell für Benachrichtigungen: Button immer inline, nicht 100% Breite */
.benachrichtigung-content-block .main-btn {
  width: auto !important;
  min-width: 120px;
  max-width: 180px;
  display: inline-block;
  margin: 0.5em 0 0 0;
}


/* ========== ANGEBOTE (STANDARD) ========== */
.angebote {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  padding: 0 1rem;
}


/* ========== ITEM - Listenansicht ========== */
.item {
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 0.7rem 1rem;
  min-height: 100px;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 1rem auto;
  text-decoration: none;
  color: inherit;
}

.item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #eee;
}

.item .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.item .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #222;
  font-weight: 600;
}

.item .untertitel {
  color: #444;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.item .meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #4b5e4b;
  font-size: 0.95rem;
}

.item .icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.item .info p {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: #444;
}

/* ========== SPRACHAUSWAHL ========== */
.language-switcher {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

/* ========== SECTIONS & ÜBERSCHRIFTEN ========== */
#section_title {
  margin-bottom: 1rem;
  text-align: center;
  display: block;
}
/* ========== ERFOLGSMELDUNG ========== */
/* ========== ERFOLGSMELDUNG OVERLAY ========== */
.success-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100vh;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.success-message {
  /* Layout, aber keine Farbe/BG mehr hier! */
  padding: 1.2rem 2rem;
  border-radius: 12px;
  font-weight: bold;
  text-align: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  animation: fadein 0.3s ease-out, fadeout 0.5s ease-in 3.5s forwards;
  margin: 0;
}
.success-message.success {
  background: #d4f8e8;
  color: #29523c;
  border: 1.5px solid #43a047;
  box-shadow: 0 4px 24px #43a04722;
}
.success-message.error {
  background: #ffeaea;
  color: #b71c1c;
  border: 1.5px solid #d9534f;
  box-shadow: 0 4px 24px #d9534f22;
}


@keyframes fadein {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeout {
  to   { opacity: 0; transform: translateY(-10px); }
}

/* ==========SUPPORT-BEREICH ========== */
/* ========== SUPPORT-TICKET KARTEN ========== */
.ticket-card {
  background: #fff;
  border-radius: 1.2em;
  box-shadow: 0 2px 8px #eaeada;
  margin-bottom: 1.2em;
  padding: 1em 1em 0.7em 1em;
  border: 1px solid #e4eada;
  transition: box-shadow 0.18s;
}
.ticket-card:hover {
  box-shadow: 0 4px 16px #eaeada;
}
.ticket-header {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 0.5em;
}
.ticket-status {
  display: inline-block;
  padding: 0.25em 0.9em;
  border-radius: 1em;
  font-size: 0.98em;
  font-weight: 600;
  margin-left: auto;
  margin-right: 0.5em;
  background: #eaf0e2;
  color: #29523c;
  border: 1px solid #e2e7da;
  letter-spacing: 0.01em;
  min-width: 90px;
  text-align: center;
}
.ticket-status.ticket-offen {
  background: #e2f5de;
  color: #1a803c;
  border-color: #b6e2c2;
}
.ticket-status.ticket-user-antwort {
  background: #fff7e2;
  color: #b88a00;
  border-color: #ffe7a2;
}
.ticket-status.ticket-geschlossen {
  background: #f2f2f2;
  color: #888;
  border-color: #e0e0e0;
}
.ticket-bubble {
  border-radius: 1.1em;
  padding: 0.5em 1em;
  margin-bottom: 0.3em;
  border: 1px solid #e2e7da;
  font-size: 1em;
  word-break: break-word;
}
.ticket-bubble.admin {
  background: #f1f7f0;
  color: #123420;
}
.ticket-bubble.user {
  background: #e2f5de;
  color: #153c24;
}
.ticket-bubble-name {
  font-weight: 600;
  margin-right: 0.3em;
}
.ticket-antwort-form textarea {
  flex: 1;
  padding: 0.5em;
  border-radius: 8px;
  border: 1px solid #e2e7da;
  background: #f9f7f4;
  color: #14422e;
  font-size: 1em;
}
.ticket-antwort-form button {
  padding: 0.5em 1.2em;
  background: #1a803c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
.ticket-antwort-form button:hover {
  background: #1d5c46;
}
@media (max-width: 600px) {
  .ticket-card {
    padding: 0.7em 0.3em 0.7em 0.3em;
    border-radius: 0.7em;
    box-shadow: 0 1px 4px #eaeada;
  }
  .ticket-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3em;
  }
  .ticket-status {
    font-size: 0.95em;
    min-width: 70px;
    margin-left: 0;
    margin-right: 0;
  }
}
