/*
Theme Name: KOMITT Rebuilt
Theme URI: https://komitt.de/
Author: Fetter Markus Land
Description: Peng! Peng! Für KOMITT.
Version: 1.0.0
Text Domain: komitt-rebuilt
*/

:root {
    --bg: #dce6f1;
    --surface: rgba(255,255,255,.34);
    --surface-strong: rgba(255,255,255,.45);
    --text: #2f3137;
    --muted: #66686d;
    --line: rgba(47,49,55,.12);
    --accent: #7f7877;
    --accent-dark: #625b5a;
    --radius: 22px;
    --max: 1200px;
    --shadow-soft: 0 10px 30px rgba(33,37,41,.06);
    --shadow-card: 0 14px 32px rgba(33,37,41,.08);
    --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-heading: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

p {
    margin: 0 0 1rem;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .75rem;
    font-family: var(--font-heading);
    line-height: 1.1;
    color: var(--text);
}

ul, ol {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.site-wrap {
    min-height: 100vh;
}

.container {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0 8px;
    text-align: center;
    background: rgba(220,230,241,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(47,49,55,.08);
}

.site-header .container {
    max-width: 1240px;
    padding: 0 24px;
}

.brand-row {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.site-logo {
    display: block;
    width: min(100%, 320px);
    line-height: 0;
    text-decoration: none;
}

.site-logo:hover {
    text-decoration: none;
}

.site-logo img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.site-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.15;
    color: rgba(47,49,55,.72);
    text-align: center;
}

/* NAV */

.main-nav {
    margin-top: 10px;
    width: 100%;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    margin: 0;
    padding: 0;
    min-width: 0;
}

.main-nav a {
    position: relative;
    display: inline-block;
    padding: 3px 0 6px;
    font-size: 15px;
    line-height: 1.2;
    color: #35373d;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.main-nav a:hover {
    color: #1f2126;
    transform: translateY(-1px);
    text-decoration: none;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transform: translateX(-50%);
    transition: width .22s ease;
    opacity: .75;
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after,
.main-nav .current-menu-ancestor > a::after,
.main-nav .current-page-ancestor > a::after {
    width: 100%;
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current-page-ancestor > a {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    font-weight: 500;
    color: #1f2126;
}

/* MAIN */

main {
    display: block;
    padding: 20px 0 48px;
}

.page-shell {
    padding-top: 6px;
}

/* PANEL */

.panel {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.content-panel {
    padding: 24px;
}

/* GRID */

.content-grid {
    display: grid;
    grid-template-columns: minmax(280px,440px) minmax(0,1fr);
    gap: 28px;
    align-items: stretch;
}

.content-grid.content-grid--full {
    grid-template-columns: 1fr;
}

/* CONTENT */

.page-content {
    font-size: 1rem;
    color: var(--text);
    min-width: 0;
}

.page-content > :last-child {
    margin-bottom: 0;
}

.entry-content,
.page-content,
.entry-content p,
.page-content p,
.entry-content li,
.page-content li,
.entry-content a,
.page-content a {
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

.entry-title,
.eyebrow {
    display: none;
}

/* MEDIA */

.media-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    border-radius: 24px;
    background: rgba(255,255,255,.28);
    border: 1px solid rgba(255,255,255,.45);
    box-shadow: var(--shadow-card);
}

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

/* BUTTON */

.button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .98rem;
    line-height: 1;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.button:hover,
.wp-block-button__link:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    text-decoration: none;
}

/* CTA */

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

/* FORMS */

form {
    display: grid;
    gap: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.75);
    color: var(--text);
    font: inherit;
    outline: none;
}

textarea {
    min-height: 160px;
    resize: vertical;
}

.wpcf7 input[type="submit"] {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    padding: 15px 26px;
    min-height: 52px;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-card);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.wpcf7 input[type="submit"]:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.wpcf7 input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: var(--shadow-soft);
}

/* CONTENT MEDIA SAFETY */

.page-content img,
.entry-content img,
.page-content iframe,
.entry-content iframe,
.page-content figure,
.entry-content figure,
.page-content table,
.entry-content table {
    max-width: 100%;
    height: auto;
}

.page-content table,
.entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* FOOTER */

.site-footer {
    padding: 20px 0 26px;
    border-top: 1px solid rgba(47,49,55,.08);
}

.footer-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    text-align: center;
}

.footer-copy,
.footer-links,
.footer-links a,
.divider {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.4;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    opacity: .7;
    text-decoration: none;
}

.divider {
    opacity: .5;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 22px, var(--max));
    }

    .site-header {
        padding: 8px 0 7px;
    }

    .site-header .container {
        padding: 0 18px;
    }

    .site-logo {
        width: min(100%, 240px);
    }

    .site-description {
        font-size: 13px;
    }

    .brand-row {
        gap: 8px;
    }

    .main-nav {
        margin-top: 8px;
        width: 100%;
    }

    .main-nav ul {
        gap: 10px 14px;
        max-width: 100%;
    }

    .main-nav a {
        font-size: 14px;
        line-height: 1.25;
        white-space: normal;
        text-align: center;
        padding-bottom: 5px;
    }

    main {
        padding: 16px 0 38px;
    }

    .content-panel {
        padding: 18px;
    }

    .media-card {
        min-height: 220px;
    }

    .button,
    .wp-block-button__link {
        width: 100%;
    }

    .site-footer {
        padding: 18px 0 22px;
    }

    .footer-inline {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .footer-links .divider {
        display: none;
    }

    .footer-copy,
    .footer-links,
    .footer-links a,
    .divider {
        font-size: .9rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 20px, var(--max));
    }

    .site-header .container {
        padding: 0 12px;
    }

    .site-logo {
        width: min(100%, 210px);
    }

    .site-description {
        font-size: 12px;
        line-height: 1.25;
    }

    .main-nav ul {
        gap: 8px 10px;
    }

    .main-nav a {
        font-size: 13px;
        padding: 2px 0 4px;
    }

    .content-panel {
        padding: 16px;
    }

    .footer-copy,
    .footer-links,
    .footer-links a {
        font-size: .88rem;
    }
}