/* ============================================
   Diafragma-Flutter Website - Stylesheet
   ============================================ */

:root {
  --primary: #0d7377;
  --primary-dark: #095456;
  --primary-light: #14919b;
  --secondary: #1a1a2e;
  --accent: #e8b86d;
  --bg: #fafafa;
  --bg-light: #f0f7f7;
  --text: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER & ANIMATED NAV ========== */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.03);
}

.lang-switch {
  display: flex;
  gap: 3px;
  background: var(--bg-light);
  border-radius: 20px;
  padding: 3px;
  margin-left: auto;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 11px;
  border-radius: 16px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-light);
  transition: all var(--transition);
}

.lang-btn.active {
  background: var(--primary);
  color: white;
}

.lang-btn:hover:not(.active) {
  color: var(--primary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 3px;
}

nav a {
  display: block;
  padding: 8px 13px;
  color: var(--text);
  font-weight: 500;
  border-radius: 8px;
  position: relative;
  transition: color var(--transition), background var(--transition);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition), left var(--transition);
  transform: translateX(-50%);
}

nav a:hover::after,
nav a.active::after {
  width: 55%;
}

nav a:hover,
nav a.active {
  color: var(--primary);
  background: var(--bg-light);
}

nav a.active {
  animation: navPulse 2.8s ease-in-out infinite;
}

@keyframes navPulse {
  0%, 100% { background: var(--bg-light); }
  50% { background: rgba(13, 115, 119, 0.13); }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.55rem;
  cursor: pointer;
  color: var(--secondary);
  transition: transform var(--transition);
}

.menu-toggle:hover {
  transform: rotate(90deg);
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 55px 0 65px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 55%;
  height: 180%;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  animation: heroGlow 9s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { transform: translate(0, 0); }
  to { transform: translate(-25px, 15px); }
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -1px;
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 16px;
}

.hero-text {
  max-width: 680px;
  margin: 0 auto 24px;
  font-size: 1.03rem;
  opacity: 0.92;
  line-height: 1.7;
}

.hero-image-wrap {
  max-width: 720px;
  margin: 0 auto 26px;
  background: rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 14px;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  transition: transform var(--transition);
  position: relative;
}

.hero-image-wrap:hover {
  transform: scale(1.025);
}

.hero-image-wrap svg,
.hero-image-wrap img {
  margin: 0 auto;
  border-radius: 8px;
  width: 100%;
  height: auto;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--secondary);
}

.btn-primary:hover {
  background: #d4a55a;
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: var(--white);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ========== SECTIONS ========== */
.section {
  padding: 52px 0;
}

.bg-light {
  background: var(--bg-light);
}

.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 44px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 6px;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.03rem;
}

h2 {
  font-size: 1.7rem;
  margin-bottom: 20px;
  color: var(--secondary);
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 9px;
  color: var(--secondary);
}

p {
  margin-bottom: 13px;
}

.intro-text {
  font-size: 1.06rem;
  color: var(--text-light);
  margin-bottom: 26px;
  max-width: 800px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 9px;
}

.card.highlight {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
}

.card.highlight ul {
  list-style: none;
  padding-left: 0;
}

.card.highlight li {
  padding: 5px 0 5px 20px;
  position: relative;
}

.card.highlight li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Source references */
.source-ref {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
  margin-bottom: 14px;
}

.source-ref a {
  color: var(--primary-light);
  border-bottom: 1px dotted var(--primary-light);
}

.source-ref a:hover {
  color: var(--primary-dark);
  border-bottom-style: solid;
}

.sources-list {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.sources-list h3 {
  margin-bottom: 12px;
}

.sources-list ol {
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.sources-list li {
  margin-bottom: 7px;
}

.cta {
  background: var(--secondary);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  color: var(--white);
}

.cta p {
  max-width: 580px;
  margin: 0 auto 20px;
  opacity: 0.9;
}

.content-wide {
  max-width: 820px;
  margin: 0 auto;
}

.content-wide h2 {
  margin-top: 32px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--bg-light);
}

.content-wide h2:first-child {
  margin-top: 0;
}

.content-wide ul,
.content-wide ol {
  margin: 9px 0 16px 20px;
}

.content-wide li {
  margin-bottom: 6px;
}

.note {
  background: #fff8e6;
  border-left: 4px solid var(--accent);
  padding: 13px 16px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.94rem;
}

.info-table th,
.info-table td {
  padding: 11px 13px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.info-table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--secondary);
}

.publication {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: transform var(--transition);
}

.publication:hover {
  transform: translateX(3px);
}

.publication h3 {
  margin-bottom: 3px;
}

.pub-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 9px;
}

.pub-abstract {
  margin-bottom: 11px;
}

.keywords,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}

