/*
Theme Name: ALTI-CON
Theme URI: https://example.com/
Author: Codex
Description: Modernes One-Page-Theme für ALTI-CON mit Leistungsübersicht, Schulungsanfrage und allgemeinem Kontaktformular.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alticon
*/

:root {
  --ink: #111514;
  --graphite: #202726;
  --steel: #50666d;
  --teal: #0f6f68;
  --signal: #f2c94c;
  --orange: #df6a2e;
  --paper: #fffdf7;
  --mist: #eef2ee;
  --line: #d9dfd9;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(17, 21, 20, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 16px;
  left: 16px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--ink);
  background: var(--signal);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 12px clamp(20px, 4vw, 56px);
  color: var(--ink);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 10px 32px rgba(17, 21, 20, 0.12);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 247, 0.98);
  box-shadow: 0 12px 30px rgba(17, 21, 20, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
}

.brand img {
  width: min(var(--logo-width, 348px), 42vw);
  max-height: 78px;
  height: auto;
  object-fit: contain;
}

.brand span {
  display: none;
}

.footer-brand img {
  width: 150px;
  height: auto;
  filter: invert(1) brightness(2.2);
}

.site-nav {
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav-list li {
  margin: 0;
}

.site-nav a {
  position: relative;
  padding-block: 8px;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 21, 20, 0.22);
  background: rgba(17, 21, 20, 0.04);
  color: var(--ink);
  border-radius: 6px;
}

.nav-toggle-bars > span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.nav-toggle-bars {
  display: grid;
  place-items: center;
}

.nav-toggle-label {
  font-weight: 850;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 84svh;
  padding: 128px clamp(20px, 5vw, 72px) 32px;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(10, 13, 13, 0.88) 0%, rgba(10, 13, 13, 0.66) 42%, rgba(10, 13, 13, 0.2) 100%),
    var(--hero-image);
  background-position: center 42%;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-accent {
  color: var(--ink);
  background: var(--signal);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.button-dark {
  width: 100%;
  color: var(--white);
  background: var(--ink);
}

.button:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

.hero-facts {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: var(--max);
  margin-top: 56px;
}

.hero-facts span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(17, 21, 20, 0.42);
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.section > .section-kicker {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto 36px;
}

.section-head h2,
.split-copy h2,
.page-content h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-head p,
.split-copy p,
.training-grid p,
.service-card p,
.page-content p,
.footer-brand p {
  color: #4f5d5a;
}

.services-section {
  background: var(--paper);
}

.company-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto clamp(44px, 7vw, 82px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(15, 111, 104, 0.22);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(17, 21, 20, 0.08);
}

.company-panel h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.company-panel p {
  max-width: 720px;
  color: #4f5d5a;
}

.company-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.company-facts div {
  padding: 16px;
  border-left: 4px solid var(--signal);
  background: var(--mist);
}

.company-facts dt {
  margin: 0 0 4px;
  color: var(--steel);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.company-facts dd {
  margin: 0;
  font-weight: 820;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
}

.context-media-grid,
.training-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--max);
  margin: 18px auto 0;
}

.image-tile {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--graphite);
  box-shadow: 0 16px 38px rgba(17, 21, 20, 0.14);
}

.image-tile-large,
.image-tile-wide {
  grid-column: span 1;
}

.image-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 300ms ease;
}

.image-tile:hover img {
  transform: scale(1.035);
}

.image-tile figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 4px;
  padding: 22px;
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(0deg, rgba(10, 13, 13, 0.9), rgba(10, 13, 13, 0.08));
  font-weight: 650;
}

.image-tile figcaption span {
  display: block;
  color: var(--signal);
  font-weight: 900;
  text-transform: uppercase;
}

.service-card,
.training-grid article,
.contact-form,
.process-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card {
  min-height: 272px;
  padding: 24px;
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  margin-bottom: 36px;
  border-radius: 4px;
  color: var(--ink);
  background: var(--signal);
  font-weight: 900;
}

.service-card h3,
.training-grid h3,
.contact-form h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.14;
}

.service-card p,
.training-grid p,
.contact-form p,
.process-list p {
  margin: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  background: var(--mist);
}

.split-copy,
.process-list {
  max-width: 680px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 720;
}

.check-list li::before {
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  content: "";
  background: var(--teal);
  box-shadow: inset 0 0 0 5px var(--mist);
}

.process-list {
  display: grid;
  gap: 12px;
}

.process-list div {
  padding: 22px;
}

.process-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
}

.training-section {
  background: var(--graphite);
  color: var(--white);
}

.training-section .section-head p,
.training-grid p {
  color: rgba(255, 255, 255, 0.74);
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
}

.training-media {
  margin-top: 18px;
}

.training-media .image-tile {
  min-height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.training-grid article {
  min-height: 230px;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.evidence-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--ink);
}

.evidence-band div {
  min-height: 150px;
  padding: clamp(24px, 4vw, 42px);
  color: var(--white);
  background: linear-gradient(145deg, var(--teal), #1d3030);
}

.evidence-band strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1;
}

