/*
Theme Name: Praxisatelier Medien
Theme URI: https://praxisatelier-medien.de
Author: Praxisatelier Medien
Author URI: https://praxisatelier-medien.de
Description: Ruhiges, Gutenberg-kompatibles WordPress-Theme fuer Schulungen, Beratung, Analyse, KI im Unternehmen und Medienproduktion.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: praxisatelier-medien
*/

:root {
  --pam-petrol: #1f3438;
  --pam-petrol-dark: #17282c;
  --pam-sage: #8da37a;
  --pam-sage-light: #a9b896;
  --pam-warm: #f5f4f0;
  --pam-cream: #fbfaf6;
  --pam-text: #2e2e2e;
  --pam-muted: #66716d;
  --pam-line: rgba(31, 52, 56, 0.16);
  --pam-paper: rgba(255, 255, 255, 0.72);
  --pam-shadow: 0 20px 50px rgba(23, 40, 44, 0.1);
  --pam-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --pam-sans: Inter, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pam-radius: 8px;
  --pam-max: 1160px;
  --pam-section: clamp(3.5rem, 6vw, 5.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pam-warm);
  color: var(--pam-text);
  font-family: var(--pam-sans);
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--pam-petrol);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0f2225;
}

:focus-visible {
  outline: 3px solid rgba(141, 163, 122, 0.7);
  outline-offset: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(31, 52, 56, 0.1);
  background: rgba(245, 244, 240, 0.94);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(var(--pam-max), calc(100% - 2rem));
  min-height: 78px;
  margin: 0 auto;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--pam-petrol);
  text-decoration: none;
}

.site-branding__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(31, 52, 56, 0.25);
  background: rgba(255, 255, 255, 0.55);
  color: var(--pam-petrol);
  font-family: var(--pam-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.site-branding__name {
  display: block;
  font-family: var(--pam-serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.05;
}

.site-branding__full {
  display: block;
  color: var(--pam-petrol);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.site-branding__claim {
  display: block;
  color: var(--pam-muted);
  font-size: 0.75rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.7vw, 1.6rem);
  font-size: 0.88rem;
}

.mobile-nav {
  display: none;
}

.site-nav a {
  color: var(--pam-petrol);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: #0d2023;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: inherit;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-main {
  overflow: hidden;
}

.container {
  width: min(var(--pam-max), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: var(--pam-section) 0;
}

.section--tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--dark {
  background: var(--pam-petrol-dark);
  color: #f6f3eb;
}

.section--paper {
  background: var(--pam-cream);
  border-block: 1px solid rgba(31, 52, 56, 0.08);
}

.hero {
  padding: clamp(2.4rem, 5vw, 4.4rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  align-items: stretch;
  gap: clamp(2rem, 5vw, 4.2rem);
  width: min(var(--pam-max), calc(100% - 2rem));
  max-width: var(--pam-max);
  min-height: 0;
  height: auto;
  margin: 0 auto;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  padding: 0;
}

.hero h1,
.page-hero h1,
.section h2,
.content-band h2,
.entry-content h2,
.entry-content h3 {
  margin: 0;
  color: var(--pam-petrol);
  font-family: var(--pam-serif);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
  hyphens: auto;
  overflow-wrap: break-word;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(3.5rem, 4.3vw, 4rem);
  hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}

.hero__lead,
.page-hero__lead {
  max-width: 680px;
  margin: clamp(1.2rem, 2.4vw, 1.65rem) 0 0;
  color: #44504c;
  font-size: clamp(1.02rem, 1.35vw, 1.14rem);
  line-height: 1.68;
}

.hero__actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.65rem;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.1rem;
  border: 1px solid var(--pam-petrol);
  border-radius: 4px;
  background: var(--pam-petrol);
  color: #ffffff;
  font-family: var(--pam-sans);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  border-color: #102225;
  background: #102225;
  color: #ffffff;
  transform: translateY(-1px);
}

.button--secondary {
  background: transparent;
  color: var(--pam-petrol);
}

.button--secondary:hover {
  background: rgba(31, 52, 56, 0.06);
  color: var(--pam-petrol);
}

.hero__note {
  max-width: 610px;
  margin: 1rem 0 0;
  color: #65716d;
  font-size: 0.95rem;
  line-height: 1.62;
}

.hero__media {
  position: relative;
  min-height: 0;
  border-left: 1px solid rgba(31, 52, 56, 0.11);
}

.hero__media::before {
  display: none;
}

.hero__media img,
.media-frame img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--pam-radius);
  box-shadow: var(--pam-shadow);
}

.hero__caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  width: min(84%, 440px);
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(31, 52, 56, 0.12);
  background: rgba(251, 250, 246, 0.9);
  box-shadow: 0 18px 38px rgba(23, 40, 44, 0.11);
}

.hero__caption strong {
  display: block;
  color: var(--pam-petrol);
  font-family: var(--pam-serif);
  font-size: 1.35rem;
  line-height: 1.05;
}

.hero__caption span {
  display: block;
  color: var(--pam-muted);
  font-size: 0.83rem;
  line-height: 1.4;
}

.intro-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.section h2,
.content-band h2,
.page-hero h1 {
  font-size: clamp(2.35rem, 4vw, 3.8rem);
  line-height: 1.03;
}

.section h3,
.entry-content h3 {
  margin: 0 0 0.9rem;
  color: var(--pam-petrol);
  font-family: var(--pam-serif);
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  font-weight: 600;
  line-height: 1.06;
}

