@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

/* Allgemeines Layout */
body.main-layout {
    background: repeating-linear-gradient(90deg, #a80500 0 20%, #fefffe 20% 80%, #a80500 80% 100%);
    font-family: 'Manrope', Arial, sans-serif;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}
h1, h2, h3, .font-bold, .text-lg, .text-xl {
    font-family: 'Manrope', sans-serif;
}
/* Zentriertes Hauptfeld */
main {
    background: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    font-family: 'Manrope', Arial, sans-serif;
}

/* Eingabefelder und Dropdowns */
select,
input[type="text"] {
    background-color: #ffffff;
    border: 2px solid #a80500;
    color: #000;
    padding: 0.5rem;
    border-radius: 0.375rem;
    width: 100%;
    font-family: 'Manrope', Arial, sans-serif;
}

select:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #a80500;
    box-shadow: 0 0 0 2px rgba(168, 5, 0, 0.3);
}

/* Vorschlagsliste unter dem Eingabefeld */
#strassenListe {
    background-color: #ffffff;
    border: 1px solid #a80500;
    color: #000;
    border-radius: 0.375rem;
    margin-top: 0.25rem;
    max-height: 15rem;
    overflow-y: auto;
    z-index: 10;
}

#strassenListe li {
    padding: 0.5rem;
    cursor: pointer;
}

#strassenListe li:hover {
    background-color: #f0f0f0;
}

/* Suchbutton */
#suchenBtn {
    background-color: #000 !important;
    color: white !important;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    width: 100%;
    margin-top: 0.5rem;
    font-family: 'Manrope', Arial, sans-serif;
    border: none;
    transition: background 0.18s;
}
#suchenBtn:hover {
    background-color: #a80500 !important;
}

/* Ergebnisanzeige */
#ergebnisse {
    background-color: #f2f2f2;
    color: #000;
    border-radius: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
}

