/*
Theme Name: Pierre Castell
Theme URI: https://example.com/
Author: Pierre Castell
Description: Persönliches Theme für Pierre Castell, Comedy-Zauberer aus Köln. Startseite mit Rückblick, Auftritten, Archiv und Blog.
Version: 2.6
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pierre-castell
*/

:root {
  --grund: #f3f2f2;
  --flaeche: #eae9e9;
  --text: #201e1d;
  --text-leise: #5b5856;
  --linie: #201e1d;
  --akzent: #3a7fb8;        /* Sanftes Blau */
  --akzent-dunkel: #28608f;
  --breite: 1200px;
  --rand: clamp(20px, 5vw, 72px);
  --schrift: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--grund); color: var(--text); font-family: var(--schrift); font-size: 17px; line-height: 1.65; text-wrap: pretty; }
img { max-width: 100%; display: block; }
a { color: var(--text); }
a:hover { color: var(--akzent-dunkel); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--akzent) 22%, white); }

h1, h2, h3 { font-weight: 800; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.06; }
h3 { font-size: 22px; line-height: 1.3; }
p { margin: 0; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.linie { height: 2px; border: 0; margin: 0; background: var(--linie); }
.label { display: block; font-size: 13px; line-height: 1.1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--akzent-dunkel); }
.label.grau { color: var(--text-leise); }
.leise { color: var(--text-leise); font-size: 15.5px; line-height: 1.7; }
.sw { filter: grayscale(1); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: var(--grund); border-bottom: 2px solid var(--linie); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav .marke { font-weight: 800; font-size: 18px; text-decoration: none; margin-right: auto; }
.nav a { text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--akzent); }

