/*
Theme Name: AMOK Custom
Theme URI: https://amok.as
Author: Online Land ApS
Author URI: https://onlineland.dk
Description: Lightweight custom tema for !AMOK Studenterkørsel. Erstatter Divi med optimeret kode for hurtige CWV-scores og pSEO-support.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amok-custom
*/

/* === CSS RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Colors */
  --amok-red: #e51a1a;
  --amok-red-dark: #c41616;
  --amok-red-light: #ff3333;
  --amok-red-glow: rgba(229, 26, 26, 0.15);
  --amok-black: #1a1a1a;
  --amok-dark: #222222;
  --amok-gray-900: #333333;
  --amok-gray-700: #555555;
  --amok-gray-500: #888888;
  --amok-gray-300: #cccccc;
  --amok-gray-200: #e5e5e5;
  --amok-gray-100: #f5f5f5;
  --amok-gray-50: #fafafa;
  --amok-white: #ffffff;

  /* Typography */
  --font-headings: 'Lato', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-content: 720px;
  --border-radius: 8px;
  --border-radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);

  /* Transitions */
  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--amok-gray-900);
  background: var(--amok-white);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  color: var(--amok-black);
  margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-sm);
  color: var(--amok-gray-700);
}

a {
  color: var(--amok-red);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--amok-red-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-xl) 0;
}

.section--gray {
  background: var(--amok-gray-100);
}

.section--dark {
  background: var(--amok-dark);
  color: var(--amok-white);
}

.section--dark h2,
.section--dark h3,
.section--dark p {
  color: var(--amok-white);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3, .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Two column layout (content + sidebar) */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 968px) {
  .layout-sidebar {
    grid-template-columns: 1fr;
  }
}

/* === PAGE HEADER (subpages) === */
.page-header {
  background: linear-gradient(135deg, var(--amok-black) 0%, #2a2a2a 100%);
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--amok-red-glow) 0%, transparent 70%);
  pointer-events: none;
}

.page-header__title {
  color: var(--amok-white);
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.page-header__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--amok-red);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  gap: 0.5rem;
}

.btn--primary {
  background: var(--amok-red);
  color: var(--amok-white);
}

.btn--primary:hover {
  background: var(--amok-red-dark);
  color: var(--amok-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--amok-black);
  border: 2px solid var(--amok-black);
}

.btn--outline:hover {
  background: var(--amok-black);
  color: var(--amok-white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--amok-white);
  color: var(--amok-black);
}

.btn--white:hover {
  background: var(--amok-gray-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* === CARDS === */
.card {
  background: var(--amok-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card__body {
  padding: var(--space-md);
}

.card__title {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.card__text {
  font-size: 0.9rem;
  color: var(--amok-gray-500);
}

/* === HEADER === */
.top-bar {
  background: transparent;
  border-bottom: none;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  font-family: var(--font-body);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-bar__links a {
  color: var(--amok-gray-700);
  font-size: 0.85rem;
  font-family: var(--font-body);
}

.top-bar__links a:hover {
  color: var(--amok-red);
}

.top-bar__cta {
  padding: 0.35rem 1.2rem;
  font-size: 0.8rem;
  color: var(--amok-white) !important;
  background: var(--amok-red);
  border-radius: 4px;
}

.site-header {
  background: var(--amok-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 50px;
  width: auto;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav__list {
  display: flex;
  list-style: none;
  gap: 0;
  padding: 0;
  margin: 0;
}

.main-nav__item {
  position: relative;
}

.main-nav__link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--amok-black);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: color var(--transition-fast);
}

.main-nav__link:hover,
.main-nav__item--active .main-nav__link {
  color: var(--amok-red);
}

/* Dropdown */
.main-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--amok-white);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  min-width: 260px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  list-style: none;
}

.main-nav__item:hover .main-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav__dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--amok-gray-700);
  font-size: 0.9rem;
  font-weight: 500;
}

.main-nav__dropdown a:hover {
  background: var(--amok-gray-100);
  color: var(--amok-red);
}

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--amok-black);
  margin: 5px 0;
  transition: all var(--transition);
}

/* Mobile toggle animation */
.mobile-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 968px) {
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--amok-white);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav__list {
    flex-direction: column;
  }

  .main-nav__link {
    padding: 0.85rem var(--space-sm);
    border-bottom: 1px solid var(--amok-gray-100);
  }

  .main-nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: var(--space-md);
    display: none;
  }

  .main-nav__item.is-open .main-nav__dropdown {
    display: block;
  }

  .top-bar {
    display: none;
  }
}

