/* =========================================================
   GLOBAL VARIABLES (LIGHT + DARK MODE)
========================================================= */

/* LIGHTMODE */
:root {
    --bg: #ffffff;
    --bg-alt: #f5f5f5;
    --text: #111827;
    --text-light: #6b7280;
    --card: #ffffff;
    --border: #e5e7eb;
}

/* DARKMODE */
.dark {
    --bg: #0d0d0d;
    --bg-alt: #1a1a1a;
    --text: #ffffff;
    --text-light: #bdbdbd;
    --card: #141414;
    --border: #333333;
}

/* Smooth transition */
* {
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* =========================================================
   GLOBAL RESET & BODY
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;

    /* Darkmode-ready */
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

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

.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo a {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.logo-line1 {
    font-size: 18px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.logo-line2 {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav a {
    padding: 4px 6px;
    color: var(--text);
}

.nav a:hover { opacity: 0.7; }

/* =========================================================
   DARKMODE BUTTON
========================================================= */

.theme-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    padding: 10px 14px;
    background: var(--card);
    color: var(--text);
    font-size: 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    z-index: 9999;
}

/* =========================================================
   MAIN
========================================================= */
.site-main {
    padding: 24px 0 40px;
    background: var(--bg);
}

/* =========================================================
   HERO (STARTSEITE)
========================================================= */

.hero {
    padding: 24px 0 32px;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.hero-title {
    font-size: 32px;
    margin: 0 0 8px;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-light);
    max-width: 520px;
    line-height: 1.5;
}

/* Tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 18px;
}

.chip {
    background: var(--text);
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.chip-ghost {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
}

/* Buttons */
.btn-primary {
    background: var(--text);
    color: white;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.14em;
}

.btn-secondary {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text);
}

/* =========================================================
   PORTFOLIO-KATEGORIEN / SECTIONS
========================================================= */

.section {
    margin-top: 40px;
    background: var(--bg);
}

.section-title {
    font-size: 22px;
    font-weight: 500;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-light);
}

/* =========================================================
   GALLERY
========================================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    background: var(--bg);
}

.gallery-item {
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* =========================================================
   IMAGE DETAIL (image.php)
========================================================= */

.image-wrapper-full {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--bg);
}

.single-image {
    width: 100%;
    max-width: 600px;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
}

/* =========================================================
   SHARE BUTTONS
========================================================= */

.share-buttons a {
    background: var(--card);
    padding: 6px 12px;
    border-radius: 6px;
    margin-right: 6px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    transition: 0.2s;
}

.share-buttons a:hover {
    transform: translateY(-2px);
    background: #3b82f6;
    color: #fff;
}

/* =========================================================
   RATING
========================================================= */

.stars {
    font-size: 28px;
    color: #ccc;
    cursor: pointer;
}

.star.active,
.star:hover {
    color: #f5c400;
}

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

.site-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 14px 0 16px;
    font-size: 13px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    color: var(--text);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 800px) {
    .nav { display: none; }
    .hero-inner { flex-direction: column; }
    .image-main img { height: auto; }
}
