/*
Theme Name: KirellBooks Theme
Theme URI: https://example.com/
Author: Kirsten Kirell
Author URI: https://example.com/
Description: One-Page Scroll Theme in Schwarz/Gold (#D2A543) mit lesbarer Handschrift, Header-Menü, Footer mit Logo, sowie Newsletter/Kontakt/Impressum/Datenschutz Seiten.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kirellbooks-theme
*/

/* ===============================
   Variablen & Basics
================================ */
:root{
  --gold:#D2A543;
  --black:#050406;
}

html{ scroll-behavior:smooth; }

*{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--black);
  color:var(--gold);
  font-family:'Cormorant Garamond', serif;
  font-size:18px;
  line-height:1.7;
  overflow-x:hidden;
}

a{ color:var(--gold); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* ===============================
   Typografie
================================ */
.kirell-script, h1, h2, h3{
  font-family:'Allura', cursive;
  font-weight:400;
}

h1{
  font-size:56px;
  line-height:1.05;
  margin:0 0 12px;
}

h2{
  font-size:44px;
  margin:0 0 24px;
  text-align:center;
}

p{ margin:0 0 14px; }

/* ===============================
   Layout
================================ */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 18px;
}

.section{ padding:70px 0; }

.center{ text-align:center; }

/* ===============================
   Header
================================ */
.site-header{
  background:var(--black);
  border-bottom:1px solid rgba(210,165,67,.25);
  position:sticky;
  top:0;
  z-index:100;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:260px;
}

.site-logo{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.site-logo img{
  height:140px;
  width:auto;
  display:block;
  object-fit:contain;
  border-radius:14px;
}

/* Menü */
.site-nav{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.site-nav a{
  font-family:'Allura', cursive;
  font-size:20px;
  padding:8px 10px;
  border-radius:12px;
}

.site-nav a:hover{
  background:rgba(210,165,67,.10);
  text-decoration:none;
}

/* Größeres Menü nur Desktop */
@media (min-width:1024px){
  .site-nav a{ font-size:26px; }
}

/* Header Fokus/Outline entfernen */
.site-header .site-logo,
.site-header .site-logo img,
.site-header .brand{
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
.site-header .site-logo:focus,
.site-header .site-logo:active{
  outline:none !important;
  box-shadow:none !important;
}

/* ===============================
   Hero
================================ */
.hero{
  position:relative;
  padding:70px 0 40px;
  overflow:hidden;
}

.hero:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 500px at 78% 18%, rgba(255,215,140,.10), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.35));
  pointer-events:none;
}

.hero-inner{
  position:relative;
  width:min(1100px, 92%);
  margin:0 auto;
  min-height:360px;
}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:560px;
  padding-top:10px;
  margin-left:140px;
}

.hero-tagline{
  font-family:'Allura', cursive;
  font-size:30px;
  line-height:1.1;
  margin-top:6px;
  opacity:.98;
}

.hero-mask{
  position:absolute;
  top:-100px;
  right:50px;
  height:550px;
  width:auto;
  object-fit:contain;
  z-index:1;
  pointer-events:none;
  filter:drop-shadow(0 18px 40px rgba(0,0,0,.65));
}

/* ===============================
   Buttons
================================ */
.btn{
  display:inline-block;
  background:var(--gold);
  color:#000;
  padding:10px 18px;
  border-radius:10px;
  font-family:'Cormorant Garamond', serif;
  font-size:18px;
  border:0;
}
.btn:hover{ filter:brightness(0.95); text-decoration:none; }

/* ===============================
   Books
================================ */
.books-grid{
  display:grid;
  grid-template-columns:380px 1fr;
  gap:28px;
  align-items:center;
  justify-content:center;
}

.book-cover img{
  width:min(360px, 100%);
  height:auto;
  border-radius:10px;
  display:block;
}

.book-title{
  font-family:'Allura', cursive;
  font-size:40px;
  margin:0 0 12px;
}

.sample-box{
  max-width:760px;
  margin:0 auto;
  text-align:center;
  opacity:.95;
  white-space:pre-wrap;
}

/* ===============================
   Footer (NEU: footer-left / footer-right)
================================ */
.site-footer{
  border-top:1px solid rgba(210,165,67,.25);
  padding:18px 0;
}

.footer-inner{
  display:flex;
  align-items:center;           /* Logo links vertikal mittig */
  justify-content:space-between;
  gap:18px;
}

