/*
Theme Name: Floo
Theme URI: https://floo.eu/
Author: Floo
Description: Ein flexibles Block-Theme für Flooschule, Flootainment, Flori Stories sowie Über & Kontakt.
Version: 1.3.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: floo
*/

:root {
  --floo-bordeaux: #8c1133;
  --floo-bordeaux-dark: #7f1734;
  --floo-rose: #f0b4c4;
  --floo-cyan: #22b3d4;
  --floo-navy: #123a59;
  --floo-ink: #244f6d;
  --floo-sky: #eaf7fb;
  --floo-paper: #fffdfb;
  --floo-line: rgba(18, 58, 89, .12);
  --floo-shadow: 0 18px 55px rgba(18, 58, 89, .13);
  --floo-radius: 32px;
  --floo-content: 950px;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  overflow-x: hidden;
  background-color: var(--floo-sky);
  background-image: repeating-linear-gradient(90deg, var(--floo-sky) 0, var(--floo-sky) 34px, #fff 34px, #fff 68px);
}

.wp-site-blocks { min-height: 100vh; }

.floo-site-header,
.floo-site-footer {
  background: rgba(234, 247, 251, .97);
  color: var(--floo-navy);
}

.floo-site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid rgba(18, 58, 89, .06);
}

.floo-header-inner,
.floo-footer-inner {
  width: min(1440px, calc(100% - 40px));
  margin-inline: auto;
}

.floo-header-inner { min-height: 104px; }

.floo-site-header .wp-block-site-logo img {
  max-height: 68px;
  width: auto;
}

.floo-site-header .wp-block-navigation-item__content,
.floo-site-footer .wp-block-navigation-item__content {
  color: var(--floo-navy);
  text-decoration: none;
}

/* Die Menüschrift greift den feinen, kursiven Charakter des früheren Layouts auf. */
.floo-site-header .wp-block-navigation {
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(1.08rem, 1.45vw, 1.3rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}
.floo-site-header .wp-block-navigation__container {
  column-gap: clamp(1.1rem, 2.2vw, 2.1rem);
}

.floo-site-header .wp-block-navigation-item__content:hover,
.floo-site-header .wp-block-navigation-item__content:focus,
.floo-site-footer .wp-block-navigation-item__content:hover,
.floo-site-footer .wp-block-navigation-item__content:focus {
  color: var(--floo-bordeaux);
}

.floo-main-wrap {
  width: min(var(--floo-content), calc(100% - 48px));
  margin: 28px auto 48px;
  padding: clamp(30px, 4vw, 48px);
  background: rgba(255,255,255,.985);
  border: 1px solid rgba(18, 58, 89, .08);
  border-radius: var(--floo-radius);
  box-shadow: var(--floo-shadow);
}

.floo-main-wrap > .wp-block-post-title:first-child { margin-top: 0; }

.floo-main-wrap :where(h1,h2,h3,h4,h5,h6),
.floo-newspaper :where(h1,h2,h3,h4,h5,h6) {
  text-wrap: balance;
}

.floo-main-wrap p,
.floo-main-wrap li,
.floo-newspaper p,
.floo-newspaper li {
  text-wrap: pretty;
}

.floo-eyebrow {
  margin-bottom: .35rem !important;
  color: var(--floo-bordeaux) !important;
  font-family: system-ui, sans-serif !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.floo-subtitle {
  margin-top: .2rem !important;
  color: var(--floo-bordeaux) !important;
}

.floo-lead {
  font-size: clamp(1.08rem, 1.6vw, 1.34rem);
  line-height: 1.55;
}

.floo-card {
  padding: clamp(22px, 3.5vw, 42px);
  background: #f4fbfe;
  border: 1px solid rgba(34, 179, 212, .18);
  border-radius: 24px;
}

.floo-card--rose {
  background: linear-gradient(145deg, rgba(240,180,196,.22), rgba(255,255,255,.92));
  border-color: rgba(140,17,51,.12);
}

.floo-card--paper {
  background: var(--floo-paper);
  border-color: rgba(127,23,52,.1);
}

.floo-rule {
  border: 0;
  border-top: 1px solid var(--floo-line);
}

.wp-element-button,
.wp-block-button__link {
  border-radius: 14px;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
}

.is-style-floo-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--floo-navy) !important;
  border: 2px solid var(--floo-navy);
}

.is-style-floo-outline .wp-block-button__link:hover {
  color: #fff !important;
  background: var(--floo-navy) !important;
}

