:root {
    --accent: #ffffff;    
    --text-dark: #111;
    --text-medium: #444;
    --text-light: #777;
    --border-light: #e5e5e5;
    --bg-light: #f7f7f7;
}

body {
    background: var(--accent);
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.05em;
    margin: 0;
    padding: 0;
    padding-top: 70px; /* Ruimte voor fixed header */
}

/* ----------------------------------------------------
   HEADER
---------------------------------------------------- */
.topheader {
    background-color: red;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 20;
    border-bottom: 1px solid var(--border-light);
    padding: 0.4em 0;
    background-color: red;
}

.logo {
    background: url("https://www.denieuwslijst.nl/pic/logo_klein.png") center/contain no-repeat;
    width: 9em;
    height: 1.8em;
    margin: 0 auto;
}

/* Header container - vervangt de tabel */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.header-left,
.header-right {
    flex: 0 0 47%;
    text-align: center;
}

.header-center {
    flex: 0 0 6%;
}

/* BASIS STYLES (voor desktop) */
.zoeker form {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.zv {
    font-size: 1em;
    color: #00172f;
    width: 12em;
}

input[type=submit].klvergr {
    background: url("https://www.denieuwslijst.nl/pic/vergrglkl.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    border: 0;
    height: 2em;
    width: 1.8em;
    margin-left: 0.5em;
    flex-shrink: 0;
}

.wrapper {
    max-width: 80%;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 5em;
    margin-left: auto;
    object-fit: contain;
}

.inpage-wrapper {
    max-width: 80%;
    margin-top: 0;
    margin-right: auto;
    margin-left: auto;
    object-fit: contain;
}

/* ----------------------------------------------------
   SOCIAL ICONS
---------------------------------------------------- */
.social-row {
    display: flex;
    justify-content: center;
    gap: 0.6em;
    margin-top: 0.5em;
    margin-bottom: 1em;
}

.social-row img {
    width: 1.8em;
    height: 1.8em;
    border-radius: 6px;
}

.deel {
    width: 1.8em;
    height: 1.8em;
    border-radius: 6px;
    margin: 0 0.3em;
}

.seperator {
    border-top: 0.3em solid #c8c8c8;
    max-width: 99%;
    height: 0.7em;
    margin: auto;
    margin-top: 0.1em;
    margin-bottom: 0.1em;
}

.meestgl-text-side {
    flex: 1;
}

/* ----------------------------------------------------
   ADVERTENTIES
---------------------------------------------------- */
.inlinead-wrapper {
    width: 100%;
    max-width: 100%;
    margin: auto;
    margin-bottom: 1em;
    margin-top: 0;
    text-align: center;
    overflow: visible;
    clear: both;
}

.inlinead {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    display: inline-block;
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 2.4em;
    background-color: red;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1em;
	 z-index: 10;
}

#allmenu {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

#allmenul {
    flex: 0 0 auto;
    margin-left: 5%;
    white-space: nowrap;
}

#allmenur {
    flex: 1;
    margin-left: 2%;
    white-space: nowrap;
}

.menudotpic {
    width: 0.55em;
    height: 1.2em;
}

.homeicon {
    width: 1.1em;
    height: 1.1em;
}

.copy {
    display: inline-block;
    margin-left: 0.5em;
    font-size: 0.9em;
    white-space: nowrap;
}

a.black {
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

/* ----------------------------------------------------
   LINKS
---------------------------------------------------- */
a:link,
a:visited,
a:hover,
a:active {
    color: #000;
    text-decoration: none;
}

a:visited {
    color: #5b5b5b;
}

a.black:hover {
    color: var(--accent);
}

/* ====================================================
   MOBIEL (max 600px)
   ==================================================== */
@media only screen and (max-width: 600px) {
    
    body {
        padding-top: 85px;
    }

    /* Header - 2 regels */
    .header-left,
    .header-right {
        flex: 0 0 100%;
    }
    .header-center {
        display: none;
    }
    .header-container {
        flex-direction: column;
        gap: 5px;
    }
    
    /* Zoeker blijft op 1 regel */
    .zoeker {
        width: auto;
        margin: 0;
    }
    
    .zoeker form {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        white-space: nowrap;
        justify-content: center;
    }
    
    .zv {
        font-size: 0.9em;
        width: 15em;
        flex: 0 0 auto;
        min-width: 15em;
    }
    
    input[type=submit].klvergr {
        height: 1.8em;
        width: 1.6em;
        margin-left: 0.3em;
        flex-shrink: 0;
    }
    
	.diver {
	font-size: 0.9em;
}
	h1 {
 font-size: 0.9em;
		    font-weight: bold;
    text-decoration: none;  
	}
	
	.avw {
  font-size: 0.8em;
}

    /* Social icons */
    .social-row {
        margin-top: 0.5em;
        margin-bottom: 0.8em;
        gap: 0.4em;
    }
    
    .social-row img {
        width: 1.4em;
        height: 1.4em;
    }
    
	/* Wrappers */
	.wrapper {
    max-width: 97%;
    margin-top: 0;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 5em;
    object-fit: contain;
	padding:0.5em;
}
	
    .inpage-wrapper {
        max-width: 98%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0;
        margin-bottom: 1em;
        padding: 0 5px;
    }
    
    /* Advertenties */
    .inlinead-wrapper {
        margin: 10px 0;
        padding: 0;
    }
    
    .adsbygoogle {
        display: block !important;
        width: 100% !important;
        min-width: 250px !important;
    }
    
    /* Footer */
    .footer {
        height: 2.1em;
		 z-index: 10;
    }
    
    .copy {
        font-size: 0.7em;
    }
}

/* EXTRA KLEINE TELEFOONS (max 400px) */
@media only screen and (max-width: 400px) {
    body {
        padding-top: 95px;
    }
    
    .zv {
        width: 7em;
        font-size: 0.8em;
    }
    
    input[type=submit].klvergr {
        height: 1.6em;
        width: 1.4em;
    }
   
}