/*
Theme Name: Brat Generator
Theme URI: https://brat-generator.de
Author: Brat Generator Team
Author URI: https://brat-generator.de
Description: Modernes, SEO-optimiertes WordPress-Theme für den Brat Generator – ein kostenloses Online-Tool zum Erstellen von Brat-Texten im Stil des berühmten Albumcovers. Vollständig auf Deutsch, mobiloptimiert, schnell ladend und Gutenberg-kompatibel.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brat-generator
Tags: tool, generator, seo-optimized, responsive-layout, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
*/

/* ============================================
   Brat Generator – Modernes SaaS Theme
   Reset & Variables
============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-muted: #eef1f6;
  --fg: #0f172a;
  --fg-muted: #475569;
  --fg-soft: #64748b;
  --primary: #8ACE00;
  --primary-hover: #7ab800;
  --primary-fg: #0f172a;
  --accent: #111827;
  --border: #e5e7eb;
  --ring: rgba(138,206,0,0.35);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 6px 20px rgba(15,23,42,0.08);
  --shadow-lg: 0 20px 40px rgba(15,23,42,0.10);
  --container: 1180px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--fg); margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--fg-muted); }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 16px; top: 16px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.site-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--fg); }
.site-brand__mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Arial Narrow', Arial, sans-serif; font-weight: 900; font-size: 18px; color: #0f172a;
  box-shadow: var(--shadow-sm);
}
.site-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; }
.site-nav a { display: inline-block; padding: 10px 14px; border-radius: 8px; font-weight: 600; color: var(--fg-muted); }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--fg); background: var(--bg-muted); }
.header-cta { display: inline-flex; align-items: center; }

/* Mobile nav */
.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--fg); position: relative; content: '';
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 24px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .header-cta { display: none; }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); color: var(--primary-fg); }
.btn-ghost { background: #fff; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-muted); color: var(--fg); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* ===== Hero ===== */
.hero { padding: 90px 0 60px; background: radial-gradient(1200px 600px at 80% -10%, rgba(138,206,0,0.18), transparent 60%), var(--bg); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--bg-muted); color: var(--fg-muted); font-weight: 600; font-size: .85rem; margin-bottom: 18px; }
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.hero h1 span { background: linear-gradient(90deg, #8ACE00, #5fa800); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.18rem; color: var(--fg-muted); max-width: 56ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero__meta { display: flex; gap: 22px; margin-top: 24px; color: var(--fg-soft); font-size: .95rem; flex-wrap: wrap; }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__visual {
  background: var(--primary); aspect-ratio: 1/1; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  filter: blur(0.6px) contrast(1.05);
}
.hero__visual span {
  font-family: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900; font-size: clamp(80px, 14vw, 180px); color: #0f172a;
  letter-spacing: -0.04em; text-transform: lowercase;
  filter: blur(2px); opacity: 0.95;
}
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ===== Tool ===== */
.tool-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow-md);
}
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-label { font-weight: 700; margin-bottom: 8px; display: block; color: var(--fg); }
.tool-input {
  width: 100%; min-height: 160px; resize: vertical; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 12px; font: inherit; color: var(--fg);
  background: var(--bg-soft);
}
.tool-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.tool-controls label { font-size: .9rem; color: var(--fg-muted); display: inline-flex; align-items: center; gap: 6px; }
.tool-preview {
  background: var(--primary); border-radius: 16px; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden;
  position: relative;
}
.tool-preview__text {
  font-family: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900; color: #0f172a; text-align: center;
  font-size: clamp(40px, 9vw, 110px); line-height: .95;
  letter-spacing: -0.04em; text-transform: lowercase;
  filter: blur(2.2px); word-break: break-word;
}
.tool-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; justify-content: center; }
.tool-instructions { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; margin-top: 22px; }
.tool-instructions ol { margin: 8px 0 0 18px; padding: 0; color: var(--fg-muted); }

/* ===== Benefits ===== */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
@media (max-width: 860px) { .benefits-grid { grid-template-columns: 1fr; } }
.benefit {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.benefit__icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--bg-muted);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
  color: var(--primary-hover);
}
.benefit h3 { margin: 0 0 6px; font-size: 1.1rem; }
.benefit p { margin: 0; color: var(--fg-muted); font-size: .98rem; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 36px auto 0; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px; transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--fg); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--fg-soft); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--fg-muted); }

/* ===== About / Page content ===== */
.page-hero { padding: 70px 0 30px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 20px; color: var(--fg-muted); }
.prose li { margin-bottom: 8px; }

/* ===== Contact form ===== */
.contact-form { display: grid; gap: 14px; max-width: 620px; margin-top: 24px; }
.contact-form label { font-weight: 600; display: block; margin-bottom: 6px; color: var(--fg); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; background: var(--bg-soft); color: var(--fg);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-status { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.form-status.success { background: #ecfccb; color: #365314; border: 1px solid #d9f99d; }
.form-status.error   { background: #fee2e2; color: #7f1d1d; border: 1px solid #fecaca; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, #8ACE00, #6fae00);
  border-radius: 24px; padding: 48px; text-align: center; color: #0f172a;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #0f172a; }
.cta-banner p  { color: #1f2937; max-width: 60ch; margin: 0 auto 20px; }

/* ===== Footer ===== */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 56px 0 28px; margin-top: 60px; }
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.footer-brand .site-brand__mark { box-shadow: none; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .9rem; color: #94a3b8; }

/* ===== Section header ===== */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 8px; }
.section-head .eyebrow { color: var(--primary-hover); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.section-head p { color: var(--fg-muted); font-size: 1.08rem; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* WordPress required classes */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .9rem; color: var(--fg-soft); text-align: center; }
.bypostauthor { display: block; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