/* Bildstile */
.wp-block-image.is-style-floo-rounded img {
  border-radius: 24px;
}
.wp-block-image.is-style-floo-passepartout {
  padding: clamp(12px, 2vw, 24px);
  background: #fff;
  border: 1px solid rgba(18,58,89,.1);
  border-radius: 26px;
  box-shadow: 0 12px 35px rgba(18,58,89,.1);
}
.wp-block-image.is-style-floo-passepartout img { border-radius: 16px; }
.wp-block-image.is-style-floo-programmheft {
  padding: 16px 16px 22px;
  background: #fffdf8;
  border: 1px solid rgba(127,23,52,.1);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(18,58,89,.08);
}
.wp-block-image.is-style-floo-programmheft figcaption {
  color: var(--floo-ink);
  font-family: var(--wp--preset--font-family--body);
  text-align: left;
}
.wp-block-image.is-style-floo-newspaper img {
  filter: saturate(.86) contrast(1.03);
  border: 1px solid rgba(18,58,89,.18);
}
.wp-block-image.is-style-floo-newspaper figcaption {
  margin-top: .45rem;
  padding-top: .45rem;
  border-top: 1px solid rgba(18,58,89,.18);
  color: var(--floo-ink);
  text-align: left;
}
.wp-block-image.is-style-floo-polaroid {
  padding: 12px 12px 36px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(18,58,89,.14);
  transform: rotate(-1deg);
}

/* Floo-Funktionsblöcke */
.floo-radio,
.floo-tv__cabinet,
.floo-buehnenalbum__book {
  max-width: 100%;
}
.floo-radio { margin-inline: auto; }
.floo-tv__stage,
.floo-buehnenalbum { overflow: clip; }

/* ==================================================
   KOMPATIBILITÄT MIT DEN BISHERIGEN GANZSEITEN-BLÖCKEN
   Das Theme stellt bereits das einzige weiße Fenster bereit.
   Die früheren Plugin-Rahmen werden deshalb innerhalb dieses Fensters entfernt.
   ================================================== */
.floo-main-wrap .wp-block-floo-startseite > .floo-startseite,
.floo-main-wrap .wp-block-floo-flootainment > .floo-flootainment,
.floo-main-wrap .wp-block-floo-ueber-kontakt > .floo-about,
.floo-main-wrap .wp-block-floo-rechtliches > .floo-legal {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* Das Radiodisplay bleibt elegant, auch wenn ein Titel lang ist. */
.floo-main-wrap .floo-radio__title {
  font-size: clamp(1.12rem, 1.8vw, 1.55rem) !important;
  line-height: 1.06 !important;
}

/* Zeitung */
.floo-newspaper {
  width: min(1220px, calc(100% - 48px));
  margin: 28px auto 48px;
  padding: clamp(28px, 4vw, 58px);
  background: #fffefb;
  border: 1px solid rgba(18,58,89,.12);
  box-shadow: 0 18px 50px rgba(18,58,89,.12);
}
.floo-newspaper-masthead {
  padding-bottom: 18px;
  border-bottom: 4px double var(--floo-navy);
  text-align: center;
}
.floo-newspaper-title {
  margin: 0 !important;
  color: var(--floo-bordeaux) !important;
  font-size: clamp(2.7rem, 8vw, 6.2rem) !important;
  line-height: .92 !important;
  letter-spacing: -.035em;
}
.floo-newspaper-date {
  margin: .65rem 0 0 !important;
  color: var(--floo-ink);
  font-family: system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.floo-newspaper-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr);
  gap: clamp(30px, 5vw, 64px);
  margin-top: 34px;
}
.floo-newspaper .wp-block-post-template { margin: 0; }
.floo-newspaper .wp-block-post {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(18,58,89,.15);
}
.floo-newspaper .wp-block-post-title a { text-decoration: none; }
.floo-newspaper .wp-block-post-title a:hover { color: var(--floo-bordeaux); }
.floo-newspaper-kicker {
  color: var(--floo-bordeaux);
  font-family: system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.floo-article {
  max-width: 760px;
  margin-inline: auto;
}
.floo-article .wp-block-post-content > p:first-of-type::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  color: var(--floo-bordeaux);
  font-family: var(--wp--preset--font-family--heading);
  font-size: 4.6em;
  line-height: .78;
}

