/* ======================================================
   GLOBAL BASICS
====================================================== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ======================================================
   HEADER / NAVIGATION
====================================================== */

header {
    background: #2c3e50;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    padding: 0.5rem 1rem;
}

.nav-logo {
    height: 60px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo-link p {
    margin: 0;
    font-weight: bold;
}

/* Hamburger */

.menu-toggle,
.hamburger {
    display: none;
}

/* ======================================================
   HERO IMAGE
====================================================== */

.hero-image-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.header-image {
    width: 100%;
    height: auto;
}

@media (min-width:768px) {
    .header-image {
        max-width: 700px;
    }
}

/* ======================================================
   GENERIC GRID SYSTEM
====================================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 1.5rem;
}
/* ======================================================
   ABOUT GRID
====================================================== */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 3fr;
            gap: 3rem;
            align-items: start;
            margin-top: 2rem;
        }
        .profile-img {
            border-radius: 10px;
            box-shadow: 4px 4px 10px rgba(0,0,0,0.5);
        }
        @media (max-width: 768px) {
            .about-grid { grid-template-columns: 1fr; text-align: center; }
        }

/* ======================================================
   BLOG CARDS
====================================================== */

.blog-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card-image-wrapper {
    height: 200px;
    overflow: hidden;
	position: relative;
}

.blog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.75rem;
    color: #888;
}

.blog-card h3 {
    font-size: 1.1rem;
    margin: 6px 0;
}

.blog-card p {
    font-size: 0.9rem;
    color: #555;
    flex-grow: 1;
}

.read-more {
    font-weight: bold;
    text-decoration: none;
    color: #0056b3;
}

/* Tags */

.category-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    color: white;
    font-weight: bold;
}

