/* Info pages /mietrecht and /stellungnahme: MAWA's long texts on the black and gold brand.
   Loads after mawa-ci.css (tokens, .ci-*), landingpage.css (header, footer, buttons, contact block, reveal) and
   ueber-uns.css (hero, facts, contents, chapters, prose, statements, quote); this file adds the hero variants, the
   single reading column, the motifs in the article and the blocks of these texts (prefix .ip-). Colours: tokens only,
   gold with transparency. */

/* ---------- Hero without a motif ---------- */
.bio-hero.ip-hero{padding:56px 0 48px}
@media (min-width:900px){.bio-hero.ip-hero{padding:96px 0 64px}}
.ip-title{margin:20px 0 26px;max-width:22ch;font-family:var(--ci-font-head);font-size:clamp(32px,6.4vw,68px);font-weight:800;letter-spacing:-.045em;line-height:1.06;color:var(--ci-white);overflow-wrap:break-word;hyphens:manual;text-wrap:balance}
.ip-title__company{display:block;margin-bottom:18px;color:var(--ci-gold);font-family:var(--ci-font-body);font-size:12px;font-weight:800;letter-spacing:.22em;line-height:1.5;text-transform:uppercase}
.ip-byline{margin:0;color:var(--ci-muted);font-size:15px;letter-spacing:.04em}
.ip-hero .ci-btn{width:100%}
@media (min-width:600px){.ip-hero .ci-btn{width:auto}}
.ip-hero .bio-facts{margin-top:48px}

/* ---------- Hero with a motif (ueber-uns.css: .bio-hero__art, .bio-hero__img, .bio-hero__text) ---------- */
/* Below 900 px the motif runs edge to edge from the top of the hero and fades into the text */
@media (max-width:899px){.bio-hero.ip-hero--art{padding-top:0}}
/* Tenancy law: the old building keeps its roofline in the phone and tablet crops; beside the title from 900 px */
.ip-hero--beside .bio-hero__img{object-position:50% 16%}
@media (min-width:600px) and (max-width:899px){.ip-hero--beside .bio-hero__img{object-position:50% 6%}}
@media (min-width:900px){.ip-hero--beside .ip-title{font-size:clamp(36px,4.4vw,60px)}}
/* Statement (single reading column): the pen stays above the title at every width; from 900 px it fills the column
   and its edges dissolve into the page instead of running to the screen edges */
@media (min-width:600px){.ip-hero--stacked .bio-hero__img{object-position:50% 56%}}
@media (min-width:900px){
  .bio-hero.ip-hero--stacked{padding-top:40px}
  .ip-hero--stacked .bio-hero__art{max-width:none;margin:0}
  .ip-hero--stacked .bio-hero__img{aspect-ratio:16 / 9;-webkit-mask-image:linear-gradient(90deg,transparent,black 14%,black 86%,transparent),linear-gradient(180deg,transparent,black 12%,black 58%,transparent 96%);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,black 14%,black 86%,transparent),linear-gradient(180deg,transparent,black 12%,black 58%,transparent 96%);mask-composite:intersect}
  .ip-hero--stacked .bio-hero__text{margin-top:-72px}
}

/* ---------- Reading column ---------- */
/* 740 px as on /ueber-uns up to 1200 px; wider screens widen it (800 px at 1440 px, 880 px from 1760 px) so the long
   texts do not look squeezed into the middle. Body text and lead grow in proportion, so a line keeps the length it has
   at 740 px instead of getting harder to follow. The figures' sizes in the views follow the same formula. */
:root{--ip-column:clamp(740px,25vw + 440px,880px)}
.bio-article{max-width:var(--ip-column)}
@media (min-width:900px){
  .bio-prose p{font-size:calc(var(--ip-column) * 18 / 740)}
  .bio-prose .bio-lead{font-size:calc(var(--ip-column) * 21 / 740)}
}
@media (min-width:1100px){.bio-layout{grid-template-columns:minmax(190px,230px) minmax(0,var(--ip-column))}}

/* Single reading column (statement): hero and text share the width of the article */
.ci-wrap.ip-narrow{max-width:calc(var(--ip-column) + 2 * var(--ci-gutter))}
.ip-single{padding-top:16px;padding-bottom:88px}
@media (min-width:900px){.ip-single{padding-top:32px}}

/* Introduction before the first chapter */
.ip-intro{margin-top:16px}
@media (min-width:1100px){.ip-intro{margin-top:104px}}
.bio-prose .ip-note{padding:14px 18px;border:1px solid var(--ci-line);background:var(--ci-panel);color:var(--ci-muted);font-size:15px;line-height:1.6}

/* ---------- Motifs in the article ---------- */
/* The width of the reading column; every edge dissolves into the page, so the motif's black becomes the page's */
.ip-figure{margin:44px 0}
.bio-prose > .ip-figure:first-child{margin-top:0}
.ip-figure__image,.ip-seal__image{display:block}
.ip-figure__image img,.ip-seal__image img{display:block;width:100%;height:auto;-webkit-mask-image:linear-gradient(90deg,transparent,black 9%,black 91%,transparent),linear-gradient(180deg,transparent,black 10%,black 86%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,black 9%,black 91%,transparent),linear-gradient(180deg,transparent,black 10%,black 86%,transparent);mask-composite:intersect}
/* Closing lines of the long read: the key above them, the lead starts on its faded floor (as the handshake on
   /ueber-uns); the text is positioned so it paints above the masked picture */
