/*
Theme Name: FKT Patienteninformation
Theme URI: https://example.com/
Author: MEISTER-FO
Description: A calm, accessible WordPress theme inspired by the FKT patient brochure.
Version: 1.4.0
Text Domain: fkt-patienteninformation
*/

:root {
  --fkt-blue: #245eb2;
  --fkt-blue-dark: #183d70;
  --fkt-cyan: #36b3e5;
  --fkt-magenta: #a322a0;
  --fkt-ink: #18324f;
  --fkt-muted: #5d7188;
  --fkt-line: #d7e7ef;
  --fkt-pale: #f1f8fb;
  --fkt-white: #ffffff;
  --fkt-shadow: 0 18px 44px rgba(24, 61, 112, .10);
  --fkt-radius: 22px;
  --fkt-content: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--fkt-ink);
  background: var(--fkt-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: var(--fkt-blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--fkt-magenta); }

.fkt-container {
  width: min(calc(100% - 40px), var(--fkt-content));
  margin-inline: auto;
}

.fkt-skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  color: var(--fkt-white);
  background: var(--fkt-blue-dark);
}
.fkt-skip-link:focus { top: 12px; }

.fkt-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--fkt-line);
  background: rgba(255, 255, 255, .96);
  transition: box-shadow .25s ease;
  backdrop-filter: blur(12px);
}

.admin-bar .fkt-header { top: 32px; }
.fkt-header.is-scrolled { box-shadow: 0 8px 24px rgba(24, 61, 112, .12); }

.fkt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: calc(var(--fkt-logo-height, 72px) + 20px);
  transition: min-height .25s ease;
}

.fkt-header.is-scrolled .fkt-header-inner { min-height: calc(var(--fkt-scrolled-logo-height, 48px) + 16px); }
.fkt-brand { display: block; flex: 0 1 auto; line-height: 0; }
.fkt-brand .custom-logo-link { display: block; }
.fkt-brand img { display: block; width: auto; height: var(--fkt-logo-height, 72px); max-width: min(45vw, 550px); object-fit: contain; object-position: left center; transition: height .25s ease; }
.fkt-header.is-scrolled .fkt-brand img { height: var(--fkt-scrolled-logo-height, 48px); }
.fkt-brand-fallback { display: inline-flex; align-items: center; gap: 12px; color: var(--fkt-blue); font-size: 38px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.fkt-brand-mark { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--fkt-cyan), var(--fkt-blue)); }

.fkt-menu-toggle { display: none; }
.fkt-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 22px; margin: 0; padding: 0; list-style: none; }
.fkt-nav a { color: var(--fkt-blue-dark); font-size: 15px; font-weight: 700; text-decoration: none; }
.fkt-nav a:hover, .fkt-nav .current-menu-item > a { color: var(--fkt-magenta); }

.fkt-hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0 60%, var(--fkt-pale) 60%);
}
.fkt-hero::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -190px;
  width: 510px;
  height: 510px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--fkt-blue), var(--fkt-cyan));
}
.fkt-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); align-items: center; gap: 60px; min-height: 610px; padding-block: 80px; }
.fkt-kicker { margin: 0 0 18px; color: var(--fkt-magenta); font-size: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fkt-hero h1, .fkt-page-header h1 { max-width: 790px; margin: 0; color: var(--fkt-blue); font-size: clamp(42px, 6vw, 76px); line-height: 1.04; letter-spacing: -.045em; }
.fkt-lead { max-width: 650px; margin: 24px 0 0; font-size: 22px; }
.fkt-hero-art { position: relative; min-height: 340px; }
.fkt-hero-art::before { content: ""; position: absolute; inset: 15% 8% 8% 12%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--fkt-cyan), var(--fkt-blue) 70%); }
.fkt-hero-art::after { content: "i"; position: absolute; right: 15%; top: 5%; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; color: var(--fkt-white); background: var(--fkt-magenta); font-size: 45px; font-weight: 800; font-family: Georgia, serif; }

.fkt-section { position: relative; padding: 100px 0; }
.fkt-section--pale { background: var(--fkt-pale); }
.fkt-section-heading { max-width: 780px; margin-bottom: 48px; }
.fkt-section-heading h2, .fkt-content h2 { margin: 0; color: var(--fkt-blue); font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -.035em; }
.fkt-section-heading p { margin: 18px 0 0; color: var(--fkt-muted); }

.fkt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fkt-card { position: relative; min-height: 250px; padding: 34px; border: 1px solid var(--fkt-line); border-radius: var(--fkt-radius); background: var(--fkt-white); box-shadow: var(--fkt-shadow); }
.fkt-card::before { content: ""; display: block; width: 44px; height: 44px; margin-bottom: 24px; border-radius: 50%; background: var(--fkt-cyan); }
.fkt-card:nth-child(2)::before { background: var(--fkt-blue); }
.fkt-card:nth-child(3)::before { background: var(--fkt-magenta); }
.fkt-card h3 { margin: 0 0 10px; color: var(--fkt-blue-dark); font-size: 24px; line-height: 1.2; }
.fkt-card p { margin: 0; color: var(--fkt-muted); font-size: 16px; }