.tag-tech { background:#0056b3; }
.tag-repair { background:#e67e22; }
.tag-theory { background:#27ae60; }

/* Filter Buttons auf der Blog-Unterseite */
.filter-container {
    margin: 2rem 0;
    display: flex;
    gap: 10px;
}

.filter-btn {
    border: 1px solid #2c3e50;
    background: white;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

.filter-btn.active {
    background: #2c3e50;
    color: white;
}

/* ======================================================
   BLOG FILTER SYSTEM
====================================================== */

/* Filter Items - Basisklasse für filterbare Elemente */
.filter-item {
    display: flex; /* Standardmäßig sichtbar */
}

/* Kategorieklassen für Filterung */
.filter-item.tech {
    /* Analyse & Design Kategorie */
}

.filter-item.repair {
    /* Reparatur Kategorie */
}

.filter-item.theory {
    /* Theorie Kategorie */
}

/* ======================================================
   BLOG FOOTER (Index-Seite)
====================================================== */

.blog-footer {
    margin: 2rem 0;
    text-align: center;
    padding: 1.5rem;
    border: 2px solid #7D7D7D;
    border-radius: 8px;
    background: #FFFFFF;
}

.btn-more-posts {
    display: inline-block;
    background: #7D7D7D;
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-more-posts:hover {
    background: #34495e;
}

/* ======================================================
   PORTFOLIO GRID
====================================================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem;
}

.portfolio-grid .card {
    background: white;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    position: relative; /* nötig für absolute Kindelemente wie Tags */
}

/* Bildcontainer: feste Höhe damit Bilder nicht überlaufen */
.portfolio-grid .card a {
    display: block;
    height: 220px;
    overflow: hidden;
}

.portfolio-grid .card a img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 'contain' = ganzes Bild sichtbar, kein Abschneiden */
}


@media (max-width:900px) {

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

}

/* ======================================================
   IMAGE COMPARISON CARDS (für technische Bilder)
====================================================== */

.image-card-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.image-card-group > div {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    background: white;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
}

.image-card-group a {
    display: block;
    height: 250px;
    overflow: hidden;
}

.image-card-group img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ======================================================
   DROPDOWN ANGEBOT SECTION
====================================================== */

.angebot-section {
    max-width: 1000px;
    margin: 40px auto;
}

.dropdown-container {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 20px;
}

.dropdown-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

summary {
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

.dropdown-content {
    padding: 0 20px 20px 20px;
}

/* ======================================================
   TESTIMONIAL
====================================================== */

.testimonial-section {
    max-width: 800px;
    margin: 60px auto;
}

.testimonial-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.2rem;
    color: #444;
}

.testimonial-author strong {
    color:#2c3e50;
}

/* ======================================================
   DOWNLOAD BUTTON
====================================================== */

.download-container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 2rem 0;
}
.download-button-asc {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #34495e; /* Etwas heller als der Header für Kontrast */
    color: white !important;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    text-align: center;
}

.download-button-asc:hover {
    background: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Icon-Simulation (optional, falls du kein FontAwesome nutzt) */
.download-button-asc::before {
    content: "💾"; /* Festplatten-Symbol */
    margin-right: 10px;
}

.download-section {
    margin:2rem 0;
    padding:1.5rem;
    background:#f9f9f9;
    border:1px dashed #2c3e50;
    border-radius:8px;
    text-align:center;
}

.download-button {
    display:inline-block;
    background:#2c3e50;
    color:white;
    padding:12px 24px;
    border-radius:5px;
    text-decoration:none;
}

.download-button:hover {
    background:#34495e;
}

/* ======================================================
   FOOTER
====================================================== */

footer {
    text-align:center;
    padding:2rem;
    background:#2c3e50;
    color:white;
    margin-top:3rem;
}

/* ======================================================
   MOBILE NAV
====================================================== */

@media (max-width:768px) {

    .hamburger {
        display:block;
        width:30px;
        cursor:pointer;
    }

    .hamburger span {
        display:block;
        height:3px;
        background:white;
        margin-bottom:5px;
    }

    .nav-links {
        display:none;
        flex-direction:column;
        position:absolute;
        top:60px;
        left:0;
        width:100%;
        background:#2c3e50;
        text-align:center;
        padding:1rem 0;
    }

    .nav-links li {
        margin:10px 0;
    }

    .menu-toggle:checked ~ .nav-links {
        display:flex;
    }
}

/* ======================================================
   BLOG ARTICLE CONTENT (Einzelbeiträge)
====================================================== */
.article-content { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }

.article-content .card {
    background: white;
    padding: 5px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.article-content .card > div {
    max-width: 600px;
    margin: 0 auto;
}

.article-content .card a {
    display: block;
    height: 240px;
    overflow: hidden;
}

.article-content .card a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.article-content .card p {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

/* Responsive: Auf mobilen Geräten kleinere Bilder */
@media (max-width: 768px) {
    .article-content .card a {
        height: 250px;
    }
}

/* ======================================================
   PRINT VIEW
====================================================== */

@media print {

header,
footer,
nav {
    display:none !important;
}

body {
    background:white;
    color:black;
    font-size:12pt;
}

img {
    max-width:100%;
}


/* ======================================================
  ANGEBOT ERGÄNZUNGEN UND Button zu Profil
====================================================== 
/* Versteckt den Standard-Pfeil in allen Browsern */
details.dropdown-item summary::-webkit-details-marker {
    display: none;
}
details.dropdown-item summary {
    list-style: none;
}

/* Dreht den Pfeil, wenn das Dropdown offen ist */
details[open] .arrow {
    transform: rotate(180deg);
}

.arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #7D7D7D;
}

/* Verhindert, dass die Karten im Grid ungleichmäßig springen */
.angebot-section .card {
    height: fit-content;
}

/* Responsive Profil-Card auf der Startseite */
@media (max-width: 768px) {
    .profile-intro-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .profile-thumb {
        margin-bottom: 1rem;
    }
}

/* Hover-Effekt für den Link */
.profile-text .read-more:hover {
    text-decoration: underline;
    color: #e67e22; /* Ihre Akzentfarbe */
}