.keyword,
.tag {
  background: var(--bg-light);
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

.video-card .video-info {
  padding: 14px 16px;
}

.video-card h3 {
  font-size: 1.02rem;
  margin-bottom: 5px;
}

.video-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.story {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.story-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.story-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.story-meta h3 {
  margin-bottom: 1px;
}

.story-meta span {
  color: var(--text-light);
  font-size: 0.86rem;
}

.story-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  margin-top: 32px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.12);
}

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

.form-note {
  font-size: 0.86rem;
  color: var(--text-light);
  margin-top: 9px;
}

.guest-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
}

.guest-card:hover {
  transform: translateY(-4px);
}

.guest-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg-light);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
}

.guest-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 7px;
}

footer {
  background: var(--secondary);
  color: #bbb;
  padding: 42px 0 16px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 32px;
  margin-bottom: 24px;
}

footer h4 {
  color: var(--white);
  margin-bottom: 11px;
  font-size: 1.02rem;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 6px;
}

footer a {
  color: #999;
}

footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #3a3a4e;
  padding-top: 16px;
  text-align: center;
  font-size: 0.86rem;
}

/* Language toggle */
.lang-en { display: none; }
body.en .lang-nl { display: none; }
body.en .lang-en { display: block; }
body.en span.lang-en { display: inline; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .menu-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: 12px;
  }
  nav.open {
    display: block;
    animation: slideDown 0.28s ease;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  nav ul { flex-direction: column; gap: 2px; }
  .hero h1 { font-size: 1.85rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 22px; }
  .page-header h1 { font-size: 1.55rem; }
}

@media print {
  header, footer, .menu-toggle, .cta, .lang-switch { display: none !important; }
  body { background: white; color: black; }
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 12px;
  font-weight: 600;
}

.form-status.success { color: var(--primary); }
.form-status.error { color: #b42318; }

.story-text {
  white-space: pre-line;
}

/* Beheerpagina */
.admin-login {
  max-width: 420px;
}

.admin-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.admin-story-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 6px;
}

.badge-pending { background: #fff4e5; color: #9a5b00; }
.badge-approved { background: #e6f4f1; color: var(--primary); }

.btn-danger {
  background: #b42318;
  color: #fff;
}

/* Contactknop in menu */
nav a.nav-contact {
  background: var(--primary);
  color: var(--white);
  margin-left: 4px;
}

nav a.nav-contact:hover,
nav a.nav-contact.active {
  background: var(--primary-dark);
  color: var(--white);
}

nav a.nav-contact::after { display: none; }

.contact-form-wrap {
  max-width: 680px;
  margin: 0 auto;
}

/* Verhalen – uitleg bediening */
.how-it-works {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 26px;
  margin: 10px 0 36px;
}

.how-it-works h2 { margin-bottom: 16px; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.steps h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.steps p {
  font-size: 0.92rem;
  color: var(--text-light);
}

.step-nr {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stories-heading {
  margin: 30px 0 16px;
}

.stories-empty {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 20px;
}

.story-example { opacity: 0.92; }

/* Links-pagina */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.link-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  transition: transform var(--transition);
}

.link-card:hover { transform: translateY(-4px); }

.link-card h3 {
  font-size: 1.05rem;
  margin: 8px 0 6px;
}

.link-card p { font-size: 0.93rem; }

.link-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: var(--bg-light);
  padding: 2px 10px;
  border-radius: 999px;
}

.link-url {
  margin-top: 10px;
  font-size: 0.8rem !important;
  color: var(--text-light);
}

.text-center { text-align: center; }

/* Disclaimer bovenaan elke pagina */
.site-disclaimer {
  background: #fff6e5;
  border-bottom: 1px solid #f0d9a8;
  color: var(--secondary);
  font-size: 0.9rem;
}

.site-disclaimer p {
  margin: 0;
  padding: 10px 0;
}

.site-disclaimer a {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Bronnen & literatuur */
.reference-list {
  padding-left: 24px;
  margin: 16px 0 36px;
}

.reference-list .ref {
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin-bottom: 14px;
}

.reference-list .ref p {
  margin: 0 0 6px;
}

.ref-title {
  font-weight: 600;
  color: var(--secondary);
}

.ref-ids {
  font-size: 0.88rem;
  color: var(--text-light);
  word-break: break-word;
}

.ref-accessed {
  margin-left: 12px;
  font-style: italic;
}

/* Toestemming verhalen */
.consent-group {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.consent-group label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
  cursor: pointer;
}

.consent-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
}

.source-ref-dark {
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.source-ref-dark a {
  color: var(--accent);
}

.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }

/* Table of contents & FAQ */
.toc {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
  line-height: 1.9;
}

.toc a { white-space: nowrap; }

.faq details {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
}

.faq details[open] summary { margin-bottom: 8px; }

nav ul { flex-wrap: wrap; }
h2[id] { scroll-margin-top: 90px; }