#ergebnisse div {
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}
#eckenBild {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 147px;
    height: 218px;
    z-index: 50;
}
/* Mobile Ansicht: Bild verkleinern */
@media (max-width: 640px) {
    #eckenBild {
        display: none;
    }
}
/* Normale Schriftart */
@font-face {
    font-family: 'DieFONT';
    src: url('/static/css/DieFONT-BoldCondensed.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* Schrift für Überschriften */
@font-face {
    font-family: 'DieFONT-Extra';
    src: url('/static/css/DieFONT-ExtraBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
.DieFONT {
  font-family: 'DieFONT', 'Manrope', sans-serif;
}
body {
    font-size: 1.25rem; /* = 18px (Standard ist meist 16px) */
    font-family: 'Manrope', Arial, sans-serif;
}
.primary-button {
    background-color: #000 !important;
    color: white !important;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    display: inline-block;
    text-align: center;
    font-family: 'Manrope', Arial, sans-serif;
    border: none;
    transition: background 0.18s;
}
.primary-button:hover,
button:hover {
    background: #a80500 !important;
    box-shadow: 0 4px 18px 0 rgba(168,5,0,0.13);
    transform: translateY(-2px) scale(1.02);
}
@media (max-width: 640px) {
    body.main-layout {
        background: #fefffe; /* Hintergrund einfarbig auf kleinen Displays */
    }
    .admin-wrapper, .max-w-2xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
.card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(20,20,20,0.08);
    padding: 2rem;
    max-width: 340px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
table {
    width: 100%;
    background: #fff;
    border-radius: 0.6rem;
    box-shadow: 0 0 10px #eee;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
    font-family: 'Manrope', Arial, sans-serif;
}

th, td {
    padding: 0.6rem 0.7rem;
    text-align: left;
    font-size: 1.05rem;
}

th {
    background: #f4f4f4;
    color: #a80500;
    font-family: 'DieFONT-Extra', 'Manrope', sans-serif;
}

tr:nth-child(even) {
    background: #faf8f6;
}
#plakate {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
footer {
    color: #aaa;
    font-size: 1rem;
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 2rem;
    background: transparent;
}

header img {
    max-width: 650px;
    border-radius: 1.3rem;
    margin-bottom: 1rem;
    display: block;
}
textarea {
    background-color: #fff;
    border: 2px solid #a80500;
    color: #000;
    padding: 0.5rem;
    border-radius: 0.375rem;
    width: 100%;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 1.1rem;
    min-height: 80px;
    resize: vertical;
}
textarea:focus {
    outline: none;
    border-color: #a80500;
    box-shadow: 0 0 0 2px rgba(168, 5, 0, 0.3);
}
/* Overlay für Anleitung */
.anleitung-overlay {
  display: none; /* Standard: ausblenden */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  color: #222;
  z-index: 5000;
  align-items: center;
  justify-content: center;
}

.anleitung-overlay.active {
  display: flex;
}

.anleitung-content {
  width: 100%;
  max-width: 520px;
  margin: auto;
  margin-top: 4rem;
  background: #fff;
  border: 2px solid #a80500;
  border-radius: 1rem;
  padding: 2rem 1.6rem 1.7rem 1.6rem;
  box-shadow: 0 8px 32px 0 rgba(168,5,0,0.16);
  position: relative;
  font-family: 'Manrope', Arial, sans-serif;
}

.anleitung-content h2 {
  font-family: 'DieFONT-Extra','Manrope',sans-serif;
  color: #a80500;
  font-size: 1.35rem;
  font-weight: bold;
  margin-bottom: 1.1rem;
}

.anleitung-content .anleitung-details {
  font-size: 1.04rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.anleitung-content .anleitung-details .anleitung-alt {
  margin-top: 0.9em;
  font-style: italic;
  color: #777;
}

.anleitung-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.9rem;
  font-size: 1.06rem;
  border-radius: 0.35rem;
  background: #000;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
.anleitung-close:hover {
  background: #a80500;
}
.standort-btn-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.2rem 0 1.2rem 0;
}
.login-background {
  background: repeating-linear-gradient(90deg, #a80500 0 20%, #fefffe 20% 80%, #a80500 80% 100%);
  color: #222;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', Arial, sans-serif;
}

.login-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 rgba(20,20,20,0.09);
  padding: 2.2rem 2.5rem 2.1rem 2.5rem;
  max-width: 370px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  align-items: stretch;
}
.login-card h1 {
  font-family: 'DieFONT-Extra','Manrope',sans-serif;
  color: #a80500;
  text-align: center;
  font-size: 1.45rem;
  margin-bottom: 0.7rem;
  letter-spacing: 0.03em;
}
.login-card input[type="text"],
.login-card input[type="password"] {
  border: 2px solid #a80500;
  border-radius: 0.375rem;
  padding: 0.65rem 1rem;
  font-size: 1.11rem;
  background: #fff;
  color: #000;
  font-family: 'Manrope', Arial, sans-serif;
  margin-bottom: 0.1rem;
  transition: border 0.15s;
}
.login-card input[type="text"]:focus,
.login-card input[type="password"]:focus {
  outline: none;
  border-color: #a80500;
  box-shadow: 0 0 0 2px rgba(168, 5, 0, 0.18);
}
.login-card button[type="submit"] {
  background: #000;
  color: #fff;
  font-weight: bold;
  font-size: 1.08rem;
  border-radius: 0.375rem;
  border: none;
  padding: 0.7rem 0;
  cursor: pointer;
  margin-top: 0.3rem;
  font-family: 'Manrope', Arial, sans-serif;
  transition: background 0.17s;
}
.login-card button[type="submit"]:hover {
  background: #a80500;
}
.login-card .error-message {
  color: #a80500;
  text-align: center;
  font-size: 1rem;
  margin-top: -0.7rem;
}
@media (max-width: 520px) {
  .login-card {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    max-width: 98vw;
  }
}
