/* style.css */
/* Design für die Webseite "Magischer Teddy" */

/* Importiert eine freundliche Schriftart von Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

:root {
    --primary-color: #8B4513; /* Teddy-Braun */
    --secondary-color: #F0E68C; /* Sanftes Gelb */
    --background-color: #FFF8DC; /* Cremeweiß */
    --text-color: #5D4037;
    --header-footer-bg: #D2B48C; /* Helleres Braun */
    --link-color: #A0522D;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    flex: 1;
}

header {
    background-color: var(--header-footer-bg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    border-bottom: 5px solid var(--primary-color);
}

header h1 {
    margin: 0;
    color: white;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px var(--primary-color);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 15px;
    background-color: var(--primary-color);
    border-radius: 20px;
    transition: background-color 0.3s, transform 0.2s;
}

nav a:hover {
    background-color: var(--link-color);
    transform: translateY(-2px);
}

main {
    padding: 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

main h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

footer {
    background-color: var(--header-footer-bg);
    text-align: center;
    padding: 15px;
    margin-top: auto;
    color: var(--text-color);
    font-size: 0.9em;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* Formulare (Login, Register, Kontakt) */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--background-color);
    border-radius: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Wichtig für 100% Breite */
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    text-align: center;
}

.button:hover {
    background-color: var(--link-color);
    transform: translateY(-2px);
}

/* Nachrichten-Boxen */
.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Charakter-Steckbriefe */
.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.char-card {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--box-shadow);
}
.char-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    margin-bottom: 15px;
}
.char-card h3 {
    margin: 10px 0 5px 0;
    color: var(--primary-color);
}

/* Karte */
#map-container {
    position: relative;
    text-align: center;
}
#map-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Forum */
.forum-post {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background: #f9f9f9;
}
.post-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.post-header h3 {
    margin: 0;
    color: var(--primary-color);
}
.post-meta {
    font-size: 0.8em;
    color: #777;
}
.post-content {
    line-height: 1.6;
}