/* === HERO === */
.hero {
  position: relative;
  background: var(--amok-black);
  color: var(--amok-white);
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__title {
  color: var(--amok-white);
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.hero__buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* === FEATURE GRID === */
.feature {
  text-align: left;
}

.feature__icon {
  width: 100%;
  height: auto;
  margin-bottom: var(--space-sm);
  object-fit: cover;
}

.feature__title {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--amok-red);
  margin-bottom: 0;
}

/* Feature grid matching original layout: 3-2-2 pattern */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.features-grid--2col {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .features-grid,
  .features-grid--2col {
    grid-template-columns: 1fr;
  }
}

/* === TESTIMONIALS === */
.testimonial {
  background: var(--amok-dark);
  color: var(--amok-white);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  text-align: center;
}

.testimonial__quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-sm);
}

.testimonial__title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--amok-white);
  margin-bottom: var(--space-sm);
}

/* === SIDEBAR === */
.sidebar {
  position: sticky;
  top: 90px;
}

.sidebar__widget {
  background: var(--amok-gray-100);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.sidebar__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--amok-red);
}

/* === FOOTER === */
.site-footer {
  background: var(--amok-black);
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer__social {
    justify-content: center;
  }
}

.footer__heading {
  color: var(--amok-white);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.footer__links {
  list-style: none;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.4rem;
}

.footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--amok-red);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-sm);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--amok-gray-900);
  color: var(--amok-white);
  transition: background 0.2s, transform 0.2s;
}

.footer__social a:hover {
  background: var(--amok-red);
  transform: scale(1.1);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.85rem;
}

/* === FAQ SCHEMA SECTION === */
.faq-section {
  margin: var(--space-lg) 0;
}

.faq-item {
  border-bottom: 1px solid var(--amok-gray-300);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  cursor: pointer;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--amok-black);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 var(--space-sm);
  display: none;
  color: var(--amok-gray-700);
  line-height: 1.7;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* === BLOG / ARCHIVE === */
.post-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--amok-gray-300);
}

@media (max-width: 640px) {
  .post-card {
    grid-template-columns: 1fr;
  }
}

.post-card__image {
  border-radius: var(--border-radius);
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.post-card__meta {
  font-size: 0.85rem;
  color: var(--amok-gray-500);
  margin-bottom: var(--space-xs);
}

.post-card__title a {
  color: var(--amok-black);
  font-size: 1.2rem;
}

.post-card__title a:hover {
  color: var(--amok-red);
}

.post-card__excerpt {
  font-size: 0.95rem;
  color: var(--amok-gray-700);
}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding: var(--space-lg) 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.pagination a {
  color: var(--amok-gray-700);
  background: var(--amok-gray-100);
}

.pagination a:hover {
  background: var(--amok-red);
  color: var(--amok-white);
}

.pagination .current {
  background: var(--amok-red);
  color: var(--amok-white);
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-red { color: var(--amok-red); }
.text-white { color: var(--amok-white); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* === CONTACT FORM (CF7 Styling) === */
.wpcf7 {
  max-width: var(--container-content);
}

.wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.wpcf7 label {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--amok-black);
  display: block;
  margin-bottom: var(--space-xs);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--amok-gray-200);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: var(--amok-gray-50);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: var(--amok-red);
  box-shadow: 0 0 0 4px var(--amok-red-glow);
  background: var(--amok-white);
}

.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

.wpcf7 .wpcf7-radio {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xs);
}

.wpcf7 .wpcf7-radio .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.wpcf7 input[type="submit"] {
  background: var(--amok-red);
  color: var(--amok-white);
  border: none;
  padding: 1rem 2.5rem;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  align-self: flex-start;
  margin-top: var(--space-sm);
}

.wpcf7 input[type="submit"]:hover {
  background: var(--amok-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* === GUTENBERG BLOCK STYLES (SUBPAGE CONTENT) === */

/* Entry content — full width, let individual elements control their width */
.entry-content {
  line-height: 1.8;
  width: 100%;
}

.entry-content > * {
  margin-bottom: var(--space-md);
}

/* Strip duplicate H1 from content (template already has page-header) */
.entry-content > h1:first-child,
.entry-content > .wp-block-heading:first-child {
  display: none;
}

/* H2 — section divider with accent line */
.entry-content h2,
.entry-content .wp-block-heading:where(h2) {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--amok-gray-200);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
}

/* First H2 doesn't need top border */
.entry-content > h2:first-of-type,
.entry-content > .wp-block-heading:first-of-type:where(h2),
.entry-content > h1 + h2,
.entry-content > :first-child + h2 {
  border-top: none;
  padding-top: 0;
  margin-top: var(--space-md);
}

.entry-content h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--amok-red);
  margin-top: var(--space-xs);
  border-radius: 2px;
}

