/*
Theme Name:   Chris Hamerla
Theme URI:    https://chrishamerla.de
Description:  Child-Theme für GeneratePress mit der Platzhalterseite der Marke Chris Hamerla. Bringt Farben, Schriften und das Monogramm mit und richtet sich unter Werkzeuge in vier Schritten selbst ein.
Author:       Jack Griesbeck, JACKSCORNER
Author URI:   https://jackscorner.de
Template:     generatepress
Version:      1.0.0
Text Domain:  chris-hamerla
*/

/* ---------------------------------------------------------------
   Schriften, lokal eingebunden.
   Keine Verbindung zu Google, damit die Seite ohne Einwilligung
   datenschutzkonform bleibt.
--------------------------------------------------------------- */
@font-face{
  font-family:"Spectral CH";
  src:url("schriften/spectral-400.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Spectral CH";
  src:url("schriften/spectral-400i.woff2") format("woff2");
  font-weight:400; font-style:italic; font-display:swap;
}
@font-face{
  font-family:"Spectral CH";
  src:url("schriften/spectral-800.woff2") format("woff2");
  font-weight:800; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Barlow CH";
  src:url("schriften/barlow-500.woff2") format("woff2");
  font-weight:500; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Barlow CH";
  src:url("schriften/barlow-600.woff2") format("woff2");
  font-weight:600; font-style:normal; font-display:swap;
}

/* ---------------------------------------------------------------
   Die Platzhalterseite
--------------------------------------------------------------- */
.chl{
  --tiefblau:#0D3049;
  --tiefblau-tief:#07202F;
  --hellblau:#55B5E8;
  --eisblau:#AEDCF7;
  --rot:#D8402F;
  --papier:#E9F4FC;
  --display:"Spectral CH", Georgia, "Times New Roman", serif;
  --utility:"Barlow CH", system-ui, -apple-system, "Segoe UI", sans-serif;

  position:relative;
  box-sizing:border-box;
  min-height:100vh;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  background:var(--tiefblau);
  color:var(--papier);
  font-family:var(--display);
  overflow:hidden;
}
/* Platz für die WordPress-Adminleiste, wenn jemand angemeldet ist */
.admin-bar .chl{
  min-height:calc(100vh - var(--wp-admin--admin-bar--height, 32px));
  min-height:calc(100svh - var(--wp-admin--admin-bar--height, 32px));
}
.chl *,.chl *::before,.chl *::after{box-sizing:border-box}

/* Grundrauschen, damit die Fläche nicht tot wirkt */
.chl::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(60rem 40rem at 78% 18%, rgba(85,181,232,.16), transparent 70%),
    radial-gradient(44rem 34rem at 8% 92%, rgba(7,32,47,.85), transparent 72%);
}

.chl-inhalt{
  position:relative;
  z-index:1;
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:clamp(1.3rem,3.2vh,2.7rem);
  width:100%;
  max-width:72rem;
  margin-inline:auto;
  padding-block:clamp(2.2rem,6vh,5rem);
  padding-left:max(20px, env(safe-area-inset-left, 0px));
  padding-right:max(20px, env(safe-area-inset-right, 0px));
}

.chl-kicker{
  margin:0;
  font-family:var(--utility);
  font-weight:600;
  font-size:clamp(.66rem,1.5vw,.78rem);
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--rot);
}

/* Der Querbalken des Zeichens läuft als Linie aus der Seite */
.chl-balken{
  position:relative;
  display:flex;
  align-items:center;
}
.chl-balken::after{
  content:"";
  position:absolute;
  left:0;
  right:calc(-1 * max(20px, env(safe-area-inset-right, 0px)));
  top:44%;
  height:clamp(5px,.9vw,9px);
  transform:translateY(-50%);
  background:var(--rot);
}
.chl-mono{
  position:relative;
  z-index:1;
  display:block;
  flex:none;
  width:clamp(58px,8vw,86px);
  height:clamp(58px,8vw,86px);
}

.chl-name{
  margin:0;
  font-family:var(--display);
  font-weight:800;
  text-transform:uppercase;
  font-size:clamp(2.6rem,11vw,7rem);
  line-height:.98;
  letter-spacing:-.01em;
  text-wrap:balance;
  color:var(--papier);
}
.chl-name span{color:var(--eisblau)}

.chl-satz{
  margin:0;
  max-width:34ch;
  font-size:clamp(1.12rem,2.6vw,1.6rem);
  line-height:1.55;
  color:var(--papier);
}
.chl-satz em{font-style:italic;color:var(--eisblau)}

.chl-jahr{
  margin:0;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.9rem;
  font-family:var(--utility);
  font-weight:500;
  font-size:clamp(.8rem,1.8vw,.95rem);
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--hellblau);
}
.chl-jahr::before{
  content:"";
  flex:none;
  width:clamp(28px,5vw,54px);
  height:3px;
  background:var(--hellblau);
}

.chl-fuss{
  position:relative;
  z-index:1;
  width:100%;
  max-width:72rem;
  margin-inline:auto;
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:.6rem 1.6rem;
  border-top:1px solid rgba(174,220,247,.22);
  padding-block:1.2rem;
  padding-left:max(20px, env(safe-area-inset-left, 0px));
  padding-right:max(20px, env(safe-area-inset-right, 0px));
  padding-bottom:max(1.6rem, env(safe-area-inset-bottom, 0px));
  font-family:var(--utility);
  font-size:clamp(.74rem,1.6vw,.85rem);
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(174,220,247,.72);
}
.chl-fuss a{
  color:var(--eisblau);
  text-decoration:none;
  border-bottom:1px solid rgba(174,220,247,.4);
  padding-bottom:2px;
}
.chl-fuss a:hover,.chl-fuss a:focus-visible{color:#fff;border-bottom-color:var(--rot)}
.chl-fuss a:focus-visible{outline:2px solid var(--hellblau);outline-offset:4px}
.chl-leise{color:rgba(174,220,247,.5);letter-spacing:.1em}

@media (prefers-reduced-motion: no-preference){
  .chl-balken,.chl-name,.chl-satz,.chl-jahr{animation:chl-auf .9s cubic-bezier(.2,.7,.3,1) both}
  .chl-name{animation-delay:.08s}
  .chl-satz{animation-delay:.16s}
  .chl-jahr{animation-delay:.24s}
}
@keyframes chl-auf{from{opacity:.001;transform:translateY(10px)}to{opacity:1;transform:none}}
