/* Allgemeiner Header-Stil */
header {
    background-color: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-radius: 10px;

}

/* Navigation */
nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-radius: 20px;
}

/* Logo */
nav .logo {
    font-size: 20px;
    font-weight: bold;
    color: #007BFF;
    text-decoration: none;
}

/* Navigationselemente */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Hover-Effekt für Links */
nav a:hover {
    color: #007BFF;
}

main {
    margin-top: 300px; /* Platz für die Höhe des Headers */
}


/* Grundlegende Stile für den Body */
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 40px 20px; /* Mehr vertikales Padding */
    background-color: #f8f9fa; /* Sehr helles Grau für modernen Look */
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* Überschrift */
h1 {
    font-weight: 600;
    font-size: 26px;
    color: #333333;
    margin-bottom: 30px; /* Mehr Abstand unter der Überschrift */
    text-align:center;
}

/* QR-Coder Generator */

/* Tab-Slider */
.tab-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 25px;
    margin-bottom: 50px;
    padding: 8px 6px;
    width: 360px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Tab-Buttons */
.tab-button {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s;
    border-radius: 25px;
    background-color: transparent;
    color: #007BFF;
    font-weight: 700;
}

.tab-button.selected {
    background-color: #007BFF;
    color: #ffffff;
}

.tab-button:hover {
    transform: scale(1.05);
}

/* QR-Code-Container */
.qrcode-container {
    position: relative;
    width: 160px;
    height: 160px;
    border: 3px solid #cccccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.qrcode-container:hover {
    transform: scale(1.05);
}

/* QR-Code-Bild */
.qrcode-container img {
    width: 95%;
    height: 95%;
    z-index: 5;
    padding: 5px;
}

/* Overlay für QR-Code */
.qrcode-container .hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.qrcode-container:hover .hover-overlay {
    opacity: 1;
}

.qrcode-container .placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: 600;
    text-align: center;
    z-index: 15;
}

/* Correction-Level Slider */
.slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 6px;
    width: 240px;
    margin-bottom: 28px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
}

/* Buttons im Correction-Level Slider */
.correction-level-button {
    flex: 1;
    text-align: center;
    padding: 5px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 20px;
    background-color: transparent;
    color: #007BFF;
    font-weight: 400;
}

.correction-level-button.selected {
    background-color: #007BFF;
    color: #ffffff;
}

.correction-level-button:hover {
    background-color: #d0d7ff;
    color: #ffffff;
    transform: scale(1.05);
}

/* Eingabefeld */
.input-field {
    width: 320px;
    height: 24px;
    padding: 12px;
    font-size: 16px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-top: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.input-field:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Tab-Inhalt */
.tab-content {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tab-content.active {
    display: flex;
}

/* Container für die Farbauswahl-Felder */
.advanced-options {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 300px;
    width: 100%;
}

/* Farbauswahl-Optionen */
.color-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-option label {
    width: 100px;
    text-align: right;
    color: #666666;
    font-size: 14px;
}

.color-option input[type="color"] {
    width: 40px;
    height: 30px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

/* SEO-Bereich */
#seo-content {
    margin: 50px auto;
    max-width: 1200px;
    text-align: center;
    padding: 20px;
    line-height: 1.6;
}

/* Einleitung */
#seo-content #intro h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

#seo-content #intro p {
    font-size: 16px;
    color: #555;
}

#seo-content #what-is h3 {
    font-size: 20px;
    font-weight: 600;
    color: #007BFF;
    margin-bottom: 20px;
}

#seo-content #what-is p {
    font-size: 16px;
    color: #555;
    margin-bottom: 24px;
}

/*Google Icons */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 40;
    font-family: 'Material Symbols Outlined', sans-serif;
    vertical-align: middle;
    margin-right: 8px; /* optional, um etwas Abstand zum Text zu schaffen */
}


/* Vorteile von QR-Codes */
#seo-content #benefits h3 {
    font-size: 20px;
    font-weight: 600;
    color: #007BFF;
    margin-bottom: 20px;
}

#seo-content .benefit-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#seo-content .benefit-item {
    max-width: 300px;
    text-align: center;
}

#seo-content .benefit-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

#seo-content .benefit-item h4 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

#seo-content .benefit-item p {
    font-size: 14px;
    color: #555;
}

/* Einsatzmöglichkeiten */
#seo-content #use-cases h3 {
    font-size: 20px;
    font-weight: 600;
    color: #007BFF;
    margin-bottom: 20px;
}

#seo-content .use-case-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#seo-content .use-case-item {
    max-width: 300px;
    text-align: center;
}

#seo-content .use-case-item h4 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

#seo-content .use-case-item p {
    font-size: 14px;
    color: #555;
}

/* Call-to-Action */
#seo-content #cta h3 {
    font-size: 20px;
    font-weight: 600;
    color: #007BFF;
    margin-bottom: 15px;
}

#seo-content #cta p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

#seo-content #cta .cta-button {
    text-decoration: none;
    background: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

#seo-content #cta .cta-button:hover {
    background: #0056b3;
}

/* FAQ-Bereich */
.faq-container {
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
}

.faq-container h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 24px;
    font-weight: 600;
    color: #007BFF;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

/* FAQ-Frage */
.faq-question {
    background-color: #ffffff;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question .arrow {
    font-size: 24px;
    transition: transform 0.3s ease;
    color: #007BFF;
    margin-left: 10px;
}

.faq-question span:first-child {
    margin-right: 6px;
}

