/*
Theme Name: GeneratePress Bagger
Theme URI: https://generatepress.com
Description: Child Theme für GeneratePress - Full Master CSS (Konsolidiert)
Author: Gottlob Kübler
Author URI: https://3dcapo.de
Template: generatepress
Version: 1.2
*/

/* =========================================================
   1. ALLGEMEINE ANPASSUNGEN & LAYOUT
   ========================================================= */

/* Metadaten (Datum/Autor) und Standard-Footer ausblenden */
.entry-meta .byline,
.entry-meta .posted-on,
.site-info {
    display: none !important;
}

/* Warenkorb im Header nur anzeigen, wenn nicht leer */
.site-header-cart {
    visibility: hidden;
}
.wc-cart-not-empty .site-header-cart {
    visibility: visible;
}

/* Logo-Größe */
.site-logo img { 
    max-width: 150px; 
    height: auto; 
}

/* Globales Farbschema: Anthrazit-Container auf schwarzem Grund */
body {
    background-color: #000000 !important;
}

.site-content, 
.inside-article, 
#page,
.site-main {
    background-color: #1a1a1a !important;
    border: none !important;
}

/* Überschrift auf der Startseite ausblenden */
.home .entry-header { 
    display: none; 
}

/* =========================================================
   2. SHOP-REITER GANZ OBEN (Slant-Design)
   ========================================================= */

.capo-shop-tabs {
    display: flex !important;
    flex-wrap: nowrap;
    background: #000;
    width: 100%;
    overflow: hidden;
}

.capo-shop-tabs a {
    flex: 1;
    text-align: center;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff !important;
    font-weight: bold;
    font-size: 14px;
    position: relative;
    transition: opacity 0.3s;
    /* Erzeugt die Schräge rechts */
    clip-path: polygon(0 0, 95% 0, 100% 100%, 0% 100%);
    margin-right: -15px;
}

