/*
Theme Name: St. Johannis Modern
Description: Farbenfrohes, responsives Theme für die Grundschule Bayreuth-St. Johannis.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: st-johannis-modern
*/
:root {
  --teal: #087f78;https://gs-st-johannis.de/wp-admin/theme-editor.php?file=style.css&theme=st-johannis-modern
  --teal-dark: #075e59;
  --coral: #f16f61;
  --sunshine: #ffca45;
  --sky: #82d5e8;
  --lilac: #c9b5ef;
  --mint: #c8eedf;
  --ink: #263735;
  --muted: #566b67;
  --paper: #fffaf0;
  --white: #fff;
  --line: #e8e5db;
  --radius: 22px;
  --shadow: 0 8px 24px rgba(37, 85, 76, .11);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: #b9473e; }
img { max-width: 100%; height: auto; border-radius: 14px; }
.wrap { width: min(1120px, 92%); margin-inline: auto; }

/* Kopfbereich und Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 3px solid var(--sunshine);
  backdrop-filter: blur(10px);
}
.header-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--teal-dark);
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}
.brand-mark {
  width: 64px;
height: 64px;
  display: grid;
  place-items: center;
border: none;  border-radius: 16px 16px 16px 5px;
  color: var(--ink);
background: transparent;  
	font-size: 1.35rem;
}
.brand small {
  display: block;
  margin-top: .18rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 550;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 15px;
  color: var(--teal-dark);
  background: var(--mint);
  font-size: 1.4rem;
  cursor: pointer;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { position: relative; }
.site-nav a {
  display: block;
  padding: .55rem .7rem;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 600;
}
.site-nav a:hover,
.site-nav .current_page_item > a,
.site-nav .current_page_ancestor > a {
  color: var(--teal-dark);
  background: #e6f7ef;
}
.site-nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.site-nav li:hover > ul,
.site-nav li:focus-within > ul { display: block; }
.site-nav li ul a { padding: .6rem .75rem; }

/* Startseiten-Aufmacher */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(3rem, 8vw, 6.5rem) 0;
    color: var(--ink);

    background:
        linear-gradient(
            90deg,
            rgba(255, 247, 230, 0.94) 0%,
            rgba(255, 247, 230, 0.78) 45%,
            rgba(255, 247, 230, 0.20) 100%
        ),
        url("https://gs-st-johannis.de/wp-content/uploads/2026/11/IMG_5931-scaled.jpg")
        center center / cover no-repeat;
}
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
}
.hero::before {
  width: 220px;
  height: 220px;
  top: -100px;
  right: 12%;
  background: rgba(241,111,97,.23);
}
.hero::after {
  width: 100px;
  height: 100px;
  right: 7%;
  bottom: 12%;
  background: rgba(130,213,232,.55);
}
.hero .eyebrow {
  display: inline-block;
  padding: .3rem .85rem;
  border: 2px solid rgba(7,94,89,.12);
  border-radius: 99px;
  color: var(--teal-dark);
  background: rgba(255,255,255,.68);
  font-size: .9rem;
  font-weight: 750;
}
.hero h1 {
  max-width: 850px;
  margin: .8rem 0 1rem;
  color: var(--teal-dark);
  font-size: clamp(2.35rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.hero p { max-width: 700px; font-size: 1.15rem; }
.button {
  display: inline-block;
  margin: .6rem .45rem 0 0;
  padding: .75rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 15px 15px 15px 5px;
  color: #332500;
  background: var(--sunshine);
  box-shadow: 0 4px 0 #e4a922;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.button:hover {
  color: #332500;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #e4a922;
}
.button-light {
  color: var(--teal-dark);
  background: var(--white);
  box-shadow: 0 4px 0 #b6ddd0;
}
.button-light:hover { color: var(--teal-dark); box-shadow: 0 6px 0 #b6ddd0; }

/* Inhalte und Infokarten */
main { min-height: 50vh; }
.content { padding: 2.7rem 0 4rem; }
.content h1, .content h2, .content h3 {
  color: var(--teal-dark);
  line-height: 1.25;
}
.content h1 { font-size: clamp(1.95rem, 4vw, 2.7rem); }
.content h2 {
  margin-top: 1.8rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.content h3 { margin-top: 1.4rem; font-size: 1.22rem; }
.content .entry-content { overflow-wrap: anywhere; }
.content .entry-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
}
.content .entry-content th,
.content .entry-content td {
  padding: .7rem;
  text-align: left;
  border: 1px solid var(--line);
}
.content .entry-content th { color: var(--white); background: var(--teal); }
.content .entry-content blockquote {
  margin: 1.2rem 0;
  padding: .7rem 1rem;
  border-left: 5px solid var(--coral);
  border-radius: 0 14px 14px 0;
  background: #fff0ec;
}
.quick-links { padding: 0 0 3.8rem; }
.quick-links h2 {
  margin-bottom: 1rem;
  color: var(--teal-dark);
  font-size: clamp(1.55rem, 3vw, 2rem);
}
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  display: block;
  min-height: 135px;
  padding: 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}
.card:nth-child(4n + 1) { border-color: #bde8db; }
.card:nth-child(4n + 2) { border-color: #ffe4a0; }
.card:nth-child(4n + 3) { border-color: #ffd0c9; }
.card:nth-child(4n) { border-color: #d8c9f4; }
.card:hover { transform: translateY(-3px) rotate(-.3deg); }
.card strong {
  display: block;
  margin-bottom: .35rem;
  color: var(--teal-dark);
  font-size: 1.12rem;
}
.card span { color: var(--muted); }

/* Fußzeile */
.site-footer {
  padding: 2.3rem 0 1rem;
  color: #e4f1ed;
  background: var(--teal-dark);
  border-top: 7px solid var(--sunshine);
}
.site-footer a { color: #fff3c2; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-row p { margin: .2rem 0; }
.footer-small {
  margin-top: 1.3rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(255,255,255,.2);
  color: #c2d8d1;
  font-size: .88rem;
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 74px);
    overflow: auto;
    background: var(--white);
    border-bottom: 3px solid var(--sunshine);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: block; padding: .5rem 4% 1rem; }
  .site-nav a { padding: .75rem .8rem; font-size: 1rem; }
  .site-nav li ul {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 0 1rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.2rem 0; }
  .button { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Navigation Grundschule St. Johannis */

/* Hauptmenü */
.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav > ul > li > a {
  padding: 12px 16px;
  border-radius: 12px;
  color: #164b45;
  font-weight: 650;
  transition: background .2s ease, color .2s ease;
}

.site-nav > ul > li > a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
  background: #e5f4ec;
  color: #00635d;
}

/* Dropdown-Menüs */
@media (min-width: 901px) {
  .site-nav li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    padding: 10px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #e0ebe5;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 65, 55, .13);
    z-index: 1000;
  }

  .site-nav li:hover > ul,
  .site-nav li:focus-within > ul {
    display: block;
  }

  /* Weitere Untermenü-Ebenen */
  .site-nav li ul li > ul {
    top: 0;
    left: 100%;
  }

  .site-nav li ul a {
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 14px;
    color: #164b45;
    white-space: normal;
  }

  .site-nav li ul a:hover {
    background: #e5f4ec;
    color: #00635d;
  }
}

/* Smartphone und Tablet */
@media (max-width: 900px) {
  .site-nav > ul {
    display: block;
  }

  .site-nav li ul {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }

  .site-nav li ul a {
    font-size: 15px;
    padding: 10px 12px;
  }
}
.page-id-2980 h1,
.page-id-2980 h2,
.page-id-2980 h3 {
    color: #24545A;
}
