/*
Theme Name: Leesdame-2026
Theme URI: https://leesdame.nl
Author: Rik Spreen
Author URI: https://spreen-online.nl
Description: Custom-built WordPress theme developed specifically for Leesdame.nl
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.2
License: Proprietary
License URI: https://leesdame.nl/licentie
Text Domain: leesdame-2026
*/




/* === Reset en basisstructuur === */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
	display: block;
}

html {
	font-size: 100%;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: var(--spreen-kleur-border-licht) var(--spreen-kleur-border);
	scrollbar-gutter: stable;
}


body {
  position: relative;
  z-index: 0;
  line-height: var(--line-height);
  font-size: var(--font-base);
  font-family: 'Zain', 'Segoe UI', 'Helvetica Neue', sans-serif;
  background-color: var(--spreen-achtergrond-donker);
  color: var(--spreen-kleur);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('afbeeldingen/lezen-achtergrond-links.jpg'), url('afbeeldingen/lezen-achtergrond-rechts.jpg');
  background-position: left bottom, right bottom;
  background-repeat: no-repeat, no-repeat;
  background-size: 30vw auto, 30vw auto;
  background-attachment: fixed, fixed;
  /* opacity: 0.3;  gewenste transparantie */
  z-index: -1;
  pointer-events: none;
}

/* Verberg achtergrondafbeeldingen vanaf 1700px schermbreedte */
@media (max-width: 1700px) {
  body::before {
    display: none;
  }
}

body.noscroll {
  overflow: hidden;
  height: 100vh;
}

/* === Kleuren petrol ===  */

:root {
	
	--spreen-kleur: #0a3d49;	
	--spreen-kleur-licht: #b3dbe4;
	--spreen-achtergrond-donker: #08333c;
	--spreen-achtergrond-licht: #dcf9ff;
	--spreen-kleur-hover: #008aab;
	--spreen-kleur-hover-donker: #0a3d49;	
	--spreen-kleur-border: #0a3d49;
	--spreen-kleur-border-licht: #80bac7;	
	--spreen-kleur-menubalk: #417989;
	--spreen-kleur-gradient-1: rgba(179, 219, 228, 0);
	--spreen-kleur-gradient-2: #a8d2db;	
}

ol,
ul {
	list-style: none;
}

ul.wp-block-list{
	list-style: unset!important;
	margin: 1.5rem;
}

blockquote,
q {
	quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
	content: '';
	content: none;
}

q {
	display: inline;
	font-style: italic;
}

q::before {
	content: '"';
	font-style: normal;
}

q::after {
	content: '"';
	font-style: normal;
}

a {
	text-decoration-skip-ink: auto;
	text-decoration: none;
	color: var(--spreen-kleur);
}

a,
a::before {
  transition: color 0.3s ease-in-out;
}

a:hover,
a:hover::before{
	color: var(--spreen-kleur-hover);
}

hr {
	background: url(./afbeeldingen/bghrloop.png) transparent center no-repeat;
	border: none;
	height: 8rem;
}

a[href^="tel"] {
	color: inherit;
	text-decoration: none;
}

button {
	outline: 0;
    background: none;
    border: none;
}

strong{
	font-weight: 600;
}

textarea,
input[type="text"],
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="search"],
input[type="password"] {
	-webkit-appearance: none;
	appearance: none;
	border-radius: 0;
}

