/* ================================================
   gutschein.css – Gutschein-Seiten Preisfehler.net
   Passt zum bestehenden Design (style.css)
   ================================================ */

/* ── Suchbereich ── */
.gutschein-hero {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border-bottom: 5px solid #d9534f;
    padding: 32px 0 28px;
    margin-bottom: 28px;
}

.gutschein-hero h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 6px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.gutschein-hero p {
    color: #bbb;
    font-size: 1rem;
    margin-bottom: 18px;
}

.gutschein-search-form {
    display: flex;
    gap: 0;
    max-width: 560px;
}

.gutschein-search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 3px solid #d9534f;
    border-right: none;
    font-size: 1rem;
    background: #fff;
    outline: none;
    color: #1a1a1a;
}

.gutschein-search-form button {
    background: linear-gradient(180deg, #e85855 0%, #d9534f 100%);
    color: #fff;
    border: 3px solid #c44440;
    padding: 12px 22px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    text-transform: uppercase;
}

.gutschein-search-form button:hover {
    background: linear-gradient(180deg, #d9534f 0%, #c44440 100%);
}

/* ── Händler-Übersicht Grid ── */
.haendler-section h2 {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 16px;
    border-left: 5px solid #d9534f;
    padding-left: 12px;
}

.haendler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.haendler-card {
    background: #fff;
    border: 3px solid #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px 14px;
    text-decoration: none;
    color: #1a1a1a;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.15);
    transition: all 0.2s;
    min-height: 110px;
    text-align: center;
}

.haendler-card:hover {
    border-color: #d9534f;
    box-shadow: 5px 5px 12px rgba(0,0,0,0.25);
    transform: translateY(-2px);
    color: #d9534f;
}

.haendler-card img {
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
}

.haendler-card span {
    font-size: 0.9rem;
    font-weight: bold;
}

/* ── Einzelner Händler: Seitenheader ── */
.haendler-header {
    background: #fff;
    border: 3px solid #999;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.15);
    padding: 22px 24px;
    margin: 20px 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    border-left: 6px solid #d9534f;
}

.haendler-header img {
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.haendler-header-text h1 {
    font-size: 1.7rem;
    color: #1a1a1a;
    margin-bottom: 6px;
    text-shadow: none;
}

.haendler-header-text p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Gutschein-Box (die Karte) ── */
.gutschein-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gutschein-card {
    background: #fff;
    border: 3px solid #999;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
    outline: 2px dashed transparent;
    outline-offset: 3px;
}

.gutschein-card:hover {
    border-color: #d9534f;
    box-shadow: 5px 5px 12px rgba(0,0,0,0.25);
    transform: translateY(-2px);
    outline-color: #d9534f55;
}

/* Logo-Bereich (links oben, wie im Screenshot) */
.gc-logo-block {
    background: #fff;
    border-bottom: 3px solid #ccc;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 90px;
    justify-content: center;
}

.gc-logo-block img {
    max-width: 90px;
    max-height: 45px;
    object-fit: contain;
}

.gc-badge {
    background: linear-gradient(135deg, #e8a000 0%, #d9a500 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 6px 14px;
    text-align: center;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Inhalt */
.gc-content {
    padding: 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gc-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 8px;
    min-height: 1.5em;
}

.gc-description {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
    flex-grow: 1;
}

.gc-vorschau {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 8px;
    border-bottom: 2px solid #eee;
    margin-bottom: 10px;
}

/* Verfügbarkeit / Gültig-Hinweis */
.gc-meta {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 10px;
}

/* Code-Bereich */
.gc-code-wrapper {
    margin-bottom: 12px;
}

/* Button: Code anzeigen (per PHP-Reload) */
.gc-reveal-btn {
    display: block;
    background: linear-gradient(180deg, #e85855 0%, #d9534f 100%);
    color: #fff;
    text-decoration: none;
    padding: 11px 15px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
    border: 2px solid #c44440;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    width: 100%;
}

.gc-reveal-btn:hover {
    background: linear-gradient(180deg, #d9534f 0%, #c44440 100%);
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    transform: translateY(-1px);
    color: #fff;
}

/* Angezeigter Code (nach Reload) */
.gc-code-display {
    background: linear-gradient(135deg, #fff8e1 0%, #fff5cc 100%);
    border: 3px dashed #d9a500;
    padding: 10px;
    text-align: center;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.gc-code-label {
    font-size: 0.72rem;
    color: #7a5800;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gc-code-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #d9a500;
    font-family: Courier, monospace;
    margin-top: 3px;
    word-break: break-all;
}

/* Link-Button (zum Angebot) */
.gc-link-btn {
    display: block;
    background: linear-gradient(180deg, #3a8a3a 0%, #2e7a2e 100%);
    color: #fff;
    text-decoration: none;
    padding: 11px 15px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
    border: 2px solid #226022;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gc-link-btn:hover {
    background: linear-gradient(180deg, #2e7a2e 0%, #226022 100%);
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    transform: translateY(-1px);
    color: #fff;
}

/* Kein-Angebot-Hinweis */
.no-gutscheine {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border: 3px solid #999;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.15);
    margin: 20px 0;
}

.no-gutscheine h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.no-gutscheine p {
    color: #777;
}

/* ── Breadcrumb ── */
.breadcrumb {
    font-size: 0.85rem;
    color: #777;
    margin: 14px 0 4px;
}

.breadcrumb a {
    color: #d9534f;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 6px;
    color: #bbb;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .haendler-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .gutschein-hero h2 {
        font-size: 1.4rem;
    }

    .haendler-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .gutschein-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 480px) {
    .gutschein-grid {
        grid-template-columns: 1fr;
    }

    .haendler-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gutschein-search-form {
        flex-direction: column;
    }

    .gutschein-search-form input[type="search"] {
        border-right: 3px solid #d9534f;
        border-bottom: none;
    }

    .gutschein-search-form button {
        border-top: none;
    }
}
