/*
Theme Name: Toschke Relaunch
Theme URI: https://toschke.de
Description: Individuelles WordPress-Theme fuer Toschke e.V.
Author: Toschke e.V.
Version: 1.1.11
Text Domain: toschke-relaunch
*/

:root {
  --tos-bg: #f5f7fb;
  --tos-surface: #ffffff;
  --tos-text: #1f2a37;
  --tos-text-muted: #4b5563;
  --tos-accent: #0d5e94;
  --tos-accent-2: #0a7f55;
  --tos-border: #d7e0ea;
  --tos-shadow: 0 12px 28px rgba(18, 42, 66, 0.08);
}

.tos-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

body {
  background:
    radial-gradient(1200px 500px at 50% -200px, rgba(13, 94, 148, 0.16), transparent 70%),
    linear-gradient(180deg, #f2f6fb 0%, #f8fafd 45%, #f4f7fb 100%);
  color: var(--tos-text);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.main-title,
.entry-title {
  font-family: "Bitter", Georgia, serif;
  letter-spacing: 0.01em;
}

a {
  color: var(--tos-accent);
}

a:hover,
a:focus {
  color: var(--tos-accent-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(215, 224, 234, 0.9);
}

.inside-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10px;
  padding-bottom: 8px;
}

.header-legal-navigation {
  border-bottom: 1px solid var(--tos-border);
  padding: 5px 0;
}

.header-legal-inner .header-legal-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 10px;
}

.header-legal-inner .header-legal-menu li a {
  display: inline-block;
  text-decoration: none;
  color: var(--tos-text-muted);
  font-size: 0.82rem;
  padding: 3px 7px;
  border-radius: 6px;
}

.header-legal-inner .header-legal-menu li a:hover,
.header-legal-inner .header-legal-menu li a:focus {
  color: var(--tos-accent);
  background: #edf4fa;
}

.site-logo img,
.site-logo .custom-logo {
  display: block;
  max-height: 144px;
  max-width: min(100%, 630px);
  height: auto !important;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.navigation-search input[type="search"],
.main-navigation,
.main-navigation ul ul,
.site-footer,
.site-info,
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .container,
.separate-containers .paging-navigation,
.inside-page-header,
.sidebar .widget,
.footer-widgets {
  background-color: var(--tos-surface);
}

.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.sidebar .widget,
.footer-widgets {
  border: 1px solid var(--tos-border);
  border-radius: 16px;
  box-shadow: var(--tos-shadow);
}

body.home .entry-header {
  display: none;
}

.site-main .wp-block-group,
.site-main .wp-block-cover,
.site-main .wp-block-columns {
  border-radius: 16px;
  overflow: hidden;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
  font-weight: 600;
}

.main-navigation {
  padding-top: 0;
  padding-bottom: 10px;
  border-top: 1px solid #eef3f8;
}

.main-navigation .main-nav {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.main-navigation .main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
}

.main-navigation .main-nav ul li a {
  display: inline-block;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--tos-text);
  font-size: 0.98rem;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus {
  background: #edf4fa;
  color: var(--tos-accent);
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: var(--tos-accent);
  background: #edf4fa;
}

.site-info {
  border-top: 1px solid var(--tos-border);
  font-size: 14px;
  padding: 14px 0 18px;
  text-align: center;
}

.site-content {
  padding: 24px 0 42px;
}

.site-footer {
  margin-top: 28px;
  background: var(--tos-surface);
  border-top: 1px solid var(--tos-border);
}

.footer-navigation {
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tos-border);
}

.footer-nav-inner .footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 12px;
}