input[type="search"] {
	-webkit-appearance: textfield;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

th,
td {
	padding: 2px;
}

big {
	font-size: 120%;
}

small,
sup,
sub {
	font-size: 80%;
}

sup {
	vertical-align: super;
}

sub {
	vertical-align: sub;
}

dd {
	margin-left: 20px;
}

kbd,
tt {
	font-family: courier;
	font-size: 12px;
}

ins {
	text-decoration: underline;
}

del,
strike,
s {
	text-decoration: line-through;
}

dt {
	font-weight: bold;
}

address,
cite,
var {
	font-style: italic;
}

* {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

/* === WordPress standaardklassen === */
.sticky {
  border-left: 4px solid #ccc;
  padding-left: 1em;
}

.bypostauthor {
  font-weight: bold;
}

.wp-caption {
  text-align: center;
  margin: 1em 0;
}

.wp-caption-text {
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5em;
}

.gallery-caption {
  font-size: 0.9em;
  text-align: center;
  color: #666;
}

.alignright {
  float: right;
  margin-left: 1em;
  margin-bottom: 1em;
  display: inline;
}

.alignleft {
  float: left;
  margin-right: 1em;
  margin-bottom: 1em;
  display: inline;
}

@media screen and (max-width: 600px) {
  .wp-block-image.alignleft,
  .wp-block-image.alignright {
    float: none !important;
    display: block !important;
    margin: 1em auto !important;
    text-align: center !important;
  }
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* === Screen reader en skip link === */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
	word-break: normal;
}

.screen-reader-text:focus {
	background-color: #f7f7f7;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
	clip: auto !important;
	-webkit-clip-path: none;
	clip-path: none;
	color: #007acc;
	display: block;
	font-size: 14px;
	font-size: .875rem;
	font-weight: 700;
	height: auto;
	right: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.skip-link {
	left: -9999rem;
	top: 2.5rem;
	z-index: 999999999;
	text-decoration: underline;
}

.skip-link:focus {
	display: block;
	left: 6px;
	top: 7px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	line-height: normal;
	padding: 15px 23px 14px;
	z-index: 100000;
	right: auto;
}

.visually-hidden:not(:focus):not(:active),
.form-allowed-tags:not(:focus):not(:active) {
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	clip: rect(1px 1px 1px 1px);
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* === Typografie via clamp in rem === */
:root {
	--font-base: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
	--font-small: clamp(0.875rem, 0.75rem + 0.3vw, 1rem);
	--font-large: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	--line-height: 1.6;
}

/* === Koppen === */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 0.5em;
	color: var(--spreen-kleur);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

h1 {
	font-size: clamp(2rem, 1.5rem + 2vw, 2.5rem);
}

h2 {
	font-size: clamp(1.5rem, 1.125rem + 1vw, 2rem);
}

h3 {
	font-size: clamp(1.5rem, 1.125rem + 1vw, 2rem);
}

h3.wp-block-heading{
	margin-top: 2rem;
}

h4 {
	font-size: clamp(1.25rem, 1rem + 0.5vw, 1.5rem);
}

h5 {
	font-size: var(--font-base);
}

h6 {
	font-size: var(--font-small);
}

/* === Dropshadow voorbeeld === */
.shadow-box {
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.handtekening{
	font-family: "Oooh Baby", normal;
	font-weight: 700;
	text-align: right;
	margin: 0 .5rem;
}


/*  Afbeelding inline in tekst met omloop */
.entry-content {
	line-height: 1.6;
}

.inline-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: .5rem;
	vertical-align: top;
	width: clamp(80px, 20vw, 220px);
	margin: .5em 1em .5em 0;
	float: left;
}

.single .entry-content figure.alignleft.size-full.is-resized img {
  width: clamp(80px, 20vw, 220px)!important;
  height: auto!important;
  object-fit: cover;
}

img {
	border-radius: .5rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.20);
}


p {
	text-align: justify;
	hyphens: auto;
	hyphenate-limit-chars: 10 3 4;
	line-height: 1.4;
	margin-bottom: 1rem;
}


.spreendetails {
	margin-top: 1rem !important;
}

.spreendetails li.button {

}

h2.entry-title{

}


.menu,
#search,
#site-description {
	margin-bottom: 3rem;
}

.spreendetails,
.spreen-post-rating {
	font-family: unset !important;
}


.spreendetails li a{
    font-weight: 700!important;
}

.lees-verder-blok {

}

.genre-blok ul.spreendetails,
.rubriek-blok ul.spreendetails,
.auteur-blok ul.spreendetails,
.reactie-blok ul.spreendetails{
	margin-top: 0!important;
}

.spreen-post-rating {
		margin: .5rem 0;
		float: left;
}

/* === Buttons === */

li.button {
    display: flex !important;
    gap: .3rem;
    cursor: pointer;
    align-items: flex-start;
    flex-direction: row;
    line-height: 1;
    margin-bottom: 1rem;
}

li.button::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: "\f0da";
  display: inline-block;
  vertical-align: text-top;
  margin-top: .05rem;
  color: inherit;
  transition: color 0.3s ease-in-out;
}

li.button-share::before {
  content: "\f1e1" !important;
}


li.button:hover::before {
  color: var(--spreen-kleur-hover);
}

li.button a {
  transition: color 0.3s ease-in-out;
  font-weight: 700;
}

li.button:hover a {
  color: var(--spreen-kleur-hover);
}

li.button {
  transition: transform 0.2s ease-in-out;
}

li.button:hover {
  transform: translateY(-1px);
}


/* === Basis layout === */

.datum{
	font-weight: 700;
}

.comment.depth-1 {
    margin: 0 -2rem 3rem;
    padding: 0 2rem 2rem;
    border-bottom: 1px solid #a4ccd4;
}

.comment .children {
  padding-left: 2em;
}

.header-cat{
    box-sizing: border-box;
    overflow: hidden;
    padding: 3rem 2rem 4rem;
    margin: 0 -2rem -1rem;
    border-bottom: .01rem solid var(--spreen-achtergrond-donker);
    position: relative;
    background: linear-gradient(
        to bottom,
        var(--spreen-kleur-gradient-1),
        var(--spreen-kleur-gradient-2)
    );
}


.boekinfo-blok.niet-leeservaring ul.spreendetails li {
  /* Alleen styling voor boekinfo in rubriekblok */
  font-weight: 700;
  padding: 0 .5rem;
}

  /* In rubriek en genre omschrijving (cat en tag) */
.archive-meta img,
.term-description img{
	width: clamp(80px, 20vw, 220px);
	margin: .5em 1em .5em 0;
	float: left;
    display: inline;
}

p.samenvatting{
	font-weight: 700;
    text-align: unset;
}



#pagina-titel.sticky-paginatitel {
    position: sticky;
    top: 2.45rem;
    z-index: 15;
    margin: 0 0 3rem;
    padding: 0 2rem;
    border-bottom: .15rem solid var(--spreen-kleur-border);
    background-color: var(--spreen-kleur-licht);
    text-align: center;
}

