/*
 * Quark 2 — user customizations for clarabloch.dk
 * Loaded last, so rules here override theme.css.
 */

:root {
  --cb-bg: #f6f4ef;          /* varm, lys "stentøj" */
  --cb-surface: #ffffff;
  --cb-ink: #1f2a2e;         /* mørk skifer */
  --cb-muted: #5b6a6f;
  --cb-accent: #2e6a78;      /* fjord / glasur */
  --cb-accent-dark: #22505b;
  --cb-line: #e3ded4;
  --cb-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

/* Baggrund og tekst */
html, body, #page-wrapper { background: var(--cb-bg); color: var(--cb-ink); }
a { color: var(--cb-accent); }
a:hover { color: var(--cb-accent-dark); }

/* Overskrifter i serif, roligere og mere kunstnerisk */
h1, h2, h3, h4, .cb-kicker {
  font-family: var(--cb-serif);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--cb-ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.5rem; }

/* Header: lys og luftig, logo lidt større */
#header { background: rgba(246, 244, 239, 0.92); border-bottom: 1px solid var(--cb-line); }
#header .navbar-brand img { height: 52px; width: auto; }
#header .navigation a { font-size: 0.95rem; }
#header .navigation a.active { background: var(--cb-accent); color: #fff; }

/* Indholdsboksen: blød og lys */
article, .card { background: var(--cb-surface); border: 1px solid var(--cb-line); box-shadow: none; }

/* Citat */
blockquote {
  border-left: 3px solid var(--cb-accent);
  font-family: var(--cb-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--cb-muted);
}

/* ---------- Forside: hero ---------- */
.cb-hero {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  margin: 0 0 2.5rem;
  background: var(--cb-accent-dark);
}
.cb-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cb-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 35, 40, 0) 30%, rgba(20, 35, 40, 0.65) 100%);
}
.cb-hero-text { position: relative; z-index: 1; padding: 2rem 2.2rem; color: #fff; }
.cb-hero-text h1 { color: #fff; margin: 0 0 1rem; text-transform: none; }
.cb-kicker { color: #fff; opacity: 0.9; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.85rem; margin: 0 0 0.4rem; }

/* Knapper */
.cb-btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  margin: 0.25rem 0.4rem 0.25rem 0;
  border-radius: 999px;
  background: var(--cb-accent);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--cb-accent);
}
.cb-btn:hover { background: var(--cb-accent-dark); border-color: var(--cb-accent-dark); }
.cb-btn-light { background: rgba(255, 255, 255, 0.92); color: var(--cb-ink) !important; border-color: #fff; }
.cb-btn-light:hover { background: #fff; }
.cb-btn-ghost { background: transparent; color: var(--cb-accent) !important; }
.cb-btn-ghost:hover { background: var(--cb-accent); color: #fff !important; }
.cb-cta { margin-top: 2.5rem; }

/* Portræt ved siden af "About me" på store skærme */
.cb-portrait img { width: 100%; max-width: 360px; height: auto; border-radius: 8px; display: block; }
@media (min-width: 900px) {
  .cb-portrait { float: right; width: 40%; max-width: 360px; margin: 0.5rem 0 1.5rem 2rem; }
}
.cb-cta, h2 { clear: none; }

/* Billeder inde på siderne */
.cb-image img { border-radius: 8px; }

/* ---------- Footer: Claras egen tekst i stedet for "Grav was made with..." ---------- */
#footer { background: transparent; border-top: 1px solid var(--cb-line); color: var(--cb-muted); }
#footer .container > p { display: none; }
#footer .container::before {
  content: "Clara Louise Bloch  ·  Keramik på bestilling  ·  clara@nanu.dk  ·  Havnegade, 5900 Rudkøbing";
  display: block;
  text-align: center;
  font-family: var(--cb-serif);
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

/* Mobil */
@media (max-width: 600px) {
  .cb-hero { min-height: 280px; }
  .cb-hero-text { padding: 1.4rem; }
  #header .navbar-brand img { height: 42px; }
}

/* ---------- Sprogvalg (DA / EN / KL) i menuen ---------- */
#header .navigation a[href*="sprog-"] {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  margin: 0 0.1rem;
  border: 1px solid var(--cb-line);
  border-radius: 999px;
  color: var(--cb-muted);
}
#header .navigation a[href*="sprog-"]:hover { border-color: var(--cb-accent); color: var(--cb-accent); }
#header .navigation li:has(> a[href*="sprog-da"]) { margin-left: 0.8rem; }

/* ---------- Mere luft og centreret indhold ---------- */

/* Værk-sider: fjern den tomme sidebar og centrer indholdet */
.columns.has-sidebar { grid-template-columns: minmax(0, 860px) !important; justify-content: center; }
.columns.has-sidebar > #sidebar { display: none; }

/* Indholdsboksen: god luft til højre og venstre */
article.content-item,
#body-wrapper article:not(.card) {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1.25rem, 6vw, 4.5rem);
}
.content-title { margin-bottom: 2rem; }
.content-title h1 a { text-decoration: none; color: inherit; }

/* Tekst: mere linjeafstand og luft mellem afsnit */
#body-wrapper p { line-height: 1.8; margin: 0 0 1.25em; }
#body-wrapper li { line-height: 1.7; margin-bottom: 0.45em; }
#body-wrapper ul { margin: 0 0 1.5em; padding-left: 1.25em; }
#body-wrapper article h2 { margin: 2.75rem 0 1rem; line-height: 1.25; }
#body-wrapper article h3 { margin: 2.25rem 0 0.75rem; font-size: 1.3rem; }
#body-wrapper blockquote { margin: 2rem 0; padding: 0.5rem 0 0.5rem 1.5rem; }

/* Billeder på værk-siderne: centreret og ikke højere end skærmen */
.cb-image { margin: 2.5rem 0 !important; text-align: center; }
.cb-image img { width: auto !important; max-width: 100% !important; max-height: 72vh; display: inline-block; }

/* Kortene på oversigten */
.card .card-body, .card .card-header { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Titler på oversigtskortene i samme skrift som resten */
.card .p-name, .card h2, .card h3, .card .card-title { font-family: var(--cb-serif); font-weight: 500; letter-spacing: 0; }

/* ---------- Bestillingsformular ---------- */
#body-wrapper form .form-field { margin-bottom: 1.25rem; }
#body-wrapper form label { font-weight: 600; margin-bottom: 0.35rem; display: inline-block; }
#body-wrapper form input[type="text"],
#body-wrapper form input[type="email"],
#body-wrapper form input[type="number"],
#body-wrapper form select,
#body-wrapper form textarea {
  width: 100%;
  border: 1px solid var(--cb-line);
  border-radius: 8px;
  background: #fff;
  padding: 0.7rem 0.9rem;
}
#body-wrapper form input:focus, #body-wrapper form select:focus, #body-wrapper form textarea:focus {
  outline: 2px solid var(--cb-accent); outline-offset: 1px;
}
#body-wrapper form .form-input-wrapper.checkbox label,
#body-wrapper form .checkboxes label { font-weight: 400; }
#body-wrapper form button[type="submit"], #body-wrapper form .button {
  background: var(--cb-accent); color: #fff; border: 0; border-radius: 999px;
  padding: 0.8rem 1.6rem; font-weight: 600; cursor: pointer;
}
#body-wrapper form button[type="submit"]:hover { background: var(--cb-accent-dark); }
.notices.green, .alert-success { border-radius: 8px; padding: 1rem 1.25rem; }
