/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

header a {
    color: #3498db;
    text-decoration: none;
}

header a:hover {
    text-decoration: underline;
}

/* Search bar */
.search-box {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-box form {
    display: block;
    gap: 10px;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-box button {
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.search-box button:hover {
    background-color: #2980b9;
}

.search-box label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.search-box h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

.search-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.radius-section {
    border-top: 2px solid #ecf0f1;
    padding-top: 20px;
}

.radius-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.search-section label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}


/* Search Statistics Box */
.search-stats {
    background-color: #fff;
    padding: 20px 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-stats h2 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 22px;
}

.search-stats ol {
    padding-left: 20px; 
    margin-bottom: 10px;
}

.search-stats li {
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

.search-stats li span:first-child {
    font-weight: 600;
}

.search-stats p {
    margin-top: 10px;
    color: #7f8c8d;
    font-style: italic;
}

/* Categories */
.categories {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.categories h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.categories ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.categories li a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ecf0f1;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.categories li a:hover {
    background-color: #3498db;
    color: white;
}

/* Classifieds List */
.classifieds-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.classifieds-box h2 {
    margin-bottom: 15px;
}

.classified-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.classified-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f0f0f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.classified-card h3 {
    margin-bottom: 10px;
}

.classified-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.classified-card h3 a:hover {
    color: #3498db;
}

.classifieds-list > p {
    grid-column: 1 / -1;  /* Spannt über alle Spalten */
    margin-bottom: 20px;
    font-size: 20px;
}

.category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #e8f4f8;
    color: #3498db;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 10px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #27ae60;
    margin: 10px 0;
}

.date {
    color: #7f8c8d;
    font-size: 14px;
}

.description {
    margin: 10px 0;
    color: #555;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination strong {
    padding: 8px 16px;
    background-color: #fff;
    color: #3498db;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.pagination strong {
    background-color: #3498db;
    color: white;
}

.pagination a:hover {
    background-color: #3498db;
    color: white;
}

/* Detail View */
.detail-view {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.detail-view h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.detail-info {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.price-large {
    font-size: 32px;
    color: #27ae60;
    font-weight: bold;
}

.seller-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.image {
    margin: 20px 0;
    text-align: center;
}

.image img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.current-image {
    margin-top: 10px;
}

.current-image img {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Comments */
.comments {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comments h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.comment-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.comment-list {
    margin-top: 30px;
}

.comment {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 8px;
}

.seller-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

.comment-text {
    margin: 10px 0;
}

.comment-date {
    color: #7f8c8d;
    font-size: 14px;
}

.comments-count {
    font-size: 14px;
    margin-top: 5px;
}

/* Forms */
.form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 14px;
}

.category-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.category-tag {
    padding: 4px 12px;
    background-color: #e8f4f8;
    color: #3498db;
    border-radius: 12px;
    font-size: 14px;
}

/* Buttons */
.action-buttons {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.action-buttons button {
    flex: 1;
    padding: 8px 12px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

/* Header mit Logo */
.header-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.logo {
    height: 50px;  /* Passe die Größe an */
    width: auto;
}