.titel-placeholder{
   margin-top: -1rem;
}

.titel-placeholder h2{
   margin: .5rem 0 0;
}



/* iPad / iOS Safari – sticky offset correctie */
@supports (-webkit-touch-callout: none) {
    #pagina-titel.sticky-paginatitel {
        top: 2.5rem; /* +0.25rem compensatie voor iOS */
		margin-top: -.4rem;
    }
}





@media (max-width: 768px) {

span.titel-homepage{
	font-size: smaller;
	}
	
#site-description{
	margin-bottom: -1rem;
}	
}

.nav-links{
	text-align: center;
}
/* klaar */




/* === Hoofdstructuur === */

#wrapper {
	position: absolute;
    width: 100%;
    max-width: 1280px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
	box-sizing: border-box;
	background: var(--spreen-kleur-licht);
}

#content{
	padding: 0 2rem;
}


/* === Header === */

#header {
  margin: 0 0 1rem;
  padding: 1rem 2rem;
  position: relative;
  height: 350px;
  max-height: 35vh;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  overflow: hidden;
  border-bottom: .2rem solid var(--spreen-kleur-border);
  background-image: url('afbeeldingen/header-leesdame.jpg');
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
}


#branding {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	color: var(--spreen-kleur-licht);
}

@media (max-width: 768px) {
  #branding {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
}

