/*
Theme Name: SchulPlus
Description: Modernes, farbenfrohes Theme für ein fiktives Schulprojekt.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: schulplus
*/

:root {
    --sp-navy: #153b50;
    --sp-blue: #2679a8;
    --sp-yellow: #f4c66b;
    --sp-coral: #f18b72;
    --sp-mint: #dcefe7;
    --sp-paper: #f7f8f5;
    --sp-text: #243b45;
    --sp-radius: 18px;
    --sp-shadow: 0 12px 36px rgba(21, 59, 80, .09);
  }
  
  * { box-sizing: border-box; }
  
  html { scroll-behavior: smooth; }
  
  body {
    margin: 0;
    background: var(--sp-paper);
    color: var(--sp-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
  }
  
  img { max-width: 100%; height: auto; }
  
  a { color: var(--sp-blue); }
  
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 3px solid var(--sp-coral);
    outline-offset: 3px;
  }
  
  .sp-container {
    width: min(1120px, calc(100% - 36px));
    margin-inline: auto;
  }
  
  .sp-header {
    background: white;
    border-bottom: 1px solid #e7ece9;
  }
  
  .sp-nav {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }
  
  .sp-brand {
    color: var(--sp-navy);
    font-size: 1.55rem;
    font-weight: 850;
    text-decoration: none;
    letter-spacing: -.04em;
  }
  
  .sp-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
  }
  
  .sp-menu a {
    color: var(--sp-navy);
    font-size: .94rem;
    font-weight: 650;
    text-decoration: none;
  }
  
  .sp-hero {
    padding: clamp(48px, 8vw, 100px) 0;
    background: linear-gradient(130deg, #e3f1eb 0%, #f7e8c8 58%, #f8ddd5 100%);
  }
  
  .sp-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 48px;
  }
  
  .sp-eyebrow {
    color: #246b68;
    text-transform: uppercase;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .12em;
  }
  
  .sp-hero h1 {
    color: var(--sp-navy);
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: -.055em;
    margin: 12px 0 22px;
  }
  
  .sp-hero p { max-width: 620px; }
  
  .sp-hero-image {
    width: 100%;
    min-height: 300px;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: var(--sp-shadow);
  }
  
  .sp-button {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--sp-navy);
    color: white;
    font-weight: 750;
    text-decoration: none;
    border: 0;
    cursor: pointer;
  }
  
  .sp-button:hover { background: var(--sp-blue); }
  
  .sp-section { padding: 68px 0; }
  
  .sp-section h2 {
    color: var(--sp-navy);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.15;
  }
  
  .sp-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  
  .sp-card, .sp-panel {
    background: white;
    border: 1px solid #e8eeea;
    border-radius: var(--sp-radius);
    padding: 24px;
    box-shadow: var(--sp-shadow);
  }
  
  .sp-card h3, .sp-panel h2 { color: var(--sp-navy); }
  
  .sp-card:nth-child(3n + 1) { border-top: 5px solid var(--sp-yellow); }
  .sp-card:nth-child(3n + 2) { border-top: 5px solid #8cc9b0; }
  .sp-card:nth-child(3n) { border-top: 5px solid var(--sp-coral); }
  
  .sp-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  
  .sp-gallery figure {
    overflow: hidden;
    background: white;
    border-radius: var(--sp-radius);
    margin: 0;
    box-shadow: var(--sp-shadow);
  }
  
  .sp-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  
  .sp-gallery figcaption { padding: 12px 16px; }
  
  .sp-panel { margin-block: 24px; }
  
  .sp-panel label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
  }
  
  .sp-panel input:not([type="hidden"]),
  .sp-panel textarea {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd9d5;
    border-radius: 10px;
    font: inherit;
  }
  
  .sp-panel button {
    background: var(--sp-navy);
    color: white;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
  }
  
  .sp-request {
    padding: 16px 0;
    border-top: 1px solid #e5ebe8;
  }
  
  .sp-honeypot {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  
  .sp-notice {
    padding: 14px 18px;
    background: var(--sp-mint);
    border-radius: 12px;
  }
  
  .sp-footer {
    padding: 30px 0;
    margin-top: 48px;
    background: var(--sp-navy);
    color: white;
  }
  
  .sp-footer a { color: white; }
  
  @media (max-width: 760px) {
    .sp-nav { align-items: flex-start; flex-direction: column; padding: 18px 0; }
    .sp-menu { gap: 12px 16px; }
    .sp-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .sp-cards, .sp-gallery { grid-template-columns: 1fr; }
    .sp-section { padding: 44px 0; }
  }