.section p,
.content-band p,
.entry-content p {
  margin: 0 0 1rem;
}

.section-lead {
  max-width: 760px;
  color: #4d5b56;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
}

.rule-list,
.check-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rule-list li,
.check-list li {
  padding: 0.82rem 0;
  border-bottom: 1px solid var(--pam-line);
}

.check-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.65rem;
}

.check-list li::before {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55rem;
  background: var(--pam-sage);
  content: "";
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3rem);
  background: rgba(31, 52, 56, 0.14);
  border: 1px solid rgba(31, 52, 56, 0.14);
}

.service-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: clamp(1.2rem, 2.2vw, 1.7rem);
  background: var(--pam-warm);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(31, 52, 56, 0.18);
  color: var(--pam-petrol);
}

.service-card p {
  flex: 1;
  color: #52605b;
  font-size: 0.98rem;
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  color: var(--pam-petrol);
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link::after {
  content: ">";
}

.target-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  list-style: none;
}

.target-list li {
  min-height: 92px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f0e8;
}

.section--dark h2,
.section--dark h3 {
  color: #ffffff;
}

.section--dark .section-lead,
.section--dark p {
  color: rgba(246, 243, 235, 0.78);
}

.section--dark .button {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--pam-petrol);
}

.page-hero {
  padding: clamp(2.25rem, 4vw, 3.35rem) 0 clamp(2rem, 3.5vw, 2.8rem);
  border-bottom: 1px solid rgba(31, 52, 56, 0.1);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.section--dark h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.25rem);
}

.content-band {
  padding: clamp(2.8rem, 5vw, 4.5rem) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}

.content-panel {
  padding: 0 0 0 1.4rem;
  border-left: 2px solid rgba(141, 163, 122, 0.65);
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 1.8rem 0 0;
  background: rgba(31, 52, 56, 0.13);
  border: 1px solid rgba(31, 52, 56, 0.13);
  list-style: none;
}

.meta-list li {
  padding: 1rem;
  background: var(--pam-cream);
}

.quote-panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(31, 52, 56, 0.14);
  background: rgba(255, 255, 255, 0.48);
  color: var(--pam-petrol);
  font-family: var(--pam-serif);
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  line-height: 1.12;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

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

label {
  display: grid;
  gap: 0.35rem;
  color: var(--pam-petrol);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(31, 52, 56, 0.24);
  border-radius: 4px;
  background: #ffffff;
  color: var(--pam-text);
  font: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-consent {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.75rem;
  color: #4f5c58;
  font-size: 0.92rem;
  font-weight: 500;
}

.form-consent input {
  width: 1.1rem;
  min-height: 1.1rem;
  margin-top: 0.25rem;
}

.form-status {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(31, 52, 56, 0.18);
  background: #ffffff;
}

.form-status--success {
  border-color: rgba(141, 163, 122, 0.75);
}

.form-status--error {
  border-color: rgba(130, 52, 46, 0.45);
}

.pam-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  background: var(--pam-petrol-dark);
  color: rgba(246, 243, 235, 0.78);
}

.site-footer a {
  color: #ffffff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
  gap: 2rem;
}

.site-footer__brand {
  color: #ffffff;
  font-family: var(--pam-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.site-footer__claim {
  max-width: 660px;
  margin-top: 1rem;
}

.footer-nav {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer__contact {
  display: grid;
  gap: 0.35rem;
  color: rgba(246, 243, 235, 0.82);
  font-size: 0.95rem;
}

.site-footer__contact strong {
  color: #ffffff;
  font-family: var(--pam-serif);
  font-size: 1.45rem;
  line-height: 1.1;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
}

.entry-content {
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto;
  padding: var(--pam-section) 0;
}

.entry-content > * + * {
  margin-top: 1.2rem;
}

.wp-block-group,
.wp-block-columns {
  max-width: var(--pam-max);
}

@media (max-width: 1080px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .site-nav,
  .menu {
    flex-wrap: wrap;
  }

  .hero__grid,
  .page-hero__inner,
  .intro-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__grid {
    height: auto;
  }

  .hero__content {
    padding-inline: 1.5rem;
  }

  .hero__media img {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .target-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header {
    position: static;
  }

  .site-branding__claim {
    display: none;
  }

  .site-header__inner {
    flex-direction: row;
    align-items: center;
    min-height: 72px;
  }

  .site-nav {
    display: none;
  }

  .mobile-nav {
    position: relative;
    display: block;
    margin-left: auto;
  }

  .mobile-nav summary {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(31, 52, 56, 0.25);
    color: var(--pam-petrol);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    list-style: none;
    cursor: pointer;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav .menu {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    z-index: 30;
    display: grid;
    min-width: min(78vw, 310px);
    gap: 0;
    padding: 0.4rem 0;
    border: 1px solid rgba(31, 52, 56, 0.14);
    background: var(--pam-cream);
    box-shadow: 0 18px 38px rgba(23, 40, 44, 0.12);
  }

  .mobile-nav .menu a {
    display: block;
    padding: 0.65rem 0.9rem;
    color: var(--pam-petrol);
    text-decoration: none;
  }

  .mobile-nav .menu a:hover {
    background: rgba(31, 52, 56, 0.06);
  }

  .hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.05rem);
    line-height: 1.02;
  }

  .hero__caption {
    position: static;
    width: calc(100% - 2rem);
    margin: -1rem auto 0;
  }

  .service-grid,
  .target-list,
  .content-grid,
  .meta-list,
  .form-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }
}
