/*
Theme Name:        OK Events Theme
Theme URI:         https://example.ch/ok-events-theme
Author:            Patrick
Author URI:        https://example.ch
Description:       Dediziertes Companion-Theme für das "OK Events Workspace"-Plugin. Liefert ein randloses, modernes Voll-Bildschirm-Layout ohne klassischen WordPress-Chrome (Header/Sidebar/Footer). Auf Workspace-Seiten wird das Plugin ohne Wrapper gerendert; klassische Inhaltsseiten (Impressum, Datenschutz etc.) erhalten ein dezentes, lesbares Layout.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      7.4
License:           GPL v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       ok-events-theme
Tags:              full-width-template, custom-colors, custom-menu, threaded-comments, translation-ready
*/

/* ===================================================================
   OK Events Theme — minimaler Reset & Typo
   Das gesamte App-UI kommt vom Plugin (okew-frontend.css).
   Dieses CSS ist nur für klassische Pages + Reset.
   =================================================================== */

:root {
    --okt-bg:        #f7fafc;
    --okt-surface:   #ffffff;
    --okt-text:      #0f172a;
    --okt-muted:     #64748b;
    --okt-border:    #e2e8f0;
    --okt-accent:    #06b6d4;
    --okt-accent-2:  #7c3aed;
    --okt-radius:    16px;
    --okt-font:      -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--okt-font);
    color: var(--okt-text);
    background: var(--okt-bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* WordPress-Hardenings: keine Zwangsbreiten, keine Themelayout-Container,
   die das Plugin einschränken könnten. */
body.okew-app,
body.okew-app #page,
body.okew-app #site-content,
body.okew-app .site-content,
body.okew-app main,
body.okew-app .wrap,
body.okew-app .container { max-width: none !important; padding: 0 !important; margin: 0 !important; background: transparent !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--okt-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Klassische Seiten (Impressum, Datenschutz etc.) ---------- */
.okt-shell { min-height: 100vh; display: flex; flex-direction: column; }

.okt-header {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--okt-border);
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    position: sticky; top: 0; z-index: 50;
}
.okt-brand { display: flex; align-items: center; gap: 12px; color: var(--okt-text); }
.okt-brand:hover { text-decoration: none; }
.okt-brand-logo {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--okt-accent), var(--okt-accent-2));
    color: #fff; display: grid; place-items: center;
    box-shadow: 0 6px 16px rgba(6,182,212,.28);
}
.okt-brand-logo svg { width: 20px; height: 20px; }
.okt-brand-text strong { display: block; font-size: 14px; letter-spacing: -.01em; line-height: 1.1; }
.okt-brand-text span { display: block; font-size: 11px; color: var(--okt-muted); text-transform: uppercase; letter-spacing: .12em; }

.okt-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.okt-nav a {
    color: var(--okt-text);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px; font-weight: 500;
    transition: background .15s;
}
.okt-nav a:hover { background: #f1f5f9; text-decoration: none; }
.okt-nav .current_page_item > a,
.okt-nav .current-menu-item > a { background: #cffafe; color: var(--okt-accent); }

.okt-cta {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, var(--okt-accent), var(--okt-accent-2));
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px; font-weight: 600;
    box-shadow: 0 6px 16px rgba(6,182,212,.32);
}
.okt-cta:hover { text-decoration: none !important; transform: translateY(-1px); }

.okt-content { flex: 1; padding: 40px 24px; }
.okt-container { max-width: 760px; margin: 0 auto; }

.okt-page {
    background: var(--okt-surface);
    border-radius: var(--okt-radius);
    padding: 40px;
    box-shadow: 0 2px 6px rgba(15,23,42,.04), 0 8px 28px rgba(15,23,42,.06);
    border: 1px solid rgba(15,23,42,.04);
}
.okt-page h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.02em; line-height: 1.15; }
.okt-page h2 { margin: 28px 0 12px; font-size: 22px; letter-spacing: -.01em; }
.okt-page h3 { margin: 22px 0 10px; font-size: 17px; }
.okt-page p, .okt-page li { font-size: 15px; line-height: 1.65; color: #1e293b; }
.okt-page ul, .okt-page ol { padding-left: 22px; }
.okt-page hr { border: 0; border-top: 1px solid var(--okt-border); margin: 28px 0; }
.okt-page blockquote {
    border-left: 3px solid var(--okt-accent);
    padding: 6px 16px;
    margin: 18px 0;
    color: var(--okt-muted);
    background: #f1f5f9;
    border-radius: 0 8px 8px 0;
}
.okt-page code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 90%;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.okt-page pre {
    background: #0f172a; color: #e2e8f0;
    padding: 16px; border-radius: 10px;
    overflow-x: auto;
}
.okt-page img { border-radius: 10px; margin: 16px 0; }

.okt-meta { color: var(--okt-muted); font-size: 13px; margin: 0 0 24px; }

.okt-footer {
    background: transparent;
    padding: 22px 24px;
    text-align: center;
    color: var(--okt-muted);
    font-size: 13px;
    border-top: 1px solid var(--okt-border);
}
.okt-footer a { color: var(--okt-muted); }

/* 404 */
.okt-404 {
    min-height: 70vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 40px 20px;
}
.okt-404 .okt-404-code {
    font-size: 96px;
    font-weight: 700;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--okt-accent), var(--okt-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.okt-404 h1 { font-size: 24px; margin: 12px 0 6px; }
.okt-404 p { color: var(--okt-muted); margin: 0 0 20px; }

/* Mobile */
@media (max-width: 760px) {
    .okt-header { flex-wrap: wrap; padding: 12px 16px; }
    .okt-content { padding: 20px 12px; }
    .okt-page { padding: 24px; }
    .okt-page h1 { font-size: 24px; }
    .okt-nav { width: 100%; justify-content: flex-start; gap: 0; }
    .okt-nav a { padding: 6px 10px; font-size: 13px; }
}

/* WordPress-Standardklassen, die in Inhalten vorkommen können */
.alignleft   { float: left; margin: 0 18px 12px 0; }
.alignright  { float: right; margin: 0 0 12px 18px; }
.aligncenter { display: block; margin: 12px auto; }
.wp-block-image { margin: 18px 0; }
.wp-block-quote {
    border-left: 3px solid var(--okt-accent);
    padding: 6px 16px;
    margin: 18px 0;
    color: var(--okt-muted);
    background: #f1f5f9;
    border-radius: 0 8px 8px 0;
}
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}
