/* pete john — maximal reduziert, Polaroid-Anmutung */

:root {
    --ink: #131313;
    --muted: #6f6c66;
    --paper: #f6f5f2;
    --card: #ffffff;
    --line: #dedad3;
    /* Polaroid-Farbspektrum */
    --spec: linear-gradient(90deg, #0088ce 0 20%, #00a651 20% 40%, #fff200 40% 60%, #f7941d 60% 80%, #ed1c24 80% 100%);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }

/* "pete john" — immer klein, immer hervorgehoben (Polaroid-Spektrum) */
.pj {
    text-transform: lowercase;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    position: relative;
    padding-bottom: 1px;
    background-image: var(--spec);
    background-repeat: no-repeat;
    background-size: 100% 3px;
    background-position: 0 100%;
    text-decoration: none;
}

/* Kopf & Fuß */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 28px clamp(20px, 6vw, 72px);
}
.wordmark {
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.03em;
}
.site-nav a {
    margin-left: 20px;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
.lang-switch { margin-left: 20px; font-size: 13px; color: var(--muted); }
.lang-switch a { margin-left: 0; font-size: 13px; }
.lang-switch .sep { margin: 0 4px; }
.lang-switch a.active { color: var(--ink); font-weight: 700; }

main {
    max-width: 880px;
    margin: 0 auto;
    padding: 24px clamp(20px, 6vw, 72px) 96px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px clamp(20px, 6vw, 72px);
    font-size: 13px;
    color: var(--muted);
}
.site-footer a { color: var(--muted); }

/* Typografie */
h1 {
    font-size: clamp(44px, 9vw, 84px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.02;
    margin: 48px 0 8px;
}
h2 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 72px 0 20px;
    color: var(--muted);
}
.lead { font-size: 19px; max-width: 560px; }
.muted { color: var(--muted); }

/* Polaroid-Karte: Rahmen, unten dicker */
.polaroid {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 20px 20px 56px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 28px rgba(0, 0, 0, 0.06);
    max-width: 560px;
}

/* Polaroid-Button: Format 4:5, "Foto" oben, Beschriftung im dicken unteren Rand */
.btn-pol {
    display: inline-flex;
    flex-direction: column;
    width: 128px;
    aspect-ratio: 4 / 5;
    background: var(--card);
    border: 1px solid var(--line);
    padding: 9px 9px 0;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.08);
    font: inherit;
    color: var(--ink);
    text-decoration: none;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    transform: rotate(-1.2deg);
}
.btn-pol:nth-of-type(even) { transform: rotate(1.2deg); }
.btn-pol:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 14px 28px rgba(0, 0, 0, 0.12);
}
.btn-pol .face {
    flex: 1;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
}
.btn-pol .label {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Formulare */
input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    border: 1px solid var(--line);
    border-bottom-width: 4px; /* Polaroid: unten dicker */
    background: var(--card);
    padding: 13px 14px;
    font: inherit;
    color: var(--ink);
    outline: none;
}
input:focus { border-color: var(--ink); }
label { font-size: 13px; font-weight: 700; display: block; margin: 18px 0 6px; }

.form-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.form-row .grow { flex: 1; min-width: 220px; }

/* Honeypot — für Menschen unsichtbar */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.notice {
    border: 1px solid var(--line);
    border-left: 4px solid #00a651;
    background: var(--card);
    padding: 10px 16px;
    font-size: 14px;
    margin: 16px 0;
    max-width: 560px;
}
.notice.err { border-left-color: #ed1c24; }

/* Kunstreihe */
.series-title {
    font-size: clamp(26px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 6px;
}
.series-sub {
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 28px;
}

/* Modal (coming soon) als großes Polaroid */
dialog.modal {
    border: 1px solid var(--line);
    padding: 22px 22px 64px;
    background: var(--card);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    width: min(88vw, 400px);
    aspect-ratio: 4 / 5;
    display: none;
    flex-direction: column;
}
dialog.modal[open] { display: flex; }
dialog.modal::backdrop { background: rgba(19, 19, 19, 0.55); }
.modal .face {
    flex: 1;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(22px, 5vw, 34px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: lowercase;
}
.modal .caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}
.modal .close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: 0;
    font-size: 22px;
    cursor: pointer;
    color: var(--paper);
    z-index: 1;
}

/* Über-Sektion mit Polaroid-Porträt */
.about-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.polaroid-photo {
    margin: 0;
    background: var(--card);
    border: 1px solid var(--line);
    padding: 12px 12px 0;
    width: 240px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.1);
    transform: rotate(-1.5deg);
}
.polaroid-photo img {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(1); /* Sicherheitsnetz: immer schwarz-weiß */
}
.polaroid-photo figcaption {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

/* Kunstwerk-Polaroid (größer, mit Titel und Jahr) */
.polaroid-photo.artwork {
    width: min(100%, 380px);
    padding: 14px 14px 0;
    transform: rotate(1.2deg);
    margin: 8px 0 40px;
}
.polaroid-photo.artwork figcaption {
    height: auto;
    flex-direction: column;
    gap: 2px;
    padding: 14px 6px 18px;
}
.artwork-title { font-weight: 700; font-size: 15px; text-align: center; }
.artwork-artist { font-size: 13px; margin-top: 2px; }
.artwork-year { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }

/* Rechtstexte */
.legal { max-width: 680px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); }
.legal h2 { margin-top: 44px; }
.legal p, .legal li { font-size: 15px; }

/* Admin-Dashboard */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin: 28px 0 12px;
}
.stat {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 14px 14px 0;
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 20px rgba(0, 0, 0, 0.06);
}
.stat .face {
    flex: 1;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.stat .label {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
.chart-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-bottom-width: 5px;
    padding: 18px;
    margin: 24px 0;
}
.chart-card h3 { margin: 0 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; }
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
table.data th, table.data td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
table.data th { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: var(--muted); }
.scroll-x { overflow-x: auto; }
