/*
Theme Name: Polzin Advisory
Template: twentytwentyfive
Version: 0.1.4
Text Domain: polzin-advisory
*/

:root {
  --mp-paper: #f3f6fb;
  --mp-white: #ffffff;
  --mp-ink: #192b46;
  --mp-muted: #4a5d72;
  --mp-accent: #00399b;
  --mp-line: #d5dfed;
  --mp-contact: #102f61;
  --mp-mint: #e6efff;
  --mp-width: 1170px;
}

.mp-shell {
  width: min(var(--mp-width), calc(100% - 6rem));
  margin-inline: auto;
}

.mp-header {
  color: var(--mp-ink);
  background: var(--mp-white);
  border-bottom: 1px solid var(--mp-line);
}

.mp-header-inner, .mp-footer-inner, .mp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.mp-header-inner { min-height: 83px; }
.mp-brand { margin: 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -.045em; }
.mp-brand img { display: block; width: clamp(9rem, 20vw, 17rem); max-width: 100%; height: auto; }
/* Show the original MP monogram and wordmark from the combined 644 × 155 logo. */
.mp-brand a:has(> img[src*="Logo-mit-Portrait-klein.png"]) {
  display: block;
  position: relative;
  overflow: hidden;
  width: clamp(9rem, 18vw, 15rem);
  aspect-ratio: 530 / 95;
}
.mp-brand img[src*="Logo-mit-Portrait-klein.png"] {
  position: absolute;
  width: 121.5094%;
  max-width: none;
  left: -21.5094%;
  top: -54.7368%;
}
.mp-brand a, .mp-nav a, .mp-footer a { color: inherit; text-decoration: none; }
.mp-nav { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.5rem); font-size: .9rem; font-weight: 700; }
.mp-nav a:hover, .mp-footer a:hover, .mp-brand a:hover { text-decoration: underline; text-underline-offset: .25em; }

