/*
Theme Name: Schatzinsel
Theme URI: http://192.168.0.110:2024/
Author: Codex und Claus
Description: Individuelles Startseiten-Theme für die Schatzinsel Kindertagespflege.
Version: 0.5.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: schatzinsel
*/

:root {
  --ink: #1a2426;
  --muted: #5f6f72;
  --paper: #f7f2e8;
  --sand: #efe3cf;
  --white: #fffdf8;
  --teal: #087f7a;
  --teal-deep: #075b58;
  --teal-soft: #dff4f1;
  --coral: #fb6d57;
  --gold: #c88d31;
  --green: #72a64a;
  --line: rgba(26, 36, 38, 0.13);
  --shadow: 0 22px 58px rgba(30, 38, 38, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(8, 127, 122, 0.09), transparent 36%),
    radial-gradient(circle at 86% 14%, rgba(200, 141, 49, 0.22), transparent 28%),
    var(--paper);
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-wrap {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(12px);
}

body.admin-bar .site-header,
.admin-bar .site-header {
  top: 32px;
}

html {
  scroll-padding-top: 112px;
}

.site-header__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.brand {
  display: grid;
  grid-template-columns: 58px auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand > span {
  min-width: 0;
}

.brand__logo {
  width: 58px;
  height: 48px;
  object-fit: contain;
}

.brand__mark {
  position: relative;
  width: 54px;
  height: 46px;
}

.brand__mark::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 44% 44%;
  background:
    linear-gradient(90deg, transparent 45%, #7a5326 46% 56%, transparent 57%),
    radial-gradient(ellipse at 24% 38%, var(--green) 0 34%, transparent 35%),
    radial-gradient(ellipse at 74% 34%, #8ab95a 0 32%, transparent 33%),
    radial-gradient(ellipse at 50% 12%, #9bc76a 0 30%, transparent 31%);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  background:
    radial-gradient(ellipse at 50% 0, var(--gold) 0 34%, transparent 35%),
    linear-gradient(135deg, transparent 0 40%, #4da7bd 41% 48%, transparent 49%),
    linear-gradient(25deg, transparent 0 42%, #7ec7d6 43% 50%, transparent 51%);
}

.brand__name {
  display: block;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.2vw, 2.35rem);
  font-weight: 700;
  line-height: 0.95;
}

.brand__claim {
  display: block;
  margin-top: 6px;
  color: #9a6a35;
  font-size: 0.9rem;
}

.site-nav ul,
.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.site-nav a,
.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #263638;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.menu a:hover {
  color: var(--teal);
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #fff;
  background: var(--coral);
  box-shadow: 0 10px 22px rgba(251, 109, 87, 0.26);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .site-button {
  justify-self: end;
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.95rem;
}

.site-button--secondary {
  color: var(--white);
  background: rgba(8, 127, 122, 0.92);
  box-shadow: none;
}

.site-button--outline {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow: none;
}

.hero {
  min-height: 640px;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 28, 24, 0.82), rgba(15, 28, 24, 0.38) 50%, rgba(15, 28, 24, 0.16)),
    url("assets/images/hero.jpg") center 46% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background:
    linear-gradient(165deg, transparent 0 36%, rgba(255, 255, 255, 0.1) 37% 38%, transparent 39%),
    radial-gradient(circle at 76% 80%, rgba(255, 213, 94, 0.28), transparent 15%);
  pointer-events: none;
}

.hero__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: end;
  padding: 86px 0 46px;
}

.hero h1 {
  max-width: 610px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  line-height: 1.35;
  font-weight: 800;
}

.hero__copy {
  max-width: 580px;
  margin: 16px 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.trust-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
  line-height: 1.55;
  font-weight: 700;
}

.contact-card {
  background: rgba(255, 253, 248, 0.95);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-card__logo {
  width: 70px;
  height: 56px;
  object-fit: contain;
}

.contact-card__title {
  margin: -44px 0 18px 64px;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 700;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.45;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
}

.section--tight {
  padding-top: 24px;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.18fr);
  gap: 36px;
  align-items: center;
}

.photo-panel,
.gallery-card {
  min-height: 305px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 253, 248, 0.8);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: url("assets/images/indoor.jpg") center / cover no-repeat;
}

.photo-panel::before,
.gallery-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 253, 248, 0.38) 13% 16%, transparent 17%),
    linear-gradient(0deg, rgba(18, 45, 42, 0.28), transparent 46%);
}

.photo-panel--room {
  background-image: url("assets/images/gallery-window.jpg");
  background-position: center 42%;
}

.section h2 {
  margin: 0 0 18px;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.feature__icon,
.time-card__icon,
.signup__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--teal);
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 1.35rem;
}

.profile {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(255, 253, 248, 0.9), rgba(239, 227, 207, 0.88));
}

.profile h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.profile p {
  max-width: 780px;
}

.profile__portraits {
  display: grid;
  gap: 14px;
  justify-items: center;
  align-content: center;
}

.profile__portrait {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 5px rgba(255, 253, 248, 0.85);
}

.profile__portrait--katja {
  background: url("assets/images/profile.jpg") 55% 42% / 240% auto no-repeat;
}