/* H3 — strong subsection */
.entry-content h3,
.entry-content .wp-block-heading:where(h3) {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--amok-gray-900);
}

/* Paragraphs — normal size, readable */
.entry-content p {
  font-size: 1rem;
  line-height: 1.8;
}

/* Reset bold/strong paragraphs to normal size */
.entry-content p strong {
  font-size: inherit;
}

/* Inline font-size overrides from Divi — normalize */
.entry-content p[style*="font-size"] {
  font-size: 1rem !important;
}

/* Lists inside content */
.entry-content ul,
.entry-content ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.entry-content li {
  margin-bottom: var(--space-xs);
  line-height: 1.7;
}

.entry-content ul li::marker {
  color: var(--amok-red);
}

/* Embeds (YouTube, Vimeo, etc.) */
.wp-block-embed {
  margin: var(--space-lg) 0;
  max-width: 100%;
}

.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.wp-block-embed__wrapper iframe,
.wp-block-embed__wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* oEmbed iframes that are NOT in wp-block-embed */
.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="vimeo"] {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

/* Images */
.wp-block-image {
  margin: var(--space-lg) 0;
}

.wp-block-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.wp-block-image figcaption {
  font-size: 0.85rem;
  color: var(--amok-gray-500);
  text-align: center;
  margin-top: var(--space-xs);
}

/* Details / FAQ Accordion — beautiful styling */
.wp-block-details,
details {
  border: 1px solid var(--amok-gray-200);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.wp-block-details:hover,
details:hover {
  box-shadow: var(--shadow-sm);
}

.wp-block-details summary,
details summary {
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: var(--amok-gray-50);
  transition: background var(--transition-fast), color var(--transition-fast);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--amok-black);
}

.wp-block-details summary::-webkit-details-marker,
details summary::-webkit-details-marker {
  display: none;
}

.wp-block-details summary::marker,
details summary::marker {
  display: none;
  content: '';
}

.wp-block-details summary::after,
details summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--amok-gray-500);
  border-bottom: 2px solid var(--amok-gray-500);
  transform: rotate(-45deg);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.wp-block-details[open] summary::after,
details[open] summary::after {
  transform: rotate(45deg);
}

.wp-block-details summary:hover,
details summary:hover {
  background: var(--amok-gray-100);
  color: var(--amok-red);
}

.wp-block-details[open] summary,
details[open] summary {
  border-bottom: 1px solid var(--amok-gray-200);
  background: var(--amok-white);
  color: var(--amok-red);
}

.wp-block-details > *:not(summary),
details > *:not(summary) {
  padding: var(--space-sm) var(--space-md);
  animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Lists */
.wp-block-list {
  padding-left: var(--space-md);
}

/* Separator */
.wp-block-separator {
  border: none;
  border-top: 2px solid var(--amok-gray-200);
  margin: var(--space-xl) 0;
}

.wp-block-separator.has-alpha-channel-opacity {
  opacity: 1;
}

/* Buttons — unified red CTA style */
.wp-block-button__link {
  background: var(--amok-red) !important;
  color: var(--amok-white) !important;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  display: inline-block;
  text-decoration: none;
  border: none;
}

.wp-block-button__link:hover {
  background: var(--amok-red-dark) !important;
  color: var(--amok-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Buttons with custom bg */
.wp-block-button__link.has-background {
  transition: all var(--transition);
}

.wp-block-button__link.has-background:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(0.95);
}

/* Button container */
.wp-block-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin: var(--space-md) 0;
}

/* Columns — responsive with nice spacing */
.wp-block-columns {
  display: flex;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
  max-width: none;
}

@media (max-width: 768px) {
  .wp-block-columns {
    flex-direction: column;
    gap: var(--space-md);
  }
}

.wp-block-column {
  flex: 1;
  min-width: 0;
}

/* Groups with background */
.wp-block-group.has-background {
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  max-width: none;
}

/* Blockquote */
.wp-block-quote {
  border-left: 4px solid var(--amok-red);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  font-style: italic;
  background: var(--amok-gray-50);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Gallery */
.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
  max-width: none;
}

.wp-block-gallery img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.wp-block-gallery img:hover {
  transform: scale(1.02);
}

/* TikTok logo fix (Kontakt page) */
.entry-content figure.is-resized img[alt*="tiktok" i] {
  max-width: 80px !important;
  width: 80px !important;
}

/* Full-width Gutenberg blocks break out of container */
.entry-content .wp-block-columns,
.entry-content .wp-block-group.has-background,
.entry-content .wp-block-embed,
.entry-content .wp-block-gallery {
  max-width: none;
}

/* === MOBILE STICKY CTA === */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--amok-white);
  padding: var(--space-sm) var(--space-md);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  border-top: 3px solid var(--amok-red);
}

