/*
Theme Name: IchZeit
Theme URI: https://naturheilpraxis-ichzeit.de
Author: Marc Becker
Description: Individuelles Theme für die Naturheilpraxis IchZeit, Buxtehude. Lokale Schriften (DSGVO), BFSG-orientierte Kontraste, Gutenberg-kompatibel.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: proprietary
Text Domain: ichzeit
*/

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-500.woff2') format('woff2');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('fonts/karla-400.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --gruen-dunkel: #1d5128;
  --gruen: #2e7d32;
  --gruen-mittel: #3c8a43;
  --gruen-hell: #4a9b4f;
  --gruen-blatt: #7cbf6e;
  --creme: #f8f5ec;
  --creme-dunkel: #efe9da;
  --weiss-warm: #fffdf8;
  --text: #2b3a2d;
  --text-soft: #4a5745;
  --sand: #b07d4f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Karla', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--creme);
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--gruen-dunkel);
  line-height: 1.2;
}

a { color: var(--gruen); }
a:hover, a:focus { color: var(--gruen-dunkel); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gruen-dunkel);
  color: #fff;
  padding: 10px 18px;
  z-index: 999;
}
.skip-link:focus { left: 10px; color: #fff; }

/* ===== Header ===== */
.site-header {
  background: var(--weiss-warm);
  border-bottom: 1px solid var(--creme-dunkel);
  padding: 16px clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-brand svg { width: 52px; height: 52px; flex-shrink: 0; }
.site-brand .brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--gruen);
  letter-spacing: 0.5px;
  line-height: 1.1;
}
.site-brand .brand-sub {
  font-size: 11.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #8a5a2b;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  align-items: center;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--gruen-dunkel);
  border-bottom-color: var(--gruen);
}

/* ===== Content ===== */
.site-main { padding: clamp(30px, 5vw, 60px) 20px 70px; }
.entry-header { text-align: center; max-width: 780px; margin: 0 auto 28px; }
.entry-header h1 { font-size: clamp(34px, 5vw, 50px); font-weight: 500; }
.entry-content { max-width: 820px; margin: 0 auto; }

.entry-content h2 { font-size: clamp(28px, 4vw, 38px); margin: 1.6em 0 0.5em; font-weight: 500; }
.entry-content h3 { font-size: clamp(22px, 3vw, 27px); margin: 1.4em 0 0.4em; }
.entry-content p { margin: 0 0 1.1em; color: var(--text-soft); }
.entry-content p:has(> strong:only-child) { color: var(--text); }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.3em; color: var(--text-soft); }
.entry-content li { margin-bottom: 0.35em; }
.entry-content .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content .alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.entry-content img { max-width: 100%; height: auto; border-radius: 14px; }

/* Tabellen (Preislisten) */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  background: var(--weiss-warm);
  border: 1.5px solid var(--creme-dunkel);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 1.6em;
  font-size: 16px;
}
.entry-content th {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: left;
  color: var(--gruen-dunkel);
  background: #e9f1e6;
  padding: 12px 16px;
}
.entry-content td {
  padding: 12px 16px;
  border-top: 1px solid var(--creme-dunkel);
  color: var(--text-soft);
}
.entry-content td:last-child { white-space: nowrap; font-weight: 700; color: var(--gruen-dunkel); }
.entry-content figure.wp-block-table { margin: 0 0 1.6em; }

/* Buttons */
.wp-block-button__link, .ichzeit-cta {
  display: inline-block;
  background: var(--gruen);
  color: var(--weiss-warm) !important;
  font-family: 'Karla', sans-serif;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.wp-block-button__link:hover, .ichzeit-cta:hover { background: var(--gruen-dunkel); }
.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--gruen-dunkel) !important;
  border: 2px solid var(--gruen);
}
.is-style-outline .wp-block-button__link:hover { background: var(--gruen); color: var(--weiss-warm) !important; }

/* Info-Boxen */
.entry-content .wp-block-group.ichzeit-box,
.entry-content .ichzeit-box {
  background: var(--weiss-warm);
  border: 1.5px solid var(--creme-dunkel);
  border-radius: 16px;
  padding: 26px 30px;
  margin: 0 0 1.6em;
}

.entry-content .ichzeit-hinweis {
  background: #f3ecdd;
  border-left: 4px solid var(--sand);
  border-radius: 0 12px 12px 0;
  padding: 16px 22px;
  color: #6a4a22;
  margin: 0 0 1.6em;
}

/* Spalten */
.wp-block-columns { gap: 24px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--gruen-dunkel);
  color: #e8f0e4;
  padding: 44px clamp(20px, 5vw, 60px) 30px;
  margin-top: 20px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px 60px;
  justify-content: space-between;
}
.site-footer h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 8px;
}
.site-footer p { font-size: 15.5px; line-height: 1.8; }
.site-footer a { color: #cfe6c5; }
.site-footer a:hover, .site-footer a:focus { color: #fff; }
.footer-legal {
  max-width: 1100px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  color: #b9cfae;
}
.footer-legal ul { list-style: none; display: flex; gap: 22px; }

@media (max-width: 760px) {
  .site-header { justify-content: center; text-align: center; }
  .site-nav ul { justify-content: center; }
}