.mp-front, .mp-front + footer { margin-block-start: 0 !important; }
.mp-home { margin-block-start: 0 !important; color: var(--mp-ink); }
.mp-home > * { margin-block: 0; }
.mp-home p, .mp-home h1, .mp-home h2, .mp-home h3 { margin-block: 0; }
.mp-home figure { margin: 0; }
.mp-home h1, .mp-home h2 { color: inherit; letter-spacing: -.065em; line-height: 1.02; font-weight: 750; }
.mp-home h2 { font-size: clamp(2.25rem, 4.6vw, 4.1rem); }
.mp-home .mp-label {
  color: var(--mp-accent);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.mp-hero { background: var(--mp-paper); padding-block: clamp(2.75rem, 6vw, 5.75rem); }
.mp-hero-inner { display: grid; grid-template-columns: 1.28fr 1fr; align-items: center; gap: clamp(2.5rem, 6vw, 6rem); }
.mp-hero-copy { display: grid; justify-items: start; gap: 1.55rem; }
.mp-home h1 { font-size: clamp(3.25rem, 5.2vw, 5.05rem); }
.mp-intro { max-width: 41ch; color: var(--mp-muted); font-size: clamp(1.06rem, 1.5vw, 1.23rem); line-height: 1.65; }
.mp-home .mp-portrait { overflow: hidden; border-radius: 6px 6px 54px 6px; background: #263d60; box-shadow: 10px 10px 0 #dae6f7; }
.mp-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1.12; object-fit: cover; object-position: 52% center; }

.mp-button .wp-block-button__link, .mp-contact button[type=submit], .mp-contact .ff-btn-submit {
  display: inline-block;
  border: 1px solid var(--mp-accent);
  border-radius: 4px;
  padding: .79rem 1.15rem;
  background: var(--mp-accent);
  color: white;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}
.mp-button .wp-block-button__link:hover { background: var(--mp-ink); border-color: var(--mp-ink); }
.mp-text-link a { color: var(--mp-accent); font-size: .91rem; font-weight: 800; text-decoration: underline; text-underline-offset: .3em; }

.mp-articles { background: var(--mp-white); padding-block: clamp(3rem, 6vw, 5.5rem); }
.mp-section-head { align-items: end; margin-bottom: 2rem; }
.mp-article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.15rem, 2.5vw, 2.2rem);
  padding: 0;
  margin: 0;
  list-style: none;
}
.mp-article-grid > li, .mp-article-grid > article { display: grid; align-content: start; gap: .68rem; margin: 0; }
.mp-article-grid .wp-block-post-featured-image { margin-bottom: .35rem; overflow: hidden; border-radius: 4px; background: var(--mp-line); }
.mp-article-grid .wp-block-post-featured-image img { display: block; width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; }
.mp-article-grid .wp-block-post-date { color: var(--mp-muted); font-size: .82rem; font-weight: 700; }
.mp-article-grid h2, .mp-article-grid h3 {
  font-size: clamp(1.18rem, 2.1vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.2;
}
.mp-article-grid h2 a, .mp-article-grid h3 a { text-decoration: none; }
.mp-article-grid h2 a:hover, .mp-article-grid h3 a:hover { text-decoration: underline; text-underline-offset: .18em; }
.mp-article-grid .wp-block-post-excerpt { color: var(--mp-muted); font-size: .92rem; line-height: 1.58; }

.mp-offer { background: var(--mp-paper); border-top: 1px solid var(--mp-line); padding-block: clamp(3rem, 6vw, 5.5rem); }
.mp-offer-inner, .mp-contact-inner { display: grid; grid-template-columns: .95fr 1.35fr; gap: clamp(2rem, 7vw, 7rem); }
.mp-offer-title, .mp-contact-copy { display: grid; justify-items: start; align-content: start; gap: 1.25rem; }
.mp-services { display: grid; }
.mp-service {
  display: grid;
  gap: .4rem;
  border-top: 1px solid #c7d5e6;
  padding-block: 1.13rem;
}
.mp-service:first-child { border-top: 2px solid var(--mp-accent); }
.mp-service:last-child { border-bottom: 1px solid #c7d5e6; }
.mp-service h3 { font-size: 1.13rem; letter-spacing: -.035em; font-weight: 800; }
.mp-service p { color: var(--mp-muted); font-size: .96rem; }

.mp-contact { background: var(--mp-contact); color: #ffffff; padding-block: clamp(3.25rem, 7vw, 6.25rem); }
.mp-contact h2, .mp-contact a { color: inherit; }
.mp-contact-copy p { max-width: 31ch; color: #e0eafa; line-height: 1.65; }
.mp-contact-fields { min-width: 0; }
.mp-form { display: grid; gap: 1rem; }
.mp-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.mp-form label, .mp-contact .ff-el-input--label label { display: block; margin-bottom: .36rem; color: #ffffff; font-size: .88rem; font-weight: 750; }
.mp-contact input:not([type=checkbox]):not([type=radio]):not([type=submit]), .mp-contact textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #a9bcda;
  border-radius: 4px;
  padding: .65rem .8rem;
  background: #fafcff;
  color: #192b46;
  font: inherit;
}
.mp-contact textarea { min-height: 6.5rem; resize: vertical; }
.mp-contact .mp-button .wp-block-button__link, .mp-contact button[type=submit], .mp-contact .ff-btn-submit {
  justify-self: start;
  background: var(--mp-mint);
  border-color: var(--mp-mint);
  color: var(--mp-ink);
}
.mp-contact .mp-button .wp-block-button__link:hover, .mp-contact button[type=submit]:hover, .mp-contact .ff-btn-submit:hover {
  background: #ccdeff;
  border-color: #ccdeff;
}
.mp-form .mp-form-note, .mp-form [role=status] { color: #e0eafa; font-size: .83rem; }
.mp-form [role=status]:empty { display: none; }

.mp-footer { padding-block: 1.65rem; background: var(--mp-paper); color: var(--mp-muted); font-size: .84rem; }
.mp-footer p { margin: 0; }
.mp-footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.mp-home :focus-visible, .mp-header :focus-visible, .mp-footer :focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.mp-contact input:focus-visible, .mp-contact textarea:focus-visible { outline-color: var(--mp-mint); }

@media (max-width: 850px) {
  .mp-shell { width: min(var(--mp-width), calc(100% - 3rem)); }
  .mp-hero-inner { gap: 2.5rem; }
  .mp-home h1 { font-size: clamp(2.85rem, 6.4vw, 5rem); }
  .mp-offer-inner, .mp-contact-inner { gap: 2.5rem; }
}

@media (max-width: 640px) {
  .mp-shell { width: calc(100% - 2.25rem); }
  .mp-header-inner { min-height: 68px; gap: .75rem; }
  .mp-brand { font-size: 1rem; }
  .mp-nav { gap: .78rem; font-size: .79rem; }
  .mp-hero-inner, .mp-article-grid, .mp-offer-inner, .mp-contact-inner { grid-template-columns: 1fr; }
  .mp-hero-inner, .mp-article-grid { gap: 1.9rem; }
  .mp-hero-copy { gap: 1.05rem; }
  .mp-home h1 { font-size: clamp(2.8rem, 11.1vw, 4.8rem); }
  .mp-portrait img { aspect-ratio: 1.5; }
  .mp-section-head { flex-wrap: wrap; gap: .55rem 1rem; margin-bottom: 1.5rem; }
  .mp-footer-inner { align-items: start; flex-direction: column; gap: .55rem; }
}

@media (max-width: 360px) {
  .mp-header-inner { align-items: start; flex-direction: column; justify-content: center; padding-block: .8rem; }
  .mp-form-row { grid-template-columns: 1fr; }
}

.mp-sub { padding-block: clamp(2.5rem,6vw,5rem); }
.mp-sub-hero { padding-bottom: clamp(2.5rem,5vw,4.5rem); border-bottom: 2px solid var(--mp-accent); }
.mp-sub-copy { display: grid; gap: 1.25rem; max-width: 52rem; }
.mp-sub .mp-intro { max-width: 58ch; }
.mp-sub .mp-with-photo { display: grid; align-items: center; grid-template-columns: 1.35fr 1fr; gap: 3rem; }
.mp-with-photo img { display: block; width: 100%; height: auto; border-radius: 5px 5px 46px 5px; }
.mp-with-photo figcaption { color: var(--mp-muted); margin-top: .55rem; font-size: .82rem; }
.mp-sub-section { margin-block: clamp(2.7rem,5vw,4.5rem); }
.mp-home .mp-sub-section h2 { font-size: clamp(1.8rem,3.2vw,3rem); margin-bottom: 1.5rem; }
.mp-sub-section p { max-width: 72ch; line-height: 1.7; }
.mp-sub-card { border-top: 1px solid var(--mp-line); padding: 1.5rem 0; }
.mp-sub-card h3 { font-size: 1.4rem; color: var(--mp-accent); margin-bottom: .45rem; }
.mp-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mp-role-grid > .mp-sub-card { margin-block: 0; }
.mp-role-grid .mp-sub-card { background: var(--mp-paper); padding: clamp(1rem,3vw,2rem); border-top: 3px solid var(--mp-accent); }
.mp-history-row { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; border-top: 1px solid var(--mp-line); padding-block: .9rem; }
.mp-year { color: var(--mp-accent); font-weight: 700; }
.mp-sub-cta { background: var(--mp-contact); color: white; padding: clamp(1.5rem,4vw,3rem); }
.mp-sub-cta a { color: white; }
.mp-home .mp-sub-cta h2 { font-size: clamp(1.7rem,3vw,2.7rem); margin-bottom: 1rem; }
.mp-sub .wp-block-post-template li { border-top: 1px solid var(--mp-line); padding-block: 1.2rem; }
.mp-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
@media (max-width: 650px) {
  .mp-sub .mp-with-photo, .mp-role-grid { grid-template-columns: 1fr; }
  .mp-history-row { grid-template-columns: 1fr; gap: .1rem; }
}

/* Editorial pages */
.mp-offer-image { margin-top: 2rem !important; }
.mp-offer-image img { display: block; width: min(100%, 1024px); height: auto; }
.mp-sub-card p + p { margin-top: .75rem; }
.journal { padding-block: clamp(2rem,5vw,5rem); }
.journal-head { display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:1.5rem; margin-bottom:2.3rem; }
.journal-head h1 { margin:.5rem 0 .7rem; }
.journal-head p { color:var(--mp-muted); }
.journal-switch,.topic-nav { display:flex; flex-wrap:wrap; gap:.65rem; }
.journal-switch a,.topic-nav a { padding:.5rem 1rem; color:var(--mp-accent); border:1px solid #b0c6e8; border-radius:2rem; font-weight:700; text-decoration:none; }
.journal-switch a:hover,.topic-nav a:hover { background:#e3edfc; }
.journal-grid,.topic-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; padding:0; list-style:none; }
.journal-card,.journal-grid > li { background:var(--mp-paper); border-radius:8px; overflow:hidden; margin:0; }
.journal-grid > li { padding:1.3rem; box-sizing:border-box; }
.journal-grid > :first-child { grid-column:1/-1; background:#112e60; color:white; }
.journal-grid > .journal-card:first-child,.journal-grid > li:first-child:has(figure) { display:grid; grid-template-columns:1.05fr 1fr; align-items:center; }
.journal-grid > li:first-child figure { grid-row:span 4; }
.journal-grid img,.topic-grid img { display:block; width:100%; height:auto; aspect-ratio:1.8; object-fit:cover; }
.journal-copy { padding:clamp(1rem,2.5vw,2rem); }
.journal-card h2,.journal-grid .wp-block-post-title { font-size:clamp(1.35rem,2.4vw,2rem); line-height:1.12; margin:.65rem 0; letter-spacing:-.04em; }
.journal-card a,.journal-grid > li a { color:inherit; text-decoration:none; }
.journal-card a:hover,.journal-grid > li a:hover { text-decoration:underline; }
.journal-card p,.journal-card time { font-size:.95rem; }
.journal-card time { display:block; margin-top:.9rem; }
.journal-grid > :first-child .mp-label { color:#b8d6ff; }
.journal-grid > :first-child h2 { font-size:clamp(1.8rem,3vw,3rem); }
.journal-archive { margin-top:2rem; padding:1.1rem 0; border-block:1px solid var(--mp-line); }
.journal-archive summary { cursor:pointer; color:var(--mp-accent); font-weight:750; }
.journal-archive ul { padding:0; list-style:none; }
.journal-archive li { padding:.55rem 0; }
.journal-archive time { color:var(--mp-muted); margin-right:.7rem; }
.topic-nav { border-top:2px solid var(--mp-accent); padding-top:1.4rem; }
.topic-section { margin-top:3rem; }
.topic-section > h2 { font-size:clamp(1.8rem,3.7vw,3rem); margin-bottom:1.2rem; }
.topic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.topic-grid .journal-card { border-left:4px solid var(--mp-accent); }
@media (max-width:760px) {
  .journal-grid,.topic-grid,.journal-grid > .journal-card:first-child,.journal-grid > li:first-child:has(figure) { grid-template-columns:1fr; }
}
.mp-sub-section .wp-block-details { border-top: 1px solid var(--mp-line); padding: 1rem 0; }
.mp-sub-section .wp-block-details summary { cursor: pointer; color: var(--mp-accent); font-weight: 750; }
.mp-sub-section .wp-block-details p { margin-top: .85rem; }
.mp-sub-section:has(#medien) p { padding: .7rem 0; border-bottom: 1px solid var(--mp-line); }
.mp-footer a[href*="linkedin.com/"]::before,
.mp-sub-section a[href*="linkedin.com/"]::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -.18em;
  margin-right: .25em;
  background: url("assets/linkedin.svg") center / contain no-repeat;
}
.mp-imprint-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: start; gap: 2rem 3rem; padding: clamp(1.4rem,4vw,3rem); border: 1px solid var(--mp-line); border-radius: 8px; background: white; }
.mp-imprint-grid strong { display: inline-block; margin-bottom: .5rem; }
.mp-imprint-channels { display: grid; justify-items: start; gap: 1.6rem; }
.mp-imprint-image img { display: block; width: 265px; max-width: 100%; height: auto; }
.mp-home p.mp-imprint-note { margin-top: 1.4rem; color: var(--mp-muted); font-size: .9rem; }
@media (max-width: 650px) { .mp-imprint-grid { grid-template-columns: 1fr; } }
/* WordPress magazine lead */
.journal-grid > li:first-child { padding: 0; }
.journal-grid > li:first-child figure { grid-row: auto; margin: 0; }
.journal-grid > li:first-child .journal-lead-copy { padding: clamp(1.25rem, 2.5vw, 2rem); }
.journal-grid > li:first-child .wp-block-post-title { font-size: clamp(1.7rem,3vw,2.65rem); font-weight: 750; margin: .6rem 0; }
.journal-grid > li:first-child .wp-block-post-terms { font-size: .8rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: #c4dfff; }
.journal-grid > li:first-child .wp-block-post-excerpt { color: white; font-size: 1.05rem; line-height: 1.55; margin: 0; }
.journal-grid > li:first-child .wp-block-post-date { color: #e4efff; font-size: .9rem; margin-top: 1rem; }

.mp-offer-hero { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; gap:clamp(2rem,4vw,3rem); }
.mp-home .mp-offer-hero h1 { font-size:clamp(2.25rem,4.3vw,3.82rem); line-height:1.05; }
.mp-offer-visual { position:relative; isolation:isolate; width:100%; max-width:500px; min-width:0; margin-inline:auto; padding-bottom:20px; }
.mp-home .mp-offer-photo { width:85%; margin:0; }
.mp-offer-photo img { display:block; width:100%; height:auto; aspect-ratio:1.02; object-fit:cover; object-position:50% 33%; border-radius:12px; }
.mp-offer-roles { position:absolute; right:0; bottom:0; max-width:100%; display:grid; justify-items:end; gap:8px; }
.mp-home .mp-offer-roles p { box-sizing:border-box; max-width:100%; margin:0; padding:12px 16px; border-radius:7px; background:rgba(237,249,255,.82); color:#102e47; border:1px solid rgba(255,255,255,.82); backdrop-filter:blur(15px); -webkit-backdrop-filter:blur(15px); box-shadow:0 5px 18px #16364e22; font-size:1rem; line-height:1.3; font-weight:650; }
@media (max-width:750px) {
  .mp-offer-hero { grid-template-columns:1fr; gap:26px; }
  .mp-offer-visual { max-width:440px; }
  .mp-home .mp-offer-photo { width:88%; }
  .mp-home .mp-offer-roles p { font-size:.875rem; padding:10px 12px; }
}

@media (max-width: 767px) {
  .mp-header .mp-header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .375rem;
    padding-block: 1rem .25rem;
  }
  .mp-header .mp-brand a:has(> img[src*="Logo-mit-Portrait-klein.png"]) {
    width: clamp(12rem, 58vw, 16rem);
  }
  .mp-header-inner > .mp-nav { margin-block: 0; }
  .mp-header .wp-block-navigation__container {
    gap: clamp(1rem, 5vw, 1.5rem);
    font-size: 1rem;
  }
  .mp-header .mp-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