.faq-answer {
    display: none;
    padding: 20px;
    background-color: #f8f9fa;
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
    text-align: left;
    transition: max-height 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.faq-item.open .faq-answer {
    display: block;
    max-height: 500px;
}

.faq-item.open .arrow {
    transform: rotate(90deg);
}

/* Optional: Einheitliche Schriftart */
.faq-container, .faq-container * {
    font-family: 'Poppins', sans-serif;
}

.spacer {
    height: 500px;
    width: 100%;
}

/* Artikel-Übersichts-Layout */
.articles-container {
    max-width:1200px;
    margin: auto auto 0 auto;
    padding:20px;
    box-sizing:border-box;
}

.intro-section {
    text-align:center;
    margin-bottom:40px;
}

.intro-section h1 {
    font-size: 28px;
    font-weight:600;
    color:#333;
    margin-bottom:20px;
}

.intro-section p {
    font-size:16px;
    color:#555;
    max-width:1200px;
    margin:0 auto;
}

/* Grid Layout */
.grid-wrapper {
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap:20px;
}

.featured-article {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}

/* Artikelkarten Grunddesign */
.article-card {
    background:#fff;
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    overflow:hidden;
    position:relative;
    display:flex;
    flex-direction:column;
    text-decoration:none;
    color:#333;
    transition: transform 0.2s ease-in-out;
}

.article-card:hover {
    transform: translateY(-2px);
}

.article-card .category {
    position:absolute;
    top:0;
    left:0;
    background:#000;
    color:#fff;
    font-size:12px;
    font-weight:600;
    padding:5px 8px;
    border-radius:0 0 10px 0;
    z-index:10;
}

.article-card .article-image {
    width:100%;
    height:auto;
    display:block;
}

.article-card .article-content {
    padding:20px;
}

.article-card h2, .article-card h3 {
    font-weight:600;
    color:#333;
    margin:0 0 10px 0;
}

.article-card .meta-info {
    font-size:14px;
    color:#666;
    margin-bottom:10px;
}

.article-card .teaser-text {
    font-size:16px;
    color:#555;
    line-height:1.5;
}

/* Beispiel Artikel */
.article-container {
    max-width:1200px;
    margin:20px auto 40px auto;
    padding:20px;
    box-sizing:border-box;
    background:#f8f9fa;
}

.featured-image img {
    width:100%;
    height:auto;
    display:block;
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    margin-bottom:40px;
}

.article-content-wrapper {
    background:#fff;
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    padding:40px;
    box-sizing:border-box;
}

.article-header {
    margin-bottom:20px;
    border-radius: 10px;
    padding: 5px;
    z-index: 100;
    position: relative;
}

.article-title {
    font-size:28px;
    font-weight:600;
    color:#333;
    margin:0 0 10px 0;
    text-align: left;
}

.article-meta {
    font-size:14px;
    color:#666;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
}

.article-meta span {
    display:inline-block;
}

.article-content p {
    font-size:16px;
    color:#555;
    line-height:1.6;
    margin-bottom:20px;
}

.article-content h2 {
    font-size:22px;
    font-weight:600;
    color:#333;
    margin:40px 0 20px 0;
}

.article-content h3 {
    font-size:18px;
    font-weight:600;
    color:#333;
    margin:30px 0 15px 0;
}

.article-content blockquote {
    margin:20px 0;
    padding:20px;
    background:#f0f0f0;
    border-left:4px solid #007BFF;
    font-style:italic;
    color:#333;
}

.article-content ul {
    list-style:disc;
    margin-left:20px;
    margin-bottom:20px;
}

.inline-article-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto; /* Zentriert das Bild und fügt etwas Abstand hinzu */
    border-radius: 10px; /* Falls du abgerundete Ecken möchtest */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Artikel Tabelle */

/* Container für horizontales Scrollen auf kleinen Screens */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

/* Basisstil für Tabellen */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    font-size: 16px;
    line-height: 1.6;
}

.responsive-table th, .responsive-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap; /* Verhindert übertriebenes Umbrechen */
}

.responsive-table th {
    background-color: #007BFF;
    color: #ffffff;
    font-weight: 600;
}

.responsive-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.related-articles {
    margin-top:40px;
}

.related-articles h2 {
    font-size:20px;
    font-weight:600;
    color:#333;
    margin-bottom:20px;
}

.related-articles ul {
    list-style:none;
    padding:0;
}

.related-articles li {
    margin-bottom:10px;
}

.related-articles a {
    text-decoration:none;
    color:#007BFF;
    transition:color 0.3s;
}

.related-articles a:hover {
    color:#0056b3;
}

.article-link {
    text-decoration: none;
    color: inherit;
}



@media(max-width:900px) {
    .grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-article {
        grid-column: 1 / span 2;
        grid-row: 1 / span 2;
    }
}

/* Responsives Design für kleinere Bildschirme */
@media (max-width: 600px) {
    .tab-slider, .slider-container, .qrcode-container, .input-field {
        width: 100%;
        max-width: 90%;
    }

    .tab-button {
        font-size: 16px;
    }

    h1 {
        font-size: 20px;
    }

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

    .featured-article {
        grid-column: 1;
        grid-row: 1;
    }

    .article-content-wrapper {
        padding:20px;
    }

    .article-title {
        font-size:24px;
    }

    .article-content p, .article-content li {
        font-size:15px;
    }

    .article-content h2 {
        font-size:20px;
    }
}