.mobile-sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amok-red);
  color: var(--amok-white);
  padding: 0.9rem;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  gap: 0.5rem;
  transition: background var(--transition-fast);
}

.mobile-sticky-cta a:hover {
  background: var(--amok-red-dark);
  color: var(--amok-white);
}

.mobile-sticky-cta__icon {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block;
  }
  
  /* Add padding to body so CTA doesn't overlap footer */
  body {
    padding-bottom: 70px;
  }
}

/* === HOMEPAGE MOBILE OPTIMIZATION === */
@media (max-width: 768px) {
  /* Hero mobile */
  .hero {
    min-height: 60vh;
    padding: var(--space-lg) 0;
  }

  .hero__title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .hero__subtitle {
    font-size: 1rem;
    margin-bottom: var(--space-md);
  }

  .hero__buttons {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .hero__buttons .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Features mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .features-grid--2col {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .feature__icon {
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
  }

  /* Front-page inline grids — override inline styles on mobile */
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 2fr"],
  [style*="grid-template-columns:2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Sections mobile */
  .section {
    padding: var(--space-lg) 0;
  }

  /* Page header mobile */
  .page-header {
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .page-header__title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  /* Content mobile */
  .entry-content h2,
  .entry-content .wp-block-heading:where(h2) {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .entry-content p {
    font-size: 1rem;
  }

  /* Columns stack */
  .wp-block-columns {
    flex-direction: column;
    gap: var(--space-md);
  }

  /* Buttons full width */
  .wp-block-buttons {
    flex-direction: column;
  }

  .wp-block-button {
    width: 100%;
  }

  .wp-block-button__link {
    display: block !important;
    text-align: center;
    width: 100%;
  }

  /* Cards mobile */
  .card {
    margin-bottom: var(--space-sm);
  }

  /* Testimonials */
  .testimonial {
    padding: var(--space-md);
  }

  /* Groups */
  .wp-block-group.has-background {
    padding: var(--space-md);
    border-radius: var(--border-radius);
  }

  /* Images */
  .wp-block-image img {
    border-radius: var(--border-radius);
  }

  /* Touch-friendly targets */
  .wp-block-details summary,
  details summary {
    min-height: 48px;
    padding: var(--space-md);
  }
  
  /* Footer mobile */
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }
  
  .footer__social {
    justify-content: center;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .hero__title {
    font-size: 1.6rem;
  }

  h1, .page-header__title {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .entry-content p {
    font-size: 0.95rem;
  }

  .btn--lg {
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
  }
}

/* === SCROLL ANIMATIONS === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === PRINT === */
@media print {
  .top-bar, .site-header, .site-footer, .sidebar, .mobile-sticky-cta {
    display: none;
  }
  
  body {
    padding-bottom: 0;
  }
}

/* === LOCATION CARDS (KUN-97) === */
.location-card {
  display: block;
  padding: 1.5rem;
  background: var(--amok-white, #fff);
  border: 2px solid #e7e7e7;
  border-radius: 8px;
  text-decoration: none;
  color: var(--amok-black, #0e0f11);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.location-card:hover {
  border-color: var(--amok-red, #ec1c24);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-decoration: none;
}
.location-card__name {
  display: block;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}
.location-card__label {
  display: block;
  font-size: 0.9rem;
  color: #666;
}

/* === BLOG CARDS (KUN-97) === */
.blog-card {
  display: block;
  padding: 1.5rem;
  background: var(--amok-white, #fff);
  border: 2px solid #e7e7e7;
  border-radius: 8px;
  text-decoration: none;
  color: var(--amok-black, #0e0f11);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  border-color: var(--amok-red, #ec1c24);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-decoration: none;
}
.blog-card__title {
  display: block;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.blog-card__excerpt {
  display: block;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}