/* Farben der einzelnen Tabs */
.capo-shop-tabs a:nth-child(1) { background-color: #b22222 !important; z-index: 4; }
.capo-shop-tabs a:nth-child(2) { background-color: #2b4593 !important; z-index: 3; padding-left: 30px; }
.capo-shop-tabs a:nth-child(3) { background-color: #111 !important; z-index: 2; padding-left: 30px; }

/* Tab 4: 3dCapo (Orange) - Abschluss rechts gerade */
.capo-shop-tabs a.tab-orange {
    background-color: #ff6600 !important;
    z-index: 1;
    padding-left: 30px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.capo-shop-tabs a:hover {
    opacity: 0.9;
    filter: brightness(1.1);
}

/* =========================================================
   3. CONTENT-BLÖCKE & SPEDITIONS-BOX
   ========================================================= */

.speditions-box {
    border-top: 3px solid #ffcc00;
    border-bottom: 3px solid #ffcc00;
    padding: 80px 20px;
    margin: 40px auto !important; 
    max-width: 1200px !important;
    display: block !important;
}

.blog-block {
    background: #1a1a1a;
    border: 1px solid #333;
    border-left: 6px solid #ffcc00;
    padding: 25px 30px;
    margin: 30px 0;
    color: #fff;
}

/* =========================================================
   4. CONTACT FORM 7 (Baustellen-Look)
   ========================================================= */

#kontakt-sektion {
    background-color: #1a1a1a !important;
    padding: 60px 0 !important;
}

.cf7-baustelle-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: #101010;
    border: 1px solid #333;
}

.cf7-baustelle-form label { 
    color: #ffcc00; 
    font-weight: bold;
    display: block; /* Sorgt dafür, dass das Label über dem Feld steht */
    margin-bottom: 5px;
}

/* WICHTIG: Felder auf 100% Breite setzen */
.cf7-baustelle-form input:not([type="submit"]), 
.cf7-baustelle-form textarea, 
.cf7-baustelle-form select,
.cf7-baustelle-form .wpcf7-form-control {
    background: #000 !important;
    border: 1px solid #ffcc00 !important;
    color: #fff !important;
    padding: 12px;
    border-radius: 0;
    width: 100% !important; /* Hier war der Fehler - jetzt wieder volle Breite */
    box-sizing: border-box; /* Verhindert, dass das Feld über den Rand ragt */
}

/* Datepicker & Kalender-Icon */
.cf7-baustelle-form input[type="date"] {
    appearance: auto !important;
    -webkit-appearance: listbox !important; 
    min-height: 45px !important;
    cursor: pointer !important;
}

::-webkit-calendar-picker-indicator {
    filter: invert(80%) sepia(50%) saturate(5000%) hue-rotate(10deg);
    cursor: pointer;
}

/* Senden Button */
.cf7-baustelle-form .wpcf7-submit {
    background: #ffcc00 !important;
    color: #000 !important;
    font-weight: bold !important;
    text-transform: uppercase;
    border: none !important;
    padding: 15px 40px !important;
    width: 100%;
    transition: background 0.3s;
    cursor: pointer;
}

.cf7-baustelle-form .wpcf7-submit:hover { 
    background: #e6b800 !important; 
}

/* Flexbox für Reihen (Vorname/Nachname etc.) */
.cf7-baustelle-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.cf7-baustelle-form .form-group {
    flex: 1;
}

/* Reset für WP-Wrapper */
.wpcf7, .wpcf7-form, .wpcf7-form-control-wrap {
    background-color: transparent !important;
    display: block !important;
}

/* =========================================================
   5. AGB-SEITE & RECHTSTEXTE
   ========================================================= */

.agb-container {
    max-width: 900px;
    margin: 40px auto;
    color: #ffffff;
    line-height: 1.6;
}

.agb-container h2, 
.agb-container h3 {
    color: #ffcc00 !important;
    text-transform: uppercase;
    border-left: 4px solid #ffcc00;
    padding-left: 15px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.agb-container strong {
    color: #ffcc00;
    font-weight: bold;
}

.agb-container ul {
    list-style: none;
    padding-left: 0;
}

.agb-container ul li::before {
    content: "■";
    padding-right: 10px;
    color: #ffcc00;
}

/* =========================================================
   6. CUSTOM FOOTER (Hook)
   ========================================================= */

.capo-custom-footer {
    background-color: #000000 !important;
    color: #ffffff !important;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #333;
    width: 100%;
}

.capo-custom-footer a {
    color: #ffcc00 !important;
    text-decoration: none;
    margin: 0 8px;
    font-weight: bold;
    transition: color 0.2s;
}

.capo-custom-footer a:hover {
    color: #ffffff !important; 
    text-decoration: underline;
}

/* =========================================================
   7. MOBIL-ANPASSUNGEN
   ========================================================= */

@media (max-width: 768px) {
    .site-logo img { max-width: 100px; }
    
    .capo-shop-tabs a {
        clip-path: none !important;
        margin-right: 0;
        padding: 10px 5px;
        font-size: 11px;
    }

    .cf7-baustelle-form .form-row { 
        flex-direction: column; 
    }

    .capo-custom-footer a {
        display: inline-block;
        margin: 5px 10px;
    }
}
/* =========================================================
   8. PREISTABELLE & LIGHTBOX-FEEDBACK
   ========================================================= */

.capo-preistabelle-container {
    margin: 40px 0;
    overflow-x: auto;
}

.capo-preistabelle {
    width: 100%;
    border-collapse: collapse;
    background-color: #101010;
    color: #fff;
    border: 1px solid #333;
    font-size: 15px;
}

.capo-preistabelle thead {
    background-color: #ffcc00;
}

.capo-preistabelle th {
    color: #000;
    padding: 15px;
    text-align: left;
    text-transform: uppercase;
    font-weight: 800;
}

/* Preise rechtsbündig ausrichten für bessere Lesbarkeit */
.capo-preistabelle td:nth-child(3),
.capo-preistabelle td:nth-child(4),
.capo-preistabelle td:nth-child(5),
.capo-preistabelle th:nth-child(3),
.capo-preistabelle th:nth-child(4),
.capo-preistabelle th:nth-child(5) {
    text-align: right;
}

.capo-preistabelle td {
    padding: 12px 15px;
    border-bottom: 1px solid #222;
    vertical-align: middle;
}

/* Vorschaubilder & Lightbox-Interaktion */
.capo-preistabelle td a {
    display: block;
    line-height: 0;
    outline: none;
    border: none;
}

.capo-preistabelle td img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border: 1px solid #ffcc00;
    display: block;
    cursor: zoom-in !important;
    transition: all 0.3s ease;
}

.capo-preistabelle td img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
    border-color: #ffffff !important; /* Weißer Rand beim Hover für Kontrast */
}

/* Spezial-Klasse für hervorgehobene Preise (z.B. LKW) */
.price-highlight {
    color: #ffcc00 !important;
    font-weight: bold;
    font-size: 1.1em;
}

.capo-preistabelle tr:hover {
    background-color: #1a1a1a;
}

.capo-preistabelle strong {
    color: #ffcc00;
}

.mwst-hinweis {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

/* Mobil-Anpassung Preistabelle */
@media (max-width: 600px) {
    .capo-preistabelle { font-size: 13px; }
    .capo-preistabelle td img { width: 45px !important; height: 45px !important; }
    .capo-preistabelle th, .capo-preistabelle td { padding: 8px 10px; }
}
/* Verhindert das seitliche Scrollen im Header auf Mobilgeräten */
@media (max-width: 768px) {
    /* Den Seitentitel kleiner machen */
    .main-title {
        font-size: 18px !important; /* Teste hier 18px oder 20px */
        word-wrap: break-word;
        white-space: normal;
    }

    /* Falls du ein sehr langes Wort im Titel hast, erzwinge den Umbruch */
    .site-header {
        overflow-x: hidden;
    }
    
    body, html {
        overflow-x: hidden; /* Der "Auffang-Fix" gegen seitliches Wackeln */
    }
}