/* Import der Google Font "Poppins" */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* Allgemeine Einstellungen */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

a {
  text-decoration: none;
  color: inherit;
}

.report-control {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    font-family: 'Poppins', sans-serif;
}

.report-toggle,
.report-submit,
.report-cancel {
    appearance: none;
    border: 1px solid #d6d6d6;
    background: #fff;
    color: #5f5f5f;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 5px 9px;
}

.report-toggle:hover,
.report-submit:hover,
.report-cancel:hover {
    border-color: #b7b7b7;
    color: #333;
}

.report-control.is-reported .report-toggle,
.report-toggle:disabled {
    cursor: default;
    color: #61705a;
    background: #eef5ea;
    border-color: #d4e2ce;
}

.report-form {
    display: grid;
    gap: 7px;
    width: min(100%, 320px);
    padding: 9px;
    border: 1px solid #e3e6e0;
    border-radius: 8px;
    background: #fafbf9;
}

.report-label {
    display: grid;
    gap: 4px;
    color: #666;
    font-size: .76rem;
    font-weight: 600;
}

.report-label select,
.report-label textarea {
    width: 100%;
    border: 1px solid #d9ded5;
    border-radius: 7px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: .82rem;
    padding: 6px 7px;
}

.report-label textarea {
    resize: vertical;
    min-height: 52px;
}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.report-message {
    color: #587348;
    font-size: .78rem;
    font-weight: 600;
}

.report-message.is-error {
    color: #9b1c1c;
}


/* Top Bar (Für index.html und auch als Basis für Top-Navigation in Plattformseiten) */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #4b573e;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.brand-name {
    font-size: 2rem;
    font-weight: bold;
}

/* Für Buttons in index.html */
.login-button {
    background-color: #ffffff;
    color: #4b573e;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s, color 0.3s;
}
.login-button:hover {
    background-color: #4b573e;
    color: #ffffff;
}

/* Hero Section (Index) */
.hero-section {
    height: 100vh;
    background: #4b573e;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    color: white;
    padding: 0 20px;
}
.hero-content {
    margin-top: 60px;
}
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.cta-button {
    background-color: #ffffff;
    color: #4b573e;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.cta-button:hover {
    background-color: #4b573e;
    color: #ffffff;
}

/* Features Section (Index) */
.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 50px 20px;
    background-color: #ffffff;
}
.feature {
    text-align: center;
    max-width: 300px;
}
.feature img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}
.feature h2 {
    font-size: 1.7rem;
    margin-bottom: 10px;
    color: #4b573e;
}

/* Footer (Index) */
footer {
    background-color: #4b573e;
    color: white;
    text-align: center;
    padding: 30px;
}
footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}
footer ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

/* ------------------ */
/* PLATTFORM SPEZIFISCHE STILE */
/* ------------------ */

/* Top Navigation für die Plattform-Seiten (Home, Suche, Profil) */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.top-nav .logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: #4b573e;
    text-decoration: none;
}
.top-nav .logout-btn {
    border: 2px solid #4b573e;
    padding: 6px 12px;
    border-radius: 20px;
    background: transparent;
    color: #4b573e;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s, color 0.3s;
}
.top-nav .logout-btn:hover {
    background-color: #4b573e;
    color: #fff;
}

/* Feed-Bereich (Hauptbereich der Plattform) */
.feed {
    margin-top: 80px;
    margin-bottom: 100px;
    max-width: 900px;
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
}
.post {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}
.post:hover {
    transform: translateY(-2px);
}
.post h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #4b573e;
}
.post p {
    font-size: 1rem;
    margin: 0;
}

/* Suchleiste */
.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.search-bar input[type="text"] {
    width: 70%;
    max-width: 500px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 1rem;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.search-bar button {
    margin-left: 12px;
    padding: 12px 20px;
    background-color: #4b573e;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-bar button:hover {
    background-color: #556B2F;
}

/* Bottom Navigation – Eleganter pillenförmiger Container */
:root { --brand-prim:#6a743a;  }

.bottom-nav{
  position:fixed; left:50%; transform:translateX(-50%); bottom:12px;
  width:calc(100% - 40px); max-width:520px; height:44px;
  background:linear-gradient(90deg, var(--brand-prim), var(--brand-prim));
  border-radius:999px; display:flex; justify-content:space-evenly; align-items:center;
  box-shadow:0 14px 34px rgba(0,0,0,.12); z-index:1000; padding:0 8px;
  border:1px solid rgba(255,255,255,.14)
}
.bottom-nav a{
  color:#fff; font-weight:900; font-size:.95rem; padding:6px 12px; border-radius:10px;
  opacity:.96; text-shadow:0 1px 2px rgba(0,0,0,.25)
}
.bottom-nav a.is-active{ background:rgba(255,255,255,.18) }




.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex; /* Flexbox aktivieren */
  align-items: center; /* Vertikale Zentrierung */
  justify-content: center; /* Horizontale Zentrierung */
}

.flip-card-front h3 {
  margin: 0; /* Margen entfernen */
  color: #4b573e;
  font-size: 1.5rem;
}

.flip-card-back {
  background-color: #4b573e;
  color: #fff;
  transform: rotateY(180deg);
  padding: 20px;
  font-size: 1.1rem;
  line-height: 1.4;
}
mark.search-highlight {
  padding: 0 .08em;
  border-radius: .18em;
  background: #ffe066;
  color: #241d00;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.search-related-label {
  display: inline-block;
  margin-top: .35rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: #f2ead0;
  color: #51420d;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
}
