/*
Theme Name: FokusPokus Pro
Theme URI: https://example.com/fokuspokus-pro
Author: Von Florian Horn
Author URI: https://example.com
Description: Ein modernes, mobiles und adminfreundliches Block-Theme fuer FokusPokus Coaching. Mit Logo-Integration, editierbarer Startseite, Blog, Terminbereich, Header/Footer Editor und weicher Mobile-Optik.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fokuspokus-pro
Tags: blog, full-site-editing, block-patterns, custom-logo, custom-colors, one-column, wide-blocks, editor-style, featured-images
*/

:root {
  --fp-radius-lg: 34px;
  --fp-radius-md: 24px;
  --fp-shadow-soft: 0 22px 70px rgba(11, 20, 35, .10);
  --fp-shadow-card: 0 14px 45px rgba(11, 20, 35, .08);
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration-thickness: .08em;
  text-underline-offset: .22em;
}

.wp-site-blocks {
  overflow-x: clip;
}

.fp-shell {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.fp-section {
  padding: clamp(64px, 8vw, 112px) 20px;
}

.fp-section-compact {
  padding: clamp(48px, 7vw, 86px) 20px;
}

.fp-card,
.fp-soft-card {
  border-radius: var(--fp-radius-lg);
  box-shadow: var(--fp-shadow-card);
  border: 1px solid rgba(197, 151, 73, .18);
}

.fp-card {
  box-shadow: var(--fp-shadow-soft);
}

.fp-glow {
  position: relative;
  isolation: isolate;
}

.fp-glow:before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: calc(var(--fp-radius-lg) + 18px);
  background: radial-gradient(circle at 30% 20%, rgba(197,151,73,.24), transparent 55%);
  z-index: -1;
}

.fp-pill {
  display: inline-block;
  padding: .55rem .86rem;
  border-radius: 999px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
}

.fp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 31, 51, .08);
}

.fp-header .wp-block-navigation__responsive-container-open {
  padding: 8px;
  border-radius: 999px;
}

.fp-footer {
  border-top: 1px solid rgba(17, 31, 51, .08);
}

.fp-bottom-bar {
  display: none;
}

.wp-block-button__link {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 10px 22px rgba(11, 20, 35, .08);
}

.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(11, 20, 35, .12);
}

.wp-block-post-featured-image img,
.wp-block-image img {
  border-radius: 22px;
}

@media (max-width: 782px) {
  :root {
    --fp-radius-lg: 26px;
    --fp-radius-md: 20px;
  }

  .fp-shell {
    width: min(100% - 28px, 1180px);
  }

  .fp-section {
    padding: 54px 14px;
  }

  .fp-section-compact {
    padding: 44px 14px;
  }

  .fp-card,
  .fp-soft-card {
    border-radius: var(--fp-radius-md);
  }

  .fp-card {
    padding: 26px !important;
  }

  .wp-block-buttons {
    width: 100%;
  }

  .wp-block-button,
  .wp-block-button__link {
    width: 100%;
    text-align: center;
  }

  .fp-header {
    position: sticky;
  }

  .fp-header .wp-block-navigation {
    font-size: 16px;
  }

  body {
    padding-bottom: 72px;
  }

  .fp-bottom-bar {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(11, 20, 35, .92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .fp-bottom-bar a {
    color: #fff8ea;
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    padding: 10px 8px;
    border-radius: 999px;
  }

  .fp-bottom-bar a:last-child {
    background: #c59749;
    color: #111f33;
  }
}


/* Logo-Integration */
.custom-logo,
.wp-block-site-logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.fp-hero-logo {
  display: grid;
  place-items: center;
}

.fp-hero-logo .wp-block-site-logo {
  margin-left: auto;
  margin-right: auto;
}

.fp-hero-logo img {
  filter: drop-shadow(0 18px 40px rgba(197,151,73,.22));
}

.fp-logo-panel {
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 16%, rgba(197,151,73,.20), transparent 34%),
    linear-gradient(180deg, rgba(255,248,234,.96), rgba(244,234,216,.88));
}

.fp-brand-line {
  color: var(--wp--preset--color--gold);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
}

.fp-magic-star {
  color: var(--wp--preset--color--gold);
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 720px) {
  .fp-header .wp-block-site-logo img {
    max-height: 42px;
  }
  .fp-hero-logo .wp-block-site-logo img {
    max-height: 220px;
    width: auto;
  }
  .fp-logo-panel {
    border-radius: 28px;
  }
}
