/* styles.css – UTF-8 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: #222;
    background: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo {
    max-height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.main-nav a.active,
.main-nav a:hover {
    color: #0066cc;
}

/* Hero */
.hero {
    background: #eef4ff;
    text-align: center;
    padding: 60px 20px 40px;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.lead {
    font-size: 1.2rem;
    color: #444;
}

/* Werkzeuge Grid */
.werkzeuge-uebersicht {
    padding: 50px 0;
}

.werkzeuge-uebersicht h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.1rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.card {
    display: block;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.preise {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.preis-tag { font-weight: bold; color: #006600; }
.preis-woche { color: #006600; }
.pfand { color: #884400; font-size: 0.9rem; }

.teaser {
    color: #555;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

footer a {
    color: #88aaff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (min-width: 640px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .hero { padding: 100px 20px 60px; }
    .hero h1 { font-size: 3.2rem; }
}

/* ────────────────────────────────────────────────
   Detailseite Ergänzungen
───────────────────────────────────────────────── */

.werkzeug-detail h1 {
    font-size: 2.4rem;
    margin-bottom: 32px;
    text-align: center;
}

.detail-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .detail-layout {
        flex-direction: row;
        align-items: flex-start;
    }
    .detail-image {
        flex: 0 0 55%;
    }
    .detail-info {
        flex: 1;
        padding-left: 32px;
    }
}

.detail-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.preise-block {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 10px;
    margin-bottom: 28px;
}

.preis-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.preis-row strong {
    font-size: 1.35rem;
}

.pfand strong {
    color: #884400;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.18s ease;
}

.btn.primary {
    background: #0066cc;
    color: white;
}

.btn.primary:hover {
    background: #0055aa;
}

.btn.secondary {
    background: #e0e0e0;
    color: #333;
}

.btn.secondary:hover {
    background: #d0d0d0;
}

.beschreibung h2 {
    margin: 40px 0 20px;
    font-size: 1.8rem;
}

.beschreibung-text {
    line-height: 1.7;
    font-size: 1.05rem;
}

.error-box {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.error-box h1 {
    color: #c0392b;
    margin-bottom: 20px;
}

/* Verbesserungen für Anfragen & Impressum */

.impressum-logo {
    max-height: 80px;
}

.impressum-logo-big {
    max-height: 180px;
    width: auto;
}

.kontakt-info {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    font-size: 1.1rem;
}

.anfrage-form label {
    display: block;
    margin: 18px 0 6px;
    font-weight: 600;
}

.anfrage-form input,
.anfrage-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.success-msg {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
}

.error-msg {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
}

.btn.primary {
    background: #0066cc;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 20px;
}

.btn.primary:hover {
    background: #0055aa;
}

/* Detailseite Verbesserungen */
.detail-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .detail-layout {
        flex-direction: row;
    }
    .detail-image {
        flex: 0 0 48%;
    }
    .detail-info {
        flex: 1;
    }
}

.detail-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.preise-block {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.preis-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.preis-row:last-child {
    border-bottom: none;
}

.preis-row strong {
    font-size: 1.4rem;
    color: #006600;
}

.pfand strong {
    color: #884400;
}

.kontakt-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-btn {
    background: #f0f0f0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.contact-btn:hover {
    background: #e0e0e0;
}

.back-link {
    margin-top: 40px;
    text-align: center;
}

/* Kontakt-Links mit Icons */
.kontakt-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0 35px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 1.15rem;
    transition: background 0.2s;
}

.contact-link:hover {
    background: #e9f0ff;
}

.contact-link img {
    flex-shrink: 0;
}

/* Formular */
.anfrage-form label {
    display: block;
    margin: 18px 0 6px;
    font-weight: 600;
    color: #333;
}

.anfrage-form input,
.anfrage-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.success-msg {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

.error-msg {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

/* Verbessertes Preise-Layout auf der Startseite */
.preise {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin: 14px 0 16px;
}

.preis-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.preis-item strong {
    font-size: 1.25rem;
    font-weight: bold;
    color: #006600;
}

.preis-item span {
    font-size: 0.9rem;
    color: #666;
}

.preis-item.pfand strong {
    color: #884400;
}

/* Kategorie-Gruppierung */
.kategorie-section {
    margin-bottom: 50px;
}

.kategorie-section h3 {
    font-size: 1.8rem;
    margin: 40px 0 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0066cc;
    color: #222;
}

/* Kleinere Anpassung für mobile */
@media (max-width: 640px) {
    .kategorie-section h3 {
        font-size: 1.6rem;
    }
}

/* Kategorie-Filter */
.filter-container {
    margin: 30px 0 20px;
    text-align: center;
}

.filter-container label {
    font-weight: 600;
    margin-right: 10px;
}

.filter-container select {
    padding: 10px 15px;
    font-size: 1.05rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
}