/* ============================================
   BuzzFill - Gemeinsame Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #181818;
    color: #fff;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== HEADER & NAVIGATION ========== */
.header {
    background: #252525;
    border-bottom: 2px solid #ff8c00;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #ff8c00;
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 16px;
}

.nav a:hover {
    background: #ff8c00;
    color: #000;
}

.nav a.active {
    background: #ff8c00;
    color: #000;
}

/* ========== MAIN CONTENT ========== */
.main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

/* ========== CARDS ========== */
.card {
    background: #252525;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Spezifische Card-Größen werden in den einzelnen HTML-Dateien überschrieben */

/* ========== TYPOGRAPHIE ========== */
h1 {
    color: #ff8c00;
    font-size: 32px;
    margin-bottom: 10px;
}

h2 {
    color: #ff8c00;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

h3 {
    color: #ffaa33;
    margin: 20px 0 10px 0;
}

p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ========== LISTS ========== */
ul, ol {
    color: #ccc;
    margin-left: 25px;
    margin-bottom: 15px;
    line-height: 1.6;
}

li {
    margin: 8px 0;
}

/* ========== LINKS ========== */
a {
    color: #ff8c00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    background: #ff8c00;
    color: #000;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn:hover {
    background: #ffaa33;
    transform: scale(1.05);
    text-decoration: none;
}

/* ========== TABLES ========== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

th, td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
}

th {
    background: #333;
    color: #ff8c00;
}

/* ========== INFO BOXES ========== */
.tip {
    background: #1f3d1f;
    border-left: 3px solid #00ff00;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.warning-box {
    background: #4d3d1f;
    border-left: 3px solid #ffaa00;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.info-box {
    background: #333;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.info-box p {
    margin: 8px 0;
    color: #ddd;
    font-size: 14px;
}

.info-box strong {
    color: #ff8c00;
}

/* ========== TOOLTIP ========== */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dotted #ff8c00;
    color: #ff8c00;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 270px;
    background: #1a1a1a;
    color: #ddd;
    text-align: left;
    border-radius: 10px;
    padding: 14px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid #ff8c00;
    font-size: 12px;
    line-height: 1.6;
    pointer-events: none;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #ff8c00 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ========== FOOTER ========== */
.footer {
    background: #1f1f1f;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 12px;
    border-top: 1px solid #333;
}

/* ========== SPEZIFISCHE SEITEN-STYLES ========== */
/* Index Seite */
.index-container {
    width: 90%;
    max-width: 600px;
}

.hero-icon {
    font-size: 64px;
    margin-bottom: 20px;
    text-align: center;
}

.subtitle {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 25px;
    text-align: center;
}

.description {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: left;
}

.description p {
    margin-bottom: 12px;
}

.highlight {
    color: #ff8c00;
    font-weight: bold;
}

.credits {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #888;
}

.github-link {
    display: inline-block;
    margin-top: 15px;
    color: #ff8c00;
    text-decoration: none;
    font-size: 13px;
}

/* Docs Seite */
.docs-container {
    max-width: 900px;
    width: 100%;
}

.docs-container .card {
    margin-bottom: 20px;
}

/* Webinstaller Seite */
.installer-container {
    width: 90%;
    max-width: 500px;
}

.logo-big {
    font-size: 60px;
    margin-bottom: 10px;
    text-align: center;
}

.warning {
    background: #4d3d1f;
    color: #ffd27a;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 25px;
    text-align: left;
    font-size: 13px;
}

.warning-icon {
    font-size: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

/* ESP Web Installer Button */
esp-web-install-button {
    display: block;
    margin: 20px auto;
}

esp-web-install-button::part(button) {
    background-color: #ff8c00;
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

esp-web-install-button::part(button):hover {
    background-color: #ffaa33;
    transform: scale(1.02);
}

.status {
    margin-top: 20px;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    display: none;
}

.status.ok {
    background: #1f4d1f;
    color: #9cff9c;
    display: block;
}

.status.err {
    background: #4d1f1f;
    color: #ff9c9c;
    display: block;
}

.status.wait {
    background: #4d3d1f;
    color: #ffd27a;
    display: block;
}

hr {
    border-color: #333;
    margin: 15px 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    .card {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
}