.ip-seal__image{margin:0 0 -28px}
.ip-seal__image img{-webkit-mask-image:linear-gradient(90deg,transparent,black 9%,black 91%,transparent),linear-gradient(180deg,transparent,black 10%,black 66%,transparent 96%);mask-image:linear-gradient(90deg,transparent,black 9%,black 91%,transparent),linear-gradient(180deg,transparent,black 10%,black 66%,transparent 96%)}
.bio-prose .ip-seal__lead,.bio-prose .ip-seal__slogan{position:relative}

/* ---------- Text blocks ---------- */
/* Long compounds (Prozessfinanzierungsunternehmen) must not push a 320 px phone sideways; hyphenation only
   where the column is that narrow, wider screens keep the calm unhyphenated text of /ueber-uns */
.bio-article .bio-prose p,.bio-article .bio-prose li{overflow-wrap:break-word}
@media (max-width:359px){.bio-article .bio-prose p,.bio-article .bio-prose li{hyphens:auto}}
.ip-h3{margin:56px 0 20px;font-family:var(--ci-font-head);font-size:clamp(21px,2.4vw,27px);font-weight:800;letter-spacing:-.025em;line-height:1.25;color:var(--ci-white);overflow-wrap:break-word;text-wrap:balance}
.ip-h3::before{content:"";display:block;width:36px;height:2px;margin-bottom:16px;background:var(--ci-gold-button)}

/* Paragraphs the mail sets in bold as a whole: a gold rule instead of the marker */
.bio-prose .ip-key{padding-left:20px;border-left:2px solid var(--ci-gold-deep);color:var(--ci-white)}
.bio-prose .ip-key strong{background:none}

/* Plain lists of the mail */
.ip-list,.ip-costs{display:grid;gap:10px;margin:6px 0 30px;padding:0;list-style:none}
.ip-list li,.ip-costs li{position:relative;padding:14px 18px 14px 46px;border:1px solid var(--ci-line);background:var(--ci-panel);color:var(--ci-white);font-size:16px;line-height:1.6}
.ip-list li::before,.ip-costs li::before{content:"";position:absolute;left:19px;top:22px;width:8px;height:8px;border:1px solid var(--ci-gold);transform:rotate(45deg)}
.ip-costs li{color:rgba(244,240,233,.86)}
.bio-prose .ip-costs strong{display:block;margin-bottom:2px;background:none;color:var(--ci-gold-bright)}