.fkt-callout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 42px 48px; border-radius: var(--fkt-radius); color: var(--fkt-white); background: var(--fkt-blue); }
.fkt-callout h2 { margin: 0; color: inherit; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; }
.fkt-callout p { max-width: 730px; margin: 14px 0 0; color: rgba(255,255,255,.86); }
.fkt-button { display: inline-block; padding: 12px 20px; border: 2px solid var(--fkt-blue); border-radius: 999px; color: var(--fkt-white); background: var(--fkt-blue); font-weight: 800; text-decoration: none; }
.fkt-button:hover { color: var(--fkt-blue); background: var(--fkt-white); }
.fkt-callout .fkt-button { border-color: var(--fkt-white); }

.fkt-page-header { padding: 90px 0 70px; background: var(--fkt-pale); }
.fkt-page-header .fkt-kicker { margin-bottom: 12px; }
.fkt-content { max-width: 850px; padding-block: 80px; }
.fkt-content h2 { margin-top: 48px; margin-bottom: 18px; }
.fkt-content h3 { color: var(--fkt-blue-dark); }
.fkt-content p, .fkt-content ul, .fkt-content ol { max-width: 780px; }
.fkt-content blockquote { margin: 36px 0; padding: 22px 28px; border-left: 5px solid var(--fkt-magenta); color: var(--fkt-blue-dark); background: var(--fkt-pale); font-size: 22px; }

.fkt-footer { color: var(--fkt-blue); background: var(--fkt-white); }
.fkt-footer-main { padding: 64px 0 58px; }
.fkt-footer-brand { display: inline-block; margin-bottom: 26px; line-height: 0; }
.fkt-footer-brand img { display: block; width: auto; height: var(--fkt-footer-logo-height, 72px); max-width: 100%; object-fit: contain; object-position: left center; }
.fkt-footer-copy { max-width: 620px; }
.fkt-footer-copy p { margin: 0; color: var(--fkt-blue); font-size: 16px; line-height: 1.45; }
.fkt-footer-copy .fkt-footer-contact { margin-top: 22px; font-weight: 700; }
.fkt-footer-bar { padding: 16px 0; color: rgba(255,255,255,.82); background: var(--fkt-blue-dark); }
.fkt-footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.fkt-footer-bar a { color: var(--fkt-white); }
.fkt-footer-bar p { margin: 0; font-size: 14px; }
.fkt-footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }

@media (max-width: 820px) {
  .fkt-header-inner { position: relative; flex-direction: row; gap: 20px; padding-block: 10px; }
  .fkt-header.is-scrolled .fkt-header-inner { padding-block: 6px; }
  .fkt-brand img { max-width: min(65vw, 440px); }
  .fkt-menu-toggle { display: inline-flex; position: relative; flex: 0 0 auto; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 2px solid var(--fkt-blue); border-radius: 50%; color: var(--fkt-white); background: var(--fkt-blue); cursor: pointer; }
  .fkt-menu-toggle:focus-visible { outline: 3px solid var(--fkt-cyan); outline-offset: 3px; }
  .fkt-menu-toggle-icon, .fkt-menu-toggle-icon::before, .fkt-menu-toggle-icon::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .fkt-menu-toggle-icon { position: relative; }
  .fkt-menu-toggle-icon::before, .fkt-menu-toggle-icon::after { content: ""; position: absolute; left: 0; }
  .fkt-menu-toggle-icon::before { top: -7px; }
  .fkt-menu-toggle-icon::after { top: 7px; }
  .fkt-menu-toggle[aria-expanded="true"] .fkt-menu-toggle-icon { background: transparent; }
  .fkt-menu-toggle[aria-expanded="true"] .fkt-menu-toggle-icon::before { top: 0; transform: rotate(45deg); }
  .fkt-menu-toggle[aria-expanded="true"] .fkt-menu-toggle-icon::after { top: 0; transform: rotate(-45deg); }
  .fkt-menu-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .fkt-nav { position: absolute; top: 100%; left: calc((100vw - 100%) / -2); right: calc((100vw - 100%) / -2); max-height: calc(100vh - 80px); overflow-y: auto; border-top: 1px solid var(--fkt-line); border-bottom: 1px solid var(--fkt-line); background: var(--fkt-white); box-shadow: 0 16px 28px rgba(24, 61, 112, .14); }
  .fkt-js .fkt-nav { visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
  .fkt-js .fkt-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
  .fkt-nav ul { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 12px 20px 20px; }
  .fkt-nav a { display: block; padding: 11px 0; font-size: 17px; }
  .fkt-hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 20px; padding-block: 72px; }
  .fkt-hero-art { min-height: 190px; }
  .fkt-hero-art::before { inset: 8% 28% 8% 2%; }
  .fkt-cards { grid-template-columns: 1fr; }
  .fkt-callout { grid-template-columns: 1fr; padding: 32px; }
  .fkt-footer-inner { flex-direction: column; }
}

@media (max-width: 782px) {
  .admin-bar .fkt-header { top: 46px; }
}

@media (max-width: 600px) {
  .admin-bar .fkt-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fkt-header, .fkt-header-inner, .fkt-brand img, .fkt-menu-toggle-icon, .fkt-menu-toggle-icon::before, .fkt-menu-toggle-icon::after, .fkt-js .fkt-nav { transition: none; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .fkt-container { width: min(calc(100% - 28px), var(--fkt-content)); }
  .fkt-section { padding: 68px 0; }
  .fkt-hero { min-height: 0; }
  .fkt-hero::after { right: -210px; bottom: -240px; width: 420px; height: 420px; }
  .fkt-hero-inner { padding-block: 58px; }
  .fkt-card { padding: 28px; }
}