#site-title h1 a {
	font-size: clamp(3.5rem, 4vw + 0.75rem, 8rem);
	font-weight: 900;
	letter-spacing: .09rem;
	font-family: 'Oooh Baby';
	color: var(--spreen-kleur-licht);
	text-shadow:0 0 2px #000, 0 0 6px #000, 1px 1px 8px rgba(0, 0, 0, 0.9);
}

#site-description{
	font-family: 'Oooh Baby';
    font-weight: 900;
    font-size: clamp(1.25rem, 2.5vw + 0.5rem, 2rem);
	text-shadow:0 0 2px #000, 0 0 6px #000, 1px 1px 8px rgba(0, 0, 0, 0.9);
	text-align: center;
}

.ondertitel-header{
	font-size: clamp(1rem, 2.5vw + 0.5rem, 1.5rem);
	font-weight: 600;
}

/* === Wp Hoofstructuur === */


.entry-grid {
	display: grid;
	grid-template-columns: 7fr 3fr;
	gap: 2rem;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
}

.entry-grid>* {
	display: flex;
	flex-direction: column;
}

.entry-main {
	display: flex;
	flex-direction: column;
}

.entry-summary {
    box-sizing: border-box;
    overflow: hidden;
    padding: 3rem 2rem 4rem;
    margin: 0 -2rem -1rem;
    border-bottom: .01rem solid var(--spreen-achtergrond-donker);
    position: relative;
	    background: linear-gradient(
        to bottom,
        var(--spreen-kleur-gradient-1),
        var(--spreen-kleur-gradient-2)
    );
}

.entry-extra {
 margin-top: 0;
}

@media (max-width: 768px) {
	.entry-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
.entry-extra{
	margin-top: 0;
}
}


/* === Sidebar === */

.postinfo {
    background: linear-gradient(
        to bottom,
        var(--spreen-kleur-gradient-1),
        var(--spreen-kleur-gradient-2)
    );
	padding: .5rem;
	border: .01rem solid var(--spreen-kleur-border-licht);
	border-radius: .5rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.20);
	margin-bottom: 2rem;
	
}



/* === Footer === */

#footer{
    margin: 0;
    padding: 2rem;
    position: relative;
	background-color: var(--spreen-kleur-licht);
}

#footerbalk.sticky-footerbalk
{
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: 0;
    border-top: .15rem solid var(--spreen-kleur-border);
	border-bottom: .15rem solid var(--spreen-kleur-border);
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.20);
    color:  var(--spreen-kleur-licht);
	background-color: var(--spreen-kleur-menubalk);	
}

#footerbalk.sticky-footerbalk a{
	color:  var(--spreen-kleur-licht);
}

#footerbalk.sticky-footerbalk a:hover{
	color:  var(--spreen-kleur-hover-donker);
}

.footer-placeholder p{
    margin: 0;
    padding: 0 .2rem .2rem;
}


.footer-copyright {
    display: flex;
    justify-content: center;
    gap: .3rem;
    align-items: baseline;
    font-size: smaller;
    font-weight: 700;
}

.fa-copyright::before {
    content: "\f1f9";
}

#content{
	/* background: linear-gradient(to bottom, rgba(190, 229, 237, 0), #9dc9d3); */
}

.entry-summary {

}

/* Jaararchief – sticky navigatie (mobiel) */
.page-template-pagina-jaararchief .sidebar-eerste-naar-pagina.mobiel {
    display: block;
    position: sticky;
    top: 4rem;
	margin: -3rem -2rem 1rem;
    padding: .5rem 2rem 0;
    border-bottom: .15rem solid var(--spreen-kleur-border);
    background: #b3dbe4;
    align-self: start;
	z-index: 10;
}

/* Sidebar-variant uit op mobiel */
.page-template-pagina-jaararchief .eerste-alinea-naar-sidebar {
    display: none;
}