.profile__portrait--claus {
  width: 128px;
  background: url("assets/images/claus.jpg") center / cover no-repeat;
}

.profile__facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 22px;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.fact {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 8px 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}

.fact strong {
  color: var(--teal);
  font-size: 1.8rem;
  line-height: 1;
}

.centered {
  text-align: center;
}

.centered p {
  margin-left: auto;
  margin-right: auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.feature {
  min-height: 220px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  padding: 20px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.8);
  text-align: center;
  color: var(--muted);
  box-shadow: 0 12px 24px rgba(30, 38, 38, 0.07);
}

.feature strong {
  color: var(--ink);
  font-weight: 700;
}

.feature span:last-child {
  max-width: 190px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.gallery {
  padding: 34px 20px 22px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(255, 253, 248, 0.9), rgba(239, 227, 207, 0.72));
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.gallery-card {
  min-height: 170px;
  background-image: url("assets/images/gallery-table.jpg");
}

.gallery-card:nth-child(2) {
  background-image: url("assets/images/gallery-barrel.jpg");
}

.gallery-card:nth-child(3) {
  background-image: url("assets/images/gallery-garden.jpg");
}

.gallery-card:nth-child(4) {
  background-image: url("assets/images/gallery-window.jpg");
}

.gallery-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 10px;
  color: var(--muted);
  text-align: center;
}

.time-card,
.signup {
  display: grid;
  grid-template-columns: 98px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 30px;
  border: 1px solid rgba(8, 127, 122, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(223, 244, 241, 0.96), rgba(255, 253, 248, 0.88));
}

.time-card__icon,
.signup__icon {
  width: 76px;
  height: 76px;
  font-size: 2rem;
}

.handnote {
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-style: italic;
  text-align: center;
}

.signup {
  grid-template-columns: 82px 1fr auto;
  background: rgba(255, 253, 248, 0.9);
}

.signup-steps {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.signup-steps li::marker {
  color: var(--teal);
  font-weight: 800;
}

.site-footer {
  margin-top: 22px;
  background: linear-gradient(180deg, rgba(239, 227, 207, 0.78), rgba(255, 253, 248, 0.94));
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 34px 0 22px;
  color: var(--muted);
}

.legal-nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  border-top: 1px solid var(--line);
  padding: 14px 0 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.legal-nav a {
  font-weight: 800;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--teal);
}

.legal-page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0;
}

.legal-page h1 {
  margin: 0 0 26px;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.legal-page h2 {
  margin: 34px 0 12px;
  color: var(--teal-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal-page ul {
  padding-left: 22px;
}

.site-footer h3 {
  color: var(--teal);
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.site-footer p {
  margin: 0;
  line-height: 1.65;
}

.footer-island {
  width: 110px;
  height: 82px;
  position: relative;
}

.footer-island::before {
  content: "";
  position: absolute;
  left: 38px;
  top: 0;
  width: 42px;
  height: 44px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: -18px 8px 0 -5px #8dbb57, 17px 9px 0 -6px #80b552;
}

.footer-island::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28px;
  background:
    radial-gradient(ellipse at 50% 0, var(--gold) 0 42%, transparent 43%),
    linear-gradient(135deg, transparent 0 42%, #5ab6c9 43% 50%, transparent 51%);
}

@media (max-width: 980px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
  }

  .site-nav {
    grid-column: 1 / -1;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .site-nav ul,
  .menu {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 14px;
    white-space: nowrap;
  }

  .hero__inner,
  .split,
  .profile,
  .time-card,
  .signup,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .profile__facts,
  .features,
  .gallery__grid,
  .gallery-labels {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile__facts {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  body.admin-bar .site-header,
  .admin-bar .site-header {
    top: 46px;
  }

  html {
    scroll-padding-top: 154px;
  }

  .site-header__inner,
  .hero__inner,
  .section,
  .site-footer__inner {
    width: min(100% - 24px, 1180px);
  }

  .site-header__inner {
    min-height: auto;
    padding: 14px 0;
  }

  .brand {
    grid-template-columns: 48px auto;
    gap: 10px;
  }

  .brand__logo {
    width: 48px;
    height: 40px;
  }

  .brand__name {
    font-size: 1.72rem;
  }

  .brand__claim {
    max-width: 100%;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav ul,
  .menu {
    gap: 10px 16px;
  }

  .hero .site-button,
  .signup .site-button {
    width: 100%;
  }

  .site-header .site-button {
    width: auto;
    grid-column: 2;
    grid-row: 1;
    min-height: 38px;
    padding-inline: 13px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding: 54px 0 28px;
  }

  .contact-card {
    padding: 22px;
  }

  .features,
  .gallery__grid,
  .gallery-labels {
    grid-template-columns: 1fr;
  }

  .time-card,
  .signup {
    padding: 22px;
  }

  .profile {
    grid-template-columns: 1fr;
  }

  .profile__portraits {
    grid-template-columns: repeat(2, minmax(112px, 1fr));
    justify-items: start;
  }

  .profile__portrait {
    width: 132px;
  }

  .fact {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }
}