.footer-left img{
  width:90px;                   /* Footer-Logo kleiner */
  height:auto;
  display:block;
  opacity:.95;
}

.footer-right{
  display:flex;
  flex-direction:column;        /* rechts: oben Links, darunter Copyright */
  align-items:flex-end;
  gap:6px;
}

.footer-links{
  display:flex;
  gap:14px;
  flex-wrap:nowrap;
  justify-content:flex-end;
  white-space:nowrap;
}

.footer-links a{
  font-family:'Cormorant Garamond', serif;
  font-size:16px;
  opacity:.95;
}

.footer-copy{
  font-family:'Cormorant Garamond', serif;
  font-size:14px;               /* bewusst etwas kleiner als Links */
  opacity:.90;
  white-space:nowrap;
}

/* ===============================
   Forms
================================ */
.kirell-form{
  max-width:620px;
  margin:0 auto;
}

.kirell-form input,
.kirell-form textarea{
  width:100%;
  background:#0b0b0b;
  color:var(--gold);
  border:1px solid rgba(210,165,67,.35);
  border-radius:10px;
  padding:12px 12px;
  font-family:'Cormorant Garamond', serif;
  font-size:18px;
}

.kirell-form textarea{
  min-height:140px;
  resize:vertical;
}

.kirell-form .row{ margin-bottom:14px; }

.notice{
  max-width:760px;
  margin:0 auto;
  opacity:.95;
}

/* ===============================
   Newsletter
================================ */
#newsletter form,
#newsletter .wpcf7 form{
  width:100%;
  max-width:100%;
  background:transparent;
  border:1px solid rgba(210,165,67,0.45);
  padding:24px;
  margin:0 auto;
}

#newsletter input,
#newsletter .wpcf7 input{
  width:100%;
  background:transparent;
  border:1px solid rgba(210,165,67,0.6);
  color:var(--gold);
  padding:12px 16px;
  font-family:inherit;
  margin-bottom:14px;
}

#newsletter input::placeholder{
  color:rgba(210,165,67,0.6);
}

#newsletter input:focus{
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 6px rgba(210,165,67,0.4);
}

#newsletter .wpcf7-submit{
  width:100%;
  cursor:pointer;
  text-transform:uppercase;
  letter-spacing:.08em;
  background:var(--gold);
  color:var(--black);
  border:none;
  padding:14px;
  margin-top:6px;
}

#newsletter .wpcf7-submit:hover{
  background:#e3bb5a;
}

/* ===============================
   Responsive
================================ */
@media (max-width:900px){
  h1{ font-size:46px; }
  .books-grid{ grid-template-columns:1fr; text-align:center; }
  .book-cover{ display:flex; justify-content:center; }
}

/* Tablet/Mobile */
@media (max-width:780px){
  .hero{
    padding:60px 0 30px;
    overflow:visible;
  }
  .hero-inner{ min-height:360px; }
  .hero-mask{
    height:300px;
    top:-40px;
    right:-10px;
    opacity:.96;
  }

@media (max-width:780px){

  .header-inner{
    padding:6px 0;
  }

  .site-logo img{
    height:60px;
  }

}

  /* Footer: Platz sparen, ohne Scroll */
  .site-footer .container{
    padding-left:10px;
    padding-right:10px;
  }

  .footer-left img{ width:70px; }
  .footer-links a{ font-size:13px; }
  .footer-copy{ font-size:12px; }
}

/* Small Mobile */
@media (max-width:520px){
  h1{ font-size:38px; }

  .brand{ min-width:auto; }
  .site-logo img{ height:120px; width:auto; }
  .site-nav{ justify-content:center; }

  /* Footer noch kompakter */
  .footer-links{ gap:10px; }
  .footer-left img{ width:62px; }
}
/* Mobile Fix: Newsletter Text sitzt sauber im Feld */
@media (max-width: 780px){
  #newsletter input,
  #newsletter .wpcf7 input{
    height:44px;
    line-height:44px;
    padding:0 14px;
    font-size:10px;
  }
}

/* WordPress Button im Kirell Style */
.wp-block-button__link{
  background:var(--gold);
  color:#000;
  border-radius:10px;
  padding:10px 18px;
  font-family:'Cormorant Garamond', serif;
  font-size:18px;
  border:0;
}

.wp-block-button__link:hover{
  filter:brightness(0.95);
}

