/* ====================================================
   daumenrose.de — Custom Styles
   Design: Modern editorial, warm & spacious
   ==================================================== */

/* ---------- Root & Base ---------- */
:root {
    --rose:        #dc3c32;
    --rose-dark:   #b83029;
    --rose-light:  #fdf0ef;
    --ink:         #1a1a2e;
    --ink-soft:    #3d3d55;
    --muted:       #6b7280;
    --line:        #e8e4e1;
    --bg:          #fdfcfb;
    --bg-warm:     #f9f6f3;
    --white:       #ffffff;
    --radius:      16px;
    --radius-sm:   10px;
    --radius-pill: 50px;
    --shadow-sm:   0 2px 12px rgba(26,26,46,.07);
    --shadow-md:   0 6px 30px rgba(26,26,46,.10);
    --shadow-lg:   0 16px 48px rgba(26,26,46,.14);
    --transition:  .28s cubic-bezier(.4,0,.2,1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, .h0, .h1, .h2, .h3, .h4, .h5 {
    font-family: 'Inter Tight', 'Poppins', sans-serif;
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -2px; }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); letter-spacing: -1px; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); letter-spacing: -.5px; }

p { margin-bottom: 1.25rem; }

a {
    color: var(--rose);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--rose-dark); }

/* ---------- Headings as <p> (legacy) ---------- */
p.h0 {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 1;
    color: var(--ink);
    margin-bottom: .25rem;
}
p.h0 span { color: var(--rose); }

p.h1 {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
}

p.h2 {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -.5px;
}

p.h3 {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    letter-spacing: 0;
    color: var(--ink-soft);
}

p.logo {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--ink);
    margin: 0;
}

/* ---------- Sections ---------- */
.section {
    padding: 6rem 0;
}
.section-sm { padding: 3rem 0; }
.section-lg { padding: 9rem 0; }

/* ---------- Buttons ---------- */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .03em;
    border-radius: var(--radius-pill) !important;
    padding: .72rem 2rem;
    border: 2px solid transparent;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.btn-dark {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}
.btn-dark:hover {
    background: var(--rose);
    border-color: var(--rose);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220,60,50,.3);
}

.btn-rose {
    background: var(--rose);
    color: var(--white);
    border-color: var(--rose);
}
.btn-rose:hover {
    background: var(--rose-dark);
    border-color: var(--rose-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220,60,50,.35);
}

.btn-outline-dark {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-outline-dark:hover {
    background: var(--ink);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: .9rem 2.4rem;
    font-size: 1rem;
}

.btn svg {
    position: relative;
    top: -1px;
    width: 18px;
    height: 18px;
}

/* ---------- Cards ---------- */
.card-soft {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card-soft:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-rose {
    background: var(--rose-light);
    border-radius: var(--radius);
    padding: 2.5rem;
    border: 1px solid rgba(220,60,50,.12);
}

.card-dark {
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
}
.card-dark p, .card-dark h2, .card-dark .h2 { color: var(--white); }

/* ---------- Legacy background cards ---------- */
.bg-transparent {
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(8px);
}

.bg-daumenrose {
    background: url('../img/bg.jpg') no-repeat center center;
    background-size: cover;
    border-radius: var(--radius);
    overflow: hidden;
}

.bg-light-tp {
    background: rgba(255,255,255,.93) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.6);
}

.bg-dark-tp {
    background: rgba(26,26,46,.88) !important;
    backdrop-filter: blur(10px);
    color: var(--white);
}
.bg-dark-tp p, .bg-dark-tp .h2 { color: var(--white) !important; }

/* ---------- Dividers ---------- */
hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 4rem 0;
    opacity: 1;
}
hr.thin { margin: 2rem 0; }

/* ---------- Badges ---------- */
.badge {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .05em;
    padding: .45em 1.1em;
    border-radius: var(--radius-pill);
}

.badge.text-bg-secondary {
    background: var(--line) !important;
    color: var(--ink-soft) !important;
}

/* ---------- Rating Stars ---------- */
.rating {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}
.rating svg {
    fill: #f59e0b;
    width: 20px;
    height: 20px;
}

