/*
Theme Name: PayPal Gebührenrechner
Author: Website-Inhaber
Description: Ein schlankes, responsives WordPress-Theme mit integriertem Rechner für PayPal-Zahlungen über „Waren und Dienstleistungen“.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: paypal-gebuehrenrechner
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, custom-logo, custom-menu, featured-images, accessibility-ready, translation-ready
*/

:root {
  --page-bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #172033;
  --muted: #64748b;
  --border: #dce4ef;
  --primary: #0070e0;
  --primary-dark: #003087;
  --accent: #00a8ea;
  --success: #087f5b;
  --shadow: 0 24px 70px rgba(22, 43, 77, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --content-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 3%, rgba(0, 168, 234, 0.12), transparent 30rem),
    radial-gradient(circle at 92% 8%, rgba(0, 48, 135, 0.10), transparent 28rem),
    var(--page-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary-dark); }
a:hover { color: var(--primary); }
button, input { font: inherit; }

.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;
}

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--primary-dark);
  border-radius: 8px;
}

.site-header {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 26px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding { display: flex; align-items: center; gap: 12px; }
.custom-logo { display: block; max-height: 52px; width: auto; }
.site-title {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.site-title a { color: var(--primary-dark); text-decoration: none; }
.site-description { margin: 2px 0 0; color: var(--muted); font-size: 0.86rem; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a { color: var(--text); text-decoration: none; font-weight: 650; font-size: 0.94rem; }
.site-nav a:hover, .site-nav a:focus { color: var(--primary); }

.site-main { min-height: 70vh; }
.hero {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: clamp(44px, 8vw, 96px) 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(40px, 8vw, 92px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  color: var(--primary-dark);
  background: rgba(0, 112, 224, 0.09);
  border: 1px solid rgba(0, 112, 224, 0.16);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 168, 234, 0.14);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}
.hero h1 span { color: var(--primary); }
.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 650;
}
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row span::before { content: "✓"; color: var(--success); font-weight: 900; }

.calculator-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.calculator-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 168, 234, 0.18), rgba(0, 48, 135, 0.04));
  pointer-events: none;
}

.card-kicker { margin: 0 0 4px; color: var(--primary); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.calculator-card h2 { position: relative; margin: 0 0 24px; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -0.035em; }

.field-label { display: block; margin-bottom: 9px; font-size: 0.92rem; font-weight: 760; }
.money-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px;
  background: var(--surface-soft);
  border: 2px solid var(--border);
  border-radius: 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.money-input-wrap:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 112, 224, 0.12);
}
.money-input-wrap input {
  min-width: 0;
  width: 100%;
  padding: 13px 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1.35rem;
  font-weight: 800;
}
.currency-mark { color: var(--muted); font-size: 1.3rem; font-weight: 800; }
.input-help { margin: 9px 0 0; color: var(--muted); font-size: 0.82rem; }

.result-panel {
  margin-top: 24px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), #0055b8 58%, var(--primary));
  border-radius: var(--radius-md);
  box-shadow: 0 18px 38px rgba(0, 48, 135, 0.24);
}
.result-label { margin: 0; color: rgba(255,255,255,.76); font-size: 0.84rem; font-weight: 700; }
.result-value { margin: 2px 0 12px; font-size: clamp(2.25rem, 7vw, 3.7rem); line-height: 1.05; font-weight: 900; letter-spacing: -0.055em; }
.result-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.meta-item { display: flex; flex-direction: column; gap: 1px; }
.meta-item span { color: rgba(255,255,255,.7); font-size: 0.75rem; }
.meta-item strong { font-size: 0.95rem; }

.copy-button {
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  color: var(--primary-dark);
  background: #fff;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease;
}
.copy-button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.copy-button:focus-visible { outline: 3px solid rgba(255,255,255,.65); outline-offset: 3px; }

.disclaimer {
  margin: 16px 2px 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.info-section {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto 80px;
  padding: clamp(28px, 6vw, 54px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 50px rgba(22, 43, 77, 0.07);
}
.info-section h2, .entry-content h1, .entry-content h2, .entry-content h3 { line-height: 1.2; letter-spacing: -0.03em; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.info-item { padding: 20px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 16px; }
.info-number { display: inline-grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--primary); border-radius: 10px; font-weight: 900; }
.info-item h3 { margin: 13px 0 6px; font-size: 1.03rem; }
.info-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.page-shell {
  width: min(calc(100% - 32px), 850px);
  margin: 0 auto;
  padding: 60px 0 90px;
}
.entry-content {
  padding: clamp(24px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }

.site-footer {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { color: var(--muted); text-decoration: none; }
.footer-menu a:hover { color: var(--primary); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy-wrap { text-align: center; }
  .hero-copy { margin-inline: auto; }
  .trust-row { justify-content: center; }
  .calculator-card { max-width: 580px; margin: 0 auto; }
  .info-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

@media (max-width: 520px) {
  .site-header { padding-top: 18px; }
  .site-description { display: none; }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: clamp(2.35rem, 14vw, 3.6rem); }
  .result-meta { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.comments-area { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.comment-list { padding-left: 1.4rem; }
.comment-list li { margin-bottom: 20px; }
.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.comment-form input[type="submit"] {
  padding: 11px 18px;
  color: #fff;
  background: var(--primary-dark);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 750;
}