.evidence-band span {
  color: rgba(255, 255, 255, 0.78);
}

.contact-section {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.form-head p:last-child {
  color: #5d6966;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--graphite);
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd7d2;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 111, 104, 0.16);
}

.privacy-check {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 620;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-weight: 760;
}

.form-status.is-success {
  color: var(--teal);
}

.form-status.is-error {
  color: #b33226;
}

.form-status.is-pending {
  color: var(--steel);
}

.page-main {
  min-height: 70vh;
  padding: 140px clamp(20px, 5vw, 72px) 90px;
  background: var(--mist);
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 58px);
  border-radius: 8px;
  background: var(--white);
}

.legal-main {
  background: var(--paper);
}

.legal-content {
  max-width: 980px;
}

.legal-updated {
  margin: 16px 0 34px;
  color: var(--steel);
  font-weight: 700;
}

.legal-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.15;
}

.legal-section p {
  margin: 0 0 12px;
}

.entry-content a,
.post-list a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  color: var(--white);
  background: #0f1413;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) repeat(2, minmax(180px, 0.6fr));
  gap: clamp(24px, 6vw, 80px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 72px);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--signal);
}

.site-footer a {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-brand p {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.62);
}

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal a {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 20px;
    display: none;
    width: min(320px, calc(100vw - 40px));
    padding: 14px;
    border: 1px solid rgba(17, 21, 20, 0.14);
    border-radius: 8px;
    background: rgba(255, 253, 247, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav-list {
    display: grid;
    gap: 8px;
  }

  .section-head,
  .split-section,
  .company-panel,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .context-media-grid,
  .training-grid,
  .training-media,
  .evidence-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 76px;
    padding-inline: 16px;
  }

  .brand img {
    width: min(var(--logo-width-mobile, 226px), calc(100vw - 134px));
    max-height: 58px;
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 82svh;
    padding-inline: 18px;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 18vw, 5.2rem);
  }

  .button {
    width: 100%;
  }

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

  .service-card,
  .training-grid article {
    min-height: auto;
  }
}

.subhero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 58svh;
  padding: 140px clamp(20px, 5vw, 72px) 56px;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(10, 13, 13, 0.86) 0%, rgba(10, 13, 13, 0.62) 48%, rgba(10, 13, 13, 0.18) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.subhero-content {
  width: 100%;
  min-width: 0;
  max-width: 850px;
}

.subhero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.7rem, 6.6vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

.subhero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.single-form {
  max-width: 720px;
  margin: 0 auto;
}

.company-panel-page {
  margin-bottom: 0;
}

.process-list-wide {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--max);
  margin: 0 auto;
}

.page-training-section {
  padding-top: clamp(64px, 9vw, 110px);
}

.image-tile picture {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.nav-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  .site-header {
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 82px;
    padding: 0 12px;
  }

  .site-nav {
    position: fixed;
    top: 88px;
    right: 12px;
    left: 12px;
    z-index: 45;
    width: auto;
    max-height: calc(100svh - 92px);
    overflow: auto;
    gap: 8px;
    padding: 12px;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 6px;
    background: var(--mist);
  }

  .site-nav a::after {
    content: none;
  }

  .process-list-wide {
    grid-template-columns: 1fr;
  }

  .image-tile {
    min-height: 300px;
  }
}

@media (max-width: 700px) {
  .site-nav {
    top: 76px;
    max-height: calc(100svh - 88px);
  }

  .hero,
  .subhero {
    background-image:
      linear-gradient(180deg, rgba(10, 13, 13, 0.88) 0%, rgba(10, 13, 13, 0.62) 58%, rgba(10, 13, 13, 0.28) 100%),
      var(--hero-image-mobile, var(--hero-image));
    background-position: center;
  }

  .hero {
    min-height: min(720px, 76svh);
    padding-top: 126px;
  }

  .subhero {
    min-height: min(620px, 58svh);
    padding: 126px 18px 44px;
  }

  .subhero h1 {
    font-size: clamp(2.1rem, 10.5vw, 3.35rem);
  }

  .hero h1 {
    font-size: clamp(3.25rem, 15vw, 4.2rem);
  }

  .section-head h2,
  .split-copy h2,
  .company-panel h2,
  .page-content h1 {
    font-size: clamp(1.75rem, 8vw, 2.7rem);
    line-height: 1.05;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .section-head {
    gap: 18px;
    margin-bottom: 28px;
  }

  .image-tile {
    min-height: 260px;
  }

  .image-tile img {
    object-position: center;
  }

  .context-media-grid .image-tile:first-child img {
    object-position: 52% center;
  }

  .training-media .image-tile:nth-child(2) img,
  .training-media .image-tile:nth-child(3) img {
    object-position: center 42%;
  }

  .image-tile figcaption {
    padding: 18px;
  }

  .footer-bottom {
    display: grid;
    justify-content: stretch;
  }

  .footer-legal {
    justify-content: flex-start;
  }
}