/* Buttons – Beschriftung linksbündig, keine Rundungen */
.btn { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 10px 16px; font: 500 14px/1.2 var(--schrift); text-decoration: none; border: 2px solid var(--akzent); cursor: pointer; }
.btn-primaer { background: var(--akzent); color: var(--grund); }
.btn-primaer:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); color: var(--grund); }
.btn-sekundaer { background: transparent; color: var(--akzent-dunkel); }
.btn-sekundaer:hover { background: color-mix(in srgb, var(--akzent) 12%, transparent); }
.btn-leise { border-color: transparent; background: transparent; color: var(--akzent-dunkel); padding-inline: 0; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px clamp(24px, 5vw, 96px); align-items: end; padding: clamp(56px, 8vw, 112px) 0 84px; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero-text p { max-width: 58ch; }
.akzent { color: var(--akzent); }
.trick { cursor: pointer; user-select: none; }
.trick:hover { opacity: 0.75; }
.portrait { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.portrait .bild { aspect-ratio: 4 / 5; overflow: hidden; background: var(--flaeche); border-top: 2px solid var(--linie); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* Abschnitte */
.abschnitt { padding: 84px 0; }
.kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px clamp(24px, 5vw, 96px); margin-bottom: 56px; }
.kopf .label { padding-top: 6px; }
.kopf > div { display: flex; flex-direction: column; gap: 28px; }
.kopf p { max-width: 58ch; }
.spalten { display: grid; gap: 24px clamp(16px, 3vw, 48px); border-top: 2px solid var(--linie); padding-top: 24px; }
.spalten-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spalten-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spalten article { display: flex; flex-direction: column; gap: 14px; }
.punkt { display: flex; align-items: center; gap: 10px; }
.punkt::before { content: ""; width: 10px; height: 10px; background: var(--akzent); flex: none; }
.nummer { font-weight: 800; font-size: clamp(40px, 4vw, 56px); line-height: 1; color: var(--akzent); margin-bottom: 28px; }
.hinweis { margin-top: 56px; padding: 24px 28px; background: var(--flaeche); font-size: 15.5px; max-width: 72ch; }
.zitat { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px clamp(24px, 5vw, 96px); align-items: end; margin: 84px 0 0; padding-top: 28px; border-top: 2px solid var(--linie); }
.zitat blockquote { margin: 0; font-weight: 800; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -0.015em; max-width: 34ch; }
.zitat figcaption { font-size: 14px; color: var(--text-leise); }

/* Archiv */
.archiv-bild { aspect-ratio: 4 / 3; background: var(--flaeche); border-top: 2px solid var(--linie); display: flex; align-items: center; justify-content: center; padding: 20px; color: var(--text-leise); font-size: 14px; text-align: center; overflow: hidden; }
.archiv-bild img { width: 100%; height: 100%; object-fit: cover; }

/* Blog-Liste */
.beitraege { display: flex; flex-direction: column; border-bottom: 2px solid var(--linie); }
.beitrag { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr) auto; gap: 14px clamp(24px, 4vw, 72px); align-items: baseline; padding: 28px 0; border-top: 2px solid var(--linie); }
.beitrag > div { display: flex; flex-direction: column; gap: 8px; }
.beitrag h3 { font-size: 24px; }
.beitrag p { max-width: 58ch; }

/* Blog-Artikel */
.artikel { max-width: 720px; padding: clamp(56px, 8vw, 112px) 0 84px; display: flex; flex-direction: column; gap: 28px; }
.artikel h1 { font-size: clamp(38px, 5vw, 64px); }
.artikel .text { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.75; }
.artikel .text h2 { font-size: 28px; margin-top: 20px; }
.artikel .text figure { margin: 12px 0; }
.artikel .text figcaption { font-size: 14px; color: var(--text-leise); margin-top: 8px; }

/* Kontakt */
.kontakt { background: var(--akzent); color: var(--grund); }
.kontakt .wrap { padding-top: 84px; padding-bottom: 84px; display: flex; flex-direction: column; gap: 42px; }
.kontakt .label { color: var(--grund); }
.kontakt h2 { font-size: clamp(34px, 4.6vw, 64px); max-width: 20ch; }
.kontakt p { font-size: 20px; line-height: 1.5; max-width: 52ch; }
.kontakt .btn { color: var(--grund); border-color: var(--grund); font-size: 16px; padding: 14px 20px; }
.kontakt .btn:hover { background: color-mix(in srgb, var(--grund) 14%, transparent); }

footer .wrap { padding-top: 42px; padding-bottom: 42px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; font-size: 13px; color: var(--text-leise); }

@media (max-width: 1000px) { .spalten-4, .spalten-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .nav .wrap a:not(.marke):not(.btn) { display: none; }
  .hero, .kopf, .zitat, .beitrag, .spalten-3, .spalten-4 { grid-template-columns: 1fr; }
  .portrait { order: -1; max-width: 320px; }
}

/* WordPress */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
.artikel .text img { height: auto; filter: grayscale(1); }
.artikel .text figure, .artikel .text .wp-block-image { margin: 12px 0; }
.artikel .text blockquote { margin: 12px 0; padding-left: 24px; border-left: 2px solid var(--akzent); font-weight: 800; font-size: 22px; line-height: 1.45; }
.artikel .text a { color: var(--akzent-dunkel); }
.seiten { display: flex; gap: 12px; margin-top: 28px; }
.seiten a, .seiten span { padding: 8px 12px; border: 2px solid var(--linie); text-decoration: none; font-size: 14px; }
.seiten .current { background: var(--akzent); border-color: var(--akzent); color: var(--grund); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Elementor: nur Schrift & Farben. Das Layout (Spalten, Abstände) steckt in den Elementor-Einstellungen. ===== */
body .elementor .elementor-widget-container, body .elementor .elementor-heading-title, body .elementor .elementor-button { font-family: var(--schrift); }
body .elementor .elementor-heading-title { color: var(--text); font-weight: 800; letter-spacing: -0.015em; }
body .elementor .elementor-widget-text-editor { color: var(--text); font-size: 17px; line-height: 1.65; }
body .elementor .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
body .elementor .pc-kicker .elementor-heading-title { font-size: 13px; line-height: 1.1; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--akzent-dunkel); }
body .elementor .pc-kicker.pc-grau .elementor-heading-title { color: var(--text-leise); }
body .elementor .pc-punkt .elementor-heading-title { display: flex; align-items: center; gap: 10px; }
body .elementor .pc-punkt .elementor-heading-title::before { content: ""; width: 10px; height: 10px; background: var(--akzent); flex: none; }
body .elementor .pc-h1 .elementor-heading-title { font-size: clamp(42px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.02em; }
body .elementor .pc-h2 .elementor-heading-title { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; }
body .elementor .pc-h3 .elementor-heading-title { font-size: 22px; line-height: 1.3; }
body .elementor .pc-nummer .elementor-heading-title { font-size: clamp(40px, 4vw, 56px); line-height: 1; color: var(--akzent); margin-bottom: 14px; }
body .elementor .pc-leise, body .elementor .pc-leise .elementor-widget-container { color: var(--text-leise); font-size: 15.5px; line-height: 1.7; }
body .elementor .pc-lead p { max-width: 58ch; }
body .elementor .pc-zitat-text { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; font-weight: 800; letter-spacing: -0.015em; }
body .elementor .pc-hinweis .elementor-widget-container { background: var(--flaeche); padding: 24px 28px; font-size: 15.5px; max-width: 72ch; }
body .elementor .pc-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-top: 2px solid var(--linie); }
body .elementor .pc-platzhalter .elementor-widget-container { aspect-ratio: 4 / 3; background: var(--flaeche); border-top: 2px solid var(--linie); display: flex; align-items: center; justify-content: center; padding: 20px; color: var(--text-leise); font-size: 14px; text-align: center; }
body .elementor .elementor-button { border-radius: 0; font-size: 14px; font-weight: 500; padding: 12px 18px; border: 2px solid var(--akzent); text-align: left; }
body .elementor .pc-btn-primaer .elementor-button { background: var(--akzent); color: #fff; }
body .elementor .pc-btn-primaer .elementor-button:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }
body .elementor .pc-btn-sekundaer .elementor-button { background: transparent; color: var(--akzent-dunkel); }
body .elementor .pc-btn-sekundaer .elementor-button:hover { background: color-mix(in srgb, var(--akzent) 12%, transparent); }
body .elementor .pc-kontakt .elementor-heading-title, body .elementor .pc-kontakt .elementor-widget-text-editor { color: #fff; }
body .elementor .pc-kontakt .pc-h2 .elementor-heading-title { font-size: clamp(32px, 4.2vw, 56px); max-width: 20ch; }
body .elementor .pc-kontakt .elementor-widget-text-editor { font-size: 20px; line-height: 1.5; max-width: 52ch; }
body .elementor .pc-kontakt .elementor-button { background: transparent; color: #fff; border-color: #fff; font-size: 16px; padding: 14px 20px; }
body .elementor .pc-kontakt .elementor-button:hover { background: rgba(255, 255, 255, 0.14); }

/* ===== v2.0: Layout kommt aus den Elementor-Einstellungen (Richtung, Breite, Abstand) ===== */
body .elementor .pc-hero, body .elementor .pc-hero > .e-con-inner,
body .elementor .pc-kopf, body .elementor .pc-kopf > .e-con-inner,
body .elementor .pc-zitat, body .elementor .pc-zitat > .e-con-inner,
body .elementor .pc-grid-3, body .elementor .pc-grid-3 > .e-con-inner,
body .elementor .pc-grid-4, body .elementor .pc-grid-4 > .e-con-inner {
  display: flex !important; flex-direction: var(--flex-direction) !important; flex-wrap: var(--flex-wrap) !important;
  align-items: var(--align-items) !important; gap: var(--row-gap) var(--column-gap) !important; grid-template-columns: none !important;
}
body .elementor .pc-hero > .elementor-element, body .elementor .pc-kopf > .elementor-element,
body .elementor .pc-grid-3 > .elementor-element, body .elementor .pc-grid-4 > .elementor-element,
body .elementor .pc-zitat > .elementor-element { width: var(--width, 100%) !important; max-width: 100% !important; flex-shrink: 1; }
body .elementor .pc-zitat > .elementor-widget { width: var(--container-widget-width, auto) !important; }

/* v2.2: Archivbilder klein nebeneinander */
.archiv-bild { aspect-ratio: 4 / 3; max-height: 260px; }
#wpadminbar .pc-anpassen > a { background: var(--akzent) !important; color: #fff !important; }

/* v2.3: Fußzeile mit Impressum */
.fuss-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.fuss-links a { color: var(--text-leise); text-decoration: none; }
.fuss-links a:hover { color: var(--akzent-dunkel); text-decoration: underline; }

/* v2.5: Impressum in der Menüleiste – auf dem Handy sichtbar lassen */
@media (max-width: 720px) { .nav .wrap a.nav-impressum { display: inline; font-size: 13px; } }

/* v2.6: Menü ohne festen Button – der aktive Punkt wird blau hinterlegt */
.nav .wrap { gap: 20px; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.nav .nav-link { display: inline-flex; align-items: center; padding: 8px 12px; font-size: 14px; color: var(--text); border: 2px solid transparent; transition: background-color .15s, color .15s; }
.nav .nav-link:hover { color: var(--akzent-dunkel); background: color-mix(in srgb, var(--akzent) 10%, transparent); }
.nav .nav-link.aktiv { background: var(--akzent); color: #fff; }
.nav .nav-link.aktiv:hover { background: var(--akzent-dunkel); color: #fff; }
@media (max-width: 720px) {
  .nav .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 6px; }
  .nav .wrap a.nav-link { display: inline-flex !important; padding: 6px 8px; font-size: 13px; }
  .nav-links { gap: 2px; }
}