/* Desktop */
@media (min-width: 768px) {
    .page-template-pagina-jaararchief .sidebar-eerste-naar-pagina.mobiel {
        display: none;
    }

    .page-template-pagina-jaararchief .eerste-alinea-naar-sidebar {
        display: block;
    }
}







h3.widget-title{
	    font-size: large;
}

/* Container */
.post-navigation .nav-flex {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Items */
.post-navigation .nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  max-width: 48%;
}

/* Thumbnail */
.post-navigation .nav-thumb {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Tekstblok */
.post-navigation .nav-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

/* Labels */
.post-navigation .nav-meta {
  font-size: .75rem;
  color: var(--text-light);
}

.post-navigation .nav-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* --- Spiegeling voor de rechterkant (desktop) --- */
.post-navigation .nav-next {
  flex-direction: row-reverse; /* thumbnail rechts */

}

/* --- Mobiel: alles onder elkaar, thumbnail links, tekst rechts --- */
@media (max-width: 700px) {
  .post-navigation .nav-flex {
    flex-direction: column;
  }

  .post-navigation .nav-item {
    max-width: 100%;
    flex-direction: row; /* thumbnail links, tekst rechts */
    text-align: left;
  }

  .post-navigation .nav-next {
    flex-direction: row; /* spiegeling uitzetten */
  }
}

.subscribe-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
}

.subscribe-toggle i {
    transition: transform 0.25s ease;
}

.subscribe-toggle.active i {
    transform: rotate(90deg);
}

.subscribe-content {
    display: none;
    margin-top: 10px;
}

.wp-block-separator{
	border:none !important
}


p a {
    display: inline-flex;
    gap: .2rem;
    font-weight: 700;
    line-height: 1.4;
    align-items: baseline;
}

p a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0da";
    position: relative;
    top: .08em;
}



.wpcf7, 
.wpcf7-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
    width: 100% !important;
    box-sizing: border-box;
}


.entry-content p span {
    text-decoration: none !important;
    display: inline;
}






.auteur-header-flex {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.auteur-header-flex .archive-meta {
    flex: 2;
}

.auteur-header-flex .sidebar-tegel {
    flex: 1;
}

h3.meertekst{
	font-size: larger;
}


.jetpack_widget_social_icons ul{
	display: flex !important;
    gap: 1.5rem;
}

.nav-links{
	display: flex;
    gap: .5rem;
    align-items: baseline;
}

span.page-numbers.current{
    color: var(--spreen-kleur);
    font-weight: 900;
    font-size: unset;
    line-height: 1;
    border: 1px solid;
	border-radius: .2rem;
    padding: 0 .3rem .1rem;
    background-color: var(--spreen-kleur-licht);
}

p.meertekst{
	text-align: unset;
}


/* spreen-online footer */

.spreen-online-branding {
    --spreen-text: #0a3d49;
    --spreen-text-hover: #0091b3;
    --spreen-border: #95bec8;
    --spreen-bg: #96c1cc;
}

.spreen-online-branding{
  position: relative;
  margin: 5rem 0;
  text-align: center;
}

.spreen-online-branding-wrapper{
  width: fit-content;
  padding: .5rem 1rem;
  margin: 0 auto;
}

.spreen-online-branding,
a.spreen-badge{
  color: var(--spreen-text);
  font-size: clamp(0.875rem, 0.75rem + 0.3vw, 1rem);
  font-weight: 700;
}

a.spreen-badge{
  transition: color 0.5s ease;
}

a.spreen-badge:hover,
a.spreen-badge:focus-visible{
  color: var(--spreen-text-hover);
}

.spreen-online-branding p{
  margin: .2rem;
  text-align: center;
}

.spreen-badge{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-spreen-wrap{
  position: relative;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--spreen-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--spreen-bg);
}

.logo-spreen{
  width: 60%;
  height: auto;
  flex-shrink: 0;
}