/* ---------- Swiper ---------- */
.swiper {
    padding-bottom: 3rem !important;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    color: var(--rose);
    font-size: 1.2rem !important;
}
.swiper-pagination-bullet-active {
    background: var(--rose) !important;
}

/* ---------- Rounded ---------- */
.rounded { border-radius: var(--radius) !important; }
.rounded-pill { border-radius: var(--radius-pill) !important; }

/* ---------- Shadows ---------- */
.shadow-soft { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* ---------- Utilities ---------- */
.hidden { display: none !important; }

.zoom { transform: scale(1); transition: transform var(--transition); cursor: pointer; }
.zoom:hover { transform: scale(1.04); }

.link {
    border-bottom: 2px solid var(--rose);
    padding-bottom: 1px;
    font-weight: 600;
    color: var(--rose);
}

.text-rose { color: var(--rose) !important; }
.bg-rose { background: var(--rose) !important; }
.bg-warm { background: var(--bg-warm) !important; }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 2px solid var(--line);
    padding: .75rem 1rem;
    font-size: .95rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(220,60,50,.12);
    outline: none;
}
.form-label {
    font-weight: 600;
    font-size: .88rem;
    letter-spacing: .03em;
    color: var(--ink-soft);
    margin-bottom: .4rem;
}
textarea.form-control { resize: vertical; min-height: 140px; }

.form-check-input.big-checkbox {
    width: 22px;
    height: 22px;
    margin-top: .2rem;
    border: 2px solid var(--line);
    border-radius: 6px;
}
.form-check-input.big-checkbox:checked {
    background-color: var(--rose);
    border-color: var(--rose);
}

/* ---------- Contact Section ---------- */
#kontakt {
    scroll-margin-top: 80px;
}

.contact-section {
    background: var(--bg-warm);
    border-radius: var(--radius);
    padding: 3rem;
}

/* ---------- Header ---------- */
.site-header {
    padding: 3rem 0 1.5rem;
}

.site-logo {
    width: clamp(60px, 12vw, 100px);
    height: auto;
    transition: transform var(--transition);
}
.site-logo:hover { transform: scale(1.05); }

.site-wordmark {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--ink);
    text-decoration: none;
    transition: color var(--transition);
}
.site-wordmark:hover { color: var(--rose); }

/* ---------- Navigation ---------- */
.site-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0 2rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.site-nav a {
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color var(--transition);
}
.site-nav a:hover { color: var(--rose); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-warm);
    border-top: 1px solid var(--line);
    padding: 3rem 0;
    margin-top: 4rem;
}
.site-footer a {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 500;
    transition: color var(--transition);
}
.site-footer a:hover { color: var(--rose); }

/* ---------- Content Article Images ---------- */
.content-article img {
    max-height: 500px;
    display: block;
    margin: 2rem auto;
    border-radius: var(--radius);
}

/* ---------- Back-to-Top Button ---------- */
#btt-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
    z-index: 9000;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s ease, transform .4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    border: none;
    outline: none;
}
#btt-btn.btt-visible {
    opacity: 1;
    transform: translateY(0);
}
#btt-btn.btt-bounce {
    animation: bttBounce .6s ease;
}
#btt-btn svg.btt-arrow {
    position: absolute;
    width: 20px;
    height: 20px;
    stroke: var(--rose);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    z-index: 2;
}
#btt-btn .btt-ring {
    position: absolute;
    width: 52px;
    height: 52px;
    transform: rotate(-90deg);
}
#btt-btn .btt-track {
    fill: none;
    stroke: var(--line);
    stroke-width: 3;
}
#btt-btn .btt-progress-circle {
    fill: none;
    stroke: var(--rose);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 131;
    stroke-dashoffset: 131;
    transition: stroke-dashoffset .1s linear;
}