/* The ten offers */
.ip-offers{display:grid;gap:14px;margin:8px 0 40px;padding:0;list-style:none}
/* Grid items may shrink below their longest word, which then breaks (e.g. BETRIEBSKOSTENABRECHNUNGEN at 320 px) */
.ip-offer{position:relative;min-width:0;padding:26px 22px 6px;border:1px solid var(--ci-line);background:radial-gradient(circle at 100% 0%,rgba(215,170,88,.1) 0,transparent 55%),var(--ci-panel)}
.ip-offer__no{position:absolute;right:18px;top:16px;font-family:var(--ci-font-head);font-size:40px;font-weight:800;letter-spacing:-.06em;line-height:1;color:transparent;-webkit-text-stroke:1px var(--ci-gold)}
.bio-prose .ip-offer__rule{margin:0 54px 12px 0;font-family:var(--ci-font-head);font-size:19px;font-weight:700;letter-spacing:-.02em;line-height:1.35;color:var(--ci-white)}
.bio-prose .ip-offer__rule strong{background:none}
.bio-prose .ip-offer__title{margin:0 0 12px;color:var(--ci-gold);font-size:12px;font-weight:800;letter-spacing:.16em;line-height:1.5;text-transform:uppercase;overflow-wrap:break-word}
@media (max-width:359px){.bio-prose .ip-offer__title{letter-spacing:.1em;hyphens:auto}}
.bio-prose .ip-offer p:not([class]){font-size:16px;line-height:1.7}
@media (min-width:760px){.ip-offers{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Requirements of the AK Altbau-Mietencheck: numbered steps on a line */
.ip-steps{margin:8px 0 36px;padding:0;list-style:none;counter-reset:step}
.ip-step{position:relative;padding:0 0 8px 52px;counter-increment:step}
.ip-step::before{content:counter(step);position:absolute;left:0;top:0;display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--ci-gold);color:var(--ci-gold);font-family:var(--ci-font-head);font-size:15px;font-weight:800}
.ip-step:not(:last-child)::after{content:"";position:absolute;left:17px;top:42px;bottom:8px;width:1px;background:var(--ci-line-strong)}
.bio-prose .ip-step__title{margin-bottom:10px;color:var(--ci-white);font-family:var(--ci-font-head);font-size:18px;font-weight:700;line-height:1.45}
.bio-prose .ip-step__title strong,.bio-prose .ip-diff__title strong{background:none}
.bio-prose .ip-step p:not(.ip-step__title),.bio-prose .ip-diff p:not(.ip-diff__title){font-size:16px;line-height:1.7}

/* Five differences to the AK offer */
.ip-diffs{display:grid;gap:14px;margin:8px 0 36px}
.ip-diff,.ip-step{min-width:0;overflow-wrap:break-word}
.ip-diff{padding:24px 22px 4px;border:1px solid var(--ci-line);border-top:2px solid var(--ci-gold);background:var(--ci-panel)}
.bio-prose .ip-diff__title{color:var(--ci-white);font-family:var(--ci-font-head);font-size:18px;font-weight:700;line-height:1.45}

/* Closing lines of the long read */
.ip-seal{margin:56px 0 0;padding:40px 0 16px;text-align:center;border-top:1px solid var(--ci-line)}
.bio-prose .ip-seal__lead{max-width:56ch;margin:0 auto 20px;color:var(--ci-gold);font-size:14px;font-weight:700;letter-spacing:.04em;line-height:1.7}
.bio-prose .ip-seal__lead strong{background:none;color:var(--ci-gold)}
.bio-prose .ip-seal__slogan{max-width:640px;margin:0 auto;font-family:var(--ci-font-head);font-size:clamp(24px,3.2vw,36px);font-weight:800;letter-spacing:-.035em;line-height:1.2;color:var(--ci-white);text-wrap:balance}
.bio-prose .ip-seal__slogan em{font-style:normal}

/* ---------- Statement ---------- */
/* Source links at the end of a paragraph */
.bio-prose .ip-source{display:inline-block;margin-left:4px;padding:0 8px;border:1px solid var(--ci-line-strong);border-radius:var(--ci-radius);color:var(--ci-gold-bright);font-size:13px;font-weight:600;line-height:1.7;text-decoration:none;white-space:nowrap}
.bio-prose .ip-source::after{content:" ↗"}
.bio-prose .ip-source:hover{border-color:var(--ci-gold)}

/* Contact: mobile and WhatsApp Business */
.ip-contact{display:grid;gap:8px;margin:6px 0 30px;padding:26px 24px;border:1px solid var(--ci-line-strong);background:radial-gradient(circle at 100% 0%,rgba(215,170,88,.14) 0,transparent 52%),linear-gradient(150deg,var(--ci-raised),var(--ci-ink) 70%)}
.bio-prose .ip-contact__line{margin:0;color:var(--ci-white);font-size:18px;line-height:1.5}
.ip-contact__label{margin-right:6px;color:var(--ci-gold);font-size:12px;font-weight:800;letter-spacing:.18em;text-transform:uppercase}
.ip-contact a:not(.ci-btn){color:var(--ci-white);font-family:var(--ci-font-head);font-weight:700;text-decoration:none}
.ip-contact a:not(.ci-btn):hover{color:var(--ci-gold-bright)}
/* One column that never grows past the box (a long e-mail address would widen the grid); numbers stay whole */
.ip-contact{grid-template-columns:minmax(0,1fr)}
.ip-contact a[href^="tel:"],.ip-contact a[href^="https://wa.me/"]{white-space:nowrap}
.ip-contact a[href^="mailto:"]{overflow-wrap:anywhere}
.ip-contact .ci-btn{justify-self:stretch;margin-top:12px}
@media (min-width:600px){.ip-contact .ci-btn{justify-self:start}}

/* Signature */
.bio-prose .ip-signature{margin-top:40px;padding-top:26px;border-top:1px solid var(--ci-line)}
.bio-prose .ip-signature strong{background:none}
.ip-signature__name{display:block;color:var(--ci-white);font-family:var(--ci-font-head);font-size:22px;font-weight:800;letter-spacing:-.02em}
.ip-signature__role{display:block;margin-top:4px;color:var(--ci-gold);font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}

/* Imprint: label and value per row, side by side from 640 px in one shared label column as wide as the longest
   label ("Unternehmensgegenstand"), the rows take it over as a subgrid */
.ip-facts{margin:6px 0 30px;border-top:1px solid var(--ci-line)}
.ip-facts__row{display:grid;gap:2px 32px;padding:14px 0;border-bottom:1px solid var(--ci-line)}
.ip-facts dt{color:var(--ci-gold);font-size:12px;font-weight:800;letter-spacing:.18em;line-height:1.6;text-transform:uppercase}
.ip-facts dd{margin:0;color:var(--ci-white);font-size:17px;line-height:1.6;overflow-wrap:anywhere}
@media (min-width:640px){
  .ip-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:32px}
  .ip-facts__row{grid-column:1 / -1;grid-template-columns:subgrid;align-items:baseline}
}

/* Statement: the proceedings in brief, dates as labels like the imprint rows */
.ip-brief .ip-facts{margin:4px 0 20px}
.ip-brief .ip-facts dd{font-size:16px}

@media print{
  .ip-contact .ci-btn,.ip-figure,.ip-seal__image{display:none}
  .bio-prose .ip-source::after{content:" (" attr(href) ")"}
}