.footer-nav-inner .footer-menu li a {
  display: inline-block;
  color: var(--tos-text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}

.footer-nav-inner .footer-menu li a:hover,
.footer-nav-inner .footer-menu li a:focus {
  color: var(--tos-accent);
  background: #edf4fa;
}

.site-main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.inside-article {
  background: var(--tos-surface);
  border: 1px solid var(--tos-border);
  border-radius: 16px;
  box-shadow: var(--tos-shadow);
  padding: clamp(20px, 3vw, 34px);
}

.inside-article + .inside-article {
  margin-top: 20px;
}

.entry-header {
  margin-bottom: 14px;
}

.entry-title {
  margin: 0;
}

.entry-meta {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--tos-text-muted);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.posts-navigation {
  margin-top: 20px;
}

.posts-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.posts-navigation a {
  display: inline-flex;
  text-decoration: none;
  border: 1px solid var(--tos-border);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
}

@media (max-width: 768px) {
  .inside-header {
    padding-top: 8px;
    padding-bottom: 6px;
  }

  .site-logo img,
  .site-logo .custom-logo {
    max-height: 108px;
    max-width: min(100%, 480px);
  }

  .header-legal-navigation {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .header-legal-inner .header-legal-menu {
    justify-content: flex-end;
  }

  .main-navigation {
    padding-bottom: 8px;
  }

  .main-navigation .main-nav ul {
    justify-content: flex-start;
  }

  .main-navigation .main-nav ul li a {
    padding: 7px 10px;
  }
}

.home .site-content {
  margin-top: 24px;
}

.tos-hero,
.tos-section,
.tos-cta {
  margin: 0 0 26px;
}

.tos-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  background: linear-gradient(145deg, #103d67 0%, #0d5e94 55%, #0e7f76 100%);
  color: #eaf2f9;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}

.tos-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 12px;
}

.tos-hero p {
  margin: 0;
  max-width: 58ch;
}

.tos-eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tos-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.tos-btn--primary {
  background: #ffffff;
  color: #0d4f7f;
}

.tos-btn--primary:hover,
.tos-btn--primary:focus {
  color: #083a5d;
  background: #e7f2fb;
}

.tos-btn--ghost {
  background: transparent;
  color: #eaf2f9;
  border-color: rgba(234, 242, 249, 0.45);
}

.tos-btn--ghost:hover,
.tos-btn--ghost:focus {
  color: #ffffff;
  border-color: #ffffff;
}

.tos-hero__visual {
  position: relative;
  min-height: 260px;
  isolation: isolate;
}

.tos-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  position: relative;
  z-index: 2;
}

.tos-hero__visual::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12) center/cover no-repeat;
  filter: saturate(0) contrast(1.1);
  z-index: 1;
}

.tos-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
}

.tos-orb--a {
  width: 170px;
  height: 170px;
  background: rgba(255, 255, 255, 0.16);
  top: -36px;
  right: 22px;
}

.tos-orb--b {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.2);
  left: 8px;
  bottom: 22px;
}

.tos-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  margin-top: 44px;
}

.tos-metric {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(6px);
}

.tos-metric strong {
  display: block;
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1.1;
}

.tos-metric span {
  font-size: 0.92rem;
}

.tos-section {
  background: var(--tos-surface);
  border: 1px solid var(--tos-border);
  border-radius: 24px;
  box-shadow: var(--tos-shadow);
  padding: clamp(20px, 3vw, 34px);
}

.tos-section__head h2 {
  margin: 0;
}

.tos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.tos-card {
  border-radius: 16px;
  border: 1px solid var(--tos-border);
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  padding: 18px;
}

.tos-card h3 {
  margin: 0 0 8px;
}

.tos-card p {
  margin: 0;
  color: var(--tos-text-muted);
}

.tos-section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tos-copy h2 {
  margin-top: 0;
}

.tos-copy p:last-child {
  margin-bottom: 0;
}

.tos-timeline {
  display: grid;
  gap: 10px;
  align-content: start;
}

.tos-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  border-radius: 12px;
  background: #f4f8fb;
  border: 1px solid var(--tos-border);
  padding: 12px 14px;
  font-weight: 600;
}

.tos-step span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #ffffff;
  background: linear-gradient(135deg, #0d5e94, #0a7f55);
}

.tos-page-content > *:first-child {
  margin-top: 0;
}

.tos-page-content > *:last-child {
  margin-bottom: 0;
}

.tos-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.tos-news-item {
  border-radius: 14px;
  border: 1px solid var(--tos-border);
  background: #ffffff;
  padding: 16px;
}

.tos-news-date {
  margin: 0 0 6px;
  color: #6b7380;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tos-news-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.tos-news-item h3 a {
  color: var(--tos-text);
}

.tos-news-item h3 a:hover,
.tos-news-item h3 a:focus {
  color: var(--tos-accent);
}

.tos-news-item p {
  margin: 0;
  color: var(--tos-text-muted);
}

.tos-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border-radius: 24px;
  padding: clamp(22px, 3vw, 30px);
  background: linear-gradient(120deg, #12263a 0%, #204061 42%, #0d5e94 100%);
  color: #f0f5fa;
}

.tos-cta h2 {
  color: #ffffff;
  margin: 0 0 8px;
}

.tos-cta p {
  margin: 0;
}

.tos-cta .tos-btn--primary {
  white-space: nowrap;
}

.tos-reveal {
  opacity: 1;
  transform: none;
}

.tos-reveal-ready .tos-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.tos-reveal-ready .tos-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .tos-hero {
    grid-template-columns: 1fr;
  }

  .tos-hero__visual {
    min-height: 220px;
  }

  .tos-grid,
  .tos-news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tos-section--split,
  .tos-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home .site-content {
    margin-top: 14px;
  }

  .tos-hero,
  .tos-section,
  .tos-cta {
    border-radius: 16px;
  }

  .tos-grid,
  .tos-news-grid {
    grid-template-columns: 1fr;
  }
}