@keyframes bttBounce {
    0%   { transform: translateY(0); }
    25%  { transform: translateY(-10px); }
    50%  { transform: translateY(0); }
    70%  { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* ---------- Contact FAB ---------- */
.contact-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 8900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.contact-fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--rose);
    border: none;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(220,60,50,.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    outline: none;
}
.contact-fab-btn:hover {
    background: var(--rose-dark);
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(220,60,50,.55);
}
.contact-fab-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all var(--transition);
}
.contact-fab-btn .cfab-close { display: none; }
.contact-fab.open .contact-fab-btn .cfab-open { display: none; }
.contact-fab.open .contact-fab-btn .cfab-close { display: block; }

.contact-fab-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 300px;
    overflow: hidden;
    border: 1px solid var(--line);
    transform: translateY(12px) scale(.95);
    opacity: 0;
    pointer-events: none;
    transition: all .25s cubic-bezier(.34,1.56,.64,1);
}
.contact-fab.open .contact-fab-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.contact-fab-header {
    background: var(--ink);
    color: var(--white);
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .03em;
}
.contact-fab-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color var(--transition);
}
.contact-fab-close:hover { color: var(--white); }

.contact-fab-links { padding: .5rem 0; }

.contact-fab-item {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1.2rem;
    color: var(--ink) !important;
    text-decoration: none;
    transition: background var(--transition);
}
.contact-fab-item:hover { background: var(--bg-warm); }
.contact-fab-item div { display: flex; flex-direction: column; gap: 1px; }
.contact-fab-item strong { font-size: .88rem; font-weight: 700; color: var(--ink); }
.contact-fab-item small { font-size: .75rem; color: var(--muted); }

.contact-fab-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-fab-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--white);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cfab-email  { background: var(--rose); }
.cfab-form   { background: var(--ink); }
.cfab-scroll { background: #6366f1; }

@media (max-width: 576px) {
    .contact-fab { bottom: 16px; right: 16px; }
    .contact-fab-panel { width: calc(100vw - 32px); }
    #btt-btn { bottom: 1rem; right: 1rem; }
}

/* ---------- Compliance Guardian position override ---------- */
#compliance-guardian-btn,
.cg-btn-wrapper {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: 16px !important;
}

/* ---------- Hero Section ---------- */
.hero-section {
    text-align: center;
    padding: 5rem 0 3rem;
}

/* ---------- Book Cards ---------- */
.book-card {
    text-align: center;
    padding: 1rem;
}
.book-card img {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}
.book-card img:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: var(--shadow-lg);
}

/* ---------- Review Cards ---------- */
.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.review-card .reviewer { font-weight: 700; color: var(--ink); }
.review-card p { flex: 1; color: var(--ink-soft); font-size: .93rem; line-height: 1.7; margin: 0; }

/* ---------- Chapter Indicator ---------- */
.chapter-number {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--rose);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--rose);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- Scroll-reveal helper ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Alert / Feedback ---------- */
.alert-custom {
    border-radius: var(--radius-sm);
    padding: 1rem 1.4rem;
    font-size: .92rem;
    font-weight: 500;
    border: none;
    margin-top: 1rem;
}
.alert-success-custom {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
}
.alert-error-custom {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid var(--rose);
}

/* ---------- Loader for form ---------- */
.btn-loading {
    position: relative;
    pointer-events: none;
}
.btn-loading::after {
    content: '';
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ---------- Pulse animation for hero ---------- */
@keyframes pulseRose {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}
.pulse { animation: pulseRose 2.5s ease infinite; }

/* ---------- Floating badge animation ---------- */
@keyframes floatUp {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.badge-animate {
    animation: floatUp .5s ease forwards;
    opacity: 0;
}
.badge-animate:nth-child(1) { animation-delay: .1s; }
.badge-animate:nth-child(2) { animation-delay: .3s; }
.badge-animate:nth-child(3) { animation-delay: .5s; }

/* ---------- Wavy underline on headings ---------- */
.heading-underline {
    position: relative;
    display: inline-block;
}
.heading-underline::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rose);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s ease .2s;
}
.heading-underline.revealed::after { transform: scaleX(1); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .contact-section { padding: 2rem 1.5rem; }
    .card-soft, .card-dark, .card-rose { padding: 1.75rem; }
}