/* Brief */
.floo-letter {
  position: relative;
  padding: clamp(28px, 5vw, 62px);
  background: linear-gradient(#fffefb, #fffdf9);
  border: 1px solid rgba(127,23,52,.11);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(18,58,89,.1);
}
.floo-letter-date { text-align: right; }

@media (max-width: 900px) {
  .floo-header-inner { min-height: 86px; }
  .floo-main-wrap,
  .floo-newspaper { width: calc(100% - 28px); }
  .floo-newspaper-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body {
    background-image: repeating-linear-gradient(90deg, var(--floo-sky) 0, var(--floo-sky) 20px, #fff 20px, #fff 40px);
  }
  .floo-header-inner,
  .floo-footer-inner { width: calc(100% - 24px); }
  .floo-main-wrap,
  .floo-newspaper {
    width: calc(100% - 20px);
    margin-top: 10px;
    margin-bottom: 24px;
    padding: 22px 18px;
    border-radius: 20px;
  }
  .floo-site-header .wp-block-site-logo img { max-height: 54px; }

  /* Das mobile Overlay sitzt bewusst mittig statt am rechten Rand. */
  .floo-site-header .wp-block-navigation__responsive-container.is-menu-open {
    padding: 24px;
  }
  .floo-site-header .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content {
    width: 100%;
    padding-top: 72px;
    align-items: center;
  }
  .floo-site-header .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container {
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 1.15rem;
  }
  .floo-site-header .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item {
    width: 100%;
    justify-content: center;
  }
  .floo-site-header .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content {
    width: 100%;
    padding-inline: 1rem;
    text-align: center;
  }

  .floo-newspaper-title { font-size: clamp(2.5rem, 18vw, 4.4rem) !important; }
  .floo-card { padding: 20px 18px; border-radius: 20px; }
  .wp-block-buttons { gap: .65rem; }
  .wp-block-button { width: 100%; }
  .wp-block-button__link { width: 100%; text-align: center; }
}

/* ==================================================
   FLOO TYPOGRAFIESTILE
   Im Block-Editor unter „Stile“ auswählbar.
   ================================================== */

/* Große, charaktervolle Titelschrift – für wenige starke Auftritte. */
:where(h1,h2,h3,h4,h5,h6).is-style-floo-display {
  margin-top: 0;
  color: var(--floo-bordeaux);
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(2.7rem, 7vw, 5.9rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.018em;
  text-wrap: balance;
}

/* Ruhiger Editorial-Titel – gut für Unterkapitel, Programmheft und Zeitung. */
:where(h1,h2,h3,h4,h5,h6).is-style-floo-editorial {
  color: var(--floo-navy);
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 400;
  font-style: italic;
  line-height: 1.12;
  text-wrap: balance;
}

/* Überschrift mit feiner türkiser Akzentlinie. */
:where(h1,h2,h3,h4,h5,h6).is-style-floo-accent-line {
  position: relative;
  padding-bottom: .28em;
  color: var(--floo-navy);
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 400;
}
:where(h1,h2,h3,h4,h5,h6).is-style-floo-accent-line::after {
  content: "";
  display: block;
  width: min(5.5rem, 32%);
  height: 3px;
  margin-top: .18em;
  border-radius: 99px;
  background: var(--floo-cyan);
}

/* Größerer Vorspann, der einen Abschnitt lesefreundlich eröffnet. */
p.is-style-floo-lead {
  color: var(--floo-navy);
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Persönliche, leicht literarische Zeile. */
p.is-style-floo-personal {
  color: var(--floo-bordeaux);
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-style: italic;
  line-height: 1.36;
}

/* Kleine Rubrikzeile wie in einem Programmheft oder einer Zeitung. */
p.is-style-floo-kicker {
  margin-bottom: .45rem;
  color: var(--floo-bordeaux);
  font-family: var(--wp--preset--font-family--body);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Unaufdringliche Zusatzinformation, Bildnachweis oder Datumszeile. */
p.is-style-floo-fineprint {
  color: rgba(36,79,109,.82);
  font-size: .84rem;
  line-height: 1.5;
}

.wp-block-quote.is-style-floo-rose-quote {
  margin-inline: 0;
  padding: clamp(1.1rem, 2.5vw, 1.8rem);
  background: linear-gradient(135deg, rgba(240,180,196,.25), rgba(255,255,255,.88));
  border: 0;
  border-left: 4px solid var(--floo-bordeaux);
  border-radius: 0 18px 18px 0;
  color: var(--floo-navy);
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  font-style: italic;
  line-height: 1.45;
}

@media (max-width: 600px) {
  :where(h1,h2,h3,h4,h5,h6).is-style-floo-display {
    font-size: clamp(2.45rem, 13vw, 4.25rem);
  }
}


/* Überschrift im Editor behalten, auf der veröffentlichten Seite ausblenden. */
.wp-site-blocks .wp-block-heading.is-style-floo-hidden-front {
  display: none !important;
}
.editor-styles-wrapper .wp-block-heading.is-style-floo-hidden-front {
  opacity: .45;
  outline: 1px dashed rgba(140,17,51,.45);
  outline-offset: 5px;
}
