/*
Theme Name: Ulrich
Description: Eigenes Theme für ralf-ulrich.de im Design Fachredaktion: Animation als Bühne, volle Farbfelder, Blog. Keine Cookies für Besucher, keine eingebetteten Inhalte Dritter.
Author: Prof. Dr. Ralf E. Ulrich
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: ulrich
*/

@font-face { font-family: 'Source Serif 4'; font-weight: 400; font-style: normal; font-display: swap; src: url(assets/schriften/source-serif-4-400.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 400; font-style: italic; font-display: swap; src: url(assets/schriften/source-serif-4-400i.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 600; font-style: normal; font-display: swap; src: url(assets/schriften/source-serif-4-600.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-style: normal; font-display: swap; src: url(assets/schriften/source-sans-3-400.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-style: italic; font-display: swap; src: url(assets/schriften/source-sans-3-400i.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 600; font-style: normal; font-display: swap; src: url(assets/schriften/source-sans-3-600.woff2) format('woff2'); }

:root {
  --petrol: #12514D; --petrol-tief: #0A3835; --petrol-hell: #1B6B65;
  --ziegel: #A8471F; --ziegel-hell: #E8864F; --salbei: #8FB3A6; --kupfer: #F3B79B;
  --tinte: #222B29; --grau: #4F5A56; --linie: #D9D6CE; --neben: #D3E6E1; --weiss: #FFFFFF;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --rand: clamp(20px, 5vw, 72px);
  --breite: 1500px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--petrol) #E8EBE9; }
body { margin: 0; background: var(--weiss); color: var(--tinte); font: 400 1.125rem/1.6 var(--sans); }
::selection { background: var(--ziegel-hell); color: #10201E; }
img { max-width: 100%; height: auto; }
a { color: var(--petrol); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ziegel); }
:focus-visible { outline: 3px solid var(--ziegel); outline-offset: 3px; }
.buehne :focus-visible, .kopfzone :focus-visible, .kontakt :focus-visible { outline-color: var(--ziegel-hell); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; hyphens: manual; }
.innen { padding-inline: var(--rand); }
.springen { position: absolute; left: -9999px; top: 0; z-index: 20; padding: 10px 14px; background: var(--weiss); color: var(--petrol-tief); }
.springen:focus { left: 12px; top: 12px; }

/* Hinweis auf der Testadresse, siehe functions.php; kein Teil des Designs */
.testband { padding: 7px var(--rand); background: var(--kupfer); color: #10201E; font-size: .95rem; font-weight: 600; line-height: 1.35; }

/* Kopf */
.kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 32px; padding-block: 22px 18px; color: var(--weiss); }
.marke { color: inherit; text-decoration: none; font: 600 1.25rem/1.15 var(--serif); }
.marke:hover { color: inherit; text-decoration: underline; }
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: 1rem; }
.nav a { display: block; padding-block: 6px; color: inherit; text-decoration: none; }
.nav a:hover { color: inherit; text-decoration: underline; }
.nav [aria-current] { text-decoration: underline; text-decoration-color: var(--kupfer); text-decoration-thickness: 2px; }

/* Bühne der Startseite */
.buehne { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: min(94svh, 980px); overflow: hidden; color: var(--weiss);
  background: radial-gradient(1200px 860px at 74% 42%, var(--petrol-hell) 0%, var(--petrol) 42%, var(--petrol-tief) 100%); }
.stage { position: absolute; z-index: -2; top: 0; right: 0; bottom: 0; width: min(64vw, 1040px); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.buehne::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,56,53,.97) 0%, rgba(10,56,53,.92) 40%, rgba(10,56,53,.5) 56%, rgba(10,56,53,0) 70%); }
.aussage { margin-top: auto; padding-block: clamp(32px, 5vh, 64px) clamp(36px, 6vh, 72px); }
.aussage h1 { font-size: clamp(2.7rem, min(7.1vw, 10vh), 6rem); line-height: 1.02; letter-spacing: -.015em; max-width: 7.4em; }
@media (min-width: 761px) and (max-height: 760px) {
  .aussage h1 { max-width: 9em; }
  .aussage { padding-block: 12px 28px; }
  .aussage .lead { margin-block: 14px 18px; font-size: 1.1rem; }
}
.cursor { white-space: nowrap; }
.cursor::after { content: ""; display: inline-block; width: .26em; height: .72em; margin-left: .12em; background: var(--ziegel-hell); vertical-align: -.02em; }
.lead { font: 400 clamp(1.15rem, 1.7vw, 1.45rem)/1.42 var(--serif); }
.aussage .lead { color: var(--neben); max-width: 26em; margin: clamp(20px, 3vh, 30px) 0 clamp(24px, 3.4vh, 34px); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.knopf { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; background: var(--weiss); color: var(--petrol-tief); font-weight: 600; text-decoration: none; transition: background .15s; }
.knopf:hover { background: var(--kupfer); color: var(--petrol-tief); }
.leise { color: inherit; font-weight: 600; padding-block: 12px; }
.leise:hover { color: var(--kupfer); }
.pause { position: absolute; right: var(--rand); bottom: clamp(20px, 3.5vh, 36px); min-height: 40px; padding: 0 14px; background: rgba(10,56,53,.72); border: 1px solid rgba(255,255,255,.5); color: var(--weiss); font: 600 .88rem var(--sans); cursor: pointer; }
.pause:hover { background: rgba(255,255,255,.16); }

/* Drei Felder */
.felder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feld { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding-block: clamp(40px, 6vw, 84px); padding-inline: clamp(20px, 3.4vw, 56px); text-decoration: none; transition: filter .18s; }
.feld:first-child { padding-left: var(--rand); }
.feld:hover { filter: brightness(1.07); }
.feld h2 { font-size: clamp(2rem, 3.5vw, 3.1rem); line-height: 1.04; hyphens: auto; }
.feld .frage { margin: 0; font: 400 clamp(1.25rem, 1.9vw, 1.6rem)/1.28 var(--serif); text-wrap: pretty; }
.feld .was { margin: 0; font-size: 1.06rem; max-width: 30em; text-wrap: pretty; }
.feld .weiter { margin-top: auto; padding-top: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: .22em; }
.f1, .f1:hover { background: var(--petrol-hell); color: var(--weiss); } .f1 .was { color: #E0EFEB; }
.f2, .f2:hover { background: var(--ziegel); color: var(--weiss); } .f2 .was { color: #FBEDE6; }
.f3, .f3:hover { background: var(--salbei); color: #10201E; } .f3 .was { color: #14231F; }
.feld:focus-visible { outline-offset: -7px; }
.f1:focus-visible, .kopfzone.f1 :focus-visible, .f2:focus-visible, .kopfzone.f2 :focus-visible { outline-color: #FFFFFF; }
.f3:focus-visible, .kopfzone.f3 :focus-visible { outline-color: #10201E; }

/* So arbeite ich */
.prinzip { padding-block: 0 clamp(56px, 8vw, 120px); }
.prinzip h2 { color: var(--petrol); font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -.01em; margin-bottom: clamp(20px, 3vw, 36px); }
.prinzip .wp-block-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 44px); margin: 0; padding-top: clamp(20px, 2.4vw, 32px); border-top: 2px solid var(--petrol); }
.prinzip .wp-block-column { min-width: 0; }
.prinzip h3 { color: var(--petrol); font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.14; margin-bottom: 10px; }
.prinzip p { margin: 0; max-width: 32em; }

/* Blog auf der Startseite und in der Übersicht */
section.blog { padding-block: clamp(56px, 8vw, 120px); } /* WordPress setzt body.blog auf der Blogseite */
.blog-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: clamp(20px, 3vw, 36px); }
.blog-kopf h2 { color: var(--petrol); font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -.01em; }
.blog-kopf a { font-weight: 600; }
.liste-beitraege { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--petrol); }
.liste-beitraege li { display: grid; grid-template-columns: minmax(7.5em, .55fr) minmax(0, 2fr) minmax(0, 2fr); gap: 8px clamp(20px, 3vw, 44px); padding-block: clamp(20px, 2.4vw, 32px); border-top: 1px solid var(--linie); }
.liste-beitraege li:first-child { border-top: 2px solid var(--petrol); }
.liste-beitraege time { color: var(--grau); font-size: 1rem; font-variant-numeric: tabular-nums; padding-top: .35em; }
.liste-beitraege h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.14; }
.liste-beitraege h3 a { color: var(--petrol); text-decoration: none; }
.liste-beitraege h3 a:hover { color: var(--ziegel); text-decoration: underline; }
.liste-beitraege p { margin: 0; max-width: 34em; }
.blatt { margin-top: 32px; }
.blatt .nav-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.blatt .current { color: var(--grau); }

/* Unterseiten */
.titelband { padding-block: clamp(36px, 6vw, 88px) clamp(40px, 6vw, 88px); background: var(--petrol); color: var(--weiss); }
.titelband h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: 1.03; letter-spacing: -.012em; max-width: 13em; hyphens: auto; }
.titelband .lead { margin: 22px 0 0; max-width: 32em; color: var(--neben); }
.titelband time { display: block; margin-top: 18px; color: var(--neben); font-variant-numeric: tabular-nums; }
.kopfzone { background: var(--petrol-tief); color: var(--weiss); }
.kopfzone.f1 { background: var(--petrol-hell); }
.kopfzone.f2 { background: var(--ziegel); }
.kopfzone.f3 { background: var(--salbei); color: #10201E; }
.kopfzone.f3 .nav [aria-current] { text-decoration-color: currentColor; }
.kopfzone .titelband { background: transparent; color: inherit; }
.kopfzone .titelband .lead, .kopfzone .titelband time { color: inherit; }
.kopf .marke, .kopfzone .kopf { color: inherit; }

.inhalt { padding-block: clamp(40px, 6vw, 84px); }
.text { max-width: 38rem; hyphens: auto; }
/* Feldseiten: Überschrift links, Text rechts, wie das Raster der Blogliste */
@media (min-width: 981px) {
  .seite-feld .text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38rem); column-gap: clamp(32px, 5vw, 88px); max-width: var(--breite); }
  .seite-feld .text > * { grid-column: 2; min-width: 0; }
  .seite-feld .text > h2 { grid-column: 1; margin-block: 2.75rem 0; padding-top: 16px; border-top: 2px solid var(--petrol); }
  .seite-feld .text > h2 + * { margin-top: calc(2.75rem + 28px); }
  .seite-feld .text > h2:first-child { margin-top: 0; }
  .seite-feld .text > h2:first-child + * { margin-top: 28px; }
}
.seite-recht .text h2 { font-size: 1.3rem; margin-block: 1.6em .4em; }
.text > * { margin-block: 0 1em; }
.text h2 { margin-block: 1.7em .55em; color: var(--petrol); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; }
.text h3 { margin-block: 1.4em .4em; color: var(--petrol); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.2; }
.text > :first-child { margin-top: 0; }
.text ul, .text ol { padding-left: 1.2em; }
.text li { margin-block: .35em; }
.text li::marker { color: var(--ziegel); }
.text blockquote { margin-inline: 0; padding-left: 1em; border-left: 1px solid var(--petrol); font: italic 400 1.25rem/1.5 var(--serif); }
.text img, .text figure { max-width: 100%; height: auto; }
.text figure { margin-inline: 0; }
.text .wp-block-image img { border: 1px solid var(--linie); }
.text figcaption { color: var(--grau); font-size: .95rem; margin-top: .5em; }
.text table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.text th { text-align: left; border-bottom: 2px solid var(--petrol); padding: 8px 12px 8px 0; }
.text td { border-bottom: 1px solid var(--linie); padding: 8px 12px 8px 0; }
.text address { font-style: normal; }
.text .wp-block-gallery { margin-block: 1.5em; }
.umblaettern { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; max-width: 38rem; margin-top: clamp(36px, 5vw, 64px); padding-top: 18px; border-top: 1px solid var(--linie); font-weight: 600; }

/* Kontakt und Fuß */
.kontakt { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: end; justify-content: space-between; padding-block: clamp(52px, 7vw, 100px); background: var(--petrol-tief); color: var(--weiss); }
.kontakt h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.06; max-width: 15em; }
.kontakt a { color: inherit; font: 600 clamp(1.25rem, 2.2vw, 1.8rem) var(--serif); }
.kontakt a:hover { color: var(--kupfer); }
.fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 20px 32px; color: var(--grau); font-size: .95rem; }
.fuss ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.fuss a { color: inherit; }
.fuss a:hover { color: var(--ziegel); }

@media (max-width: 980px) {
  .felder { grid-template-columns: 1fr; }
  .feld, .feld:first-child { padding-inline: var(--rand); }
  .feld .weiter { margin-top: 0; }
  .liste-beitraege li { grid-template-columns: 1fr; }
  .liste-beitraege time { padding-top: 0; }
  .prinzip .wp-block-columns { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .buehne { min-height: 0; }
  .stage { left: 0; width: 100%; bottom: auto; height: 350px; top: 44px; }
  .buehne::before { background: linear-gradient(180deg, rgba(10,56,53,0) 330px, rgba(10,56,53,.86) 410px, rgba(10,56,53,.98) 480px); }
  /* Telefon: die Aktion steht direkt unter der Aussage, der Lead folgt danach */
  .aussage { display: flex; flex-direction: column; margin-top: 214px; padding-block: 24px 76px; }
  .aussage .knoepfe { order: 1; margin-top: 22px; }
  .aussage .lead { order: 2; margin: 22px 0 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .knopf, .feld { transition: none; } }
@media print { .stage, .pause, .nav, .kontakt, .springen, .testband { display: none; } .buehne, .kopfzone, .titelband { background: #fff; color: var(--tinte); } .buehne::before { display: none; } }
